

:root{--g:#078a4d;--g2:#10a968;--mint:#eafaf1;--ink:#101828;--muted:#667085;--line:#dce5e0;--surface:#fff;--page:#fbfdfc;--shadow:0 8px 26px rgba(16,24,40,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--ink);font-family:Inter,Arial,Helvetica,sans-serif}a{color:inherit}button,input,select{font:inherit}
.site-header{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 3.2%;gap:22px;position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;white-space:nowrap}.brand-mark{width:58px;height:48px;flex:0 0 auto;display:block;object-fit:contain;object-position:center;background:#fff;border-radius:0}.brand-symbol-image{background:#fff!important}.login-brand-symbol{width:54px;height:54px;object-fit:contain;margin:0 auto 9px} .brand-name{position:relative;display:inline-block;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:29px;font-weight:800;letter-spacing:0.15px;color:#172033;padding-bottom:7px;line-height:1.12;font-kerning:normal}
.brand-name .brand-chatv{color:#172033}
.brand-name .brand-live{font-style:normal;color:#e83e9b;background:linear-gradient(100deg,#ec4899,#c026d3);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.brand-name:after{content:"";position:absolute;left:27%;right:5%;height:7px;bottom:-2px;border-top:4px solid #e83e9b;border-radius:55% 65% 0 0;transform:rotate(-3deg);filter:drop-shadow(0 1px 2px rgba(232,62,155,.18))}
.brand-tagline{border-left:1px solid #aebbb4;padding-left:24px;margin-left:10px;font-size:16px;white-space:nowrap;color:#202a25}
.main-nav{display:flex;align-items:center;gap:6px}.main-nav a{display:flex;align-items:center;gap:8px;padding:12px 14px;border-radius:12px;text-decoration:none;font-weight:650;font-size:14px;white-space:nowrap}.main-nav a.active,.main-nav a:hover{background:#dcf9e9;color:var(--g)}.nav-icon{font-size:19px;line-height:1}
.page-wrap{max-width:1510px;margin:0 auto;padding:0 30px}
.ad-slot{display:flex;align-items:center;justify-content:center;gap:16px;text-align:center;border:1px solid #9adfba;background:linear-gradient(100deg,#f4fff8,#e9fbf1);border-radius:13px;color:#1b7049;font-size:15px;min-height:76px;padding:10px 18px;font-weight:600}
.ad-label{font-size:12px;font-weight:800;background:#c9f6dc;color:#087b47;border-radius:7px;padding:6px 10px}.ad-brand{font-size:25px;font-weight:800;color:#18222d}.ad-brand span{color:#f4b400}.ad-size{border-left:1px solid #83c9a0;padding-left:24px;color:#1d2b25}.ad-size small{display:block;color:#688173;font-size:12px;font-weight:400;margin-top:3px}
.top-ad{max-width:1120px;margin:16px auto 22px}.side-ad{min-height:530px;width:100%;display:flex;flex-direction:column;justify-content:center;gap:18px;border-radius:14px}.side-ad .ad-brand{font-size:32px}.side-ad .ad-size{border:0;padding:0}.ad-wave{height:90px;width:100%;margin-top:auto;background:linear-gradient(145deg,transparent 25%,#d3f8e3 25%,#8ee0b2 68%,#2bbd7d 69%);border-radius:60% 0 12px 12px}
.hero-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(350px,1.35fr) 220px;gap:24px;align-items:center;padding:0 0 18px}
.hero-copy h1{font-size:clamp(40px,4.1vw,62px);line-height:.99;letter-spacing:-2.5px;margin:0 0 18px;font-weight:850}.hero-copy h1 span{color:var(--g)}.hero-copy p{font-size:18px;line-height:1.48;color:#344054;margin:0 0 22px;max-width:500px}.benefits{list-style:none;padding:0;margin:0 0 25px;display:grid;gap:12px}.benefits li{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:550}.tick{width:24px;height:24px;border-radius:50%;background:var(--g);color:#fff;display:grid;place-items:center;font-size:15px;flex:0 0 auto}
.primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:58px;padding:0 25px;border:0;border-radius:13px;background:linear-gradient(100deg,#078a4d,#0ca963);color:#fff;text-decoration:none;font-weight:750;font-size:18px;box-shadow:0 7px 17px #078a4d24;cursor:pointer}.primary-btn:hover{filter:brightness(.96)}.legal-note{font-size:13px;line-height:1.55;color:#475467;margin:12px 0 0 38px}.legal-note a,.form-legal a{color:var(--g);font-weight:650}
.hero-visual{width:100%;display:block;object-fit:contain;border-radius:24px;mix-blend-mode:multiply}
.feature-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:8px 0 18px}.feature-card{min-height:102px;background:#effbf4;border:1px solid #e3f5e9;border-radius:15px;padding:16px 13px;display:flex;align-items:center;gap:13px}.feature-icon{font-size:30px;color:var(--g);flex:0 0 auto}.feature-card strong{display:block;font-size:16px;margin-bottom:5px}.feature-card small{font-size:13px;line-height:1.35;color:#475467}
.bottom-ad{max-width:1120px;margin:18px auto 20px}.site-footer{min-height:76px;border-top:1px solid var(--line);background:#fff;padding:17px 3.2%;display:flex;align-items:center;justify-content:space-between;gap:18px}.footer-links{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.footer-links a{text-decoration:none;font-size:13px;color:#344054}.footer-links a:hover{color:var(--g)}.footer-pill{background:#effaf4;color:#23744c;padding:12px 18px;border-radius:28px;font-size:13px;font-weight:650;white-space:nowrap}
.login-grid{display:grid;grid-template-columns:minmax(270px,1fr) minmax(390px,1.08fr) 220px;gap:24px;align-items:center;padding:4px 0 20px;min-height:630px}.login-copy h1{font-size:clamp(39px,4vw,58px);line-height:1.01;letter-spacing:-2.3px;margin:0 0 16px}.login-copy h1 span{color:var(--g)}.login-copy p{font-size:18px;line-height:1.5;color:#344054}.login-visual{width:100%;display:block;object-fit:contain;mix-blend-mode:multiply}
.login-card{border:1px solid #dce5e0;border-radius:23px;background:#fff;padding:25px 25px 22px;box-shadow:var(--shadow)}.login-heading{text-align:center;margin-bottom:19px}.login-heading .brand-mark{margin:0 auto 9px;width:54px;height:54px;font-size:31px}.login-heading h2{font-size:30px;letter-spacing:-1px;margin:0 0 5px}.login-heading p{margin:0;color:var(--muted);font-size:15px}
.field{margin:13px 0}.field label{display:block;font-size:14px;font-weight:750;margin:0 0 7px}.field input,.field select{height:47px;width:100%;border:1px solid #cbd5d0;border-radius:10px;padding:0 13px;color:var(--ink);background:#fff;outline:none}.field input:focus,.field select:focus{border-color:var(--g);box-shadow:0 0 0 3px #d9f7e7}.field-hint{display:flex;justify-content:flex-end;font-size:11px;color:#77847d;margin-top:4px}.gender-group{display:grid;grid-template-columns:1fr 1fr;gap:10px}.gender-choice{height:49px;border:1px solid #cbd5d0;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:700;cursor:pointer}.gender-choice input{accent-color:var(--g);width:17px;height:17px}.gender-choice:has(input:checked){border:1.5px solid var(--g);background:#effcf5;color:#087b47}.location-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.location-status{display:flex;align-items:center;gap:9px;padding:10px 12px;background:#eafaf1;border-radius:10px;color:#26744b;font-size:12px;line-height:1.35;margin:13px 0 16px}.location-status button{margin-left:auto;border:0;background:transparent;color:var(--g);font-weight:750;text-decoration:underline;cursor:pointer}.login-card .primary-btn{width:100%;font-size:18px}.form-legal{text-align:center;font-size:12px;color:#667085;line-height:1.5;margin-top:14px}.form-status{min-height:18px;font-size:12px;margin-top:8px}.form-status.error{color:#b42318}.form-status.ok{color:#087b47}
.mobile-nav{display:none}
@media(max-width:1120px){.brand-tagline{display:none}.hero-grid{grid-template-columns:1fr 1.1fr}.hero-grid .side-ad{display:none}.login-grid{grid-template-columns:.8fr 1.2fr}.login-grid .side-ad{display:none}}
@media(max-width:760px){
 .site-header{height:62px;padding:0 14px}.brand{gap:8px}.brand-mark{width:48px;height:38px;border-radius:0}.brand-name{font-size:21px}.main-nav{display:none}.page-wrap{padding:0 15px}.top-ad{margin:12px 15px 16px;min-height:51px;padding:8px;gap:8px;font-size:12px}.ad-brand{font-size:17px}.ad-size{padding-left:9px;font-size:11px}.ad-size small{display:none}.ad-label{font-size:10px;padding:5px 7px}
 .hero-grid{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:0}.hero-copy h1{font-size:41px;letter-spacing:-1.7px;margin:0 0 12px}.hero-copy p{font-size:15px;margin-bottom:15px}.benefits{gap:9px;margin-bottom:18px}.benefits li{font-size:14px}.tick{width:20px;height:20px;font-size:12px}.primary-btn{width:100%;min-height:52px;font-size:16px}.legal-note{margin-left:4px}.hero-visual{max-height:245px;object-fit:contain;margin:0 auto}.feature-row{grid-template-columns:repeat(2,1fr);gap:8px;margin:10px 0 14px}.feature-card{min-height:82px;padding:10px;gap:8px}.feature-icon{font-size:23px}.feature-card strong{font-size:13px;margin-bottom:3px}.feature-card small{font-size:11px}.bottom-ad{margin:14px 0 18px}.site-footer{display:block;padding:16px 16px 78px}.footer-links{gap:12px;margin:14px 0}.footer-links a{font-size:12px}.footer-pill{display:inline-block;font-size:11px;padding:9px 12px}
 .login-grid{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:0 0 18px;min-height:unset}.login-copy{text-align:center}.login-copy h1{font-size:33px;letter-spacing:-1.2px;margin-bottom:7px}.login-copy p{font-size:14px;margin:0}.login-visual{max-height:145px;object-fit:contain}.login-card{padding:19px 16px;border-radius:18px}.login-heading{margin-bottom:13px}.login-heading .brand-mark{width:44px;height:44px;font-size:25px}.login-heading h2{font-size:25px}.login-heading p{font-size:13px}.field{margin:11px 0}.field label{font-size:13px;margin-bottom:6px}.field input,.field select{height:44px;font-size:14px}.gender-choice{height:44px;font-size:14px}.location-row{grid-template-columns:1fr;gap:0}.location-status{font-size:11px;margin:10px 0 13px}.login-card .primary-btn{font-size:16px}.mobile-nav{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;height:61px;background:#fff;border-top:1px solid var(--line);justify-content:space-around;align-items:center}.mobile-nav a{text-decoration:none;color:#475467;text-align:center;font-size:10px}.mobile-nav b{display:block;font-size:18px;color:var(--g);margin-bottom:2px}
}

/* Gender radio alignment fix */
.gender-choice{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:9px;white-space:nowrap;min-width:0}
.gender-choice input[type="radio"]{appearance:auto!important;-webkit-appearance:radio!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;flex:0 0 18px!important;margin:0!important;padding:0!important;box-shadow:none!important}
.gender-choice span{display:inline;line-height:1}
.gender-choice:has(input:checked){border:1.5px solid var(--g);background:#effcf5;color:#087b47}
@media(max-width:760px){.gender-choice{height:46px;font-size:14px}.gender-choice input[type="radio"]{width:17px!important;height:17px!important;min-width:17px!important;flex-basis:17px!important}}

/* Preview-only toolbar and device-frame rules removed from production CSS. */

/* V4 FIX: reset radio controls so generic .field input rules cannot stretch them */
.gender-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.gender-choice{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;height:48px!important;min-width:0!important;padding:0 10px!important;white-space:nowrap!important;line-height:1!important}
.gender-choice input[type="radio"]{
  all:revert!important;
  appearance:auto!important;-webkit-appearance:radio!important;
  display:inline-block!important;box-sizing:border-box!important;
  width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;
  margin:0!important;padding:0!important;flex:0 0 18px!important;
  accent-color:#078a4d!important;cursor:pointer!important
}
.gender-choice .gender-symbol{display:inline-block!important;font-size:17px!important;line-height:1!important}
.gender-choice:has(input[type="radio"]:checked){border:1.5px solid #078a4d!important;background:#effcf5!important;color:#087b47!important}
@media(max-width:760px){
 .gender-group{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .gender-choice{height:46px!important;gap:7px!important;padding:0 7px!important;font-size:14px!important}
 .gender-choice input[type="radio"]{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;flex-basis:17px!important}
}


/* Page 03 — Terms & Conditions */
.terms-page{max-width:1510px;margin:0 auto;padding:0 30px 18px}
.terms-layout{display:grid;grid-template-columns:minmax(0,1fr) 226px;gap:22px;align-items:stretch}
.terms-main-card{background:#fff;border:1px solid #dcebe3;border-radius:16px;padding:22px 24px;box-shadow:0 5px 20px rgba(16,24,40,.035)}
.terms-banner{display:flex;align-items:center;gap:16px;background:linear-gradient(105deg,#078a4d,#12b96a);color:#fff;border-radius:13px;padding:18px 22px;margin-bottom:16px}
.terms-banner-icon{width:54px;height:54px;border-radius:12px;background:#ffffff22;display:grid;place-items:center;font-size:34px;flex:0 0 auto}
.terms-banner h1{font-size:29px;line-height:1.1;margin:0 0 6px;letter-spacing:-.7px}
.terms-banner p{margin:0;font-size:14px;line-height:1.4;color:#effff5}
.terms-list{display:grid;gap:0}
.terms-item{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:13px 0;border-bottom:1px solid #e5eee9}
.terms-item:last-child{border-bottom:0}
.terms-number{width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#10aa67,#047342);color:#fff;display:grid;place-items:center;font-weight:800;font-size:16px}
.terms-item h3{margin:0 0 5px;font-size:16px;color:#142b45}
.terms-item p,.terms-item li{font-size:13px;line-height:1.48;color:#526b82;margin:0}
.terms-item ul{margin:3px 0 0;padding-left:17px}
.terms-item li{padding:1px 0}
.terms-item li::marker{color:#0a9a59}
.terms-contact{display:flex;gap:22px;flex-wrap:wrap;margin-top:7px}
.terms-contact a{font-size:13px;color:#087b47;text-decoration:none;font-weight:650}
.terms-consent{margin-top:14px;background:#effbf4;border:1px solid #c9efda;border-radius:12px;padding:14px 16px}
.terms-consent label{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:#29465a;cursor:pointer}
.terms-consent input{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:#078a4d}
.terms-continue{margin:12px 0 0 28px;min-height:46px;padding:0 24px;font-size:16px}
.terms-continue:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}
.terms-status{font-size:12px;margin:8px 0 0 28px;color:#087b47;min-height:16px}
.terms-side{display:flex;flex-direction:column;gap:14px}
.terms-side-ad{min-height:510px;padding:18px 14px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;background:linear-gradient(160deg,#f3fff8,#dcf8e9);border:1px solid #cbeed9;border-radius:15px;overflow:hidden}
.terms-side-ad .ad-label{align-self:flex-start}
.terms-side-ad h3{font-size:27px;line-height:1.13;margin:14px 0 8px;color:#102d24}
.terms-side-ad p{font-size:14px;line-height:1.45;color:#526b82;margin:0}
.terms-side-ad .primary-btn{min-height:42px;font-size:14px;padding:0 15px}
.terms-ad-art{font-size:76px;line-height:1.3;margin-top:12px}
.terms-trust{background:#fff;border:1px solid #dcebe3;border-radius:14px;padding:14px}
.terms-trust-row{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #edf2ef}
.terms-trust-row:last-child{border-bottom:0}
.terms-trust-icon{font-size:22px;color:#078a4d}
.terms-trust-row strong{display:block;font-size:13px;margin-bottom:3px}
.terms-trust-row small{display:block;font-size:11px;line-height:1.4;color:#667085}
.terms-bottom-ad{margin:16px auto 18px;max-width:1120px}
.terms-footer{margin-top:0}
.terms-mobile-nav{display:none}
@media(max-width:1120px){.terms-layout{grid-template-columns:minmax(0,1fr) 205px;gap:15px}}
@media(max-width:760px){
 .terms-page{padding:0 12px 12px}
 .terms-layout{display:block}
 .terms-main-card{padding:12px;border-radius:15px}
 .terms-banner{padding:13px 12px;gap:11px;margin-bottom:10px}
 .terms-banner-icon{width:42px;height:42px;font-size:27px}
 .terms-banner h1{font-size:21px;margin-bottom:4px}
 .terms-banner p{font-size:12px}
 .terms-item{grid-template-columns:32px minmax(0,1fr);gap:9px;padding:11px 0}
 .terms-number{width:29px;height:29px;font-size:14px}
 .terms-item h3{font-size:14px;margin-bottom:4px}
 .terms-item p,.terms-item li{font-size:11.5px;line-height:1.42}
 .terms-item ul{padding-left:15px}
 .terms-contact{gap:10px;display:grid}
 .terms-contact a{font-size:11px}
 .terms-consent{padding:11px;margin-top:10px}
 .terms-consent label{font-size:11px;line-height:1.35}
 .terms-consent input{width:17px;height:17px;flex-basis:17px}
 .terms-continue{width:calc(100% - 27px);margin:10px 0 0 27px;min-height:43px;font-size:14px}
 .terms-status{margin-left:27px;font-size:11px}
 .terms-side,.terms-bottom-ad{display:none}
 .terms-mobile-nav{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;height:61px;background:#fff;border-top:1px solid var(--line);justify-content:space-around;align-items:center}
 .terms-mobile-nav a{text-decoration:none;color:#475467;text-align:center;font-size:10px}
 .terms-mobile-nav b{display:block;font-size:18px;color:var(--g);margin-bottom:2px}
 .terms-footer{display:none}
 .terms-page{padding-bottom:75px}
}


/* PAGE 03 — Final approved reference layout */
.p3-shell{max-width:1470px;margin:0 auto;padding:0 20px 14px;color:#14212b}
.p3-top-ad{height:62px;max-width:790px;margin:12px auto 14px;border:1px solid #cce9dc;border-radius:13px;background:linear-gradient(90deg,#f7fffb,#fff);display:flex;align-items:center;justify-content:space-around;gap:12px;padding:8px 16px;color:#243746}
.p3-ad-tag{background:#d7f6e5;color:#078a4d;border-radius:6px;padding:4px 9px;font-size:12px;font-weight:700}
.p3-ad-brand{font-weight:750;font-size:17px;white-space:nowrap}.p3-ad-brand i{font-style:normal;color:#1685ef;font-size:25px;margin-right:7px}
.p3-ad-copy{font-size:14px;line-height:1.35}.p3-ad-copy b{display:block;font-size:16px}.p3-ad-cta{background:#1769e8;color:white;padding:10px 22px;border-radius:9px;font-weight:700;white-space:nowrap;font-size:13px}
.p3-grid{display:grid;grid-template-columns:minmax(0,1fr) 198px;gap:22px;align-items:stretch}
.p3-card{border:1px solid #dcebe3;border-radius:15px;background:#fff;padding:17px 20px 16px;box-shadow:0 4px 15px rgba(16,24,40,.025)}
.p3-heading h1{font-size:35px;line-height:1.08;letter-spacing:-1px;margin:0 0 4px;color:#101b26}
.p3-heading p{font-size:15px;color:#078a4d;margin:0 0 13px}
.p3-content{display:grid;grid-template-columns:168px minmax(0,1fr);gap:13px;align-items:start}
.p3-illustration{width:100%;max-width:168px;margin:2px auto 0;display:block}
.p3-sections{min-width:0}
.p3-section{display:grid;grid-template-columns:27px minmax(0,1fr);gap:10px;padding:7px 0 8px}
.p3-num{width:25px;height:25px;border-radius:50%;background:#078a4d;color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px}
.p3-section h3{font-size:13px;line-height:1.2;margin:3px 0 5px;color:#152b3b}
.p3-section p{font-size:11.5px;line-height:1.5;margin:0;color:#536a7a}
.p3-consent{margin:5px 0 0 37px}
.p3-check{display:flex;align-items:center;gap:9px;font-size:11px;color:#344b5a;cursor:pointer}
.p3-check input{width:17px;height:17px;margin:0;accent-color:#078a4d;flex:0 0 17px}
.p3-continue{display:block;width:100%;margin-top:11px;height:40px;border:0;border-radius:8px;background:#078a4d;color:white;font-size:14px;font-weight:750;cursor:pointer}
.p3-continue:disabled{opacity:.55;cursor:not-allowed}
.p3-status{font-size:11px;color:#078a4d;min-height:14px;margin-top:4px}
.p3-sidebar{display:flex;flex-direction:column;gap:14px}
.p3-vertical-ad{min-height:380px;border:1px solid #cce9dc;border-radius:14px;background:linear-gradient(160deg,#f3fff8,#d9f8e9);padding:12px 13px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;overflow:hidden}
.p3-vertical-ad .p3-ad-tag{align-self:flex-start}
.p3-adsense-symbol{font-size:42px;color:#1685ef;line-height:1.1}
.p3-vertical-ad h3{font-size:19px;line-height:1.2;margin:8px 0 5px;color:#14212b}
.p3-vertical-ad p{font-size:11px;line-height:1.45;color:#526b82;margin:0}
.p3-vertical-ad .p3-ad-cta{background:#078a4d;padding:9px 18px}
.p3-wave{width:130%;height:45px;background:linear-gradient(160deg,#8ee7bb,#20c987);border-radius:50% 50% 0 0 / 70% 70% 0 0;opacity:.9}
.p3-trust{border:1px solid #dcebe3;border-radius:13px;background:#fff;padding:5px 13px}
.p3-trust-row{display:grid;grid-template-columns:27px 1fr;gap:8px;padding:10px 0;border-bottom:1px solid #edf2ef}
.p3-trust-row:last-child{border-bottom:0}
.p3-trust-icon{font-size:21px;color:#078a4d}
.p3-trust-row b{display:block;font-size:11px;margin-bottom:3px}
.p3-trust-row small{display:block;font-size:9px;line-height:1.35;color:#667085}
.p3-footer{max-width:1470px;margin:0 auto 0;padding:10px 25px;border:1px solid #dcebe3;border-radius:13px;background:linear-gradient(90deg,#f1faf6,#eaf6f1);display:flex;align-items:center;justify-content:space-between;gap:12px}
.p3-footer-brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:17px;white-space:nowrap}
.p3-footer-brand .mark{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#078a4d;color:#fff;font-size:20px}
.p3-footer-brand small{display:block;font-size:9px;font-weight:400;color:#667085}.p3-footer-brand .p3-brand-lockup{display:flex;flex-direction:column;align-items:flex-start;gap:1px}.p3-footer-brand .brand-name{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:18px;font-weight:800;letter-spacing:.15px;line-height:1.12;padding-bottom:6px;position:relative;display:inline-block;color:#172033}.p3-footer-brand .brand-chatv{color:#172033}.p3-footer-brand .brand-live{font-style:normal;color:#e83e9b;background:linear-gradient(100deg,#ec4899,#c026d3);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.p3-footer-brand .brand-name:after{content:"";position:absolute;left:27%;right:5%;height:5px;bottom:-2px;border-top:3px solid #e83e9b;border-radius:55% 65% 0 0;transform:rotate(-3deg);filter:drop-shadow(0 1px 2px rgba(232,62,155,.18))}
.p3-footer-links{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.p3-footer-links a{font-size:9px;color:#526b82;text-decoration:none}
.p3-footer-pills{font-size:9px;color:#526b82;border:1px solid #d4e8dd;background:#fff;border-radius:18px;padding:9px 12px;white-space:nowrap}
.p3-mobile-nav{display:none}
@media(max-width:900px){
 .p3-grid{grid-template-columns:minmax(0,1fr) 175px;gap:14px}
 .p3-content{grid-template-columns:130px minmax(0,1fr)}
 .p3-card{padding:15px}
}
@media(max-width:760px){
 .p3-shell{padding:0 11px 76px}
 .p3-shell .site-header{height:52px;min-height:52px;padding:0 12px}
 .p3-shell .site-header .brand-tagline,.p3-shell .site-header .main-nav{display:none}
 .p3-shell .site-header .brand{gap:7px}
 .p3-top-ad{height:58px;margin:9px 0 12px;padding:6px 9px;gap:7px;justify-content:space-between}
 .p3-ad-tag{font-size:10px;padding:3px 6px}
 .p3-ad-brand{font-size:12px}.p3-ad-brand i{font-size:19px;margin-right:3px}
 .p3-ad-copy{font-size:9px}.p3-ad-copy b{font-size:10px}
 .p3-ad-cta{font-size:9px;padding:8px 10px}
 .p3-grid{display:block}
 .p3-card{padding:13px 12px 12px;border-radius:14px}
 .p3-heading{text-align:center}
 .p3-heading h1{font-size:22px;letter-spacing:-.4px;margin:2px 0 5px}
 .p3-heading p{font-size:12px;line-height:1.4;margin:0 auto 9px;max-width:290px}
 .p3-content{display:flex;flex-direction:column;gap:5px}
 .p3-illustration{width:112px;height:91px;object-fit:contain;margin:0 auto 2px}
 .p3-sections{width:100%}
 .p3-section{grid-template-columns:27px minmax(0,1fr) 13px;gap:8px;padding:9px 0;border-bottom:1px solid #e8efeb}
 .p3-num{width:25px;height:25px;font-size:13px}
 .p3-section h3{font-size:12px;margin:1px 0 4px}
 .p3-section p{font-size:10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .p3-chevron{font-size:18px;color:#078a4d;align-self:center}
 .p3-consent{margin:9px 0 0}
 .p3-check{font-size:10px;gap:8px}
 .p3-check input{width:16px;height:16px;flex-basis:16px}
 .p3-continue{height:39px;font-size:13px;margin-top:8px}
 .p3-sidebar,.p3-footer{display:none}
 .p3-mobile-nav{display:flex;position:fixed;z-index:100;bottom:0;left:0;right:0;height:57px;background:#fff;border-top:1px solid #dcebe3;align-items:center;justify-content:space-around}
 .p3-mobile-nav a{text-decoration:none;color:#52606b;text-align:center;font-size:9px}
 .p3-mobile-nav b{display:block;color:#078a4d;font-size:17px;line-height:1.15;margin-bottom:2px}
}


/* PAGE 04 — Online Users: responsive scrolling + working demo controls */
.p4-page{max-width:1510px;margin:0 auto;padding:0 24px 28px;color:#14212b}
.p4-top-ad{max-width:1120px;margin:15px auto 18px;min-height:68px}
.p4-layout{display:grid;grid-template-columns:minmax(0,1fr) 195px;gap:18px;align-items:stretch}
.p4-main{min-width:0;border:1px solid #dcebe3;border-radius:16px;background:#fff;padding:17px 18px 15px;box-shadow:0 4px 16px rgba(16,24,40,.035)}
.p4-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:5px}
.p4-title{display:flex;align-items:center;gap:11px}
.p4-title .p4-people{font-size:31px;color:#078a4d}
.p4-title h1{font-size:31px;letter-spacing:-.8px;margin:0;color:#101b26}
.p4-count{background:#078a4d;color:#fff;border-radius:20px;padding:8px 13px;font-weight:750;font-size:14px;white-space:nowrap}
.p4-subtitle{color:#078a4d;font-size:14px;margin:0 0 14px}
.p4-filters{display:grid;grid-template-columns:155px 145px minmax(180px,1fr);gap:10px;margin:0 0 12px}
.p4-control{height:43px;border:1px solid #cfe2d7;border-radius:10px;background:#fff;padding:0 12px;color:#263a31;font:inherit;min-width:0;width:100%}
.p4-user-list{border-top:1px solid #e7efea}
.p4-user{min-height:67px;display:grid;grid-template-columns:58px minmax(115px,1.1fr) 75px minmax(155px,1.25fr) 92px 86px;align-items:center;gap:9px;border-bottom:1px solid #e8efeb;padding:7px 4px}
.p4-avatar{width:49px;height:49px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#d8f6e5,#83d8aa);color:#075b37;font-size:17px;font-weight:800;position:relative}
.p4-avatar:after{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:#0aa34f;border:2px solid white;right:-1px;bottom:0}
.p4-name{font-size:15px;font-weight:750;color:#121e29;overflow-wrap:anywhere}
.p4-age,.p4-location{font-size:12px;color:#263746}
.p4-gender{justify-self:start;border-radius:20px;padding:7px 10px;font-size:12px;font-weight:750;white-space:nowrap}
.p4-gender.female{background:#ffedf3;color:#d21c5b}.p4-gender.male{background:#e8f2ff;color:#1459b5}
.p4-chat{border:0;border-radius:9px;background:linear-gradient(100deg,#078a4d,#0ca963);color:white;padding:9px 11px;font-size:13px;font-weight:750;cursor:pointer;white-space:nowrap}
.p4-chat:hover{filter:brightness(.95)}
.p4-pagination{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;padding:15px 0 0}
.p4-pagination button{min-width:35px;height:35px;border:1px solid #d3e2d9;border-radius:8px;background:#fff;color:#263746;font-weight:650;cursor:pointer}
.p4-pagination button.active{background:#078a4d;color:#fff;border-color:#078a4d}
.p4-pagination button:disabled{opacity:.4;cursor:not-allowed}
.p4-sidebar{display:flex;flex-direction:column;gap:13px}
.p4-ad-card{min-height:435px;border:1px solid #cce9dc;border-radius:14px;background:linear-gradient(160deg,#f4fff8,#d9f8e9);padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center}
.p4-ad-card h3{font-size:22px;line-height:1.15;margin:10px 0 6px;color:#14212b}
.p4-ad-card p{font-size:12px;color:#526b82;margin:0}
.p4-ad-logo{font-size:42px;color:#1685ef}
.p4-ad-button{display:inline-flex;background:#078a4d;color:#fff;text-decoration:none;padding:10px 17px;border-radius:9px;font-size:13px;font-weight:750}
.p4-wave{height:50px;width:130%;background:linear-gradient(160deg,#8ee7bb,#20c987);border-radius:50% 50% 0 0 / 70% 70% 0 0}
.p4-trust{border:1px solid #dcebe3;border-radius:13px;padding:7px 12px;background:#fff}
.p4-trust-row{display:grid;grid-template-columns:27px 1fr;gap:8px;padding:10px 0;border-bottom:1px solid #edf2ef}
.p4-trust-row:last-child{border-bottom:0}
.p4-trust-row b{display:block;font-size:12px;margin-bottom:3px}.p4-trust-row small{font-size:10px;line-height:1.4;color:#667085}
.p4-bottom-ad{max-width:900px;margin:17px auto 0;min-height:64px}
.p4-footer{max-width:1510px;margin:0 auto 0;padding:11px 24px;border:1px solid #dcebe3;border-radius:13px;background:linear-gradient(90deg,#f1faf6,#eaf6f1);display:flex;align-items:center;justify-content:space-between;gap:12px}

.p4-footer-brand .brand-name{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:18px;font-weight:800;letter-spacing:.15px;line-height:1.12;padding-bottom:6px;vertical-align:middle}.p4-footer-brand .brand-name:after{height:5px;bottom:-2px;border-top-width:3px}.p4-footer-brand .brand-chatv{color:#172033}.p4-footer-brand .brand-live{font-style:normal;color:#e83e9b;background:linear-gradient(100deg,#ec4899,#c026d3);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.p4-footer-brand{font-weight:800;white-space:nowrap}.p4-footer-brand small{display:block;font-size:10px;font-weight:400;color:#667085}
.p4-footer-links{display:flex;gap:13px;flex-wrap:wrap}.p4-footer-links a{font-size:10px;color:#526b82;text-decoration:none}
.p4-footer-pill{font-size:10px;color:#526b82;background:white;border:1px solid #d4e8dd;border-radius:18px;padding:9px 12px;white-space:nowrap}
.p4-mobile-nav{display:none}
.p4-scroll-tools{position:fixed;right:16px;bottom:24px;z-index:40;display:flex;flex-direction:column;gap:8px}
.p4-scroll-tools button{width:39px;height:39px;border:0;border-radius:50%;background:#078a4d;color:white;font-size:19px;box-shadow:0 3px 10px #078a4d35;cursor:pointer}
.p4-empty{padding:25px;text-align:center;color:#667085}
.p4-demo-note{font-size:10px;color:#718096;text-align:right;margin-top:7px}
@media(max-width:1050px){.p4-user{grid-template-columns:52px minmax(100px,1fr) 65px minmax(125px,1fr) 82px 78px;gap:6px}.p4-main{padding:14px}.p4-layout{grid-template-columns:minmax(0,1fr) 170px}}
@media(max-width:760px){
 .p4-page{padding:0 11px 78px}
 .p4-page .site-header{height:59px;padding:0 13px}
 .p4-page .site-header .brand-tagline{display:none}
 .p4-page .site-header .main-nav{display:none}
 .p4-top-ad{min-height:53px;margin:10px 0 13px;padding:6px 8px;gap:7px}
 .p4-top-ad .ad-brand{font-size:15px}.p4-top-ad .ad-size{font-size:9px;padding-left:7px}.p4-top-ad .ad-size small{display:none}
 .p4-layout{display:block}
 .p4-main{padding:12px 10px;border-radius:14px}
 .p4-heading{gap:7px;align-items:center}
 .p4-title{gap:7px}.p4-title .p4-people{font-size:25px}.p4-title h1{font-size:23px;letter-spacing:-.5px}
 .p4-count{font-size:11px;padding:7px 9px}
 .p4-subtitle{font-size:11px;margin-bottom:11px}
 .p4-filters{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:9px}
 .p4-control{height:40px;padding:0 8px;font-size:12px}
 .p4-search{grid-column:1/-1}
 .p4-user-list{border-top:1px solid #e7efea}
 .p4-user{grid-template-columns:43px minmax(0,1fr) auto;grid-template-areas:"avatar name chat" "avatar details gender";gap:3px 7px;min-height:67px;padding:7px 1px}
 .p4-avatar{grid-area:avatar;width:39px;height:39px;font-size:14px}
 .p4-name{grid-area:name;font-size:12px;align-self:end}
 .p4-details{grid-area:details;font-size:9px;color:#526b82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:start}
 .p4-gender{grid-area:gender;font-size:9px;padding:4px 7px;justify-self:end;align-self:start}
 .p4-chat{grid-area:chat;font-size:10px;padding:7px 9px;align-self:center}
 .p4-pagination{gap:4px;padding-top:11px}
 .p4-pagination button{min-width:29px;height:30px;font-size:11px}
 .p4-sidebar{display:none}
 .p4-bottom-ad{min-height:58px;margin:13px 0 0;padding:6px 7px;gap:6px}
 .p4-bottom-ad .ad-brand{font-size:14px}.p4-bottom-ad .ad-size{font-size:9px;padding-left:6px}.p4-bottom-ad .ad-size small{display:none}
 .p4-footer{display:none}
 .p4-mobile-nav{display:flex;position:fixed;z-index:100;left:0;right:0;bottom:0;height:61px;background:#fff;border-top:1px solid #dcebe3;justify-content:space-around;align-items:center;padding-bottom:env(safe-area-inset-bottom)}
 .p4-mobile-nav a{text-decoration:none;color:#52606b;text-align:center;font-size:9px;min-width:48px}
 .p4-mobile-nav a.active{color:#078a4d;font-weight:750}
 .p4-mobile-nav b{display:block;font-size:18px;color:#078a4d;margin-bottom:2px;line-height:1}
 .p4-scroll-tools{right:9px;bottom:72px;gap:6px}
 .p4-scroll-tools button{width:33px;height:33px;font-size:16px}
 .p4-demo-note{text-align:center;font-size:9px}
}


/* PAGE 04 V8 — compact single-name user cards */
.p4-user{
 display:grid!important;
 grid-template-columns:48px minmax(0,1fr) auto!important;
 grid-template-areas:"avatar info chat"!important;
 align-items:center!important;
 gap:8px!important;
 min-height:61px!important;
 padding:6px 3px!important;
}
.p4-avatar{grid-area:avatar!important;width:42px!important;height:42px!important;font-size:14px!important}
.p4-user-info{grid-area:info;display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0}
.p4-name{display:block!important;grid-area:auto!important;font-size:13px!important;line-height:1.15!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p4-meta{display:block;font-size:10px;line-height:1.2;color:#526b82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.p4-chat{grid-area:chat!important;padding:7px 10px!important;min-width:54px!important;font-size:11px!important}
@media(max-width:760px){
 .p4-user{
  grid-template-columns:39px minmax(0,1fr) auto!important;
  grid-template-areas:"avatar info chat"!important;
  gap:7px!important;
  min-height:55px!important;
  padding:5px 1px!important;
 }
 .p4-avatar{width:35px!important;height:35px!important;font-size:12px!important}
 .p4-user-info{gap:3px!important}
 .p4-name{font-size:11.5px!important;line-height:1.1!important}
 .p4-meta{font-size:9px!important;line-height:1.15!important}
 .p4-chat{min-width:48px!important;padding:6px 8px!important;font-size:10px!important}
 .p4-scroll-tools{display:none!important}
}


/* PAGE 04 V9 — entire compact user card is the chat target */
.p4-user-clickable{cursor:pointer;position:relative;transition:background .15s ease,box-shadow .15s ease}
.p4-user-clickable:hover{background:#f2fbf6;box-shadow:inset 3px 0 #078a4d}
.p4-user-clickable:focus-visible{outline:2px solid #078a4d;outline-offset:-2px;border-radius:8px}
.p4-online-label{display:inline-flex;align-items:center;gap:5px;justify-self:end;color:#078a4d;font-size:10px;font-weight:700;white-space:nowrap}
.p4-online-label i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#0aa34f;box-shadow:0 0 0 2px #d9f8e6}
.p4-avatar:after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:#0aa34f;border:2px solid white;right:-1px;bottom:0}
@media(max-width:760px){
 .p4-online-label{font-size:9px;gap:4px}
 .p4-online-label i{width:7px;height:7px}
}


/* PAGE 04 V10 — remove duplicate filters and enforce name-first compact cards */
.p4-filters{display:none!important}
.p4-user.p4-user-clickable{
 display:grid!important;
 grid-template-columns:42px minmax(0,1fr) auto!important;
 grid-template-areas:"avatar info online"!important;
 align-items:center!important;
 gap:7px!important;
 min-height:54px!important;
 padding:5px 2px!important;
 cursor:pointer;
}
.p4-user.p4-user-clickable .p4-avatar{
 grid-area:avatar!important;
 width:36px!important;height:36px!important;
 font-size:12px!important;
}
.p4-user.p4-user-clickable .p4-user-info{
 grid-area:info!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:flex-start!important;
 justify-content:center!important;
 gap:3px!important;
 min-width:0!important;
}
.p4-user.p4-user-clickable .p4-name{
 display:block!important;
 grid-area:auto!important;
 width:100%!important;
 margin:0!important;
 font-size:12px!important;
 line-height:1.15!important;
 text-align:left!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
 order:0!important;
}
.p4-user.p4-user-clickable .p4-meta{
 display:block!important;
 width:100%!important;
 font-size:9px!important;
 line-height:1.2!important;
 color:#526b82!important;
 text-align:left!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
 order:1!important;
}
.p4-user.p4-user-clickable .p4-online-label{
 grid-area:online!important;
 display:inline-flex!important;
 align-items:center!important;
 justify-self:end!important;
 gap:4px!important;
 margin:0!important;
 font-size:9px!important;
 white-space:nowrap!important;
}
.p4-user.p4-user-clickable .p4-online-label i{
 width:7px!important;height:7px!important;
}
@media(max-width:760px){
 .p4-user.p4-user-clickable{
  grid-template-columns:38px minmax(0,1fr) auto!important;
  min-height:51px!important;
  gap:6px!important;
  padding:4px 1px!important;
 }
 .p4-user.p4-user-clickable .p4-avatar{width:33px!important;height:33px!important}
 .p4-user.p4-user-clickable .p4-name{font-size:11px!important}
 .p4-user.p4-user-clickable .p4-meta{font-size:8.5px!important}
 .p4-user.p4-user-clickable .p4-online-label{font-size:8.5px!important}
}


/* V11 typography adjustment: username +2px on all screen sizes */
.p4-user.p4-user-clickable .p4-name{font-size:14px!important}
@media(max-width:760px){
 .p4-user.p4-user-clickable .p4-name{font-size:13px!important}
}


/* V12 — visible smooth scroll controls on desktop and mobile */
.p4-scroll-tools{
 display:flex!important;
 position:fixed!important;
 right:12px!important;
 bottom:22px!important;
 z-index:120!important;
 gap:7px!important;
}
.p4-scroll-tools button{
 width:36px!important;
 height:36px!important;
 border:1px solid rgba(255,255,255,.75)!important;
 border-radius:50%!important;
 background:#078a4d!important;
 color:#fff!important;
 font-size:18px!important;
 line-height:1!important;
 box-shadow:0 2px 9px rgba(0,0,0,.18)!important;
 opacity:.94;
}
@media(max-width:760px){
 .p4-scroll-tools{
  display:flex!important;
  right:9px!important;
  bottom:calc(70px + env(safe-area-inset-bottom))!important;
  gap:6px!important;
 }
 .p4-scroll-tools button{
  width:31px!important;
  height:31px!important;
  font-size:16px!important;
 }
}


/* V13 — native scrolling only; no floating scroll buttons */
.p4-scroll-tools{display:none!important}
html{scroll-behavior:smooth}
body{overflow-y:auto}


/* V20: media-only presentation — remove bulky card framing */
.chat-photo-card{width:min(310px,72vw)!important;padding:0!important;background:transparent!important;border:1px solid rgba(80,110,95,.22)!important;border-radius:3px!important;box-shadow:none!important;overflow:hidden!important}
.chat-photo-card img{width:100%!important;height:auto!important;max-height:260px!important;object-fit:cover!important;border-radius:2px!important;display:block!important}
.chat-photo-caption{font-size:13px!important;line-height:1.3!important;margin:0!important;padding:3px 5px!important;background:rgba(255,255,255,.72)!important;border-top:1px solid rgba(80,110,95,.12)!important}
.chat-video-card{width:min(270px,65vw)!important;padding:0!important;overflow:hidden!important;border:1px solid rgba(80,110,95,.22)!important;border-radius:3px!important;background:transparent!important;box-shadow:none!important}
.chat-video-thumb{height:125px!important;border-radius:2px!important}
.chat-video-card .chat-photo-caption{border-radius:0!important}
@media(max-width:760px){
 .chat-photo-card{width:min(250px,76vw)!important}
 .chat-photo-card img{height:auto!important;max-height:220px!important}
 .chat-video-card{width:min(270px,76vw)!important}
}


/* PAGE 05 — Gender: reuse the exact Online Users card system */
.p5-gender-filters{display:flex;gap:8px;align-items:center;margin:0 0 10px;padding:0 0 9px;border-bottom:1px solid #e7efea}
.p5-gender-filters button{border:1px solid #dcebe3;background:#fff;color:#263746;border-radius:20px;padding:7px 15px;font-size:12px;font-weight:700;cursor:pointer}
.p5-gender-filters button.active{background:#078a4d;border-color:#078a4d;color:#fff}
.p5-gender-filters button:focus-visible{outline:2px solid #078a4d;outline-offset:2px}
.p5-page .p4-avatar.p4-avatar-female{background:linear-gradient(145deg,#ffe5ef,#f5a9c8)!important;color:#a32960!important}
.p5-page .p4-avatar.p4-avatar-male{background:linear-gradient(145deg,#d8f6e5,#83d8aa)!important;color:#075b37!important}
@media(max-width:760px){.p5-gender-filters{gap:6px;margin-bottom:8px;padding-bottom:8px}.p5-gender-filters button{padding:6px 13px;font-size:11px}}


/* V29 desktop field arrangement: Username + Gender on row 1; Age, Country, State on row 2, matching the user's reference image. Mobile rules remain unchanged. */
@media(min-width:761px){
 .combined-login .login-card .field-grid{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr)!important;column-gap:14px!important;row-gap:0!important}
 .combined-login .login-card .field-grid>.field:first-child{grid-column:1/3!important;grid-row:1!important}
 .combined-login .login-card .field-grid>.field:nth-child(2){grid-column:3/5!important;grid-row:1!important}
 .combined-login .login-card .field-grid>.field:nth-child(3){grid-column:1/3!important;grid-row:2!important}
 .combined-login .login-card .field-grid>.location-row{display:contents!important}
 .combined-login .login-card .field-grid>.location-row>.field:first-child{grid-column:3!important;grid-row:2!important}
 .combined-login .login-card .field-grid>.location-row>.field:nth-child(2){grid-column:4!important;grid-row:2!important}
}

/* V35 FIX: keep Inbox row content in the same three-column alignment as Online Users */
.p7-thread.p4-user{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  grid-template-areas:"avatar info chat"!important;
  align-items:center!important;
}
.p7-thread .p4-avatar{grid-area:avatar!important;justify-self:start!important}
.p7-thread .p4-user-info{
  grid-area:info!important;display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;justify-content:center!important;
  min-width:0!important;width:100%!important;
}
.p7-thread .p4-name,.p7-thread .p4-meta{
  grid-area:auto!important;display:block!important;
  width:100%!important;justify-self:start!important;
  text-align:left!important;margin:0!important;
}
.p7-thread .p4-online-label{
  grid-area:chat!important;justify-self:end!important;
  align-self:center!important;text-align:right!important;
}
@media(max-width:760px){
 .p7-thread.p4-user{grid-template-columns:43px minmax(0,1fr) auto!important;grid-template-areas:"avatar info chat"!important;gap:7px!important}
 .p7-thread .p4-user-info{gap:2px!important}
 .p7-thread .p4-name{font-size:14px!important;line-height:1.2!important}
 .p7-thread .p4-meta{font-size:10px!important;line-height:1.2!important}
 .p7-thread .p4-online-label{font-size:10px!important}
}


/* V44: One-to-one chat uses the same white common header, with chat-only sound/profile actions */
.chat-header-actions{display:flex;align-items:center;gap:12px;margin-left:10px;flex:0 0 auto}
.chat-header-action{width:38px;height:38px;border:0;border-radius:10px;background:transparent;color:#344054;display:grid;place-items:center;cursor:pointer}
.chat-header-action:hover{background:#effaf4;color:#078a4d}
.chat-header-action svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.chat-header-actions{gap:5px;margin-left:auto}.chat-header-action{width:34px;height:34px}.chat-header-action svg{width:22px;height:22px}}


/* V45 profile page and account menu */
.chat-profile-wrap{position:relative;display:flex;align-items:center}
.profile-pop-menu{position:absolute;right:0;top:calc(100% + 8px);width:176px;background:#fff;border:1px solid #e1e8e4;border-radius:12px;box-shadow:0 12px 30px #15251d22;padding:6px;z-index:500}
.profile-pop-menu[hidden]{display:none}
.profile-pop-menu button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:11px 10px;border-radius:8px;color:#25352d;font-size:14px;cursor:pointer}
.profile-pop-menu button:hover{background:#effaf4;color:#078a4d}
.profile-page{max-width:780px;margin:34px auto 48px;padding:0 18px;min-height:55vh;box-sizing:border-box}
.profile-card{background:#fff;border:1px solid #e1e9e4;border-radius:18px;box-shadow:0 8px 28px #163c2810;padding:26px}
.profile-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;padding:8px 12px;border:1px solid #dce6e0;border-radius:10px;background:#fff;color:#087b50;font-size:14px;font-weight:650;cursor:pointer}.profile-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.profile-card h1{font-size:25px;margin:0 0 6px;color:#182b21}.profile-card>p{margin:0 0 22px;color:#66756d;font-size:14px}
.profile-card .field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.profile-card .location-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.profile-card .gender-group{display:flex;gap:10px}.profile-card .gender-choice{flex:1}
.profile-actions{display:flex;gap:12px;align-items:center;margin-top:14px}.profile-logout{border:1px solid #f0c8c8;background:#fff;color:#b42318;border-radius:10px;padding:12px 18px;font-weight:650;cursor:pointer}
@media(max-width:650px){.profile-page{margin:18px auto 34px;padding:0 14px}.profile-card{padding:19px 15px}.profile-card .field-grid{grid-template-columns:1fr 1fr;gap:0 10px}.profile-card .location-row{grid-template-columns:1fr 1fr;gap:10px}.profile-card h1{font-size:22px}}

/* V46: Profile form alignment and responsive sizing */
.profile-card,.profile-card *{box-sizing:border-box}
.profile-card .field-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0 16px!important;align-items:start}
.profile-card .field{min-width:0;margin:13px 0!important}
.profile-card .field>label{display:block;margin-bottom:7px!important;line-height:1.25}
.profile-card .field input,.profile-card .field select{display:block;width:100%!important;min-width:0!important;height:47px!important;padding:0 12px!important;font-size:14px!important}
.profile-card .gender-group{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;width:100%;min-width:0}
.profile-card .gender-choice{display:flex!important;align-items:center;justify-content:center;gap:6px!important;width:100%;min-width:0;height:47px!important;padding:0 5px!important;font-size:14px!important;white-space:nowrap}
.profile-card .gender-choice input[type=radio]{width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;flex:0 0 16px!important;margin:0!important}
.profile-card .location-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0 16px!important}
.profile-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:stretch!important}
.profile-actions .primary-btn{width:100%!important;min-width:0!important;min-height:48px!important;padding:0 14px!important;font-size:16px!important}
.profile-logout{min-height:48px!important;padding:0 18px!important;white-space:nowrap}
@media(max-width:650px){
 .profile-page{width:100%;max-width:560px;margin:16px auto 30px!important;padding:0 14px!important}
 .profile-card{width:100%;padding:18px 15px!important;border-radius:17px}
 .profile-card h1{font-size:22px!important;line-height:1.2;margin-bottom:6px!important}
 .profile-card>p{font-size:13px!important;line-height:1.4;margin-bottom:16px!important}
 .profile-card .field-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0 10px!important}
 .profile-card .field{margin:9px 0 12px!important}
 .profile-card .field>label{font-size:13px!important;margin-bottom:5px!important}
 .profile-card .field input,.profile-card .field select{height:43px!important;font-size:13px!important;padding:0 9px!important}
 .profile-card .gender-group{gap:6px!important}
 .profile-card .gender-choice{height:43px!important;padding:0 4px!important;gap:4px!important;font-size:12px!important}
 .profile-card .gender-choice input[type=radio]{width:14px!important;height:14px!important;min-width:14px!important;max-width:14px!important;flex-basis:14px!important}
 .profile-card .gender-choice .gender-symbol{font-size:14px!important}
 .profile-card .location-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0 10px!important}
 .profile-actions{grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important;margin-top:10px!important}
 .profile-actions .primary-btn{min-height:44px!important;font-size:14px!important;padding:0 8px!important}
 .profile-logout{min-height:44px!important;padding:0 13px!important;font-size:14px!important}
}


/* V47 — Home guest-login mobile row: wider Gender group, narrower Age field */
@media(max-width:760px){
  .combined-login .login-card .field-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;
    column-gap:14px!important;
    row-gap:0!important;
    align-items:start!important;
  }
  .combined-login .login-card .field-grid > .field:first-child{grid-column:1/-1!important}
  .combined-login .login-card .field-grid > .field:nth-child(2){grid-column:1!important;min-width:0!important}
  .combined-login .login-card .field-grid > .field:nth-child(3){grid-column:2!important;min-width:0!important}
  .combined-login .login-card .field-grid > .location-row{grid-column:1/-1!important}
  .combined-login .login-card .gender-group{width:100%!important;gap:7px!important}
  .combined-login .login-card .gender-choice{width:100%!important;padding-left:5px!important;padding-right:5px!important}
  .combined-login .login-card .field:nth-child(3) input{width:100%!important;min-width:0!important}
}


/* Footer destination pages */
.footer-page{max-width:1040px;margin:28px auto 42px;padding:0 22px;min-height:58vh}
.footer-page-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px 34px;box-shadow:var(--shadow)}
.footer-page-card h1{margin:0 0 8px;font-size:30px;letter-spacing:-.6px;color:#172b22}
.footer-page-card .lead{color:var(--muted);margin:0 0 25px;line-height:1.55}
.footer-page-card h2{font-size:18px;margin:24px 0 8px;color:#183b2b}
.footer-page-card p,.footer-page-card li{font-size:15px;line-height:1.7;color:#475467}
.footer-page-card ul{padding-left:22px}
.footer-page-card a{color:var(--g);font-weight:650}
.footer-form{display:grid;gap:15px;margin-top:22px}
.footer-form .field{display:grid;gap:7px}
.footer-form label{font-size:14px;font-weight:650;color:#344054}
.footer-form input,.footer-form select,.footer-form textarea{width:100%;min-height:48px;border:1px solid #cfd8d3;border-radius:11px;padding:12px 14px;background:#fff;color:#101828}
.footer-form textarea{min-height:130px;resize:vertical}
.footer-form .primary-btn{width:100%;max-width:260px}
.footer-form-note{font-size:12px;color:#667085;line-height:1.5}
@media(max-width:700px){.footer-page{margin:16px auto 28px;padding:0 14px}.footer-page-card{padding:22px 18px;border-radius:16px}.footer-page-card h1{font-size:25px}.footer-page-card p,.footer-page-card li{font-size:14px}.footer-form .primary-btn{max-width:none}}


/* Ad slots stay hidden until real ad code is added and the slot is explicitly enabled. */
[data-ad-slot]{display:none!important;}




/* Page 05 – One-to-One Chat (V2 approved layout) */
.chat-page{min-height:100vh;background:#f7faf8;color:#17212b;display:flex;flex-direction:column;font-family:Arial,sans-serif;padding-bottom:62px}
.chat-topbar{height:54px;background:#087347;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-weight:700}
.chat-brand{font-size:19px}.chat-top-actions{display:flex;gap:22px;font-size:20px}
.chat-shell{display:grid;grid-template-columns:300px minmax(0,1fr);flex:1;min-height:560px;border:1px solid #dce6e0;background:#fff}
.chat-sidebar{border-right:1px solid #e2e8e5;padding:16px}.chat-sidebar h3{margin:0 0 14px;font-size:19px}.chat-search{width:100%;padding:12px 14px;border:1px solid #dce4e0;border-radius:22px;box-sizing:border-box;margin-bottom:14px}
.chat-thread{padding:12px;border-radius:14px;background:#e8f8ee;display:flex;align-items:center;gap:10px}.chat-avatar{width:42px;height:42px;border-radius:50%;background:#c9f0da;color:#075b38;display:grid;place-items:center;font-weight:700;flex:none}.chat-thread strong{display:block}.chat-thread small{color:#61736a}
.chat-main{display:flex;flex-direction:column;min-width:0}.chat-person{height:74px;border-bottom:1px solid #e5ebe7;display:flex;align-items:center;gap:12px;padding:0 18px}.chat-back{border:0;background:transparent;font-size:25px;color:#176b43;cursor:pointer}.chat-person-name{font-weight:700;font-size:18px}.chat-status{font-size:13px;color:#119653;margin-top:3px}.chat-status:before{content:'●';margin-right:6px}
.chat-messages{flex:1;min-height:360px;padding:18px 22px;display:flex;flex-direction:column;gap:13px;background-color:#fbfdfc;background-image:radial-gradient(#e9f0ec 0.7px,transparent .7px);background-size:17px 17px;overflow:auto}.chat-day{text-align:center;color:#68766e;font-size:12px;margin:0 auto 4px;background:#fff;border:1px solid #e5ebe7;border-radius:15px;padding:5px 13px}.chat-bubble{max-width:min(72%,520px);padding:11px 14px;border-radius:15px;box-shadow:0 1px 3px #00000012;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.chat-bubble.in{align-self:flex-start;background:#fff;border:1px solid #edf0ee}.chat-bubble.out{align-self:flex-end;background:#dcf8e4}.chat-time{text-align:right;color:#718078;font-size:11px;margin-top:5px}.chat-attachment{display:flex;align-items:center;gap:10px}.chat-file-icon{background:#e9f7ef;color:#087347;padding:9px;border-radius:9px;font-weight:700}
.chat-composer{display:flex;align-items:center;gap:9px;padding:12px 16px;border-top:1px solid #e3eae6;background:#fff}.chat-icon-btn{border:0;background:#f0f4f2;color:#53665c;width:42px;height:42px;border-radius:50%;font-size:19px;cursor:pointer}.chat-input{flex:1;min-width:0;border:1px solid #dce5df;border-radius:24px;padding:13px 16px;font-size:15px;outline:none}.chat-send{border:0;background:#079653;color:white;width:46px;height:46px;border-radius:50%;font-size:20px;cursor:pointer}.chat-mobile-nav{position:fixed;z-index:120;bottom:0;left:0;right:0;height:61px;background:#fff;border-top:1px solid #dce6e0;display:flex;justify-content:space-around;align-items:center}.chat-mobile-nav a{color:#53665c;text-decoration:none;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:3px}.chat-mobile-nav a b{font-size:19px}.chat-mobile-nav a.active{color:#07834b;font-weight:700}
@media(max-width:650px){.chat-shell{display:flex;min-height:calc(100vh - 60px)}.chat-sidebar{display:none}.chat-topbar{height:48px;padding:0 14px}.chat-brand{font-size:17px}.chat-person{height:68px;padding:0 10px}.chat-messages{padding:14px 12px;min-height:0}.chat-bubble{max-width:84%;font-size:14px}.chat-composer{padding:9px 8px;gap:6px}.chat-icon-btn{width:38px;height:38px}.chat-send{width:42px;height:42px}.chat-input{padding:12px 13px;font-size:14px}}


/* V16 precision layout: approved One-to-One Chat mockup */
.chat-page{min-height:100vh;padding-bottom:0;background:#f7faf8;display:flex;flex-direction:column;font-family:Arial,sans-serif;color:#17212b}
.chat-topbar{height:62px;min-height:62px;background:#006b43;padding:0 28px;box-sizing:border-box}
.chat-brand{font-size:23px;display:flex;align-items:center;gap:10px}
.chat-brand:before{content:'●';font-size:25px;color:#20b8e9;text-shadow:8px 3px 0 #9ce76c}
.chat-top-actions{display:flex;align-items:center;gap:22px}.chat-top-actions button{width:32px;height:32px;padding:0;border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}.chat-top-actions svg{width:25px;height:25px;display:block}.chat-avatar.chat-avatar-female{background:#ffe0ed!important;color:#a32960!important;border:1px solid #f6b9d1}.chat-avatar.chat-avatar-male{background:#c9f0da!important;color:#075b38!important;border:1px solid #a9e4c2}
.chat-shell{display:grid;grid-template-columns:328px minmax(0,1fr);flex:1;min-height:calc(100vh - 123px);border:1px solid #dce6e0;border-radius:0 0 16px 16px;overflow:hidden;background:#fff}
.chat-sidebar{padding:16px 0 0;display:flex;flex-direction:column;min-width:0;background:#fff}
.chat-sidebar-head{padding:0 18px 14px;display:flex;align-items:center;gap:10px;font-size:21px;font-weight:700}
.chat-unread{background:#079653;color:#fff;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-size:13px}
.chat-search{margin:0 14px 12px;width:calc(100% - 28px);height:44px;padding:0 15px;border-radius:24px;font-size:14px;background:#f7f9f8;box-sizing:border-box}
.chat-thread{border-radius:0;padding:13px 16px;min-height:76px;box-sizing:border-box;border-bottom:1px solid #e7eeea;background:#fff;gap:12px;cursor:pointer}
.chat-thread.active{background:#e5f8ec}
.chat-thread strong{font-size:15px}.chat-thread small{font-size:12px;display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px}
.chat-thread-meta{margin-left:auto;align-self:flex-start;font-size:12px;color:#53665c;white-space:nowrap}
.chat-unread-dot{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#079653;color:white;font-size:12px;margin-top:7px}
.chat-sidebar-nav{margin-top:auto;height:72px;min-height:72px;border-top:1px solid #e2e9e5;display:flex;align-items:center;justify-content:space-around;background:#fff}
.chat-sidebar-nav a,.chat-mobile-nav a{color:#53665c;text-decoration:none;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:3px}
.chat-sidebar-nav a b,.chat-mobile-nav a b{font-size:19px}.chat-sidebar-nav a.active,.chat-mobile-nav a.active{color:#07834b;font-weight:700}
.chat-main{min-height:0;height:calc(100vh - 123px);display:flex;flex-direction:column;background:#fff}
.chat-person{height:74px;min-height:74px;box-sizing:border-box;padding:0 18px}
.chat-back{font-size:31px;line-height:1;width:34px}
.chat-person .chat-avatar{width:54px;height:54px;font-size:18px}
.chat-person-name{font-size:19px}.chat-status{font-size:14px}
.chat-messages{flex:1;min-height:0;padding:18px 24px;gap:15px;background-color:#fbfdfc;background-image:radial-gradient(#e9f0ec .7px,transparent .7px);background-size:17px 17px}
.chat-bubble{max-width:min(72%,560px);padding:12px 16px;font-size:16px;line-height:1.35;border-radius:16px}
.chat-bubble.in{align-self:flex-start;background:#fff;border:1px solid #edf1ee}.chat-bubble.out{align-self:flex-end;background:#e1f8d9;border:1px solid #d0efc7}
.chat-time{font-size:12px;color:#52645b;text-align:right;margin-top:6px}
.chat-photo-card{width:min(310px,72vw);padding:8px;background:#fff;border:1px solid #e2e9e5;border-radius:14px;box-shadow:0 2px 6px #00000012}
.chat-photo-card img{width:100%;height:132px;object-fit:cover;border-radius:9px;display:block}
.chat-photo-caption{font-size:14px;margin:8px 4px 2px}
.chat-file-card{display:flex;align-items:center;gap:11px;min-width:220px;padding:10px 13px;background:#e4f8dc;border-radius:14px;border:1px solid #d2efca}
.chat-pdf-icon{width:37px;height:43px;border-radius:5px;background:#d92323;color:#fff;font-weight:700;font-size:12px;display:grid;place-items:center}
.chat-file-card strong{font-size:14px;display:block}.chat-file-card small{font-size:12px;color:#52645b;display:block;margin-top:4px}
.chat-composer{min-height:76px;box-sizing:border-box;padding:10px 16px;background:#fff;gap:10px}
.chat-icon-btn{width:46px;height:46px;font-size:22px}
.chat-input{height:48px;font-size:16px;padding:0 18px}
.chat-send{width:52px;height:52px}
.chat-mobile-nav{display:none}
.chat-video-card{width:min(270px,65vw);overflow:hidden;border-radius:12px;background:#eaf2ec;border:1px solid #d7e6dc}.chat-video-thumb{height:125px;background:linear-gradient(135deg,#315f4b,#9cc7a9);display:flex;align-items:center;justify-content:center}.chat-video-play{width:42px;height:42px;border-radius:50%;background:#ffffffdf;color:#087347;display:grid;place-items:center;font-size:17px;padding-left:3px}.chat-attach-menu{position:absolute;bottom:58px;left:0;background:#fff;border:1px solid #dce5df;border-radius:13px;padding:8px;min-width:190px;box-shadow:0 5px 18px #0002;z-index:20}
.chat-attach-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 10px;border:0;border-radius:8px;background:white;text-align:left;font-size:14px;color:#17212b;cursor:pointer}
.chat-attach-menu button:hover{background:#eff8f2}.chat-attach-menu small{display:block;color:#64746c;font-size:11px;margin-top:2px}
/* Gender-specific avatar colors in Online Users */
.p4-avatar-male{background:#c9f0da!important;color:#075b38!important;border:1px solid #a9e4c2}
.p4-avatar-female{background:#ffe0ed!important;color:#a32960!important;border:1px solid #f6b9d1}
@media(max-width:760px){
 .chat-page{min-height:100dvh;padding-bottom:61px;box-sizing:border-box}
 .chat-topbar{height:54px;min-height:54px;padding:0 16px}
 .chat-brand{font-size:18px}
 .chat-shell{display:flex;min-height:calc(100dvh - 115px);height:calc(100dvh - 115px);border-radius:0;border-left:0;border-right:0;overflow:hidden}
 .chat-sidebar{display:none}
 .chat-main{height:100%;min-height:0;width:100%}
 .chat-person{height:70px;min-height:70px;padding:0 10px;gap:9px}
 .chat-person .chat-avatar{width:46px;height:46px;font-size:16px}
 .chat-person-name{font-size:17px}
 .chat-messages{padding:13px 12px;gap:12px}
 .chat-bubble{max-width:84%;font-size:14px;padding:10px 12px}
 .chat-photo-card{width:min(250px,76vw)}.chat-photo-card img{height:112px}
 .chat-composer{min-height:66px;padding:8px 8px;gap:6px}
 .chat-icon-btn{width:40px;height:40px}.chat-input{height:44px;font-size:14px;padding:0 13px}.chat-send{width:44px;height:44px}
 .chat-mobile-nav{display:flex;position:fixed;z-index:120;bottom:0;left:0;right:0;height:61px;background:#fff;border-top:1px solid #dce6e0;justify-content:space-around;align-items:center}
}





/* V18 — compact conversation identity row, matching Online Users typography */
.chat-person{height:58px!important;min-height:58px!important;padding:0 12px!important;gap:8px!important}
.chat-person .chat-avatar{width:40px!important;height:40px!important;font-size:14px!important}
.chat-person-name{font-size:14px!important;line-height:1.2!important;font-weight:700!important}
.chat-status{font-size:12px!important;line-height:1.2!important;margin-top:1px!important}
@media(max-width:760px){
 .chat-person{height:56px!important;min-height:56px!important;padding:0 10px!important;gap:8px!important}
 .chat-person .chat-avatar{width:40px!important;height:40px!important;font-size:14px!important}
 .chat-person-name{font-size:14px!important;line-height:1.2!important}
 .chat-status{font-size:12px!important;line-height:1.2!important;margin-top:1px!important}
}





/* V21 FINAL OVERRIDE — strip media to the media itself; override all earlier V16/V20 card rules */
.chat-photo-card,
.chat-video-card{
  display:block!important;
  width:min(310px,72vw)!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(80,110,95,.16)!important;
  border-radius:2px!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.chat-photo-card img,
.chat-photo-card video,
.chat-video-card video,
.chat-video-card img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:260px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.chat-video-thumb{
  width:100%!important;
  height:125px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.chat-photo-caption{
  display:block!important;
  margin:0!important;
  padding:2px 4px!important;
  border:0!important;
  border-top:1px solid rgba(80,110,95,.10)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:12px!important;
  line-height:1.25!important;
}
.chat-video-card .chat-photo-caption{border-radius:0!important;background:transparent!important}
@media(max-width:760px){
 .chat-photo-card,.chat-video-card{width:min(270px,76vw)!important;max-width:100%!important}
 .chat-photo-card img,.chat-photo-card video,.chat-video-card video,.chat-video-card img{max-height:220px!important;height:auto!important}
}




/* V22: render media itself, not a nested white card or caption strip */
.chat-bubble:has(.chat-photo-card),
.chat-bubble:has(.chat-video-card){
  padding:0!important;background:transparent!important;border:0!important;
  box-shadow:none!important;max-width:min(310px,76vw)!important;overflow:visible!important;
}
.chat-photo-card{
  display:contents!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;overflow:visible!important;width:auto!important;
}
.chat-photo-card img,
.chat-photo-card video,
.chat-video-card video,
.chat-video-card img{
  display:block!important;width:auto!important;max-width:min(310px,76vw)!important;
  height:auto!important;max-height:260px!important;object-fit:contain!important;
  margin:0!important;padding:0!important;border:1px solid rgba(80,110,95,.13)!important;
  border-radius:2px!important;background:transparent!important;box-shadow:none!important;
}
.chat-video-card{
  display:block!important;width:min(310px,76vw)!important;max-width:100%!important;
  min-width:0!important;margin:0!important;padding:0!important;
  border:1px solid rgba(80,110,95,.13)!important;border-radius:2px!important;
  background:transparent!important;box-shadow:none!important;overflow:hidden!important;
}
.chat-video-thumb{
  width:100%!important;height:150px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
.chat-photo-caption{display:none!important}
.chat-bubble:has(.chat-photo-card) .chat-time,
.chat-bubble:has(.chat-video-card) .chat-time{
  margin:4px 0 0!important;padding:0!important;background:transparent!important;
}
@media(max-width:760px){
 .chat-bubble:has(.chat-photo-card),.chat-bubble:has(.chat-video-card){max-width:76vw!important}
 .chat-photo-card img,.chat-photo-card video,.chat-video-card video,.chat-video-card img{max-width:76vw!important;max-height:220px!important}
 .chat-video-card{width:min(76vw,310px)!important}
 .chat-video-thumb{height:150px!important}
}



/* V24 Combined Home: Page 01 + Page 02, built on V23 components */
.combined-home{max-width:1320px;margin:0 auto;padding:18px 3.2% 26px}
.combined-login{margin:0 auto 24px;max-width:1180px}
.combined-login .login-grid{display:block;min-height:0;padding:0}
.combined-login .login-copy,.combined-login .side-ad{display:none!important}
.combined-login .login-card{width:100%;padding:24px 28px 20px;border-radius:20px}
.combined-login .login-heading{margin-bottom:16px}
.combined-login .login-heading .brand-mark{display:none}
.combined-login .login-heading h2{font-size:28px}
.combined-login .login-card .field-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}
.combined-login .login-card .field-grid > .field:first-child{grid-column:1/-1}
.combined-login .login-card .field-grid > .location-row{grid-column:1/-1}
.combined-login .login-card .location-row{grid-template-columns:1fr 1fr}
.combined-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.95fr);align-items:center;gap:26px;padding:10px 0 18px}
.combined-intro .hero-copy h1{font-size:clamp(38px,4.2vw,62px)}
.combined-intro .hero-copy p{max-width:650px}
.combined-intro .benefits{margin-bottom:0}
.combined-intro .hero-visual{max-height:440px;object-fit:contain}
.combined-home .feature-row{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0 18px}
.combined-home .feature-card{min-height:104px}
.combined-home .bottom-ad{max-width:none;margin:18px 0 8px}
.combined-home .bottom-ad .ad-size small{display:block}
.combined-home .bottom-ad{min-height:76px}
.combined-intro .primary-btn{display:none!important}
@media(max-width:760px){
 .combined-home{padding:12px 14px 18px}
 .combined-login{margin:0 auto 18px}
 .combined-login .login-card{padding:17px 14px 16px;border-radius:17px}
 .combined-login .login-heading{margin-bottom:10px}
 .combined-login .login-heading h2{font-size:24px}
 .combined-login .login-heading p{font-size:13px}
 .combined-login .login-card .field-grid{display:block}
 .combined-login .login-card .location-row{grid-template-columns:1fr}
 .combined-intro{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0 0 12px}
 .combined-intro .hero-copy h1{font-size:36px;line-height:1.05;letter-spacing:-1.4px;margin:0 0 10px}
 .combined-intro .hero-copy p{font-size:14px;line-height:1.45;margin:0 0 12px}
 .combined-intro .benefits{gap:8px;margin:0 0 10px}
 .combined-intro .benefits li{font-size:14px}
 .combined-intro .hero-visual{max-height:250px;width:100%;margin:0 auto}
 .combined-home .feature-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 14px}
 .combined-home .feature-card{min-height:84px;padding:10px;gap:8px}
 .combined-home .feature-card strong{font-size:13px}
 .combined-home .feature-card small{font-size:11px}
 .combined-home .bottom-ad{margin:12px 0 14px;min-height:58px}
 .combined-home .bottom-ad .ad-size small{display:none}
}
/* V25 baseline: compact guest login card overrides */
.combined-login{margin-bottom:18px!important}
.combined-login .login-card{padding:16px 20px 14px!important;border-radius:16px!important}
.combined-login .login-heading{margin-bottom:9px!important}
.combined-login .login-heading h2{font-size:23px!important;margin-bottom:2px!important}
.combined-login .login-heading p{font-size:12px!important}
.combined-login .field{margin:7px 0!important}
.combined-login .field label{font-size:12px!important;margin-bottom:4px!important}
.combined-login .field input,.combined-login .field select{height:38px!important;padding:0 11px!important;font-size:13px!important;border-radius:8px!important}
.combined-login .field-hint{font-size:10px!important;margin-top:2px!important}
.combined-login .gender-group{gap:8px!important}
.combined-login .gender-choice{height:39px!important;font-size:13px!important;border-radius:8px!important;gap:7px!important}
.combined-login .gender-choice input{width:15px!important;height:15px!important}
.combined-login .location-row{gap:10px!important}
.combined-login .location-status{padding:7px 10px!important;margin:8px 0 9px!important;font-size:11px!important}
.combined-login .login-card .primary-btn{min-height:43px!important;font-size:15px!important;border-radius:9px!important}
.combined-login .form-status{min-height:14px!important;font-size:11px!important;margin-top:4px!important}
.combined-login .form-legal{font-size:10.5px!important;line-height:1.35!important;margin-top:7px!important}
@media(max-width:760px){
 .combined-home{padding-top:9px!important}
 .combined-login{margin-bottom:13px!important}
 .combined-login .login-card{padding:12px 12px 11px!important;border-radius:14px!important}
 .combined-login .login-heading{margin-bottom:6px!important}
 .combined-login .login-heading h2{font-size:21px!important}
 .combined-login .login-heading p{font-size:11px!important}
 .combined-login .login-card .field-grid{display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:10px!important;row-gap:0!important}
 .combined-login .login-card .field-grid>.field:first-child{grid-column:1/-1!important}
 .combined-login .login-card .field-grid>.field:nth-child(2){grid-column:1!important;grid-row:2!important;min-width:0!important}
 .combined-login .login-card .field-grid>.field:nth-child(3){grid-column:2!important;grid-row:2!important;min-width:0!important}
 .combined-login .login-card .field-grid>.location-row{grid-column:1/-1!important;grid-row:3!important}
 .combined-login .login-card .location-row{grid-template-columns:1fr 1fr!important;gap:8px!important}
 .combined-login .field{margin:5px 0!important;min-width:0!important}
 .combined-login .field label{font-size:11.5px!important;margin-bottom:3px!important}
 .combined-login .field input,.combined-login .field select{height:35px!important;font-size:12px!important;padding:0 9px!important;min-width:0!important}
 /* Gender: two distinct compact choice boxes inside the shared field; both radio controls remain visible */
 .combined-login .login-card .gender-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;width:100%!important}
 .combined-login .login-card .gender-choice{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:3px!important;width:100%!important;min-width:0!important;height:35px!important;padding:0 3px!important;border:1px solid #cbd5d0!important;border-radius:8px!important;background:#fff!important;color:#101828!important;font-size:11px!important;line-height:1!important;white-space:nowrap!important}
 .combined-login .login-card .gender-choice input[type=radio]{appearance:auto!important;-webkit-appearance:radio!important;display:inline-block!important;position:static!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;box-sizing:border-box!important;width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;flex:0 0 13px!important;margin:0!important;padding:0!important;accent-color:#078a4d!important}
 .combined-login .login-card .gender-choice .gender-symbol{font-size:13px!important;line-height:1!important}
 .combined-login .login-card .gender-choice:has(input[type=radio]:checked){border:1.5px solid #078a4d!important;background:#effcf5!important;color:#087b47!important}
 .combined-login .field-hint{font-size:9px!important}
 .combined-login .location-status{font-size:10px!important;padding:6px 8px!important;margin:6px 0 7px!important}
 .combined-login .login-card .primary-btn{min-height:39px!important;font-size:14px!important}
 .combined-login .form-legal{font-size:9.5px!important;line-height:1.3!important;margin-top:5px!important}
 .combined-login .form-status{min-height:12px!important;font-size:10px!important;margin-top:3px!important}
}

/* V27 desktop correction: keep Country, State and Age on one single row; Gender remains a separate full-width row. */
@media(min-width:761px){
 .combined-login .login-card .field-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:14px!important;row-gap:0!important}
 .combined-login .login-card .field-grid>.field:first-child{grid-column:1/-1!important;grid-row:1!important}
 .combined-login .login-card .field-grid>.field:nth-child(2){grid-column:1/-1!important;grid-row:2!important}
 .combined-login .login-card .field-grid>.location-row{display:contents!important}
 .combined-login .login-card .field-grid>.location-row>.field:first-child{grid-column:1!important;grid-row:3!important}
 .combined-login .login-card .field-grid>.location-row>.field:nth-child(2){grid-column:2!important;grid-row:3!important}
 .combined-login .login-card .field-grid>.field:nth-child(3){grid-column:3!important;grid-row:3!important}
}
/* Mobile Gender field: one subtle outer strip containing two compact, equally sized options. */
@media(max-width:760px){
 .combined-login .login-card .field:nth-child(2) .gender-group{border:1px solid #dce5e0!important;border-radius:9px!important;background:#f8fcf9!important;padding:3px!important;gap:4px!important}
 .combined-login .login-card .field:nth-child(2) .gender-choice{height:29px!important;border:1px solid #cbd5d0!important;border-radius:6px!important;background:#fff!important;font-size:10.5px!important;gap:3px!important}
 .combined-login .login-card .field:nth-child(2) .gender-choice input[type=radio]{appearance:auto!important;-webkit-appearance:radio!important;display:inline-block!important;visibility:visible!important;opacity:1!important;width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;flex:0 0 13px!important;margin:0!important;accent-color:#078a4d!important}
 .combined-login .login-card .field:nth-child(2) .gender-choice .gender-symbol{font-size:12px!important}
}


/* PAGE 06 — Search: reuse Page 04 Online Users layout and exact compact user rows */
.p6-search-row{display:grid;grid-template-columns:48px minmax(0,1fr) 112px;gap:9px;align-items:center;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #e7efea}
.p6-search-icon{width:42px;height:42px;border-radius:10px;background:#078a4d;color:#fff;display:grid;place-items:center;font-size:22px}
.p6-search-input{height:42px;min-width:0;width:100%;box-sizing:border-box;border:1px solid #cbd8d1;border-radius:10px;padding:0 13px;font:inherit;font-size:14px;color:#263746;background:#fff;outline:none}
.p6-search-input:focus{border-color:#078a4d;box-shadow:0 0 0 2px #078a4d18}
.p6-search-button{height:42px;border:0;border-radius:10px;background:#078a4d;color:#fff;font-weight:750;font-size:14px;padding:0 14px;cursor:pointer;white-space:nowrap}
.p6-results-heading{display:flex;align-items:center;gap:10px;padding:8px 11px;margin:0 0 2px;border-radius:10px;background:linear-gradient(90deg,#effbf4,#e1f8eb);color:#14212b;font-size:18px;font-weight:800}
.p6-results-heading .p6-results-icon{color:#078a4d;font-size:22px}
.p6-page .p4-user-list{border-top:0}
.p6-page .p4-user.p4-user-clickable{grid-template-columns:42px minmax(0,1fr) auto!important;grid-template-areas:"avatar info online"!important}
.p6-page .p4-avatar-female{background:#ffe0ed!important;color:#a32960!important;border:1px solid #f6b9d1}
.p6-page .p4-avatar-male{background:#c9f0da!important;color:#075b38!important;border:1px solid #a9e4c2}
@media(max-width:760px){
 .p6-search-row{grid-template-columns:38px minmax(0,1fr) 78px;gap:6px;margin-bottom:8px;padding-bottom:8px}
 .p6-search-icon{width:35px;height:35px;border-radius:8px;font-size:18px}
 .p6-search-input{height:36px;padding:0 9px;font-size:12px;border-radius:8px}
 .p6-search-button{height:36px;padding:0 8px;font-size:11px;border-radius:8px}
 .p6-results-heading{font-size:14px;padding:7px 8px;gap:7px;margin-bottom:1px}
 .p6-results-heading .p6-results-icon{font-size:18px}
 .p6-page .p4-user.p4-user-clickable{grid-template-columns:38px minmax(0,1fr) auto!important;min-height:51px!important;gap:6px!important;padding:4px 1px!important}
 .p6-page .p4-user.p4-user-clickable .p4-avatar{width:33px!important;height:33px!important}
 .p6-page .p4-user.p4-user-clickable .p4-name{font-size:13px!important}
 .p6-page .p4-user.p4-user-clickable .p4-meta{font-size:8.5px!important}
 .p6-page .p4-user.p4-user-clickable .p4-online-label{font-size:8.5px!important}
}

/* V33 Inbox user rows: reuse the exact Online Users card geometry */
.p7-thread-list{display:flex;flex-direction:column;border-top:1px solid #e7efea}
.p7-thread.p4-user{width:100%;min-height:61px;border:0;border-bottom:1px solid #e8efeb;background:#fff;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 3px;text-align:left;cursor:pointer;color:#17212b;box-sizing:border-box;border-radius:0}
.p7-thread.p4-user:hover,.p7-thread.p4-user:focus-visible{background:#f7fcf9;outline:none}
.p7-thread .p4-user-info{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0}
.p7-thread .p4-name{font-size:16px;line-height:1.2;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#121e29}
.p7-thread .p4-meta{font-size:12px;line-height:1.25;color:#687783;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p7-thread .p4-online-label{display:flex;align-items:center;gap:5px;color:#078a4d;font-size:12px;font-weight:650;white-space:nowrap}
.p7-thread .p4-online-label i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#0aa34f;box-shadow:0 0 0 3px #e4f7ec}
.p7-thread .p7-unread-dot{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:12px;background:#079653;color:#fff;font-size:10px;font-weight:750;margin-left:3px}
.p7-thread .p4-avatar{position:relative;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;font-weight:750;font-size:14px}
.p7-thread .p4-avatar-female{background:#ffe0ed!important;color:#a32960!important;border:1px solid #f6b9d1}
.p7-thread .p4-avatar-male{background:#c9f0da!important;color:#075b38!important;border:1px solid #a9e4c2}
.p7-thread .p4-avatar.online:after{content:'';position:absolute;width:12px;height:12px;border-radius:50%;background:#0aa34f;border:2px solid #fff;right:-1px;bottom:0}
@media(max-width:760px){
 .p7-thread.p4-user{grid-template-columns:43px minmax(0,1fr) auto;gap:7px;min-height:61px;padding:6px 1px}
 .p7-thread .p4-avatar{width:39px;height:39px;font-size:13px}
 .p7-thread .p4-name{font-size:14px}
 .p7-thread .p4-meta{font-size:10px}
 .p7-thread .p4-online-label{font-size:10px}
}

/* V34: Inbox card grows with every conversation; only the document scrolls */
.p7-page{overflow:visible!important;min-height:100vh}
.p7-inbox-layout{display:grid;grid-template-columns:minmax(0,1fr) 195px;gap:18px;align-items:start;margin:0 auto 22px;overflow:visible!important}
.p7-inbox-card{display:block;min-width:0;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;border:1px solid #dcebe3;border-radius:16px;background:#fff;padding:17px 18px 15px;box-shadow:0 4px 16px rgba(16,24,40,.035)}
.p7-thread-list{display:flex;flex-direction:column;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;border-top:1px solid #e7efea}
.p7-thread.p4-user{flex:0 0 auto;min-height:61px;height:auto!important;max-height:none!important}
.p7-inbox-aside{display:block;min-width:0}
.p7-page .p4-mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:100}
@media(max-width:760px){
 .p7-page{padding:0 11px 88px!important}
 .p7-inbox-layout{display:block!important;margin:0 0 14px!important;height:auto!important;max-height:none!important;overflow:visible!important}
 .p7-inbox-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:12px 10px!important;border-radius:14px}
 .p7-thread-list{height:auto!important;max-height:none!important;overflow:visible!important}
 .p7-inbox-aside{display:none!important}
 .p7-page .p4-mobile-nav{display:flex!important;position:fixed!important;left:0;right:0;bottom:0;z-index:100}
}



/* V36: Match Online Users typography and align Inbox header/search controls */
.p7-inbox-heading{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:10px!important;flex-wrap:wrap!important;margin:0 0 8px!important;
}
.p7-inbox-title-block{display:flex;flex-direction:column;gap:3px;min-width:0}
.p7-inbox-title-block h1{
 display:flex;align-items:center;gap:9px;margin:0!important;padding:0!important;
 color:#101b26;font-size:31px!important;line-height:1.12!important;
 letter-spacing:-.8px!important;font-weight:750!important;
}
.p7-inbox-title-icon{font-size:29px;line-height:1;color:#078a4d}
.p7-inbox-title-block p{
 color:#078a4d!important;font-size:14px!important;line-height:1.35!important;
 margin:0!important;padding:0!important;
}
.p7-inbox-count{
 display:inline-flex!important;align-items:center;justify-content:center;
 background:#078a4d!important;color:#fff!important;border-radius:20px!important;
 padding:8px 13px!important;font-size:14px!important;font-weight:750!important;
 line-height:1.2!important;white-space:nowrap!important;margin:0!important;
}
.p7-inbox-search{
 display:flex!important;align-items:center!important;gap:8px!important;
 width:100%!important;height:43px!important;box-sizing:border-box!important;
 border:1px solid #cfe2d7!important;border-radius:10px!important;
 background:#fff!important;padding:0 12px!important;margin:0 0 10px!important;
 color:#526b82!important;
}
.p7-inbox-search>span{font-size:18px!important;line-height:1!important;flex:0 0 auto}
.p7-inbox-search input{
 display:block!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;
 height:100%!important;border:0!important;outline:0!important;box-shadow:none!important;
 background:transparent!important;padding:0!important;margin:0!important;
 color:#263a31!important;font:inherit!important;font-size:14px!important;
}
.p7-thread .p4-name{font-size:13px!important;line-height:1.15!important;font-weight:750!important}
.p7-thread .p4-meta{font-size:10px!important;line-height:1.2!important;color:#526b82!important}
.p7-thread .p4-avatar{width:42px!important;height:42px!important;font-size:14px!important}
.p7-thread.p4-user{min-height:61px!important;padding:6px 3px!important;gap:8px!important}
.p7-thread .p4-online-label{font-size:10px!important}
@media(max-width:760px){
 .p7-inbox-card{padding:12px 10px!important}
 .p7-inbox-heading{gap:7px!important;margin-bottom:8px!important}
 .p7-inbox-title-block h1{font-size:23px!important;letter-spacing:-.5px!important;gap:7px!important}
 .p7-inbox-title-icon{font-size:23px!important}
 .p7-inbox-title-block p{font-size:11px!important;line-height:1.3!important}
 .p7-inbox-count{font-size:11px!important;padding:7px 9px!important}
 .p7-inbox-search{height:40px!important;padding:0 9px!important;margin-bottom:9px!important}
 .p7-inbox-search>span{font-size:16px!important}
 .p7-inbox-search input{font-size:12px!important}
 .p7-thread.p4-user{
  grid-template-columns:39px minmax(0,1fr) auto!important;
  grid-template-areas:"avatar info chat"!important;gap:7px!important;
  min-height:55px!important;padding:5px 1px!important;
 }
 .p7-thread .p4-avatar{width:35px!important;height:35px!important;font-size:12px!important}
 .p7-thread .p4-user-info{gap:3px!important}
 .p7-thread .p4-name{font-size:11.5px!important;line-height:1.1!important}
 .p7-thread .p4-meta{font-size:9px!important;line-height:1.15!important}
 .p7-thread .p4-online-label{font-size:9px!important;gap:4px!important}
 .p7-thread .p4-online-label i{width:7px!important;height:7px!important}
 .p7-thread .p7-unread-dot{min-width:15px!important;height:15px!important;font-size:9px!important}
}



/* V37: Unified mobile typography across Online, Gender, Search and Inbox user cards. Desktop styles remain untouched. */
@media (max-width:760px){
 .p4-page .p4-user .p4-name,
 .p5-page .p4-user .p4-name,
 .p6-page .p4-user .p4-name,
 .p7-page .p7-thread .p4-name{font-size:13px!important}
 .p4-page .p4-user .p4-meta,
 .p5-page .p4-user .p4-meta,
 .p6-page .p4-user .p4-meta,
 .p7-page .p7-thread .p4-meta{font-size:9px!important}
 .p4-page .p4-user .p4-online-label,
 .p5-page .p4-user .p4-online-label,
 .p6-page .p4-user .p4-online-label,
 .p7-page .p7-thread .p4-online-label{font-size:9px!important}
}



/* V38: Standardize mobile user/conversation card minimum height to 54px across Online, Gender, Search and Inbox. Desktop is unchanged. */
@media (max-width:760px){
 .p4-page .p4-user,
 .p5-page .p4-user,
 .p6-page .p4-user,
 .p7-page .p7-thread.p4-user{min-height:54px!important}
}



/* V39: Desktop user-card typography — username 16px, metadata 12px, status 12px, avatar initials 16px. Mobile typography remains unchanged. */
@media (min-width:761px){
 .p4-page .p4-user .p4-name,
 .p5-page .p4-user .p4-name,
 .p6-page .p4-user .p4-name,
 .p7-page .p7-thread .p4-name{font-size:16px!important}
 .p4-page .p4-user .p4-meta,
 .p5-page .p4-user .p4-meta,
 .p6-page .p4-user .p4-meta,
 .p7-page .p7-thread .p4-meta{font-size:12px!important}
 .p4-page .p4-user .p4-online-label,
 .p5-page .p4-user .p4-online-label,
 .p6-page .p4-user .p4-online-label,
 .p7-page .p7-thread .p4-online-label{font-size:12px!important}
 .p4-page .p4-user .p4-avatar,
 .p5-page .p4-user .p4-avatar,
 .p6-page .p4-user .p4-avatar,
 .p7-page .p7-thread .p4-avatar{font-size:16px!important}
}



/* V40: Standardize desktop user/conversation card height to 61px across Online, Gender, Search and Inbox. Mobile heights remain unchanged. */
@media (min-width:761px){
 .p4-page .p4-user,
 .p5-page .p4-user,
 .p6-page .p4-user,
 .p7-page .p7-thread.p4-user{min-height:61px!important}
}

/* V54: chat participant safety actions */
.chat-person-menu-wrap{position:relative;margin-left:auto;flex:0 0 auto}
.chat-person-menu-trigger{width:38px;height:38px;border:0;border-radius:9px;background:transparent;color:#607168;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}
.chat-person-menu-trigger:hover{background:#eff7f1;color:#087b4a}
.chat-person-menu{position:absolute;right:0;top:42px;z-index:80;min-width:178px;background:#fff;border:1px solid #e0e8e2;border-radius:12px;padding:6px;box-shadow:0 10px 28px #10251a26}
.chat-person-menu[hidden]{display:none}
.chat-person-menu button{display:block;width:100%;padding:11px 12px;border:0;border-radius:8px;background:#fff;text-align:left;color:#26352d;font-size:14px;cursor:pointer}
.chat-person-menu button:hover{background:#f1f7f3}
.chat-person-menu button.danger{color:#b42318}
.chat-safety-backdrop{position:fixed;inset:0;z-index:200;background:#10251a66;display:flex;align-items:center;justify-content:center;padding:18px}
.chat-safety-dialog{width:min(420px,100%);background:#fff;border-radius:16px;padding:20px;box-shadow:0 18px 50px #0003;color:#17251d}
.chat-safety-dialog h3{margin:0 0 8px;font-size:19px}.chat-safety-dialog p{margin:0 0 15px;color:#68766e;font-size:13px;line-height:1.45}
.chat-safety-dialog label{display:block;font-size:13px;font-weight:650;margin:10px 0 6px}
.chat-safety-dialog select,.chat-safety-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #d4ded7;border-radius:9px;padding:10px;font:inherit;background:#fff;color:#17251d}
.chat-safety-dialog textarea{min-height:88px;resize:vertical}
.chat-safety-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}
.chat-safety-actions button{border:1px solid #d7e0da;border-radius:9px;padding:9px 14px;background:#fff;cursor:pointer;font-weight:650}
.chat-safety-actions .confirm{background:#078a4d;border-color:#078a4d;color:#fff}.chat-safety-actions .confirm.danger{background:#b42318;border-color:#b42318}

/* V65 final interaction refinements */
.chatv-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e53935;color:#fff;font-size:11px;font-weight:700;line-height:1;flex:0 0 auto}.chatv-nav-unread{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;margin-left:3px;border-radius:999px;background:#e53935;color:#fff;font-size:10px;font-weight:700;vertical-align:middle}.p4-online-label.is-online{color:#168b50}.p4-online-label.is-online i{background:#18a957}.p4-online-label.is-offline{color:#d92d20}.p4-online-label.is-offline i{background:#e04444}.chat-status.is-offline{color:#d92d20}.chat-status.is-online{color:#168b50}.chatv-media-thumb{display:block;max-width:min(260px,65vw);max-height:220px;object-fit:cover;border:0;outline:0;box-shadow:none;border-radius:10px;cursor:zoom-in}.chatv-media-viewer{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:24px}.chatv-media-viewer[hidden]{display:none}.chatv-media-viewer img{max-width:100%;max-height:100%;object-fit:contain}.chatv-media-close{position:absolute;top:14px;right:18px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:30px;cursor:pointer}.chat-system-message{margin:auto;padding:12px 16px;color:#667085;text-align:center;font-size:13px}


/* V65 messaging refinements: lightweight unread badges and clean media surfaces */
.p4-user{position:relative}
.chatv-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e53935;color:#fff;font-size:11px;font-weight:700;line-height:1;flex:0 0 auto}
.chatv-nav-unread{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;margin-left:3px;border-radius:999px;background:#e53935;color:#fff;font-size:10px;font-weight:700;vertical-align:middle}
.p4-online-label.is-online,.chat-status.is-online{color:#168b50}.p4-online-label.is-online i{background:#18a957}
.p4-online-label.is-offline,.chat-status.is-offline{color:#d92d20}.p4-online-label.is-offline i{background:#e04444}
.chatv-media-thumb{display:block;max-width:min(260px,65vw);max-height:220px;object-fit:contain;border:0!important;outline:0!important;box-shadow:none!important;border-radius:10px;cursor:zoom-in}
.chat-bubble img,.chat-bubble video{border:0!important;outline:0!important;box-shadow:none!important;max-width:100%;height:auto}
.chatv-media-viewer{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:24px}
.chatv-media-viewer[hidden]{display:none}
.chatv-media-viewer img{max-width:100%;max-height:100%;object-fit:contain}
.chatv-media-close{position:absolute;top:14px;right:18px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:30px;cursor:pointer}
.chat-system-message{margin:auto;padding:12px 16px;color:#667085;text-align:center;font-size:13px}


/* Desktop main navigation Inbox unread badge */
.main-nav a[href="#inbox"] .chatv-nav-unread{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;margin-left:4px;border-radius:999px;background:#e53935;color:#fff;font-size:10px;font-weight:700;line-height:1;vertical-align:middle;flex:0 0 auto}

/* V65 screenshot fixes: unread count aligned beside status; desktop + mobile Inbox nav badge */
.p4-user.p4-user-clickable .p4-online-label{display:inline-flex!important;align-items:center!important;justify-self:end!important;gap:5px!important;white-space:nowrap!important}
.p4-user.p4-user-clickable .p4-online-label .chatv-unread-badge{margin:0 0 0 7px!important;vertical-align:middle!important;min-width:19px;height:19px;font-size:11px}
a[href="#inbox"]{position:relative}
a[href="#inbox"] .chatv-nav-unread{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;margin-left:4px;border-radius:999px;background:#e53935;color:#fff;font-size:10px;font-weight:700;line-height:1;vertical-align:middle}

/* V65 mobile unread/status alignment correction */
@media (max-width:760px){
 .p4-user.p4-user-clickable{grid-template-columns:38px minmax(0,1fr) max-content!important;grid-template-areas:"avatar info online"!important;align-items:center!important;overflow:visible!important}
 .p4-user.p4-user-clickable .p4-online-label{grid-area:online!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;justify-self:end!important;align-self:center!important;gap:4px!important;white-space:nowrap!important;min-width:max-content!important;width:auto!important;position:static!important}
 .p4-user.p4-user-clickable .p4-online-label .chatv-unread-badge{display:inline-flex!important;position:static!important;inset:auto!important;transform:none!important;float:none!important;flex:0 0 auto!important;order:2!important;margin:0 0 0 5px!important;min-width:18px!important;width:auto!important;height:18px!important;padding:0 5px!important;line-height:18px!important;vertical-align:middle!important}
}

/* V65 consolidated photo presentation and safe viewer controls */
.chat-bubble:has(.chatv-media-thumb){padding:0!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
.chatv-media-thumb{display:block;border:0!important;outline:0!important;box-shadow:none!important;border-radius:10px;max-width:min(260px,65vw);max-height:220px;object-fit:contain}
.chatv-media-viewer{padding:max(64px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom))!important}
.chatv-media-close{z-index:100001!important;top:max(12px,env(safe-area-inset-top))!important;right:max(12px,env(safe-area-inset-right))!important;display:flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;line-height:1!important}

/* PWA install action */
.chatv-install-button{flex:0 0 auto;border:1px solid #2878e8;background:#2878e8;color:#fff;border-radius:9px;padding:8px 12px;font:600 12px/1.2 inherit;cursor:pointer;white-space:nowrap;margin-left:8px}
.chatv-install-button:hover{background:#1766d2}
.chatv-install-button[hidden]{display:none!important}
@media(max-width:760px){.chatv-install-button{padding:7px 9px;font-size:11px;margin-left:auto}.site-header{gap:8px}}


/* V65 consolidated header height: 45px on desktop and mobile */
#app .site-header,
#app .p3-shell .site-header,
#app .p4-page .site-header {
  height:45px!important;
  min-height:45px!important;
  max-height:45px!important;
  box-sizing:border-box!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
#app .site-header .brand-mark{max-height:30px}
#app .site-header .chat-header-action{width:32px;height:32px}
#app .site-header .chatv-install-button{padding-top:5px;padding-bottom:5px}
#app .chat-topbar{height:45px!important;min-height:45px!important;max-height:45px!important;box-sizing:border-box!important}
@media(max-width:760px){
 #app .site-header,#app .p3-shell .site-header,#app .p4-page .site-header{height:45px!important;min-height:45px!important;max-height:45px!important;padding-left:10px!important;padding-right:10px!important}
 #app .site-header .chat-header-action{width:30px;height:30px}
 #app .chat-topbar{height:45px!important;min-height:45px!important;max-height:45px!important;padding-left:10px!important;padding-right:10px!important}
}


/* V17 — keep the one-to-one message composer fixed directly above the mobile navigation */
@media(max-width:760px){
  .chat-page #chatComposer{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:61px!important;
    z-index:125!important;
    width:100%!important;
    min-height:66px!important;
    box-sizing:border-box!important;
    padding:8px 8px!important;
    margin:0!important;
    border-top:1px solid #dce6e0!important;
    box-shadow:0 -3px 12px rgba(16,24,40,.06)!important;
  }
  .chat-page #chatMessages{
    padding-bottom:86px!important;
    scroll-padding-bottom:86px!important;
  }
}
@media(min-width:761px){
  .chat-page #chatComposer{position:sticky;bottom:0;z-index:5;flex:0 0 auto;}
}
