
/* The discovery motto sits directly above the wordmark. */
.honesty-signature{color:var(--rateu-ink);text-decoration:none}
.honesty-signature-logo{flex:none;font-family:'Lilita One','Rubik',sans-serif;font-size:27px;font-weight:400;line-height:1;letter-spacing:-.035em}
.honesty-signature-logo>span{color:var(--rateu-accent)}
.honesty-signature:focus-visible{outline:2px solid var(--rateu-accent);outline-offset:4px;border-radius:3px}
.honesty-explainer{padding:28px 24px;color:var(--rateu-ink);background:var(--rateu-bg,#f7f3ec)}
.dialogBg .dialog.honestyDialog,.dialogBg .dialog:has(> .dialogBody > .honesty-explainer){background:var(--rateu-bg,#f7f3ec);--dialog-close-color:var(--rateu-ink,#191919)}
.dialogBg .dialog.honestyDialog > .dialogBody,.dialogBg .dialog:has(> .dialogBody > .honesty-explainer) > .dialogBody{padding:0;min-height:0;background:var(--rateu-bg,#f7f3ec);color:var(--rateu-ink,#191919)}
.dialog.honestyDialog > .dialogClose{color:var(--rateu-ink,#191919)}
.honesty-explainer>.honesty-signature-logo{padding-right:36px}
.honesty-explainer h2{margin:24px 0 16px;font-family:'Rubik',sans-serif;font-size:23px;font-weight:700;line-height:1.25}
.honesty-explainer p{font-size:15px;line-height:1.6;margin:14px 0}
.honesty-explainer>a{display:inline-block;margin-top:8px;color:inherit;text-decoration:underline}

#sectionHeader.discovery-header{flex:0 0 auto;display:block;box-sizing:border-box;min-height:0;margin:0 0 14px;color:var(--rateu-ink);background:var(--rateu-bg)}
#sectionHeader.discovery-header>.honesty-signature{display:block;width:100%;box-sizing:border-box;min-height:0;padding:0;margin:0 0 -2px;color:var(--rateu-ink)}
#sectionHeader.discovery-header .honesty-signature-message{display:block;min-width:0;margin:0;padding:0;border:0;font-family:'Rubik',sans-serif;font-size:12px;font-weight:400;line-height:1.4;color:var(--rateu-ink);overflow-wrap:anywhere}
#sectionHeader.discovery-header>.honesty-signature:hover .honesty-signature-message{text-decoration:underline;text-underline-offset:3px}
.discovery-header-bar{display:flex;align-items:center;justify-content:space-between;gap:14px}
#sectionHeader.discovery-header .honesty-signature-logo{font-family:'Lilita One','Rubik',sans-serif;font-size:32px;font-weight:400;line-height:1;letter-spacing:-.035em;color:var(--rateu-ink)}
#sectionHeader.discovery-header .honesty-signature-logo>span{font-size:inherit;color:var(--rateu-accent)}
#sectionHeader.discovery-header svg *{color:inherit}
.discovery-header-tools{display:flex;align-items:center;flex:none;gap:8px}
#sectionHeader.discovery-header .filter-button{display:grid;place-items:center;flex:none;width:40px;height:40px;box-sizing:border-box;padding:9px;margin:0;border:1px solid var(--rateu-line);border-radius:50%;background:#fff;color:var(--rateu-ink);box-shadow:none}
#sectionHeader.discovery-header .filter-button svg{width:20px;height:20px}
#sectionHeader.discovery-header .filter-button:active{transform:none;translate:0 0}
#sectionHeader.discovery-header .boost-button{display:flex;align-items:center;justify-content:center;flex:none;gap:5px;min-height:40px;box-sizing:border-box;margin:0;padding:0 13px;border:0;border-radius:999px;background:var(--rateu-ink);color:#fff;box-shadow:none}
#sectionHeader.discovery-header .boost-button span{font-family:'Rubik',sans-serif;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:0}
#sectionHeader.discovery-header .boost-button svg{width:15px;height:18px;fill:var(--rateu-accent);color:var(--rateu-accent)}
#sectionHeader.discovery-header .boost-button:active{transform:none;box-shadow:none;opacity:.85}
@media(max-width:360px){#sectionHeader.discovery-header .honesty-signature-logo{font-size:30px}.discovery-header-bar{gap:10px}.discovery-header-tools{gap:6px}#sectionHeader.discovery-header .boost-button{padding:0 10px}}

/* Passwordless phone sign-in shares the registration palette. */
.sms-auth .sms-entry-mark{box-sizing:border-box;width:58px;height:58px;border:0;border-radius:20px;background:#ffe8e3;color:var(--rateu-accent);box-shadow:none}
.sms-auth .sms-entry-mark svg{width:30px;height:30px}
.sms-auth form[hidden], .sms-auth button[hidden] { display:none !important; }
.registration.sms-auth label { display:block; text-align:left; margin:16px 0 6px; font-size:14px; color:var(--rateu-ink) !important; }
.sms-auth input { box-sizing:border-box; width:100%; min-height:48px; border:1px solid #d3ccc2; border-radius:12px; padding:12px; background:#fff; color:#191919; font:inherit; }
.sms-auth .sms-phone-fields{display:grid;grid-template-columns:142px minmax(0,1fr);gap:10px;text-align:left;align-items:end}
.sms-auth .sms-phone-fields>div{min-width:0}.sms-auth .sms-phone-fields input,.sms-auth .sms-phone-fields select{margin:0!important}
.sms-auth .sms-country-picker{position:relative;height:48px;box-sizing:border-box;border:1px solid #d3ccc2;border-radius:12px;background:#fff;color:#191919}.sms-auth .sms-country-picker:focus-within{outline:2px solid #777066;outline-offset:2px}
.sms-auth .sms-country-flag{position:absolute;left:11px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:23px;pointer-events:none;font-size:12px;color:#191919;z-index:1}
.sms-auth .sms-country-flag img{display:block;width:23px;height:17px;object-fit:cover;border-radius:2px}
.sms-auth .sms-country-dial{position:absolute;left:42px;top:50%;transform:translateY(-50%);font-size:16px;pointer-events:none}.sms-auth .sms-country-arrow{position:absolute;right:9px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:13px}
.sms-auth #smsCountry{appearance:auto!important;position:absolute;inset:0;opacity:0;box-sizing:border-box;width:100%;height:100%;min-height:0;border:0;border-radius:12px;padding:0;background:#fff;color:#191919;font:inherit;font-size:16px;cursor:pointer;z-index:2}
.sms-auth #smsPhone{font-size:16px}.sms-auth #smsCountry option{color:#191919;background:#fff}
@media(max-width:380px){.sms-auth .sms-phone-fields{grid-template-columns:126px minmax(0,1fr);gap:8px}.sms-auth #smsPhone{padding:12px 9px}}
.sms-auth #smsCode { letter-spacing:.3em; text-align:center; font-size:24px; }
.sms-auth .registration-primary, .registration-entry .registration-sms-open { margin:16px 0 12px; }
.registration .registration-intent-switch { border:0 !important; background:transparent !important; color:var(--rateu-ink) !important; box-shadow:none !important; border-radius:0; text-decoration:underline; font:inherit; font-size:13px; padding:10px 4px; cursor:pointer; width:auto; min-height:0; }
.sms-auth .registration-entry-secondary { margin:12px 0 0; border:1px solid #bbb5ad; background:white !important; color:var(--rateu-ink) !important; box-shadow:none; }
.sms-auth .registration-primary { background:var(--rateu-ink) !important; color:white !important; }
.sms-auth .sms-error { color:#9a2727; font-size:14px; }
.sms-auth button:disabled { opacity:.5; cursor:default; }

/* Only the missing C-caron glyphs; all other letters keep Lilita One. */
@font-face {
    font-family: 'RateU Caron';
    src: url('../fonts/RateUCaron.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+010C-010D;
}

/*RESET*/
html, body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, pre, code, address, variable, form, fieldset, blockquote {
 padding: 0;
 margin: 0;
 font-size: 100%;
 font-weight: normal;
}
table { border-collapse: collapse; border-spacing: 0; }
td, th, caption { font-weight: normal; text-align: left; }
img, fieldset { border: 0; }
ol { padding-left: 0; list-style: none; }
ul { padding-left: 0; list-style:none; }
li{list-style:none;}
q:before, q:after { content:''; }  
/*END RESET*/

:root {
	color-scheme: dark;
	--hot-orange: #FF5722;
	--electric-yellow: #FFEB3B;
	--pop-blue: #2196F3;
	--fresh-green: #4CAF50;
	--wild-purple: #9C27B0;
	--crazy-pink: #E91E63;
	--dark: #1a1a2e;
	--cream: #FFFDE7;
	--dark-bg:#1a1a2e;
}
		
html{
  height:100%;
  /*overflow: hidden !important;*/
}
body {
  background: #1b1c1d;
  overflow: hidden !important;
  font-family:Archivo, ui-sans-serif, system-ui, sans-serif;
  color:#121212;
}

@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}




body{
  height:100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin:0;
  padding:0;
  font-size:16px;  
  /*font-family:'Lilita One','RateU Caron', cursive;*/
  
  /*background:repeating-linear-gradient(-45deg, #dfe8f0, #dfe8f0 20px, #e8eef5 20px, #e8eef5 40px);
  /*background:radial-gradient(circle at 50% 40%, rgba(255,255,255,0.6), transparent 60%),    repeating-conic-gradient(      from -20deg at 50% 40%,      #f3f7fb 0deg,      #f3f7fb 7deg,      #e6edf5 7deg,      #e6edf5 14deg    );*/
  background:#0c1014;
  background:radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.6), transparent 60%), repeating-conic-gradient(from -20deg at 50% 40%, #12161b 0deg, #12161b 7deg, #0c1014 7deg, #0c1014 14deg);
  background:radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.5), transparent 51%), repeating-conic-gradient(from -20deg at 50% 40%, #12161b 0deg, #12161b 7deg, #0c1014 7deg, #0c1014 14deg);
  background: #e8eef5;
  min-height: 100vh;
  min-height: 100svh;
  visibility:hidden;
}  

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  justify-content: center; /* vertical */
  align-items: center;     /* horizontal */
}




body.fonts-loaded {
  visibility: visible;
}

button,
input,
select,
textarea {
  font-family:'Lilita One','RateU Caron', cursive;
}

textarea {
    font-size: 16px;
    resize: none; /* Prevent manual resize */
    max-height: 150px; /* Limit growth */
    overflow-y: auto; /* Scroll instead of grow */
	background:white;
}

input[type="text"]{background:white;}


/* iOS Safari: prevent auto-zoom + "stuck zoom" when focusing inputs/textarea (requires >=16px) */
@supports (-webkit-touch-callout: none) {
  .dialog input,
  .dialog textarea,
  .dialog select,
  .popup-container input,
  .popup-container textarea,
  .popup-container select {
    font-size: 16px !important;
  }
}


h1{
	font-weight:normal;
	font-size:18px;
}

p{
	margin-top:10px;
	margin-bottom:10px;
	
}

p.noMargin{
	margin:0;
}

h2,h3{
	font-size:20px;font-weight:normal;margin-bottom:10px;
}

button{font-size:14px;padding:4px 10px;-webkit-appearance: none;}

:root {
  --menu-height: 50px; /* Define your variable here */
  --sectionHeader-height: 50px; /* Define your variable here */
  --sectionBody-height: calc(100% - var(--menu-height) - 15px);

}

#sectionHeader{
	flex: 0 0 auto;
	margin:18px 0;
	margin-top:0;
	position:relative;
	color:#fff;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
}

#sectionHeader p, #sectionHeader h1{
	font-weight:900;
	text-transform:uppercase;
	font-size:23px;
}

#sectionHeader *{
	color:#000;
	margin:0;
	font-size:17px;
	font-weight:normal;
}

#sectionHeader .filter-button {
    box-sizing: border-box;
    width: 31px;
    height: 31px;
    padding: 6px;

    border: 2px solid oklch(18% 0.02 50);
    border-radius: 16px;
    background-color: oklch(99% 0.005 60);
    color: oklch(18% 0.02 50);

    box-shadow: 2px 2px 0 0 oklch(18% 0.02 50);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition:
        transform 150ms cubic-bezier(0.4, 0, 0.2, 1),
        translate 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

#sectionHeader .filter-button:active {
    translate: 2px 2px;
}

#sectionHeader .filter-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#sectionHeader .boost-button {
    box-sizing: border-box;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;

    border: 2px solid oklch(18% 0.02 50);
    border-radius: 999px;
    background-color: oklch(18% 0.02 50);

    box-shadow: 4px 4px 0 0 oklch(62% 0.18 25);

    text-decoration: none;
    cursor: pointer;

    transition:
        transform 150ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

#sectionHeader .boost-button:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 0 oklch(62% 0.18 25);
}

#sectionHeader .boost-button svg {
    width: 12px;
    height: 16px;
    fill: oklch(62% 0.18 25);
    flex: 0 0 auto;
}

#sectionHeader .boost-button span {
    color: oklch(99% 0.01 60);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.location-banner {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 0 0 14px;
    border: 2px solid oklch(18% 0.02 50);
    border-radius: 14px;
    background-color: oklch(99% 0.005 60);
    box-shadow: 2px 2px 0 0 oklch(18% 0.02 50);
}

.location-banner-text {
    flex: 1 1 160px;
    font-size: 13px;
    font-weight: 600;
    color: oklch(18% 0.02 50);
}

.location-banner-feedback { flex: 0 0 100%; margin: 0; font-size: 12px; line-height: 1.5; }

.location-banner-enable {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 6px 14px;
    border: 2px solid oklch(18% 0.02 50);
    border-radius: 999px;
    background-color: oklch(18% 0.02 50);
    color: oklch(99% 0.01 60);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.location-banner-close {
    flex: 0 0 auto;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: oklch(18% 0.02 50);
    padding: 0 2px;
}

#sectionBody {
  flex: 1 1 auto;
  min-height: 0;           /* critical so children can scroll */
  display: flex;
  flex-direction: column;
  justify-content:flex-start;
}

/* pre-registration landing page: short content, keep it vertically centered */
#home #sectionBody{
  justify-content:center;
}


/* Footer navigation */
#menu {
	text-align:center;
	/*border-top:1px solid silver;*/
	/*border-bottom:1px solid silver;*/
	
	padding:10px 0;

	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 0.75rem 0;
	/*background-color: white;*/
	/*border-top: 1px solid #e5e7eb;*/
	flex: 0 0 auto; 
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight:bold;
  color:#514545;
}

.nav-item.active {
  color: black;
  font-weight: 500;
}

.nav-icon {
  margin-bottom: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
}
	

#menu .highlight {
    color: orange;
    transition: color 0.3s ease;
}

#wrap{
  display: flex;
  flex-direction: column;	
	text-align:left;
	/*background:#fff;*/
	/*max-width:365px;*/
	margin:0 auto;
	overflow:hidden;	
	/*padding:25px 40px 0 40px;*/
	position:relative;
	margin-bottom:30px;
	overflow: hidden;	
	height:100%;
	box-sizing:border-box;
	padding:10px 10px 0 10px;	
	max-height:850px;
	width: min(420px, 100%);
	height: 100svh;
	 /*padding-bottom: calc(env(safe-area-inset-bottom) + 12px);*/
	 margin-bottom: 0; /* remove the push-down that can cause clipping */
}

/* ANDROID + iOS: reliable viewport height + keep footer visible */
@media (max-width: 600px){
  /* Use JS-driven viewport height (works on Android Chrome/WebView) */
  #wrap{
    height: calc(var(--vh, 1vh) * 100);
    max-height: 788px;
  }
}



a,.link{
	color:#fff;
	text-decoration:none;
	cursor:pointer;
}

.errorMessage a,.errorMessage .link{
	color:red;
}

.registration a, .registration .link,a.underl{
	text-decoration:underline;
}
a:hover,.link:hover{
	/*
	color:#737373;
	text-decoration:underline;	
	*/
}

.dark a,.dark .link,.dark a:hover,.dark .link:hover{
	color:#fff;
}

.dialogContent a,.dialogContent a:hover{
	text-decoration:underline;	
	color:black;
}

.cfix:before,
.cfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cfix:after {
    clear: both;
}

.cfix {
    *zoom: 1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  overflow-y: scroll; /* Enable scrolling */
}

        /* MEGA CRAZY CTA */
        .cta-banner {
            position: relative;
            padding: 13px 20px;
            margin-bottom: -6px;
            background: #292b2e;
            border-radius: 10px;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.2s ease;
			color:white;
			line-height:1;
			vertical-align:middle;
			margin-bottom:20px;
			flex-shrink: 0;
        }

        .cta-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .cta-banner .cta-text {
            color: white;
            font-family: 'Lilita One','RateU Caron', cursive;
            font-size: 16px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .cta-emoji {
            font-size: 24px;
            animation: shake 0.5s ease infinite;
        }

        @keyframes shake {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(-15deg); }
            75% { transform: rotate(15deg); }
        }

.dialogBg{
  background: rgba(30, 30, 30, 0.90);
  /*background: rgba(255, 255, 255, 0.55);  */
  backgrond:rgb(67 65 65 / 90%);
  cursor:-webkit-zoom-out;
  cursor:-moz-zoom-out;
  cursor:zoom-out;    
  /*background-color: silver;*/
  position:fixed;
  overflow-x: auto;
  overflow-y: scroll;
  overflow-y:hidden;
  z-index:1000;
  left:0;
  top:0;
  bottom:0;
  right:0;
}

.dialogBg.slideUpBg {
  background: rgba(30, 30, 30, 0.60);
}


.dialog.reportDialog {
    background: var(--rateu-bg, #f7f3ec);
    --dialog-close-color: var(--rateu-ink, #191919);
}
.dialogBg .dialog.reportDialog > .dialogBody {
    background: var(--rateu-bg, #f7f3ec);
    color: var(--rateu-ink, #191919);
}

.dialogBg:not(.slideUpBg) .dialogBody{
	min-height: 300px;     
	color:#fff;
	background:linear-gradient(to bottom right, #3d2280 0%, #2d1b69 40%, #1a0f3d 70%, #0d0620 100%);
	background:linear-gradient(165deg, #1a1a2e 0%, #0f0f1a 100%);
	background:linear-gradient(180deg, #292e33 0%, #1b1c1d 100%);
}



.dialogBody{
	padding:25px;
}

.nopadding .dialogBody{
	padding:0px;
}



.dialogBg.fullScr{
	background:none;
	overflow: hidden;
}

.dialogBody{
overflow-y:scroll;	
}

.dialogBody::-webkit-scrollbar {
  display: none;
}

.fullScr .dialogBody{
	height:100%;
	padding:0 25px 0 25px !important;
}

.dialog.dark .dialogBody{
	padding:15px;
	background:#1c2933;
}

.dialogBg .dialog.swipe-error-dialog{
  background:var(--rateu-bg,#f7f3ec);
  color:var(--rateu-ink,#191919);
  --dialog-close-color:var(--rateu-ink,#191919);
}
.dialogBg .dialog.swipe-error-dialog > .dialogBody{
  padding:24px 52px 24px 24px;
  background:var(--rateu-bg,#f7f3ec);
  color:var(--rateu-ink,#191919);
}
.swipe-error-dialog .swipeError{margin:0;line-height:1.5}

.dialog{  
  cursor:default;
  /*border:1px solid silver;*/
	border-radius: 20px;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;	
  margin: 40px auto;      
  max-width:400px;
  width:97%;
  box-sizing:border-box;
  /*background-color:white;*/
  position:relative;  
  
  margin-bottom:100px;
  max-height:90%;
  overflow:hidden;
  overflow-y:auto;

    
    touch-action: pan-y;
} 

.dialogBg,.dialog,.dialogBody {
    
    touch-action: pan-y;
}

.dialog.fullScr{
	border:none;
	border-radius: 0px;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	margin: 0px auto; 
	margin-bottom:0px;
	max-height:unset;	
    height: 100% !important;
    top: 0;
    margin: 0 auto;
	max-width:680px;
	width:100%;
}



.dialogTool{
  position:relative;          
}    

.report{
  right:-40px;
  -moz-border-radius:2px;
  -webkit-border-radius:2px;
  border-radius:2px;
  height:25px;
  line-height:25px;
  width:30px;
  position:absolute;
}

/* lives inside .dialog (which is position:relative) so it's anchored to its
   own dialog's corner with plain CSS - no JS offset-polling needed, and it
   automatically stacks correctly with multiple open dialogs since each
   close icon is scoped inside its own dialog's stacking context */
.dialog > .dialogClose{
  position:absolute;
  top:10px;
  right:10px;
  z-index:30;
  display:flex;
  width:44px;
  height:44px;
  box-sizing:border-box;
  margin:0;
  padding:0;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
  text-align:center;
  font-weight:bold;
  color:var(--dialog-close-color,#fff);
  font-size:18px;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  appearance:none;
}
.dialogClose:hover{
	text-decoration:none;
}

.dialog > .dialogClose .dialog-close-icon{width:20px;height:20px;pointer-events:none}

/* Keep Close visible when a legal link opens an anchor deep in the document. */
.dialogBg .dialog.legalDialog{
  display:flex!important;
  flex-direction:column;
  width:calc(100vw - 24px);
  max-width:680px;
  height:calc(100dvh - 24px)!important;
  max-height:calc(100dvh - 24px);
  margin:12px auto;
  overflow:hidden;
  background:var(--rateu-bg,#f7f3ec);
  --dialog-close-color:var(--rateu-ink,#191919);
}
.dialog.legalDialog > .dialogClose{
  position:relative;
  top:auto;
  right:auto;
  align-self:flex-end;
  flex:0 0 44px;
  margin:6px 6px 0;
}
.dialogBg .dialog.legalDialog > .dialogBody{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  box-sizing:border-box;
  padding:0 20px 20px!important;
  overflow-y:auto;
  background:var(--rateu-bg,#f7f3ec);
  color:var(--rateu-ink,#191919);
}

/* Light popup surfaces share one close control; legacy dark dialogs use white. */
.dialog.promoSheet,
.dialog.profileActionDialog,
.dialog:has(.registration-entry, .registration-panel, .verification-panel,
  .goldSheet, .match-popup-card, .challengeSheet, .notifySheet, .inviteSheet,
  .installSheet, .report-panel, .bug-report-panel, .legalDocuments,
  .chatActionSheet, .chatConfirmSheet){
  --dialog-close-color:var(--rateu-ink,#191919);
}

/* Center popup Close and options on the 24px assessment badge at top:28px.
   The transparent 44px target stays comfortable to tap on pale photos too. */
.dialog:has(.swipeWrap.card) > .dialogClose{
  top:18px;
  left:12px;
  right:auto;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  box-shadow:none;
  color:#fff;
  font-size:18px;
  font-weight:400;
  text-shadow:0 1px 2px rgba(0,0,0,.75);
}
.dialog:has(.swipeWrap.card) > .dialogClose .dialog-close-icon{
  width:18px;height:18px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.75));
}

.dialog:has(.swipeWrap.card) .card .moreOptions{
  top:18px;
  right:12px;
  width:44px;
  height:44px;
}

/* fullScr dialogs (search filters, profile edit, ...) close via their own
   in-content action (back arrow, Shrani/Save) - a generic X here would be a
   second, redundant way to dismiss without saving */
.dialog.fullScr > .dialogClose{
	display:none;
}

/* Initial focus announces the container; interactive keyboard focus stays visible. */
.dialog:focus { outline:none; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;  
  border-bottom: 1px solid #b5b5b5;
  border-bottom:1px solid #3e3d3d;
  height: 56px;
  box-sizing: border-box;
  position:sticky;
  top:0;
  margin:0 -26px 15px -26px;
  /*
  background:linear-gradient(to bottom right, #3d2280 0%, #2d1b69 40%, #1a0f3d 70%, #0d0620 100%);
  background:linear-gradient(180deg, #1b1b44 0%, #1a1a2e 100%);
  background:linear-gradient(180deg, #292e33 0%, #1b1c1d 100%);
  */
  z-index:999;
}

.chat-header .user-info {
    flex: 1;
    min-width: 0;
}

.chat-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:auto;
}

.chat-header .moreOptions{
    position:static !important;   /* odstrani absolute */
    display:flex;
    align-items:center;
    gap:4px;
    margin-left:12px;             /* razmak od Prijavi laž */
    flex-shrink:0;                /* da se ne stisne */
}

.chat-header .moreLabel{
    color:#222;
    font-size:14px;
	margin-right:3px;
}

.chat-header .moreIcon{
    font-size:22px;
    line-height:1;
	font-weight:bold;
    margin-top:-1px;
    color:#000;
}


.report-lie-btn,
.report-abuse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #222;  
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
}

.report-lie-btn svg,
.report-abuse-btn svg {
  width: 18px;
  height: 18px;
}

.report-lie-btn svg {
  fill: none;
  stroke: currentColor;
}

.report-abuse-btn svg {
  fill: currentColor;
}

@media (max-width: 380px) {
  .report-lie-btn span,
  .report-abuse-btn span,
  .no-sex-btn span {
    display: none;
  }

  .chat-actions {
    padding-right: 48px;
  }
}


.backBtn{
  -moz-border-radius:2px;
  -webkit-border-radius:2px;
  border-radius:2px; 
  height:25px;
  line-height:25px;
  width:30px;  
  position:absolute;  	
  top:-7px; 
  left:31px;
  right:auto;
  text-align:center;
  font-weight:bold;
  color:#7d7575;  
  position:unset;
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;  
}

@keyframes slideInFromRight {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.dialog.fullScr {
  animation: slideInFromRight 0.3s ease forwards;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

@keyframes slideOutToRight {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(100%, 0, 0);
  }
}

.dialog.slideOut {
  animation: slideOutToRight 0.4s ease forwards;
}


/* Slide-up modal */
.dialog.slideUp2 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  border: none;
  width: 100%;
  max-width: 680px;
  height: 100%;
  background-color: white;
  animation: slideInFromBottom 0.2s ease-out forwards;
  overflow-y: auto;

  /* ✅ New additions for real-time gesture */
  will-change: transform;
  touch-action: none;
}

.dialog.slideUp {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  height: auto; /* ✅ Auto height */
  max-height: 90%; /* Optional: prevents full-screen overflow */
  background-color: white;
  animation: slideInFromBottom 0.2s ease-out forwards;
  overflow-y: auto;

  will-change: transform;
  touch-action: none;
}

.dialog.slideUp.profile {
  border-radius: 20px;
  position: fixed;
  height: 100%;
  bottom:auto;
  top:20px;
  margin-bottom:100px;
  max-height:90%;
  animation: slideInFromBottom 0.2s ease-out forwards;
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutToBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.dialog.slideUp.slideOut {
  animation: slideOutToBottom 0.4s ease forwards;
}

.dialogBg.slideUpBg {  
  position: fixed;
  bottom: 0;
  top: auto;
  height: 100%;
}

/* Swipe promo bottom sheet */
.dialog.promoSheet{
  max-width:420px;
  border-radius:28px 28px 0 0;
  background:#fff;
  color:oklch(18% 0.02 50);
}

.dialog.promoSheet .dialogBody{
  padding:0;
  background:#fff;
  color:oklch(18% 0.02 50);
}

.promoDialog{
  --promo-accent:#79dfcf;
  --promo-accent-ink:oklch(18% 0.02 50);
  box-sizing:border-box;
  width:100%;
  padding:28px 24px 24px;
  background:#fff;
  color:oklch(18% 0.02 50);
  font-family:'Rubik', sans-serif;
  text-align:center;
}

.promoDialog--interests{
  --promo-accent:#bea8f7;
}

.promoDialog--gold{
  --promo-accent:#f7d151;
}

.promoDialog--verify{
  --promo-accent:var(--rateu-accent, #ca2124);
  background:var(--rateu-bg, #f7f3ec);
  color:var(--rateu-ink, #191919);
}

.dialog.promoSheet:has(.promoDialog--verify),
.dialog.promoSheet:has(.promoDialog--verify) .dialogBody{
  background:var(--rateu-bg, #f7f3ec);
}

.promoDialog--verify .promoVisual{
  width:64px;
  height:66px;
  margin-bottom:14px;
}

.promoDialog--verify .promoIcon{
  inset:0 auto auto 0;
  width:58px;
  height:58px;
  background:#fff;
  color:var(--promo-accent);
  border-color:var(--rateu-ink, #191919);
  box-shadow:4px 4px 0 var(--promo-accent);
  transform:none;
}

.promoDialog--verify .promoIcon svg{width:30px;height:30px;}
.promoDialog--verify .promoEyebrow,
.promoDialog--verify .promoBenefitIcon{color:var(--promo-accent);}
.promoDialog--verify .promoTitle{
  font-family:'Lilita One','RateU Caron','Rubik',sans-serif;
  font-size:28px;
  font-weight:400;
}
.promoDialog--verify .promoText{color:var(--rateu-muted, #77736d);}
.promoDialog--verify .promoBenefits li{border-color:var(--rateu-line, #ded9d1);}
.promoDialog.promoDialog--verify .promoBtn,
.promoDialog.promoDialog--verify .promoBtn:hover{
  background:var(--rateu-ink, #191919);
  color:#fff;
  box-shadow:4px 4px 0 var(--promo-accent);
}
.promoDialog.promoDialog--verify .promoSkip{
  background:transparent;
  border:1px solid var(--rateu-ink, #191919);
  box-shadow:none;
}
.promoDialog.promoDialog--verify .promoBtn:active{box-shadow:none;}

.promoDialog--notifications{
  --promo-accent:#f7d879;
}

.promoDialog--install,
.promoDialog--native{
  --promo-accent:#b7a2ee;
}

.promoVisual{
  position:relative;
  width:132px;
  height:92px;
  margin:0 auto 8px;
}

.promoMiniCard{
  position:absolute;
  top:13px;
  width:58px;
  height:72px;
  box-sizing:border-box;
  border:2px solid #596068;
  border-radius:10px;
  background:
    radial-gradient(circle at 50% 35%, #d9ae91 0 17%, transparent 18%),
    linear-gradient(150deg, #7893aa, #d5b290);
}

.promoMiniCard--left{
  left:16px;
  transform:rotate(-9deg);
}

.promoMiniCard--right{
  right:16px;
  transform:rotate(9deg);
}

.promoIcon{
  position:absolute;
  z-index:2;
  right:41px;
  bottom:0;
  display:grid;
  width:50px;
  height:50px;
  box-sizing:border-box;
  place-items:center;
  border:2px solid oklch(18% 0.02 50);
  border-radius:16px;
  background:var(--promo-accent);
  color:var(--promo-accent-ink);
  box-shadow:3px 3px 0 0 oklch(18% 0.02 50);
  font-size:25px;
  font-weight:800;
  line-height:1;
  transform:rotate(-5deg);
}

.promoEyebrow{
  margin:0 0 7px;
  color:color-mix(in srgb, var(--promo-accent) 72%, #263039);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.promoTitle{
  max-width:340px;
  margin:0 auto 9px;
  color:oklch(18% 0.02 50);
  font-family:'Rubik', sans-serif;
  font-size:24px;
  font-weight:800;
  line-height:1.18;
}

.promoText{
  max-width:340px;
  margin:0 auto 15px;
  color:#606872;
  font-size:14px;
  line-height:1.42;
}

.promoDialog--rewardHero{--promo-reward-ink:#6048ad;}
.promoDialog--notifications.promoDialog--rewardHero{--promo-reward-ink:#825800;}
.promoDialog--rewardHero .promoRewardVisual{width:46px;height:46px;margin:0 auto 18px;}
.promoRewardVisual .promoIcon{inset:0;width:46px;height:46px;border:0;border-radius:15px;box-shadow:none;font-size:25px;transform:rotate(-6deg);}
.promoDialog--rewardHero .promoTitle{margin-bottom:20px;font-size:26px;line-height:1.2;overflow-wrap:anywhere;}
.promoHeroAmount{margin:0 0 10px;color:var(--promo-reward-ink);line-height:1;}
.promoHeroAmount strong{font-size:64px;font-weight:900;letter-spacing:-4px;}
.promoHeroAmount span{font-size:26px;font-weight:700;letter-spacing:-1px;}
.promoHeroHint{margin:0 0 18px;color:#606872;font-size:14px;font-weight:600;line-height:1.4;}
.promoDialog--rewardHero .promoText{margin-bottom:24px;}

.promoBenefits{
  max-width:330px;
  margin:0 auto 18px;
  padding:0;
  list-style:none;
  text-align:left;
}

.promoBenefits li{
  display:grid;
  grid-template-columns:27px minmax(0, 1fr);
  align-items:center;
  min-height:39px;
  border-bottom:1px solid #dfe2e6;
  color:oklch(18% 0.02 50);
  font-size:13px;
  line-height:1.3;
}

.promoBenefits li:last-child{
  border-bottom:0;
}

.promoBenefitIcon{
  color:color-mix(in srgb, var(--promo-accent) 80%, #263039);
  font-weight:800;
  text-align:center;
}

.promoActions{
  display:grid;
  gap:12px;
  max-width:340px;
  margin:0 auto;
  padding:0 4px 4px 0;
}

.promoDialog .promoBtn,
.promoDialog .promoSkip{
  position:static;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:50px;
  height:auto;
  box-sizing:border-box;
  padding:11px 18px;
  border:2px solid oklch(18% 0.02 50);
  border-radius:999px;
  color:oklch(18% 0.02 50);
  font-family:'Rubik', sans-serif;
  font-size:15px;
  font-weight:800;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.promoDialog .promoBtn{
  background:var(--promo-accent);
  box-shadow:4px 4px 0 0 oklch(18% 0.02 50);
}

.promoDialog .promoSkip{
  z-index:auto;
  background:#eceff3;
  box-shadow:3px 3px 0 0 oklch(18% 0.02 50);
}

.promoDialog .promoBtn:hover,
.promoDialog .promoSkip:hover{
  color:oklch(18% 0.02 50);
  text-decoration:none;
}

.promoDialog .promoBtn:active,
.promoDialog .promoSkip:active{
  transform:translate(3px, 3px);
  box-shadow:0 0 0 0 oklch(18% 0.02 50);
}

@media (max-width:380px){
  .promoDialog{
    padding:26px 18px 22px;
  }

  .promoVisual{
    height:86px;
  }

  .promoTitle{
    font-size:22px;
  }

  .promoText{
    font-size:13px;
  }

  .promoBenefits li{
    min-height:37px;
    font-size:12px;
  }

  .promoDialog .promoBtn,
  .promoDialog .promoSkip{
    min-height:48px;
  }
}

.swipeWrap{
	background-color:#fff;	
}
:not(.dialogBody) > .swipeWrap{  
  cursor:default;
  border:1px solid #555555;
	border-radius: 20px;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;	
  margin: 40px auto 0;      
  margin:0;
  width:100%;
  max-width:600px;  
  box-sizing:border-box;
  /*background-color:white; */
  position:absolute;
  
  /*height:700px;*/
  height: 100%;
  overflow:hidden;
  overflow-y:auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background-color:#fff;
  max-height:596px;
} 


#cards{  
  /*height: calc(var(--sectionBody-height) - var(--sectionHeader-height));*/
  /*height: var(--sectionBody-height);*/
      flex: 1 1 auto;
	  max-height:596px;
} 

.loader{
  margin:100px auto 0 auto;
  background:url(../images/loader.svg) no-repeat center center;
  height:25px;
  width:100px;    
  position:absolute;  
  left: 0;
  right:0; 
}

/* Keep every AJAX dialog light until its initial loader is replaced. */
.dialogBg .dialog:has(> .dialogBody > .loader){
  background:var(--rateu-bg,#f7f3ec) !important;
  color:var(--rateu-ink,#191919);
  --dialog-close-color:var(--rateu-ink,#191919);
}
.dialogBg .dialog > .dialogBody:has(> .loader){
  background:var(--rateu-bg,#f7f3ec) !important;
  color:var(--rateu-ink,#191919);
}
.dialogBg .dialog:has(> .dialogBody > .loader) > .dialogClose{
  color:var(--rateu-ink,#191919);
  text-shadow:none;
}

.loaderLight{
  margin:100px auto 0 auto;
  background:url(../images/loader.svg) no-repeat center center;
  height:25px;
  width:100px;    
  position:absolute;  
  left: 0;
  right:0; 
}

/* Loader (spinner) */
.loader2 {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3; /* Light grey */
  border-top: 6px solid #E91E63; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
  left:0;
  right:0;
  margin:0 auto;
  top:50%;
  position:absolute;
}

/* Keyframes for spinning animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.displayNone{
	display:none;
}

/*PROFILE*/

.profile-details{
	padding:4px 22px 30px;
	background:#fffdfa;
	color:#1c1c1b;
	font-family:'Rubik', sans-serif;
}

.profile-detail-section{
	padding:24px 0;
	border-top:1px solid #e3ded5;
}

.profile-detail-section:first-child{
	border-top:0;
	padding-top:22px;
}

.profile-detail-section h3{
	margin:0 0 15px;
	color:#1c1c1b;
	font:400 22px/1.15 'Lilita One', sans-serif;
}

.profile-detail-bio{
	margin:0;
	color:#1c1c1b;
	font-size:14px;
	line-height:1.65;
	overflow-wrap:anywhere;
}

.profile-completion-note {
	margin: 18px 0 0;
	padding: 14px;
	border: 1px solid var(--rateu-line, #ded9d1);
	border-radius: 14px;
	background: var(--rateu-bg, #f7f3ec);
	color: var(--rateu-ink, #191919);
	font-size: 13px;
	line-height: 1.5;
}
.profile-completion-note strong { display: block; margin-bottom: 4px; }
.profile-completion-note p { margin: 0; }
.self-profile-layout {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	min-height: 0;
}
.profile-completion-prompt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	gap: 10px;
	padding: 11px 12px;
	border: 1px solid var(--rateu-line, #ded9d1);
	border-radius: 14px;
	background: var(--rateu-bg, #f7f3ec);
	color: var(--rateu-ink, #191919);
}
.profile-completion-copy { min-width: 0; }
.profile-completion-copy strong { display: block; font-size: 13px; line-height: 1.35; }
.profile-completion-copy p { margin: 3px 0 0; color: var(--rateu-muted, #77736d); font-size: 12px; line-height: 1.4; }
.profile-completion-prompt .profile-completion-cta { gap: 5px; min-height: 40px; padding: 8px 11px; }
.self-profile-layout > .swipeWrap {
	position: relative;
	flex: 1 1 0;
	min-height: 0;
	max-height: none;
	height: auto;
}
.self-profile-layout .mainPhotoWrap { position: relative; height: 100%; max-height: none; }
/* Override the legacy .photo { height:auto !important } only on My Profile.
   Every photo must fill the available frame regardless of its source ratio. */
.self-profile-layout .mainPhotoWrap > img { height: 100% !important; min-height: 0; object-fit: cover; }
.profile-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-detail-heading h3 { margin: 0; }
.profile-complete-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 36px;
	box-sizing: border-box;
	padding: 7px 13px;
	border: 1px solid var(--rateu-ink, #191919);
	border-radius: 999px;
	background: var(--rateu-bg, #f7f3ec);
	color: var(--rateu-ink, #191919);
	font: 600 12px/1.3 'Rubik', sans-serif;
	text-decoration: none;
}
.profile-detail-placeholder { margin: 8px 0 0; color: var(--rateu-muted, #77736d); font-size: 13px; line-height: 1.5; }

.profile-looking-card{
	display:grid;
	grid-template-columns:18px minmax(0,1fr);
	align-items:start;
	gap:9px;
	padding:17px 16px 18px;
	background:#eee8de;
	border-radius:17px;
}

.profile-looking-card > .profile-detail-icon{
	margin-top:2px;
	color:var(--rateu-red, #d51f2b);
}

.profile-looking-card > div{
	display:contents;
}

.profile-looking-card h3{
	margin:0;
	font:500 14px/1.4 'Rubik', sans-serif;
}

.profile-looking-card .profile-tags{grid-column:1 / -1;margin-top:3px;}

.profile-tags{
	display:flex;
	flex-wrap:wrap;
	gap:7px;
}

.profile-tag{
	display:inline-flex;
	align-items:center;
	min-height:29px;
	padding:5px 10px;
	border:1px solid #e3ded5;
	border-radius:999px;
	background:#f5f1eb;
	color:#1c1c1b;
	font-size:12px;
	line-height:1.2;
}

.profile-looking-tag{
	background:#fff;
	border-color:transparent;
	padding:7px 11px;
	line-height:1.4;
}

.profile-facts-grid{
	display:grid;
	grid-template-columns:repeat(2, minmax(0, 1fr));
	column-gap:18px;
	row-gap:20px;
}

.profile-fact{
	display:flex;
	align-items:flex-start;
	gap:9px;
	min-width:0;
	padding:0;
	color:#1c1c1b;
	font-size:13px;
	line-height:1.35;
}

.profile-detail-icon{
	width:18px;
	height:18px;
	flex:0 0 18px;
}

.profile-fact > .profile-detail-icon{
	margin-top:2px;
	color:#756e63;
}

.profile-fact > div{
	min-width:0;
	overflow-wrap:anywhere;
}

.profile-fact-label{display:block;color:#77716a;font-size:11px;line-height:1.4;margin-bottom:3px;}
.profile-fact-value{display:block;font-size:13px;line-height:1.5;}

@media(max-width:400px){
	.profile-details{padding-left:17px;padding-right:17px;}
	.profile-facts-grid{column-gap:12px;}
	.profile-fact{gap:7px;}
}

.profile-collapsible-item.is-hidden{
	display:none;
}

.profile-details-toggle{
	appearance:none;
	border:0;
	background:transparent;
	color:var(--rateu-red, #d51f2b);
	padding:11px 0 0;
	font:500 12px/1.3 'Rubik', sans-serif;
	cursor:pointer;
}

.profile-details-toggle:hover,
.profile-details-toggle:focus-visible{
	text-decoration:underline;
}

.profile-language-list{
	display:flex;
	flex-wrap:wrap;
	color:#25272c;
	font-size:14px;
	line-height:1.5;
}

.profile-language:not(:first-child)::before{
	content:'\00b7';
	margin:0 7px;
	color:#a0a4ac;
}

.profile-work-list{
	display:grid;
	gap:13px;
}

.profile-work-row{
	display:grid;
	grid-template-columns:20px minmax(0, 1fr);
	gap:10px;
	align-items:start;
	color:#25272c;
}

.profile-work-row > i{
	margin-top:2px;
	color:#666d78;
	text-align:center;
}

.profile-work-row strong,
.profile-work-row span{
	display:block;
	font-size:13px;
	line-height:1.4;
}

.profile-work-row strong{
	font-weight:500;
	overflow-wrap:anywhere;
}

.profile-work-row span{
	color:#7d828b;
	overflow-wrap:anywhere;
}

.profile-empty-state{
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	min-height:210px;
	padding:32px 18px;
	text-align:center;
}

.profile-empty-state > i{
	margin-bottom:12px;
	color:#a1a6af;
	font-size:28px;
}

.profile-empty-state p{
	margin:0;
	color:#777d87;
	font-size:14px;
	line-height:1.45;
}

.profile-empty-action{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	margin-top:16px;
	padding:9px 16px;
	border-radius:999px;
	background:#e93d72;
	color:#fff;
	font-size:13px;
	font-weight:500;
	text-decoration:none;
}

@media (max-width:340px){
	.profile-facts-grid{
		grid-template-columns:1fr;
	}
}


    .profile-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .gradient-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 30%;
      background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    }
	
    .gradient-topoverlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 10%;
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
    }
.profile-info .interests{
	margin:15px 0 20px;
}


.adoptNote{
	filter:brightness(0) invert(1)
}
noteMsg{
	margin:23px 0 20px;	
	position:relative;
}	

.noteMsg span{
	font-size:12px;
	background-color:rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 9px;
    padding: 0.375rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}


.interest-tag {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 999px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    display: inline-block;
}

.slide-overlay {
    display: none;
}

.slide-overlay.active {
    display: block;
}

.photo-bio {
    color: #ffffffcc;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 1px 1px 0 var(--dark);
    margin: 4px 0 15px;
    max-width: 90%;
}
    .profile-info {
      position: absolute;
      bottom: 100px;
      left: 0;
      right: 0;
      padding: 15px;
	  padding-bottom:10px;
      color: white;
    }
	
    .profile-info.noBottom {
      bottom: 10px;
    }	
	
    .showMore {
position: absolute;
    bottom: 16px;
    right: 15px;
    /* padding: 15px; */
    color: white;
    width: 30px;
    height: 30px;
    cursor: pointer;
    }
    
    .profile-name {
      display: flex;
      align-items: center;      
	  margin-bottom:-5px;
    }
    
	.profile-info .distance{
		margin-bottom:11px;
		color:#ffffffcc;
		font-size:14px;
		font-weight: 700;
		color: white;
		display: flex;
		align-items: center;
		gap: 4px;		
		font-family:'Rubik', sans-serif;
	}
	
	.profile-info button span{
		filter:brightness(0) invert(1);	
		line-height:1;
	}
	
	.rateMe{
		font-weight: normal;
		font-size: 11px;
		text-align:center;
		font-family: 'Lilita One','RateU Caron', cursive;
		text-shadow:1px 1px 0 var(--dark);
		margin-top:10px;
		margin-bottom:-8px;
	}
	
    .name-age {
		font-size: 1.75rem;
		font-weight: normal;
		margin-right: 0.5rem;
		margin-bottom:10px;
		font-size: 22px;
		color: white;
		display: flex;
		align-items: center;
		gap: 10px;
		text-shadow: 3px 3px 0 var(--dark);
		letter-spacing: 1px;	  
    }
	
	.name-age span {
		color: var(--electric-yellow);
	}

	.adoptedBy p{
		font-family:'Rubik', sans-serif;
		font-weight: normal;
		font-size: 13px;
		margin-bottom:2px;
		color: white;
		gap: 10px;
		text-shadow: 1px 1px 0 var(--dark);	
	}
	
	.adoptedBy span{
		font-size: 18px;
		color: white;
		text-shadow: none;
		filter:brightness(0) invert(1);
		
	}	
    
    .verified-badge {
      background-color: var(--pop-blue);
      border-radius: 50%;
      width: 1.25rem;
      height: 1.25rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .no-ons-badge {
      background-color: #ef4444;
      color: white;
      border-radius: 1rem;
      padding: 0.1rem 0.5rem;
      font-size: 0.7rem;
      font-weight: 600;
      white-space: nowrap;
      display: flex;
      align-items: center;
    }
    .more-options {
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 2.5rem;
      height: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #6b7280;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      background-color: white;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      z-index: 10;
    }	
.card .moreOptions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width:50px;
  height:30px;
  position:absolute;
  right:6px;
  top:15px;
  z-index:9;
}

.chat-header .moreOptions{
	right:15px;
	left:auto;
}

.card .moreOptions span {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
  border:1px solid #1a1a2e;
}	


.mainPhotoWrap{
/*
	position:relative;
	height:var(--sectionBody-height);	
	*/
	max-height:100%;
}

.photoWrap{
	position:relative;	
}

.photosCount{
	position:absolute;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6); 
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight:bold;
	top:50%;
	left:50%;
	transform:translate(-50%, -50%);
}

/* Show more button - new implementation */
.show-more {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  cursor: pointer;
}

.show-more-icon {
  margin-left: 0.375rem;
  width: 0.875rem;
  height: 0.875rem;
}


.btn {
    background: linear-gradient(45deg, hsl(37, 91%, 55%), hsl(340, 82%, 52%), hsl(280, 87%, 55%));
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
	text-align:center;
	font-weight:normal;
}

.btn a{color:#fff;}

.btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Action buttons */
.swipe-rate-status{
    position:absolute;z-index:21;top:42px;left:16px;right:16px;
    padding:12px 16px;border:1px solid var(--rateu-line,#ded9d1);
    border-radius:16px;background:var(--rateu-bg,#f7f3ec);color:var(--rateu-ink,#191919);
    font:500 14px/1.4 'Rubik',sans-serif;text-align:center;pointer-events:none;
}
.swipe-rate-global{
    position:fixed;z-index:1000;max-width:28rem;margin-inline:auto;
    top:calc(env(safe-area-inset-top,0px) + 12px);
}
.swipe-save-status{
    position:absolute;
    z-index:20;
    top:42px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:8px;
    padding:9px 13px;
    border:1px solid var(--rateu-line, #ded9d1);
    border-radius:999px;
    background:var(--rateu-bg, #f7f3ec);
    color:var(--rateu-ink, #191919);
    font:500 12px/1.3 'Rubik',sans-serif;
    pointer-events:none;
    animation:swipeSaveReveal .12s ease .25s both;
}
.swipe-save-status::before{
    content:'';
    width:12px;
    height:12px;
    border:2px solid var(--rateu-line, #ded9d1);
    border-top-color:var(--rateu-accent, #ca2124);
    border-radius:50%;
    animation:swipeSaveSpin .7s linear infinite;
}
@keyframes swipeSaveSpin{to{rotate:360deg;}}
@keyframes swipeSaveReveal{from{opacity:0;}to{opacity:1;}}
.action-buttons button{
    padding: 10px;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
background: #fff;
    /*border: 2px solid black !important;	*/
}
.action-buttons,.read-bio {
    position: absolute;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
	margin-top:-90px;
	box-sizing:border-box;
	gap:2px;
}

.action-buttons{
    padding: 0 70px;	
    width: 100%;
	text-align:center;	
}

.read-bio{
	margin-top: -61px;
	font-size: 13px;	
	width:100%;
	text-align:center;
}

.read-bio p{
	text-shadow:2px 1px 1px var(--dark);
}	





.swipeLeft,.swipeRight,.editProfile{
position:absolute;
width:100px;
height:100px;
border-radius:50px;	
background:white;
bottom:10px;
vertical-align: middle;
    text-align: center;
    line-height: 100px;
    font-size: 43px;
	cursor:pointer;
}

.swipeLeft{
left:100px;
}

.swipeRight{
	right:100px;
}

.editProfile{
	width: 50px;
    height: 50px;
    line-height: 50px;
    vertical-align: middle;
}

/*note and match dialogs*/
.note {
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  background: white;
  max-width: 400px;
  margin: auto;
  color: #555;
}

.note h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.note p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.note textarea {
  width: 100%;
  height: 80px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  resize: none;
  margin-bottom: 16px;
}

.note button {
  background-color: #f4b400;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.note p.adoptSuccess{
	font-size:24px;
}

.note img,.note .adaptIcn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  margin-bottom: 16px;
}

.note .message {
  font-size: 18px;
  color:#000;
  line-height: 1.4;
  font-size:16px;
  font-weight:bold;
  text-align:left;
	max-width:300px;
	margin:0px auto 30px;
text-align:center;
	
}

.errorMsg{
	color:#c91515;
	margin-top:15px;
	font-weight:bold;
}


.btn-loading {
  position: relative;
  cursor: not-allowed !important;
  opacity: 0.8;
}

.btn-loading:disabled {
  pointer-events: none;
}

/* Spinner Animation */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.btn-loading-text {
  vertical-align: middle;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}


.slideUp.dark{
	background-color:#2e2d2d !important;
	color:#fff;
}

.rateError{
	padding:40px;
	font-size:18px;
	text-align:center;
}

/*end note and match dialogs*/

/*search filters slider*/
#slider-container,#slider-container2 {
	width: 90%;
	max-width: 400px;
	margin-top: 20px;
	position: relative;
}
div#slider-container2{
	margin-top:0;
}
#distance-slider {
	/*margin: 10px 5px;*/
}
#distance-value {
	font-weight: bold;
	display: inline-block;
	text-align: center;
	/*min-width: 120px;*/ /* Prevents shifting when text changes */
}
.selectedValue{
	font-size:12px;
}
.ui-slider .ui-slider-handle {
	width: 20px;
	height: 20px;
	background: #007bff;
	border-radius: 50%;
	top: -0.3em; /* Center thumb with track */
	position: absolute;
}
.ui-slider-horizontal .ui-slider-handle {
	margin-left: -10px; /* Fixes left shift at min value */
}
.ui-slider .ui-slider-range {
	background: #007bff;
}	

/*MESSAGES*/
.matches img,#threads img{
	width:40px;
	height:40px;
	border-radius: 20px;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;		
}

.matches li{
	display:inline-block;
}

.matches{
	height:50px;
	overflow-x:auto;
	overflow-y:hidden;
	white-space:nowrap;
	flex-shrink:0;
	-webkit-overflow-scrolling:touch;
}

#messages #sectionBody{
  /*height: calc(var(--sectionBody-height) - var(--sectionHeader-height));*/
  height: calc(var(--sectionBody-height) - 50px);
  overflow-y:scroll;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

#messages #sectionBody::-webkit-scrollbar {
  display: none;
}

#threads img{
	
}

.thread {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  cursor: pointer;
}

.threadImg {
  flex-shrink: 0;
  margin: 0 10px 0 0;
}

.threadImg img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.threadMsg {
  flex-grow: 1;
  overflow: hidden;
}

.threadMsg p {
  margin: 0;
}

.truncate-text {
  color: #80cbc4; /* optional: match your design */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-unread .threadMsg p:first-child {
  font-weight: 700;
}

.thread-unread-badge {
  flex-shrink: 0;
  margin-left: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent, #FF5722);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
/*END MESSAGES*/

/*Photo upload*/
        /* Header styles */
        .header {
            display: flex;
            align-items: center;
            padding: 15px;
            /*background-color: #1c1e21;*/
/*            border-bottom: 1px solid #3e4042;*/
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        /* Section title */
        .section-title {
            font-size: 28px;
            margin: 20px;
        }
        
        /* Media container */
        .media-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            padding: 0;
            margin-bottom: 10px;
        }
        
        /* Photo containers */
        .photo-container {
            position: relative;
            aspect-ratio: 0.67/1;
            background-color: #242526;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .photo-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
			object-position: center top;
        }
        

        
        .add-icon {
            color: #e41e3f;
            font-size: 28px;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .remove-button {
            position: absolute;
            bottom: 10px;
            right: 10px;
            width: 36px;
            height: 36px;
            background-color: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 10;
            -webkit-tap-highlight-color: transparent;
        }
        
        .file-input {
            display: none;
        }
        
        .error-message {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #e41e3f;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            z-index: 1000;
            display: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            max-width: 90%;
            text-align: center;
        }
        
        .change-badge {
            position: absolute;
            top: 5px;
            right: 5px;
            background-color: #e41e3f;
            color: white;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            font-size: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 5;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .change-badge.visible {
            opacity: 1;
        }
        
        /* Save button */
        .save-container {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #1c1e21;
            padding: 15px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
            display: flex;
            justify-content: center;
            z-index: 100;
        }
        
        .save-button {
            background-color: #e41e3f;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 12px 30px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .save-button:disabled {
            background-color: #5c5c5c;
            cursor: not-allowed;
        }
        
        /* Uploading overlay */
        .uploading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            display: none;
        }
        
        .uploading-spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid #e41e3f;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Popup styles */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .popup-container {
            background-color: #18191A;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            border-radius: 10px;
            overflow: auto;
            padding: 20px;
            position: relative;
        }
        

/*End photo upload*/

.registration form p{
	margin:15px 0 5px 0;
}

.registration form table{
	margin:15px 0 5px 0;
}

.dialog .registration form td:first-child{
	width:100%;
}

.dialog .registration form td{
	padding:0;
}


/* City autosuggest styles */
.city-input-wrapper {
    position: relative;
    width: 100%;
}

.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    color: #171717;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.city-suggestions.active {
    display: block;
}

.city-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #171717;
    transition: background-color 0.2s;
}

.city-suggestion-item:hover,
.city-suggestion-item.highlighted {
    background-color: #f1eee8;
}

.city-suggestion-item:last-child {
    border-bottom: none;
}

.city-suggestion-loading {
    padding: 10px 15px;
    text-align: center;
    color: #5e5b57;
    font-size: 12px;
}

.city-suggestion-no-results {
    padding: 10px 15px;
    text-align: center;
    color: #5e5b57;
    font-size: 12px;
}
.btn{
    padding: 0.6rem;
    background: #4CAF50;
    color: rgb(255, 255, 255);
    border: 3px solid #000000;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: rgb(255 255 255 / 30%) 0px 0px 19px 1px;
    /* letter-spacing: normal; */
    /* transform: translateY(0px); */
}

.registration button{
    width: 100%;
    padding: 1.1rem;
    background: #4CAF50;
    color: rgb(255, 255, 255);
    border: 3px solid #000000;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: rgb(255 255 255 / 30%) 0px 0px 19px 1px;	
}
.registration input,.registration select{
	margin:15px 0;
}
.registration p{
	margin:20px 0 15px 0;
	font-size:14px;
}

.registration#regStep3 p{
	margin:0;
}

.registration#regStep3 label{
	margin-botto:5px;
	display:block;
}

.registration#regStep3 input,.registration#regStep3 select{
	margin-top:5px;
}

.registration#regStep3 table{
	margin-top:0px;
}

/*likes*/
.likes-feed {
	background: #1b1c1d;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	height:100%;
	color:#fff;
	border:1px solid #363636;
	position:relative;
}

.locked > *:not(.lock-message) {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;	
}

.lock-message {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    color: white;
}

.lock-message a {
    color: #fff;
    text-decoration: underline;
    margin-top: 0.5rem;
}


.likes-items {
	max-height: 600px;
	overflow-y: auto;
}




.notification-icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.notification-icon.rated {
	background-color: #fff3cd;
	color: #ff9800;
}

.notification-icon.matched {
	background-color: #c8e6c9;
	color: #4caf50;
}

.notification-icon.ping {
	background-color: #bbdefb;
	color: #2196f3;
}

.empty-state {
	padding: 40px 20px;
	text-align: center;
	color: #999;
}

.empty-state-icon {
	font-size: 48px;
	margin-bottom: 10px;
}

/* Scrollbar styling */
.likes-items::-webkit-scrollbar {
	width: 6px;
}

.likes-items::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.likes-items::-webkit-scrollbar-thumb {
	background: #667eea;
	border-radius: 3px;
}

.likes-items::-webkit-scrollbar-thumb:hover {
	background: #764ba2;
}

@media (max-width: 600px) {
	.likes-item {
		padding: 12px 16px;
		gap: 10px;
	}

	.user-avatar {
		width: 45px;
		height: 45px;
	}

	.likes-text {
		font-size: 13px;
	}
}



/* likes Feed Unread Badge */
.nav-item {
    position: relative;
}

.unread-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(calc(50% + 12px));
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff4757 0%, #ff0026 100%);
    border-radius: 10px;
    font-size: 11px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
}

.unread-badge.hidden {
    display: none;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateX(calc(50% + 12px)) scale(1);
    }
    50% {
        transform: translateX(calc(50% + 12px)) scale(1.1);
    }
}

/* Larger count styling */
.unread-badge.large {
    min-width: 22px;
    padding: 0 4px;
}
		
/*END likes*/


/*PROFILE*/
	.photo{height:auto !important;}
	
    .photoViewer {
      position: relative;

      overflow: hidden;

      cursor: pointer;
    }

    .photoViewer img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
	  min-height:596px;
    }

    /* top segmented bar like Tinder / IG stories */
    .story-bars {
      position: absolute;
      top: 8px;
      left: 8px;
      right: 8px;
      height: 4px;
      display: flex;
      gap: 4px;
      z-index: 1;
    }

    .story-bar {
      flex: 1;
      background: rgba(255,255,255,0.25);
      border-radius: 999px;
      overflow: hidden;
	  	
	  


    height: 3px;
    background: rgb(255 255 255 / 40%);
    border-radius: 3px;
    border: 1px solid #1a1a2e;

	  
    }

    .story-bar-fill {
      width: 0%;
      height: 100%;
      background: #FFEB3B;
      border-radius: 999px;
      transition: width 0.15s ease;
	  border: 1px solid #1a1a2e;	  
    }


    .story-bar.active {
      width: 100%;
	  background: #fff;
    }
	

.number-grid {
  display: flex;
  /*
  flex-wrap: wrap;
  gap: 12px;
  */
  width:100%;
  
}

.num {
  width: auto;
  height: auto;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height:20px;
  color: #262626;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  /*font-family:'Bangers', cursive;*/
  
    border: 2px solid var(--dark);
    background: white;
    font-family: 'Bangers', cursive;
    font-size: 18px;
    color: var(--dark);
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--dark);
    transition: all 0.15s 
cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
	padding:4px 8px;
	z-index:2;
	touch-action: manipulation;
}

.num_test:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  border-color: #3b82f6;
}

.num.clicked {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  border-color: #3b82f6;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.stats-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* Card container */
.stat-card {
  width: 120px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6e6e6;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
  color:#262626;
  height:85px;
}

/* Icon at top */
.icon {
  font-size: 20px;
  margin-bottom: 4px;
}

/* Big Number */
.value {
  font-size: 20px;
  font-weight: 700;
  color: #262626;
  letter-spacing: 0.5px;
}

/* Label text */
.label {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.3;
}

/* Icon Colors */
.blue   { color: #38bdf8; }
.purple { color: #a855f7; }
.pink   { color: #f472b6; }
.yellow { color: #facc15; }

.unverified-badge {
  width: 20px;
  height: 20px;
  background: #aaa; /* gray for unverified */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Photo Performance Overlay */
.photo-performance-overlay {
    position: absolute;
    bottom:218px;
    left: 14px;
    border-radius: 12px;
    padding: 12px 16px;
    z-index: 3;
    min-width: 180px;
	background:rgba(0, 0, 0, 0.35);
	
}

.photo-performance-overlay .perf-title {
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.95);    
}

.photo-performance-overlay .perf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.photo-performance-overlay .perf-row:last-child {
  margin-bottom: 0;
}

.photo-performance-overlay .perf-label {
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.95);    
}

.photo-performance-overlay .perf-label .help-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #767676;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow:none;
}

.photo-performance-overlay .perf-value {
  font-size: 15px;
  font-weight: 700;
  color: #262626;
  text-shadow: 0 0 4px rgba(255,255,255,0.95),
  0 0 8px rgba(255,255,255,0.8),
  1px 1px 2px rgba(255,255,255,0.9);
  text-shadow:1px 1px 3px rgba(0,0,0,0.8);
  color:#fff;
}

.photo-performance-overlay .perf-value.highlight {
  color: #10b981;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.95);
}


/* Rating badge (main score) */
.rating-badge {
    position: absolute;
    top: 25px;
    right: 12px;
    z-index: 2;
    transform: rotate(8deg);
}

.rating-badge-inner {
    background: #FFEB3B;
    border: 4px solid var(--dark);
    border-radius: 16px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 4px 4px 0 var(--dark);
    position: relative;
}

/* Spiky burst behind badge */
.rating-badge-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: var(--hot-orange);
    transform: translate(-50%, -50%);
    z-index: -1;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: burstSpin 10s linear infinite;
}

/*.rating-badge .star { display: none; }*/


.pingMe {
    background: linear-gradient(135deg, hsl(340, 82%, 52%), hsl(280, 87%, 55%));
	background:var(--fresh-green);
    color: white;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border: 3px solid var(--dark);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
	margin-botom:7px;
	text-transform:uppercase;
}

.pingMe:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Drop-in styles */
.seeStatsBtn{
  /* layout */
  width: min(520px, 92%);
  margin: 20px auto -20px;        /* space above 1..10 row */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* size */
  height: 58px;
  padding: 0 22px;
  border-radius: 999px;

  /* look */
  background: rgba(9, 12, 17, 0.55);
  border: 2px solid rgba(255, 205, 80, 0.55); /* warm gold stroke */
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.2px;

  /* subtle “pill” depth */
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35) inset,
    0 8px 18px rgba(0,0,0,0.35),
    0 0 22px rgba(255, 205, 80, 0.18);
  backdrop-filter: blur(6px);

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.seeStatsBtn:active{
  transform: translateY(1px);
}

.seeStatsBtn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 205, 80, 0.28),
    0 0 0 1px rgba(0,0,0,0.35) inset,
    0 8px 18px rgba(0,0,0,0.35),
    0 0 22px rgba(255, 205, 80, 0.18);
}

.seeStatsArrow{
  line-height: 1;
  font-size:18px;
  font-weight:bold;
}



/*END PROFILE*/

/*LEGAL*/
        .legal * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .legal {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.6;
            color: #242424;
        }
        .legalDocuments { background: #f8f5ee; color: #242424; border-radius: 18px; padding: 16px; }
        .dialog:has(.legalDocuments) { background: #f8f5ee; }
        .dialogBody:has(> .legalDocuments) {
            padding: 0 !important;
            background: #f8f5ee !important;
            color: #242424;
        }
        .dialogBody > .legalDocuments { border-radius: inherit; padding: 16px 24px 24px; }
        .dialogBody > .legalDocuments .language-switch { padding-right: 44px; }
        .legalDocuments a { color: #8f2028; overflow-wrap: anywhere; }
        .legalDocuments .document > ul { padding-left: 20px; }
        .legal .container {
            
            margin: 0 auto;
            
        }
        .legal .language-switch {
            text-align: right;
            padding: 15px 0;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 20px;
        }
        .legal .language-switch a {
            color: #242424;
            text-decoration: none;
            font-size: 14px;
        }
        .legal .language-switch a:hover {
            color: #000;
            text-decoration: underline;
        }
        .legalDocuments .legal[hidden] { display: none !important; }
        .legal .language-switch button { border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; background: transparent; color: inherit; cursor: pointer; }
        @media (min-width: 768px) {
            .dialog:has(.legalDocuments) { max-width: 760px; }
        }
        .legal .nav {
            
            border-radius: 8px;
            
            margin-bottom: 30px;
            
        }
        .legal .nav h3 {
            margin-bottom: 15px;
            color: #242424;
        }
        .legal .nav ul {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }
        .legal .nav a {
            display: inline-block;
            padding: 3px 10px;
            background: #f0f0f0;
            color: #000000;
            text-decoration: none;
            border-radius: 20px;
            font-size: 12px;
            transition: background 0.2s;
        }
        .legal .nav a:hover {
            background: #e0e0e0;
        }
        .legal .document {            
            border-radius: 8px;            
            margin-bottom: 30px;
            
        }
        .legal .document-title {
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 10px;
            color: #242424;
        }
        .legal .document-date {
            text-align: center;
            color: #66615b;
            font-style: italic;
            margin-bottom: 10px;
        }
        .legal .document-lang {
            text-align: center;
            margin-bottom: 30px;
        }
        .legal .document-lang a {
            color: #e8e8e8;
            font-size: 13px;
            text-decoration: none;
        }
        .legal .document-lang a:hover {
            text-decoration: underline;
        }
        .legal h2 {
            font-size: 20px;
            font-weight: 700;
            margin: 30px 0 15px 0;
            color: #242424;
        }
        .legal h3 {
            font-size: 17px;
            font-weight: 600;
            margin: 25px 0 12px 0;
            color: #242424;
        }
        .legal p {
            margin-bottom: 15px;
        }
        .legal ul, ol {
            
        }
        .legal li {
            margin-bottom: 8px;
        }
        .legal .disclaimer-text {
            text-transform: uppercase;
            font-size: 14px;
        }
        .legal .contact-block {
            margin: 15px 0;
        }
        .legal .contact-block strong {
            display: block;
        }
 
        .legal .container {
			padding: 15px;
		}
		
		.legal .document-title {
			font-size: 22px;
		}
		.legal h2 {
			font-size: 18px;
		}
    
/*END LEGAL*/

/*LEADERBOARD*/
#grid-container{
    /*border: 1px solid #5d5d5d;*/
    border-radius: 12px;
    background: #2b3036cc;
	background:#1b1c1d;
    padding: 13px;	
}

.filter-bar {
    border-radius: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.filter-group {
    flex: 1;
    position: relative;
}

.filter-group select {
    width: 100%;
    background-color: #1b1c1d;
    color: #fff;
    padding: 8px 16px 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 11px;
    appearance: none;
    padding-right: 30px;
    transition: background-color 0.3s ease;
}

.filter-bar .filter-group:first-child select {
    /* width:100px; */
}

.filter-group:first-child {
    max-width: calc(33.33% - 35px);
}

.filter-group:nth-child(2) {
    max-width: calc(33.33% + 10px);
}

.filter-group:nth-child(3) {
    max-width: calc(33.33% + 6px);
}

.filter-group select:hover {
    background-color: #0f172a;
}

.filter-group select:focus {
    outline: none;
    background-color: #0f172a;
}

.filter-group::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
    pointer-events: none;
}

/* Profile Grid */


#profilesGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.myPetsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Profile Card */
.profile-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
	min-width: 0;  /* ← This allows the grid to constrain width */
}

.card-inner {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-card:hover .card-inner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.profile-image2 {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
	object-position:top;
    display: block;
    transition: transform 0.3s ease;
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

/* Rating Badge - positioned inside image */
.profile-rating {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10;
}

.star-icon {
    width: 14px;
    height: 14px;
    color: #fbbf24;
}

.rating-number {
    color: #1f2937;
    font-weight: 600;
    font-size: 12px;
}

.rating-number.price{
    display: inline-flex;
    align-items: center;   /* vertical alignment */
    gap: 4px;              /* space between coin and number */
    font-weight: normal;      /* optional */	
}

.coin {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Profile Info - below image */
.profile-info2 {
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
	margin-bottom:-6px;
	width: 100%;
	min-width: 0; 
	overflow: hidden;
}

.profile-name-age {
	font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
	margin-bottom:3px;
}

.profile-name2 {    
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.profile-age {    
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.location-icon {
    width: 12px;
    height: 12px;
    display: none;
}

.gradient-overlay {
    display: none;
}
/*END LEADERBOARD*/

/* Disable blue tap highlight on Android Chrome */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Rate button sparkle animation */
.rate-sparkle {
    position: fixed;
    pointer-events: none;
    font-size: 14px;
    z-index: 99999;
    animation: sparkle-fly 0.6s ease-out forwards;
}

@keyframes sparkle-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(calc(var(--tx) * 0.6), calc(var(--ty) * 0.6)) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.3);
    }
}

/* ========== ADOPT ANIMATION STYLES ========== */

/* The flying avatar clone */
.adopt-flying-avatar {
  position: fixed;
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(255, 150, 200, 0.6), 0 0 40px rgba(255, 150, 200, 0.3);
  border: 3px solid #ff69b4;
  object-fit: cover;
  will-change: transform, top, left, width, height;
}

/* Paw print trail particles */
.adopt-paw-trail {
  position: fixed;
  z-index: 99998;
  pointer-events: none;
  font-size: 18px;
  opacity: 0;
  animation: adoptPawFade 0.8s ease-out forwards;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 4px rgba(255, 150, 200, 0.5));
}

@keyframes adoptPawFade {
  0% {
    opacity: 0.9;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.4) translateY(10px);
  }
}

/* Glow ring on the adopted-by photo after landing */
.adoptedBy .card-inner {
  position: relative;
}

.adopt-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  background: conic-gradient(
    from 0deg,
    #ff69b4,
    #ff9a56,
    #ffd700,
    #7cff6b,
    #6bcbff,
    #c46bff,
    #ff69b4
  );
  animation: adoptGlowSpin 2s linear infinite, adoptGlowIn 0.5s ease-out forwards;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
}

@keyframes adoptGlowIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
}

@keyframes adoptGlowSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Glow ring fade-out after a few seconds */
.adopt-glow-ring.fade-out {
  animation: adoptGlowOut 1.5s ease-out forwards;
}

@keyframes adoptGlowOut {
  to {
    opacity: 0;
  }
}

/* Bounce effect on the adopted-by image */
.adopt-bounce {
  animation: adoptBounce 0.5s cubic-bezier(0.36, 1.7, 0.5, 1) forwards;
}

@keyframes adoptBounce {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Sparkle burst around adopted-by after landing */
.adopt-sparkle {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  font-size: 14px;
  opacity: 0;
  animation: adoptSparkleBurst 0.7s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes adoptSparkleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.3);
  }
}

/* Heart confetti burst */
.adopt-heart {
  position: fixed;
  z-index: 99998;
  pointer-events: none;
  animation: adoptHeartFloat 1.2s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes adoptHeartFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  40% {
    opacity: 1;
    transform: translate(var(--hx), var(--hy)) scale(1) rotate(var(--hr));
  }
  100% {
    opacity: 0;
    transform: translate(var(--hx), calc(var(--hy) + 40px)) scale(0.6) rotate(var(--hr));
  }
}

/* Pulse effect on the "Adopted" button text */
.adopt-btn-pulse {
  animation: adoptBtnPulse 0.6s ease-out;
}

@keyframes adoptBtnPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Subtle shimmer on adopted-by container */
.adoptedBy.adopted-active {
  animation: adoptShimmer 2s ease-in-out;
}

@keyframes adoptShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}



/* ========== ADOPTION POPUP FOR GUEST VISITORS ========== */

/* Full-screen overlay */
.adoption-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  animation: adoptPopupBgIn 600ms ease-out forwards;
  padding: 20px;
}

@keyframes adoptPopupBgIn {
  to {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Card container */
.adoption-popup-card {
  width: min(340px, 90vw);
  border-radius: 24px;
  background: linear-gradient(170deg, #1e2228 0%, #13151a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(139, 92, 246, 0.08);
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateY(40px) scale(0.92);
  opacity: 0;
  animation: adoptCardIn 600ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

@keyframes adoptCardIn {
  0% { transform: translateY(40px) scale(0.92); opacity: 0; }
  60% { transform: translateY(-4px) scale(1.01); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Subtle shimmer sweep across card */
.adoption-popup-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: adoptShimmerSweep 2s ease-in-out 800ms forwards;
}

@keyframes adoptShimmerSweep {
  to { transform: translateX(100%); }
}

/* "Chose you" title */
.adoption-popup-title {
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 20px;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(10px);
  animation: adoptTextIn 500ms ease-out 400ms forwards;
}

.adoption-popup-subtitle {
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 20px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  animation: adoptTextIn 500ms ease-out 520ms forwards;
}

@keyframes adoptTextIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Photo container */
.adoption-popup-photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  opacity: 0;
  transform: scale(0.7);
  animation: adoptPhotoIn 700ms cubic-bezier(0.16, 1, 0.3, 1) 600ms forwards;
}

@keyframes adoptPhotoIn {
  0% { opacity: 0; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.adoption-popup-photo {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

/* Animated glow ring around photo */
.adoption-popup-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 26px;
  background: conic-gradient(
    from 0deg,
    #8b5cf6,
    #ec4899,
    #f59e0b,
    #10b981,
    #3b82f6,
    #8b5cf6
  );
  z-index: -1;
  opacity: 0;
  animation: adoptGlowRingIn 800ms ease-out 900ms forwards,
             adoptGlowRingSpin 3s linear 900ms infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
}

@keyframes adoptGlowRingIn {
  to { opacity: 0.7; }
}

@keyframes adoptGlowRingSpin {
  to { transform: rotate(360deg); }
}

/* Paw emoji floating near photo */
.adoption-popup-paw {
  position: absolute;
  font-size: 22px;
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.adoption-popup-paw:nth-child(2) {
  top: -8px; right: -8px;
  animation: adoptPawFloat 600ms ease-out 1100ms forwards;
  --paw-rot: 20deg;
}

.adoption-popup-paw:nth-child(3) {
  bottom: -4px; left: -10px;
  animation: adoptPawFloat 600ms ease-out 1250ms forwards;
  --paw-rot: -15deg;
}

@keyframes adoptPawFloat {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  60% { opacity: 1; transform: scale(1.15) rotate(var(--paw-rot)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--paw-rot)); }
}

/* CTA Button */
.adoption-popup-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  color: #fff;
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 18px;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 15px rgba(139, 92, 246, 0.4),
    0 0 0 0 rgba(139, 92, 246, 0.3);
  opacity: 0;
  transform: translateY(10px);
  animation: adoptCtaIn 500ms ease-out 1000ms forwards,
             adoptCtaPulse 2s ease-in-out 2000ms infinite;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.adoption-popup-cta:active {
  transform: scale(0.97) !important;
}

@keyframes adoptCtaIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes adoptCtaPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4), 0 0 0 0 rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5), 0 0 0 8px rgba(139, 92, 246, 0); }
}

/* Button shimmer */
.adoption-popup-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: adoptBtnShimmer 2.5s ease-in-out 1800ms infinite;
}

@keyframes adoptBtnShimmer {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

/* Credits line */
.adoption-popup-credits {
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 12px 0 0;
  opacity: 0;
  animation: adoptTextIn 500ms ease-out 1100ms forwards;
}

.adoption-popup-credits span {
  color: #fbbf24;
}

/* Timer */
.adoption-popup-timer {
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin: 16px 0 0;
  opacity: 0;
  animation: adoptTextIn 500ms ease-out 1200ms forwards;
}

.adoption-popup-timer-value {
  color: #ef4444;
  font-size: 15px;
}

/* Close / skip link */
.adoption-popup-skip {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 8px;
  opacity: 0;
  animation: adoptTextIn 400ms ease-out 3500ms forwards;
  transition: color 0.2s;
}

.adoption-popup-skip:hover {
  color: rgba(255, 255, 255, 0.45);
}

/* Floating particle dots in background */
.adoption-popup-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 24px;
}

.adoption-popup-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  animation: adoptParticleFloat var(--dur) ease-in-out var(--delay) infinite;
}

@keyframes adoptParticleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0);
  }
}

/* Closing animation */
.adoption-popup-overlay.is-closing {
  animation: adoptPopupOut 350ms ease-in forwards;
}

.adoption-popup-overlay.is-closing .adoption-popup-card {
  animation: adoptCardOut 300ms ease-in forwards;
}

@keyframes adoptPopupOut {
  to {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
  }
}

@keyframes adoptCardOut {
  to {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .adoption-popup-overlay,
  .adoption-popup-card,
  .adoption-popup-card::before,
  .adoption-popup-title,
  .adoption-popup-subtitle,
  .adoption-popup-photo-wrap,
  .adoption-popup-photo-wrap::after,
  .adoption-popup-paw,
  .adoption-popup-cta,
  .adoption-popup-cta::after,
  .adoption-popup-credits,
  .adoption-popup-timer,
  .adoption-popup-skip,
  .adoption-popup-particle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .adoption-popup-overlay {
    background: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }
}


/* --- Adoption Nudge Popup (IG landing) --- */
.dialog.adoptNudgeDialog{
  max-width: 380px;
  width: calc(100% - 24px);
  margin: 20px auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, #2a2f35 0%, #1b1c1d 100%);
}

.dialog.adoptNudgeDialog .dialogBody{
  padding: 18px 16px 16px 16px;
  background: transparent !important;
  overflow: hidden;
}

.dialogBg.adoptNudgeBg{
  animation: adoptBackdropIn .22s ease forwards;
  backdrop-filter: blur(3px);
}

@keyframes adoptBackdropIn{
  from { opacity: 0; }
  to { opacity: 1; }
}

.adoptNudge{
  position: relative;
  color: #fff;
  font-family: 'Lilita One','RateU Caron', cursive;
}

.adoptNudge .topRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.adoptNudge .closeBtn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  line-height: 1;
}

.adoptNudge .headline{
  font-size: 20px;
  letter-spacing: .5px;
  line-height: 1.15;
  margin-top: 4px;
}

.adoptNudge .subline{
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-top: 6px;
}

.adoptNudge .card{
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  animation: adoptCardIn .42s cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes adoptCardIn{
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.adoptNudge .photoWrap{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #111;
}

.adoptNudge .photoWrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
}

/* subtle shimmer sweep */
.adoptNudge .photoWrap:after{
  content:"";
  position:absolute;
  inset:-40% -60%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: rotate(12deg) translateX(-60%);
  animation: adoptShimmer 2.2s ease-in-out infinite;
  pointer-events:none;
}

@keyframes adoptShimmer{
  0%   { transform: rotate(12deg) translateX(-60%); opacity:.0; }
  15%  { opacity:.8; }
  45%  { opacity:.0; }
  100% { transform: rotate(12deg) translateX(60%); opacity:0; }
}

.adoptNudge .meta{
  padding: 12px 12px 10px 12px;
  background: rgba(0,0,0,.20);
}

.adoptNudge .bonus{
  font-family:'Rubik', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.90);
  margin-top: 8px;
  display:flex;
  gap:8px;
  align-items:flex-start;
}

.adoptNudge .timerRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 10px;
  gap: 10px;
}

.adoptNudge .timer{
  font-family:'Rubik', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* CTA */
.adoptNudge .cta{
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 16px;
  cursor:pointer;
  background: linear-gradient(45deg, hsl(37, 91%, 55%), hsl(340, 82%, 52%), hsl(280, 87%, 55%));
  color: #fff;
  box-shadow: 0 10px 30px rgba(233,30,99,.25);
  transform: translateZ(0);
  animation: adoptPulse 1.4s ease-in-out infinite;
}

@keyframes adoptPulse{
  0%,100% { transform: scale(1); filter: brightness(1); }
  50%     { transform: scale(1.02); filter: brightness(1.08); }
}

.adoptNudge .tiny{
  font-family:'Rubik', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  margin-top: 8px;
  text-align:center;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .adoptNudge .card,
  .adoptNudge .photoWrap:after,
  .adoptNudge .cta,
  .dialogBg.adoptNudgeBg{
    animation: none !important;
  }
}

/* ========== ADOPTION BOTTOM SHEET FOR GUEST VISITORS ========== */

/* Semi-transparent overlay — lets page content peek through */
.adoption-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 400ms ease-out;
  padding: 0 0 0 0;
}

.adoption-sheet-overlay.is-visible {
  background: rgba(0, 0, 0, 0.45);
}

/* Bottom sheet card */
.adoption-sheet {
  width: min(420px, 100%);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(170deg, #1e2228 0%, #13151a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 -10px 50px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(139, 92, 246, 0.06);
  padding: 16px 20px 20px;
  position: relative;
  overflow: hidden;
  transform: translateY(100%);
  animation: adoptSheetSlideUp 550ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes adoptSheetSlideUp {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

/* Drag handle */
.adoption-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 14px;
}

/* Main content row: photo on left, text on right */
.adoption-sheet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  animation: adoptSheetFadeIn 400ms ease-out 250ms forwards;
}

@keyframes adoptSheetFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Photo */
.adoption-sheet-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.adoption-sheet-photo {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Glow ring */
.adoption-sheet-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: conic-gradient(
    from 0deg,
    #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6, #8b5cf6
  );
  z-index: -1;
  opacity: 0;
  animation: adoptSheetGlowIn 600ms ease-out 600ms forwards,
             adoptSheetGlowSpin 3s linear 600ms infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2.5px;
}

@keyframes adoptSheetGlowIn { to { opacity: 0.6; } }
@keyframes adoptSheetGlowSpin { to { transform: rotate(360deg); } }

/* Paw badge on photo */
.adoption-sheet-paw-badge {	
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.9);
  display: grid;
  place-items: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
  opacity: 0;
  transform: scale(0.3);
  animation: adoptSheetPawPop 500ms cubic-bezier(0.16, 1, 0.3, 1) 800ms forwards;
  /*filter:brightness(0) invert(1);*/
  display:none;
}

@keyframes adoptSheetPawPop {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* Text block */
.adoption-sheet-text {
  flex: 1;
  min-width: 0;
}

.adoption-sheet-title {
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 19px;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.adoption-sheet-subtitle {
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin: 3px 0 0;
  line-height: 1.3;
}

.adoption-sheet-subtitle span{
	filter:brightness(0) invert(1);
}

/* CTA button — full width below the row */
.adoption-sheet-cta {
  display: block;
  width: 100%;
  padding: 13px 20px;
  margin-top: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  color: #fff;
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 17px;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
  opacity: 0;
  transform: translateY(8px);
  animation: adoptSheetFadeIn 400ms ease-out 400ms forwards,
             adoptSheetCtaPulse 2.5s ease-in-out 2000ms infinite;
  transition: transform 0.12s ease;
}

.adoption-sheet-cta:active {
  transform: scale(0.97) !important;
}

@keyframes adoptSheetCtaPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35), 0 0 0 0 rgba(139, 92, 246, 0.25); }
  50%      { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45), 0 0 0 7px rgba(139, 92, 246, 0); }
}

/* Button shimmer */
.adoption-sheet-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  animation: adoptSheetBtnShimmer 2.8s ease-in-out 1800ms infinite;
}

@keyframes adoptSheetBtnShimmer {
  0%  { left: -100%; }
  45% { left: 150%; }
  100%{ left: 150%; }
}

/* Bottom meta row: credits + timer */
.adoption-sheet-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  opacity: 0;
  animation: adoptSheetFadeIn 400ms ease-out 550ms forwards;
}

.adoption-sheet-credits {
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 21px;
  /*color: rgba(255, 255, 255, 0.45);*/
}

.adoption-sheet-credits span {
  color: #fbbf24;
}

.adoption-sheet-timer {
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.35);
}

.adoption-sheet-timer-value {
  color: #ef4444;
  font-size: 18px;
}

/* Close X */
.adoption-sheet-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
  opacity: 0;
  animation: adoptSheetFadeIn 300ms ease-out 2500ms forwards;
  z-index: 2;
}

.adoption-sheet-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

/* Closing animation */
.adoption-sheet-overlay.is-closing {
  background: rgba(0, 0, 0, 0) !important;
  transition: background 300ms ease-in;
}

.adoption-sheet-overlay.is-closing .adoption-sheet {
  animation: adoptSheetSlideDown 350ms ease-in forwards;
}

@keyframes adoptSheetSlideDown {
  to { transform: translateY(100%); }
}

/* Safe area for phones with home indicator */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .adoption-sheet {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .adoption-sheet,
  .adoption-sheet-row,
  .adoption-sheet-photo-wrap::after,
  .adoption-sheet-paw-badge,
  .adoption-sheet-cta,
  .adoption-sheet-cta::after,
  .adoption-sheet-meta,
  .adoption-sheet-close {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .adoption-sheet-overlay.is-visible {
    background: rgba(0, 0, 0, 0.45) !important;
  }
}


/*SHOW ADOPTER AFTER REGISTRATION*/

.adoptSuccessOverlay{
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px;
  background: rgba(0,0,0,0);
  transition: background 400ms ease-out;
  pointer-events: none;
}

.adoptSuccessOverlay.isVisible{
  background: rgba(0,0,0,.45);
  pointer-events: auto;
}

/* ===== Sheet ===== */
.adoptSuccessSheet{
  width: min(420px, 100%);
  border-radius: 24px 24px 24px 24px;
  background: linear-gradient(170deg, #1e2228 0%, #13151a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 -10px 50px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(139, 92, 246, 0.06);
  padding: 16px 20px 20px;
  position: relative;
  overflow: hidden;

  /* start off-screen */
  transform: translateY(110%);
  will-change: transform;
  backface-visibility: hidden;
}

/* When visible, slide to middle */
.adoptSuccessOverlay.isVisible .adoptSuccessSheet{
  animation: adoptSuccessSlideUpMid 550ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes adoptSuccessSlideUpMid{
  0%   { transform: translateY(110%); opacity: 1; }
  70%  { transform: translateY(-40vh); }
  100% { transform: translateY(-34vh); }
}

/* Closing */
.adoptSuccessOverlay.isClosing{
  background: rgba(0,0,0,0) !important;
  transition: background 300ms ease-in;
  pointer-events: none;
}

.adoptSuccessOverlay.isClosing .adoptSuccessSheet{
  animation: adoptSuccessSlideDownMid 350ms ease-in forwards;
}

@keyframes adoptSuccessSlideDownMid{
  from { transform: translateY(-34vh); }
  to   { transform: translateY(110%); }
}

/* Handle */
.adoptSuccessHandle{
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.15);
  margin: 0 auto 14px;
}

/* Content row */
.adoptSuccessRow{
  display:flex;
  align-items:center;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  animation: adoptSuccessFadeIn 400ms ease-out 250ms forwards;
}

@keyframes adoptSuccessFadeIn{
  to { opacity: 1; transform: translateY(0); }
}

/* Photo */
.adoptSuccessPhotoWrap{
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.adoptSuccessPhoto{
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  display:block;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}


/* Paw badge */
.adoptSuccessPaw{
  position:absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.9);
  display:grid;
  place-items:center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(139,92,246,.5);
  opacity: 0;
  transform: scale(.3);
  animation: adoptSuccessPawPop 500ms cubic-bezier(0.16, 1, 0.3, 1) 800ms forwards;
}

@keyframes adoptSuccessPawPop{
  0%   { opacity: 0; transform: scale(.3); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* Text */
.adoptSuccessText{ flex: 1; min-width: 0; }
.adoptSuccessTitle{
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 19px;
  color:#fff;
  line-height: 1.25;
}
.adoptSuccessSubtitle{
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 16px;
  color: rgba(255,255,255,.55);
  margin-top: 3px;
  line-height: 1.3;
}

/* Meta */
.adoptSuccessMeta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-top: 10px;
  opacity: 0;
  animation: adoptSuccessFadeIn 400ms ease-out 550ms forwards;
}
.adoptSuccessCredits{
  font-family:'Lilita One','RateU Caron', cursive;
  font-size: 21px;
}
.adoptSuccessCredits span{ color: #fbbf24; }

.adoptSuccessMetaRight{
  font-family:'Lilita One','RateU Caron', cursive;
  font-size: 18px;
  color: rgba(255,255,255,.35);
}

/* CTA */
.adoptSuccessCTA{
  display:block;
  width: 100%;
  padding: 13px 20px;
  margin-top: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  color: #fff;
  font-family: 'Lilita One','RateU Caron', cursive;
  font-size: 17px;
  letter-spacing: .3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(139,92,246,.35);

  opacity: 0;
  transform: translateY(8px);
  animation: adoptSuccessFadeIn 400ms ease-out 400ms forwards,
             adoptSuccessCtaPulse 2.5s ease-in-out 2000ms infinite;

  transition: transform .12s ease;
}
.adoptSuccessCTA:active{ transform: scale(.97) !important; }

@keyframes adoptSuccessCtaPulse{
  0%,100% { box-shadow: 0 4px 15px rgba(139,92,246,.35), 0 0 0 0 rgba(139,92,246,.25); }
  50%     { box-shadow: 0 4px 20px rgba(139,92,246,.45), 0 0 0 7px rgba(139,92,246,0); }
}

/* Shimmer */
.adoptSuccessCTA::after{
  content:'';
  position:absolute;
  top:0; left:-100%;
  width:60%;
  height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  animation: adoptSuccessBtnShimmer 2.8s ease-in-out 1800ms infinite;
}

@keyframes adoptSuccessBtnShimmer{
  0%  { left:-100%; }
  45% { left:150%; }
  100%{ left:150%; }
}

/* Close */
.adoptSuccessClose{
  position:absolute;
  top: 10px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border:none;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.35);
  font-size: 14px;
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: background .2s, color .2s;
  opacity: 0;
  animation: adoptSuccessFadeIn 300ms ease-out 1100ms forwards;
  z-index: 2;
}
.adoptSuccessClose:hover{
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
}

/* Safe-area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .adoptSuccessSheet{
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .adoptSuccessSheet,
  .adoptSuccessRow,
  .adoptSuccessPhotoWrap::after,
  .adoptSuccessPaw,
  .adoptSuccessCTA,
  .adoptSuccessCTA::after,
  .adoptSuccessMeta,
  .adoptSuccessClose{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .adoptSuccessOverlay.isVisible{
    background: rgba(0,0,0,.45) !important;
  }
}


/* ============================================================
   APPEND THIS TO THE END OF frontend/assets/css/main.css

   .unread-badge already exists (used for the numeric Likes count).
   This only adds the plain red dot used on the Messages nav item.
   ============================================================ */

/* Messages nav: dot only, no number */
.nav-dot {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(calc(50% + 12px));
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4757 0%, #ff0026 100%);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
    animation: navDotPulse 2s ease-in-out infinite;
    z-index: 10;
}

.nav-dot.hidden {
    display: none;
}

/* Generic-opener message nudge (shared by messages/thread and the swipe-page
   match popup - see showGenericMessageWarning() in main.js) */
.genericMsgWarning {
    flex: 0 0 100%;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0 0 4px;
    padding: 16px;
    border-radius: 20px;
    background: #f4e8ed;
    color: #35242c;
    font: 14px/1.5 'Rubik', sans-serif;
    text-align: left;
    animation: genericMsgNudgeShake 520ms ease-out 1;
}
@keyframes genericMsgNudgeShake {
    0%, 100% { transform: translateX(0); }
    12% { transform: translateX(-5px); }
    24% { transform: translateX(5px); }
    36% { transform: translateX(-4px); }
    48% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    72% { transform: translateX(3px); }
    84% { transform: translateX(-1.5px); }
    92% { transform: translateX(1.5px); }
}
@media (prefers-reduced-motion: reduce) {
    .genericMsgWarning { animation: none; }
}
.genericMsgWarning .genericMsgTitle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    color: inherit;
    font: 500 14px/1.45 'Rubik', sans-serif;
}
.genericMsgMark {
    display: grid;
    place-items: center;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    box-sizing: border-box;
    margin-top: 1px;
    border: 1px solid #9a526c;
    border-radius: 50%;
    color: #7a2946;
    font-size: 12px;
}
.genericMsgWarning .genericMsgHint,
.genericMsgWarning .genericMsgBio {
    margin: 0 0 12px;
    color: #705b63;
    font: 400 13px/1.5 'Rubik', sans-serif;
    overflow-wrap: anywhere;
}
.genericMsgWarning .genericMsgBio { color: #35242c; }
.genericMsgTags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 15px;
}
.genericMsgTag {
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid #e3cbd4;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.genericMsgActions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.genericMsgWarning .genericMsgActions button {
    flex: 0 1 auto;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: none;
    font: 500 13px/1.5 'Rubik', sans-serif;
    white-space: normal;
    cursor: pointer;
}
.genericMsgWarning .genericMsgFix {
    background: var(--rateu-chat-action, #7a2946);
    color: #fff;
}
.genericMsgWarning .genericMsgActions .genericMsgSendAnyway {
    padding-inline: 0;
    background: transparent;
    color: #4f3942;
    font-size: 14px;
    font-weight: 400;
}
.genericMsgWarning button:focus-visible {
    outline: 2px solid var(--rateu-chat-action, #7a2946);
    outline-offset: 3px;
}
.match-popup-card .genericMsgWarning { margin-bottom: 12px; }
.rateu-chat .genericMsgWarning { margin: 0; }
@media (hover: hover) {
    .genericMsgWarning .genericMsgFix:hover { background: #652039; }
    .genericMsgWarning .genericMsgSendAnyway:hover { text-decoration: underline; }
}

@keyframes navDotPulse {
    0%, 100% {
        transform: translateX(calc(50% + 12px)) scale(1);
    }
    50% {
        transform: translateX(calc(50% + 12px)) scale(1.25);
    }
}

/* ===========================================================================
   RateU 2026 interface refresh
   Warm, editorial surfaces with one compact hard-shadow action language.
   Kept at the end of the legacy stylesheet so existing feature CSS remains
   intact while the main product surfaces share one predictable system.
   ========================================================================== */
:root {
    color-scheme: light;
    --rateu-bg: #f7f3ec;
    --rateu-surface: #ffffff;
    --rateu-ink: #191919;
    --rateu-muted: #77736d;
    --rateu-line: #ded9d1;
    --rateu-accent: #ca2124;
    --rateu-chat-action: #7a2946;
    --rateu-soft-accent: #ffd0c8;
    --rateu-radius-sm: 12px;
    --rateu-radius-md: 18px;
    --rateu-radius-lg: 24px;
    --rateu-shadow-hard: 4px 4px 0 var(--rateu-accent);
    --rateu-swipe-photo-height: 640px;
    --accent: var(--rateu-accent);
    --dark: var(--rateu-ink);
    --menu-height: 76px;
    --sectionHeader-height: 52px;
}

body {
    background: var(--rateu-bg);
    color: var(--rateu-ink);
    font-family: 'Rubik', ui-sans-serif, system-ui, sans-serif;
}

button,
input,
select,
textarea {
    font-family: 'Rubik', ui-sans-serif, system-ui, sans-serif;
}

#wrap {
    width: min(430px, 100%);
    max-height: 788px;
    padding: 12px 10px 0;
    background: var(--rateu-bg);
    box-shadow: none;
}

#sectionBody {
    color: var(--rateu-ink);
    overflow: hidden;
}

.page-header,
#sectionHeader.page-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 46px;
    margin: 0 0 12px;
    gap: 10px;
    color: var(--rateu-ink);
}

.page-header h1,
#sectionHeader.page-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--rateu-ink);
    font-family: 'Lilita One','RateU Caron', 'Rubik', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.page-count {
    display: inline-grid;
    min-width: 38px;
    height: 32px;
    box-sizing: border-box;
    place-items: center;
    padding: 0 10px;
    border: 2px solid var(--rateu-ink);
    border-radius: 999px;
    background: var(--rateu-surface);
    color: var(--rateu-ink);
    font-size: 13px;
    font-weight: 800;
}

#sectionHeader.page-header h1 > [data-i18n] {
    font: inherit;
    color: inherit;
}

#sectionHeader .filter-button {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-color: var(--rateu-ink);
    border-radius: 50%;
    background: var(--rateu-surface);
    color: var(--rateu-ink);
    box-shadow: 3px 3px 0 var(--rateu-ink);
    cursor: pointer;
}

#sectionHeader .filter-button:active {
    transform: translate(3px, 3px);
    translate: 0 0;
    box-shadow: none;
}

#sectionHeader .boost-button {
    min-height: 38px;
    margin-left: auto;
    margin-right: 4px;
    padding: 8px 16px;
    border-color: var(--rateu-ink);
    background: var(--rateu-ink);
    box-shadow: var(--rateu-shadow-hard);
}

#sectionHeader .boost-button svg {
    fill: var(--rateu-accent);
}

#sectionHeader .boost-button span {
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 900;
}

.location-banner {
    border-color: var(--rateu-line);
    background: var(--rateu-surface);
    box-shadow: 3px 3px 0 rgba(25, 25, 25, .14);
}

/* Bottom navigation */
#menu {
    position: relative;
    min-height: var(--menu-height);
    box-sizing: border-box;
    margin: 0 -10px;
    padding: 9px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 0;
    background: rgba(247, 243, 236, .98);
}

#menu .nav-item {
    position: relative;
    flex: 1 1 25%;
    min-width: 0;
    min-height: 52px;
    box-sizing: border-box;
    justify-content: center;
    gap: 5px;
    padding: 5px 2px 8px;
    color: #514d48;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
}

#menu .nav-item svg,
#menu .nav-icon {
    width: 23px;
    height: 23px;
    margin: 0;
}

#menu .nav-item.active,
#swipe #menu .nav-item:nth-child(1),
#likes #menu .nav-item:nth-child(2),
#messages #menu .nav-item:nth-child(3),
#myProfile #menu .nav-item:nth-child(4) {
    color: var(--rateu-ink);
    font-weight: 800;
}

#menu .nav-item.active::after,
#swipe #menu .nav-item:nth-child(1)::after,
#likes #menu .nav-item:nth-child(2)::after,
#messages #menu .nav-item:nth-child(3)::after,
#myProfile #menu .nav-item:nth-child(4)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: var(--rateu-accent);
    transform: translateX(-50%);
}

.unread-badge {
    background: var(--rateu-accent);
    box-shadow: 0 2px 8px rgba(255, 81, 85, .28);
}

.nav-dot {
    background: var(--rateu-accent);
}

/* Swipe card: the first viewport is photo-only; profile details follow below. */
#cards {
    min-height: 0;
    max-height: var(--rateu-swipe-photo-height);
}

:not(.dialogBody) > .swipeWrap {
    max-height: var(--rateu-swipe-photo-height);
    border: 1px solid rgba(25, 25, 25, .55);
    border-radius: 20px;
    background: var(--rateu-surface);
    box-shadow: none;
}

.photoViewer img {
    min-height: 0;
}

/* Profile popups open on a single photo viewport. The card owns the scroll;
   the dialog stays still, so its close button remains available below. */
.dialog:has(> .dialogBody > .profile-detail-card) {
    --profile-popup-height: min(var(--rateu-swipe-photo-height, 640px), calc(100dvh - 64px));
    height: var(--profile-popup-height);
    max-height: calc(100dvh - 64px);
    margin: 32px auto;
    overflow: hidden;
}
.dialog:has(> .dialogBody > .profile-detail-card) > .dialogBody {
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
.dialogBody > .profile-detail-card {
    position: relative;
    height: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
}
.dialogBody > .profile-detail-card > .mainPhotoWrap {
    position: relative;
    height: var(--profile-popup-height);
    min-height: var(--profile-popup-height);
    max-height: none;
}
.dialogBody > .profile-detail-card > .mainPhotoWrap > img {
    height: 100% !important;
    min-height: 0;
    width: 100%;
    object-fit: cover;
}
/* Keep preview names/locations readable on pale photos, with a separate
   bottom row for the photo viewer and scroll-to-details controls. */
.profile-detail-card > .mainPhotoWrap::after {
    content: '';
    position: absolute;
    inset: 50% 0 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .28) 48%, transparent);
    pointer-events: none;
}
.profile-detail-card .profile-info {
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.profile-detail-card .profile-info.noBottom { bottom: 60px; }
.profile-popup-more { padding: 0; border: 0; background: transparent; z-index: 2; }
.profile-popup-more > svg { display: block; width: 100%; height: 100%; }

/* Full-screen profile photos sit outside the app shell and retain their
   original aspect ratio. These rules do not change discovery card dimensions. */
.mainPhotoWrap:has(> .profile-photo-expand) { position: relative; }
/* The thumbnail belongs to this exact slide; original pixels fade in only
   after loading/decoding. Neither loading failures nor missing thumbs expose
   the browser's broken-image icon or change the existing card dimensions. */
.mainPhotoWrap[data-photo-state]{position:relative;background:#efe8dd}
.mainPhotoWrap[data-photo-state] > .profile-photo-placeholder{position:absolute;inset:0;z-index:0;display:block;overflow:hidden;border-radius:inherit;background:#efe8dd;pointer-events:none;opacity:1;transition:opacity .22s ease}
.mainPhotoWrap[data-photo-state] .profile-photo-thumbnail{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;filter:blur(14px);transform:scale(1.08);opacity:0;transition:opacity .15s ease}
.mainPhotoWrap[data-thumbnail-ready="true"] .profile-photo-thumbnail{opacity:1}
.mainPhotoWrap[data-photo-state="error"][data-thumbnail-ready="true"] .profile-photo-thumbnail{filter:none;transform:none}
.mainPhotoWrap[data-photo-state] > img.mainPhoto{position:relative;z-index:0;opacity:0;transition:opacity .22s ease}
.mainPhotoWrap[data-photo-state="ready"] > img.mainPhoto{opacity:1}
.mainPhotoWrap[data-photo-transition="direct"] > img.mainPhoto{transition:none}
.mainPhotoWrap[data-photo-state="ready"] > .profile-photo-placeholder{opacity:0}
.mainPhotoWrap[data-photo-state] > .gradient-topoverlay{z-index:1;pointer-events:none}
.mainPhotoWrap[data-photo-state]:not([data-photo-state="ready"]):not([data-thumbnail-ready="true"]) > .gradient-topoverlay{opacity:0}
.dialog:has(.mainPhotoWrap[data-photo-state]:not([data-photo-state="ready"]):not([data-thumbnail-ready="true"])) > .dialogClose{color:#20201d;text-shadow:none}
.mainPhotoWrap[data-photo-state]:not([data-photo-state="ready"]):not([data-thumbnail-ready="true"]) .story-bar{background:rgba(73,53,43,.2)}
.mainPhotoWrap[data-photo-state]:not([data-photo-state="ready"]):not([data-thumbnail-ready="true"]) .story-bar.active{background:#6b584b}
.mainPhotoWrap[data-photo-state]:not([data-photo-state="ready"]):not([data-thumbnail-ready="true"])::after,
#cards > .swipeWrap > .mainPhotoWrap[data-photo-state]:not([data-photo-state="ready"]):not([data-thumbnail-ready="true"])::after{background:linear-gradient(to top,rgba(73,53,43,.78),rgba(73,53,43,.15) 60%,transparent)}
@media(prefers-reduced-motion:reduce){.mainPhotoWrap[data-photo-state] > img.mainPhoto,.mainPhotoWrap[data-photo-state] > .profile-photo-placeholder,.mainPhotoWrap[data-photo-state] .profile-photo-thumbnail{transition:none}}
.profile-photo-expand {
    position: absolute;
    bottom: 9px;
    left: 8px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.profile-photo-expand > svg { position: relative; width: 20px; height: 20px; }
.profile-preview-edit {
    position: absolute;
    bottom: 9px;
    left: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    transform: translateX(-50%);
    border: 1px solid rgba(25, 25, 25, .12);
    border-radius: 50%;
    background: var(--rateu-bg, #f7f3ec);
    color: var(--rateu-ink, #191919);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .24);
    text-decoration: none;
}
.profile-preview-edit:hover { color: var(--rateu-ink, #191919); text-decoration: none; }
.profile-preview-edit > svg { width: 22px; height: 22px; }
.profile-preview-edit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dialogBg:has(> .profile-photo-dialog) { padding: 0; background: #000; }
.dialog.profile-photo-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    box-shadow: none;
    transform: none;
}
.dialogBg > .dialog.profile-photo-dialog > .dialogBody {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    border-radius: 0;
}
.dialog.profile-photo-dialog > .dialogClose {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    left: calc(env(safe-area-inset-left, 0px) + 12px);
    right: auto;
    z-index: 3;
    color: #fff;
}
.profile-photo-lightbox {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #000;
    color: #fff;
}
.profile-photo-lightbox-header {
    box-sizing: border-box;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    padding: calc(8px + env(safe-area-inset-top, 0px)) 68px 8px;
}
.profile-photo-counter { font: 500 16px/1.4 'Rubik', sans-serif; text-align: center; }
.profile-photo-stage {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    touch-action: pan-y pinch-zoom;
}
.profile-photo-full-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #000;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.profile-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    cursor: pointer;
}
.profile-photo-nav > svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-photo-previous { left: calc(10px + env(safe-area-inset-left, 0px)); }
.profile-photo-next { right: calc(10px + env(safe-area-inset-right, 0px)); }
.profile-photo-nav[hidden], .profile-photo-load-error[hidden] { display: none; }
.profile-photo-load-error { position: absolute; left: 20%; right: 20%; top: 45%; margin: 0; padding: 12px; background: #000; color: #fff; font: 400 14px/1.5 'Rubik', sans-serif; text-align: center; }
.profile-photo-expand:focus-visible, .profile-photo-dialog button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.gradient-overlay {
    height: 44%;
    background: linear-gradient(to top, rgba(12, 12, 12, .92), rgba(12, 12, 12, .2) 60%, transparent);
}

.story-bars {
    top: 10px;
    left: 12px;
    right: 12px;
    height: 4px;
    gap: 6px;
}

/* A detector score belongs to the displayed photo, not the person's identity.
   Reserve the left-hand 44px Close target in profile popups. */
.photo-ai { position:absolute; top:28px; left:12px; right:64px; height:24px; z-index:6; pointer-events:none; text-shadow:none; text-align:left; }
.photo-ai[hidden], .photo-ai-popover[hidden] { display:none!important; }
.photo-ai-badge { display:inline-flex; align-items:center; gap:5px; width:auto; max-width:100%; min-height:24px; margin:0; padding:3px 8px; border:1px solid rgba(255,255,255,.65); border-radius:999px; background:rgba(24,24,24,.48); color:#fff; font:500 11px/16px 'Rubik',sans-serif; cursor:pointer; pointer-events:auto; appearance:none; vertical-align:top; }
.photo-ai-badge > svg { flex:0 0 14px; width:14px; height:14px; }
.photo-ai-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.photo-ai-badge:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.photo-ai-popover { box-sizing:border-box; position:absolute; top:calc(100% + 16px); left:0; width:min(276px,calc(100vw - 40px)); max-width:calc(100% + 52px); margin:0; padding:16px; border:1px solid rgba(25,25,25,.1); border-radius:16px; background:#faf6ef; color:#242424; box-shadow:0 8px 28px rgba(0,0,0,.22); font:400 12px/1.4 'Rubik',sans-serif; text-shadow:none; pointer-events:auto; cursor:auto; }
.photo-ai-popover::before { content:''; position:absolute; top:-7px; left:18px; width:12px; height:12px; transform:rotate(45deg); background:#faf6ef; }
.photo-ai-popover p { margin:0; color:inherit; font:inherit; }
.photo-ai-popover .photo-ai-title { padding-right:28px; margin-bottom:4px; font-size:13px; }
.photo-ai-score { display:block; font:600 27px/1.2 'Rubik',sans-serif; }
.photo-ai-close { position:absolute; top:5px; right:5px; display:flex; align-items:center; justify-content:center; width:34px; height:34px; margin:0; padding:0; border:0; border-radius:50%; background:transparent; color:#242424; cursor:pointer; }
.photo-ai-close:focus-visible { outline:2px solid #242424; outline-offset:-3px; }
.photo-ai-meter { height:12px; margin:12px 0; overflow:hidden; border-radius:99px; background:#e8e3db; }
.photo-ai-meter > span { display:block; height:100%; min-width:3px; max-width:100%; border-radius:inherit; background:#809b7a; }
.photo-ai[data-ai-level="elevated"] .photo-ai-meter > span { background:#ba874c; }
.photo-ai-popover .photo-ai-note { margin-top:3px; }
.photo-ai-popover .photo-ai-limits { margin-top:6px; }
.dialog:has(.swipeWrap.card) .photo-ai { left:64px; }
.dialog:has(.swipeWrap.card) .photo-ai-popover { left:-52px; max-width:calc(100% + 104px); }
.dialog:has(.swipeWrap.card) .photo-ai-popover::before { left:70px; }

.story-bar,
.story-bar-fill {
    border: 0;
}

.profile-info {
    bottom: 104px;
    padding: 18px;
}

.profile-info.noBottom {
    bottom: 12px;
}

.profile-name {
    gap: 6px;
    margin-bottom: 6px;
}

.name-age {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.name-age span {
    color: #ffd84f;
}

.verified-badge {
    flex: 0 0 20px;
    align-self: center;
    transform: translateY(-1px);
}

.verified-badge svg {
    display: block;
    width: 18px;
    height: 18px;
}

.no-ons-badge {
    flex: 0 0 auto;
    align-self: center;
    margin-left: 2px;
}

.profile-info .distance {
    margin-bottom: 9px;
    font-size: 13px;
}

.photo-bio {
    max-width: 94%;
    margin-bottom: 12px;
    font-size: 13px;
}

.interest-tag {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .58);
    background: rgba(20, 20, 20, .35);
    font-size: 12px;
}

.action-buttons button {
    width: 62px;
    height: 62px;
    padding: 0;
    border: 1px solid rgba(25, 25, 25, .08);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.action-buttons button:last-child svg {
    fill: var(--rateu-accent);
    stroke: var(--rateu-accent);
}

/* Discovery refinement: keep the existing photo/card heights and top controls. */
#cards > .swipeWrap > .mainPhotoWrap {
    position: relative;
    height: 100%;
    min-height: 0;
    max-height: none;
}

#cards > .swipeWrap > .mainPhotoWrap > img {
    height: 100% !important;
    min-height: 0;
    object-fit: cover;
}

#cards > .swipeWrap > .mainPhotoWrap::after {
    content: '';
    position: absolute;
    inset: 36% 0 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .5) 48%, transparent);
    pointer-events: none;
}

#cards > .swipeWrap .profile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    bottom: 106px;
    padding: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

#cards > .swipeWrap .profile-info.noBottom {
    bottom: 12px;
}

/* Each photo ends its visible information at the same baseline. Extra text
   or wrapped tags grow upward instead of reserving space below the content. */
#cards > .swipeWrap .profile-info .profile-name,
#cards > .swipeWrap .profile-info .distance {
    margin-bottom: 0;
}

#cards > .swipeWrap .profile-info .interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

#cards > .swipeWrap .profile-info .interest-tag {
    margin: 0;
}

#cards > .swipeWrap .name-age {
    font-family: 'Lilita One', 'RateU Caron', cursive;
    font-size: 27px;
    font-weight: normal;
    letter-spacing: 0;
    text-shadow: none;
}

#cards > .swipeWrap .photo-bio {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: none;
}

#cards > .swipeWrap > .action-buttons {
    z-index: 3;
    justify-content: center;
    gap: 46px;
    padding: 0;
}

#cards > .swipeWrap > .action-buttons > button {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: var(--rateu-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

#cards > .swipeWrap > .action-buttons > button:last-child {
    width: 68px;
    height: 68px;
}

#cards > .swipeWrap > .action-buttons > button > svg {
    width: 27px;
    height: 27px;
}

#cards > .swipeWrap > .showMore {
    z-index: 3;
}

#sectionHeader .profile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 3px;
}

.page-icon-button {
    display: inline-flex;
    width: 31px;
    height: 31px;
    box-sizing: border-box;
    padding: 6px;
    border: 2px solid oklch(18% 0.02 50);
    border-radius: 16px;
    background-color: oklch(99% 0.005 60);
    color: oklch(18% 0.02 50);
    box-shadow: 2px 2px 0 0 oklch(18% 0.02 50);
    align-items: center;
    justify-content: center;
    transition:
        transform 150ms cubic-bezier(0.4, 0, 0.2, 1),
        translate 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.page-icon-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.page-icon-button:active {
    translate: 2px 2px;
}

/* Own-profile header actions match the discovery filter button. */
#sectionHeader.profile-page-header .page-icon-button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 1px solid var(--rateu-line);
    border-radius: 50%;
    background: #fff;
    color: var(--rateu-ink);
    box-shadow: none;
}

#sectionHeader.profile-page-header .page-icon-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.7;
}

#sectionHeader.profile-page-header .page-icon-button:active {
    translate: 0 0;
    transform: none;
    box-shadow: none;
}

/* Likes */
.likesPage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    color: var(--rateu-ink);
}

.likesHeader {
    flex: 0 0 auto;
    padding: 0 2px;
}

.likesUnlock {
    flex: 0 0 auto;
    margin: 4px 2px 18px;
    padding: 20px 18px;
    border: 1px solid #e7d8a3;
    border-radius: var(--rateu-radius-lg);
    background: #fff9e4;
    text-align: center;
    box-shadow: 5px 6px 0 rgba(25, 25, 25, .12);
}

.likesUnlockIcon { font-size: 38px; }
.likesUnlock h2 { margin: 8px 0; font-size: 20px; font-weight: 800; }
.likesUnlock p { max-width: 315px; margin: 0 auto 15px; color: #68645f; font-size: 13px; line-height: 1.5; }
.likesUnlockMeta { margin-top: 12px !important; color: #776320 !important; font-size: 11px !important; }

.likesUnlockBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 2px solid var(--rateu-ink);
    border-radius: 999px;
    background: #f7d151;
    color: var(--rateu-ink);
    box-shadow: 4px 5px 0 var(--rateu-ink);
    text-decoration: none;
    font-weight: 800;
}

.likesGrid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Don't shrink row tracks below their cards' intrinsic aspect ratio. */
    grid-auto-rows: max-content;
    align-items: start;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(25, 25, 25, .06);
    border-radius: 22px;
    background: #fff;
}

.likesCard {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    background: linear-gradient(145deg, #c7c2bb, #ebe7e1);
    color: #fff;
    box-shadow: 0 6px 16px rgba(25, 25, 25, .08);
}

.likesCard.placeholder::before {
    content: '?';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 48px;
    font-weight: 800;
}

.likesCard.placeholder { filter: blur(3px); cursor: pointer; }
.likesCard img { width: 100%; height: 100%; object-fit: cover; }
.likesOverlay { position: absolute; inset: auto 0 0; padding: 42px 11px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); color: #fff; }
.likesName { display: block; overflow: hidden; font-size: 14px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; }
.likesLocation { display: block; overflow: hidden; margin-top: 5px; color: rgba(255, 255, 255, .9); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.likesEmpty { grid-column: 1 / -1; padding: 42px 18px; color: var(--rateu-muted); font-size: 14px; line-height: 1.5; text-align: center; }

/* Messages list */
#messages #sectionBody {
    height: auto;
    overflow: hidden;
}

.messagesPage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.messagesHeader { flex: 0 0 auto; }
.matchesSection { flex: 0 0 auto; margin-bottom: 10px; }
.matchesSection h2,
.messages-list-header h2 { margin: 0 0 9px; color: var(--rateu-ink); font-size: 16px; font-weight: 700; }
.matchesEmpty { margin: 0; padding: 6px 0 14px; color: var(--rateu-muted); font-size: 13px; line-height: 1.5; }
.matchesEmpty p { margin: 0 0 12px; }
.matchesEmptyAction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 18px;
    border: 2px solid var(--rateu-ink);
    border-radius: 999px;
    background: var(--rateu-ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--rateu-accent);
    font-weight: 700;
    text-decoration: none;
}
.matchesEmptyAction:hover { color: #fff; }
.matchesEmptyAction:focus-visible { outline: 2px solid #6b6862; outline-offset: 4px; }
.matchesEmptyAction:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--rateu-accent); }

.matches {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 58px;
    overflow-x: auto;
    overflow-y: hidden;
}

.matches li { flex: 0 0 auto; display: block; }
.matches a { display: block; }
.matches img {
    display: block;
    width: 48px;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--rateu-line);
}

.matches:has(.matches-count) {
    align-items: flex-start;
    height: 86px;
    box-sizing: border-box;
    padding: 4px 2px;
}

.matches:has(.matches-count) li:not(.matches-count) { padding-top: 2px; }

.matches .matches-likes-link {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 64px;
    color: var(--rateu-ink);
    text-decoration: none;
}

.matches-likes-preview {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    place-items: center;
    border: 2px solid var(--rateu-accent);
    border-radius: 50%;
    background: linear-gradient(145deg, #d5d0c9, #f0ece6);
    color: #a49a90;
    box-shadow: inset 0 0 0 2px var(--rateu-bg);
}

.matches-likes-preview > svg { width: 25px; height: 25px; }

.matches-likes-preview > .matches-likes-photo {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 2px solid var(--rateu-bg);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
}

.matches-likes-count {
    position: absolute;
    right: -4px;
    bottom: -3px;
    display: flex;
    min-width: 31px;
    height: 22px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--rateu-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: pre;
}

.matches-likes-label { font-size: 12px; font-weight: 500; line-height: 16px; }

.messages-list-header { flex: 0 0 auto; }
.threads-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 4px 14px;
    border: 1px solid rgba(25, 25, 25, .06);
    border-radius: 22px;
    background: #fff;
}

.threads-list .thread {
    min-height: 70px;
    box-sizing: border-box;
    padding: 10px 0;
    border-bottom: 1px solid #ebe7e1;
}

.threads-list .thread:last-child { border-bottom: 0; }
.threads-list .threadImg { margin-right: 12px; }
.threads-list .threadImg img { width: 52px; height: 52px; }
.threads-list .threadMsg { min-width: 0; }
.threads-list .thread-title-row { display: flex; align-items: baseline; gap: 8px; }
.threads-list .thread-title-row p { min-width: 0; overflow: hidden; color: var(--rateu-ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.threads-list .thread-meta { display:flex; flex:0 0 auto; flex-direction:column; align-items:flex-end; justify-content:center; gap:7px; margin-left:12px; }
.threads-list .thread-meta time,
.thread-meta .thread-time { color:#9a958f; font:400 11px/1.5 'Rubik',sans-serif; white-space:nowrap; }
.threads-list .thread-meta .thread-unread-badge { box-sizing:border-box; min-width:25px; height:21px; margin:0; padding:0 7px; border-radius:999px; line-height:21px; }
.threads-list .truncate-text { margin-top: 5px; color: #8b8680; font-size: 13px; line-height: 1.25; }
.threads-list .thread-unread .truncate-text { color: #4d4945; font-weight: 600; }
.thread-unread-badge { background: var(--rateu-accent); }
.messagesEmpty { padding: 45px 20px; color: var(--rateu-muted); font-size: 13px; line-height: 1.5; text-align: center; }

/* Full-screen dialog surfaces */
.dialogBg.fullScr .dialogBody {
    background: var(--rateu-bg);
    color: var(--rateu-ink);
}

.dialogBody:has(.rateu-chat) {
    overflow: hidden;
}

.rateu-chat {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    background: #f8f6f2;
    color: var(--rateu-ink);
    font-weight: 400;
}

/* Dialog bodies have their own horizontal padding; let the conversation use
   that space without making the direct /messages/thread view wider than the app. */
.dialogBody .rateu-chat {
    width: calc(100% + 50px);
    margin-right: -25px;
    margin-left: -25px;
}

.rateu-chat .chat-header {
    flex: 0 0 62px;
    min-height: 62px;
    height: 62px;
    margin: 0;
    padding: 7px 12px;
    border-bottom: 1px solid var(--rateu-line);
    background: #fff;
    color: var(--rateu-ink);
}

.rateu-chat .backBtn {
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rateu-ink);
}

.rateu-chat .user-info { gap: 9px; margin-left: 0; }
.rateu-chat .avatar { width: 38px; height: 38px; }
.rateu-chat .username { color: var(--rateu-ink); font-size: 13px; font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rateu-chat .avatar { flex-shrink: 0; }
.rateu-chat .chat-actions { gap: 0; }
.rateu-chat .report-lie-btn,
.rateu-chat .report-abuse-btn { width: 34px; height: 34px; box-sizing: border-box; justify-content: center; padding: 6px; color: var(--rateu-ink); }
.rateu-chat .report-lie-btn span,
.rateu-chat .report-abuse-btn span,
.rateu-chat .moreLabel { display: none; }

.rateu-chat .no-sex-btn {
    display: flex;
    width: 42px;
    flex: 0 0 42px;
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rateu-ink);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.rateu-chat .no-sex-btn .no-sex-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 20px;
    padding: 1px 5px;
    border: 1px solid currentColor;
    border-radius: 3px;
    color: inherit;
    font: 700 7px/8px Verdana, sans-serif;
    letter-spacing: .05px;
    white-space: nowrap;
}
.rateu-chat .no-sex-btn .no-sex-icon > span { display: block; }
.rateu-chat .chatNoSexStatus { display:block; flex:0 0 auto; box-sizing:border-box; min-height:44px; padding:12px 14px; border-bottom:1px solid #e7e6de; text-align:center; font-size:12px; line-height:1.5; color:#5b5851; background:#fff; text-decoration:none; }
.rateu-chat .chatNoSexStatus strong { color:#33332f; font-weight:500; }
.rateu-chat .chatNoSexStatus[hidden] { display:none; }
.rateu-chat .chat-header .moreOptions { width: 32px; min-width: 32px; margin-left: 0; }
.rateu-chat .chat-header .moreIcon { color: var(--rateu-ink); }

.rateu-chat #thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 14px 24px;
    background: #f8f6f2;
}
.rateu-chat #thread:has(.chatEmpty) { display:flex; flex-direction:column; padding:14px 14px 24px; }

.rateu-chat #thread .threadMsg {
    max-width: 78%;
    box-sizing: border-box;
    padding: 11px 14px;
    margin: 2px 0;
    border: 0;
    border-radius: 18px;
    color: var(--rateu-ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: none;
}

.rateu-chat #thread .myMsg { background: #f3e1e6; color: #5c2838; border-bottom-right-radius: 5px; }
.rateu-chat #thread .otrUsrMsg {
    position: relative;
    overflow: visible;
    background: #fff;
    color: var(--rateu-ink);
    border-bottom-left-radius: 5px;
}
.rateu-chat #thread .myMsg + .myMsg { border-top-right-radius: 7px; }
.rateu-chat #thread .otrUsrMsg + .otrUsrMsg { border-top-left-radius: 7px; }
.rateu-chat .msgDate { display: block; margin: 18px 0 12px; color: #999; font-size: 11px; font-weight: 400; text-align: center; }
.rateu-chat .msgDate::before,
.rateu-chat .msgDate::after { display: none; }

.rateu-chat .threadSystemMsg {
    display: flex;
    max-width: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 20px auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d8d8d;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    box-shadow: none;
}

.rateu-chat .threadSystemIcon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #d34045;
    stroke-width: 1.7;
}

.rateu-chat .threadSystemMsgLink { display: inline; margin: 0; color: #c4363c; font-size: inherit; font-weight: 400; text-decoration: none; }

.rateu-chat .messageInputWrapper {
    position: sticky;
    flex: 0 0 auto;
    bottom: 0;
    width: auto;
    margin: 0;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    background: #fff;
    gap: 8px;
    flex-wrap: wrap;
}

.messageComposeError {
    margin: 0 0 8px;
    color: #a93832;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}
.messageComposeError[hidden] { display: none; }
.rateu-chat .messageComposeError { flex: 0 0 100%; margin: 0; }
.rateu-chat #message[aria-invalid="true"],
.match-popup-card .match-textarea[aria-invalid="true"] { border-color: #a93832; }

.rateu-chat #message {
    min-width: 0;
    height: 44px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1px solid #d1d1d1;
    border-radius: 999px;
    background: #f8f6f2;
    color: var(--rateu-ink);
    font-size: 16px;
    font-weight: 400;
}

.rateu-chat #message:focus { border-color: #8f8f8f; box-shadow: none; }
.rateu-chat .messageInputWrapper[hidden],
.rateu-chat .chatVerificationAction[hidden] { display: none !important; }
.chatVerificationAction {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 12px 16px;
    border-top: 1px solid var(--rateu-line, #ded9d1);
    background: var(--rateu-bg, #f7f3ec);
    color: var(--rateu-ink, #191919);
    font-size: 13px;
    line-height: 1.5;
}
.chatVerificationAction > a { display: block; padding: 10px 16px; border: 2px solid currentColor; border-radius: 999px; color: inherit; font-weight: 700; text-align: center; text-decoration: none; }
.rateu-chat.is-report-selecting .chatVerificationAction { display: none; }
.verification-reasons ul { margin: 8px 0; padding-left: 20px; }
.verification-reasons > a { color: var(--rateu-ink); text-decoration: underline; }
.verification-reasons { margin-bottom: 16px; padding: 14px; border: 1px solid var(--rateu-line, #ded9d1); border-radius: 14px; background: var(--rateu-surface, #fff); font-size: 13px; line-height: 1.5; }
.verification-explanation { margin:0 0 18px; }
.verification-explanation > summary { display:flex; align-items:center; min-height:40px; width:fit-content; list-style:none; color:var(--rateu-ink,#191919); font-size:13px; font-weight:500; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.verification-explanation > summary::-webkit-details-marker { display:none; }
.verification-explanation[open] > summary { margin-bottom:10px; }
.verification-panel .verification-reasons p { margin-bottom: 0; font-size: 13px; }
.rateu-chat #sendMsg {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--rateu-chat-action, #7a2946);
    color: #fff;
    box-shadow: none;
    font-weight: 400;
}

.rateu-chat #sendMsg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rateu-chat #sendMsg:active { transform: scale(.95); }
.rateu-chat .chatVerificationCard {
    display:grid;
    grid-template-columns:18px minmax(0,1fr);
    align-items:start;
    gap:10px;
    flex:0 0 auto;
    margin:0 0 14px;
    padding:14px;
    border:0;
    border-radius:16px;
    background:#f0ece1;
    color:#666655;
    font:400 12px/1.6 'Rubik', sans-serif;
    text-decoration:none;
}
.rateu-chat .chatVerificationCard strong { font-weight:600; color:#303128; }
.chatVerificationIcon, .chatVerificationArrow { fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.chatVerificationIcon { width:16px; height:16px; margin-top:2px; color:#717562; }
.chatVerificationArrow { display:inline-block; width:13px; height:13px; margin-left:2px; vertical-align:-2px; color:#414538; }

/* Message report picker. The lightweight link is attached only to the latest
   incoming message (or to the incoming message the user just tapped). */
.rateu-chat .messageReportTrigger {
    position: absolute;
    top: 100%;
    left: 2px;
    display: inline-flex;
    width: max-content;
    white-space: nowrap;
    align-items: center;
    gap: 4px;
    padding: 5px 0 2px;
    border: 0;
    background: transparent;
    color: #68635e;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    text-decoration: underline;
}

.rateu-chat .messageReportTrigger svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    fill: currentColor;
}

.rateu-chat #thread .otrUsrMsg:has(.messageReportTrigger) { margin-bottom: 24px; }

.rateu-chat .messageReportSelectionBar,
.rateu-chat .messageReportSelectionFooter { display: none; }

.rateu-chat.is-report-selecting .chat-header,
.rateu-chat.is-report-selecting .selfUnverifiedNote,
.rateu-chat.is-report-selecting .messageInputWrapper { display: none; }

.rateu-chat.is-report-selecting .messageReportSelectionBar {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    flex: 0 0 62px;
    min-height: 62px;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-bottom: 1px solid var(--rateu-line);
    background: #fff;
}

.rateu-chat .messageReportSelectionBar strong {
    font-size: 15px;
    font-weight: 650;
}

.rateu-chat .messageReportCount { color: var(--rateu-muted); font-size: 12px; }

.rateu-chat .messageReportCancel {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rateu-ink);
}

.rateu-chat .messageReportCancel svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.rateu-chat.is-report-selecting #thread { padding-left: 46px; }

.rateu-chat.is-report-selecting #thread .otrUsrMsg[data-message-id] {
    cursor: pointer;
    outline: none;
}

.rateu-chat.is-report-selecting #thread .otrUsrMsg[data-message-id]::before {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid #c6c3bf;
    border-radius: 50%;
    background: #fff;
    content: '';
    transform: translateY(-50%);
}

.rateu-chat.is-report-selecting #thread .otrUsrMsg.is-report-selected::before {
    border-color: #6f211d;
    background: #6f211d;
    box-shadow: inset 0 0 0 4px #fff;
}

.rateu-chat.is-report-selecting .messageReportSelectionFooter {
    display: block;
    flex: 0 0 auto;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    background: #fff;
}

.rateu-chat .messageReportContinue {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #6f211d;
    color: #fff;
    font-size: 15px;
    font-weight: 650;
}

.rateu-chat .messageReportContinue:disabled {
    background: #c8c5c2;
    color: #fff;
    cursor: default;
}

/* A bookmarked/direct thread lives inside #sectionBody rather than a dialog.
   Its composer must remain above the app navigation instead of sticking to
   the browser viewport underneath it. */
#sectionBody > .rateu-chat {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

#sectionBody > .rateu-chat .messageInputWrapper {
    position: relative;
    bottom: auto;
}

@media (max-width: 600px) {
    body { background: var(--rateu-bg); }
    #wrap { max-height: 788px; box-shadow: none; }
}

@media (max-width: 370px) {
    #wrap { padding-right: 10px; padding-left: 10px; }
    #menu { margin-right: -10px; margin-left: -10px; }
    .page-header h1,
    #sectionHeader.page-header h1 { font-size: 27px; }
    #sectionHeader .boost-button { padding-right: 13px; padding-left: 13px; }
    #sectionHeader.swipe-page-header { gap: 7px; }
    #sectionHeader.page-header.swipe-page-header h1 { gap: 7px; font-size: 23px; }
    #sectionHeader.swipe-page-header .filter-button { width: 34px; height: 34px; padding: 6px; flex-shrink: 0; }
    #sectionHeader.swipe-page-header .boost-button { padding-right: 10px; padding-left: 10px; gap: 5px; flex-shrink: 0; }
    #menu .nav-item { font-size: 10px; }
    .rateu-chat #sendMsg { width: 42px; min-width: 42px; height: 42px; }
}

@media (max-height: 700px) {
    :root { --menu-height: 66px; }
    #wrap { padding-top: 8px; }
    .page-header,
    #sectionHeader.page-header { min-height: 40px; margin-bottom: 8px; }
    .page-header h1,
    #sectionHeader.page-header h1 { font-size: 27px; }
    #menu { padding-top: 5px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); }
    #menu .nav-item { min-height: 48px; }
}

/* Audit follow-up: reliable first paint, empty/error states and action sheets. */
body {
    visibility: visible;
}

.desktop-brand {
    display: none;
}

.chatEmpty {
    display: grid;
    flex:1 0 auto;
    min-height:0;
    box-sizing: border-box;
    place-content: center;
    justify-items: center;
    padding:30px 10px;
    color: var(--rateu-ink);
    text-align: center;
}

.chatEmptyAvatar {
    position:relative;
    box-sizing:border-box;
    width:84px;
    height:84px;
    margin-bottom:20px;
    border:4px solid #fff;
    border-radius: 50%;
    box-shadow:0 0 0 1px #e7e6de;
}

.chatEmptyAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius:50%;
}
.chatEmptyHeart { position:absolute; right:-5px; bottom:-1px; display:grid; place-items:center; box-sizing:border-box; width:29px; height:29px; border:1px solid #e7e6de; border-radius:50%; background:#fff; color:#6f2926; }
.chatEmptyHeart svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; }

.chatEmpty h2 {
    margin:0 0 10px;
    font:500 23px/1.2 'Rubik', sans-serif;
    letter-spacing:-.5px;
}

.chatEmpty p {
    max-width:260px;
    margin: 0;
    color:#676b61;
    font-size: 13px;
    line-height:1.6;
}
.chatEmptyInterests { max-width:290px; width:100%; margin-top:23px; }
.chatEmpty .chatEmptyInterestsLabel { max-width:none; margin:0 0 9px; font-size:11px; color:#676b61; }
.chatInterestChips { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.chatInterestChip { max-width:100%; min-height:34px; box-sizing:border-box; padding:7px 11px; border:1px solid #e7e6de; border-radius:999px; background:#fff; color:#272924; font:400 12px/1.5 'Rubik', sans-serif; overflow-wrap:anywhere; cursor:pointer; }
.chatInterestChip:focus-visible { outline:2px solid #6f2926; outline-offset:3px; }
.chatInterestChip:disabled { opacity:.6; cursor:default; }
@media (pointer:coarse) { .chatInterestChip { min-height:44px; } }

.rateu-chat .moreOptions {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dialogBody:has(.chatActionSheet),
.dialogBody:has(.chatConfirmSheet) {
    min-height: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: var(--rateu-ink) !important;
}

.dialog.sheetNoX > .dialogClose {
    display: none;
}

/* Profile report options: warm RateU sheet with a deliberately lightweight X. */
.dialog.profileActionDialog {
    max-width: 400px;
    overflow: hidden;
    border: 2px solid #191919;
    border-radius: 24px 24px 0 0;
    background: #fbf7f1;
    box-shadow: 4px 5px 0 #191919;
}

.dialog.profileActionDialog .dialogBody {
    min-height: 0 !important;
    padding: 0 !important;
    background: #fbf7f1 !important;
    color: #191919 !important;
}

.profileActionSheet {
    box-sizing: border-box;
    padding: 44px 16px calc(14px + env(safe-area-inset-bottom));
    background: #fbf7f1;
    color: #191919;
    font-family: 'Rubik', sans-serif;
}

.profileActionRow {
    display: grid;
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    grid-template-columns: 30px minmax(0, 1fr) 22px;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid #d9d2c9;
    background: transparent;
    color: #191919;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.profileActionRow--danger {
    color: #ef483f;
}

.profileActionRow:last-child { border-bottom:0; }

.profileActionIcon,
.profileActionChevron {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profileActionChevron {
    width: 18px;
    height: 18px;
    justify-self: end;
}

.chatActionSheet,
.chatConfirmSheet {
    display: grid;
    gap: 0;
    box-sizing: border-box;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    color: var(--rateu-ink);
}

.chatSheetHandle {
    width: 42px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 99px;
    background: #d8d3cc;
}

.chatActionSheet h2,
.chatConfirmSheet h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.chatConfirmSheet p {
    margin: 0 8px 18px;
    color: var(--rateu-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.chatSheetRow,
.chatSheetDanger,
.chatSheetCancel {
    display: flex;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid #ece8e2;
    background: #fff;
    color: var(--rateu-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.chatSheetDangerText {
    color: #a52d33;
}

.chatSheetDanger {
    border: 2px solid #9f2d32;
    border-radius: 999px;
    background: #9f2d32;
    color: #fff;
    font-weight: 700;
}

.chatSheetCancel {
    margin-top: 10px;
    border: 0;
    border-radius: 999px;
    background: #f2efea;
    font-weight: 600;
}

.threadUnavailable {
    display: grid;
    min-height: 100%;
    box-sizing: border-box;
    place-content: center;
    justify-items: center;
    padding: 32px 24px 100px;
    color: var(--rateu-ink);
    text-align: center;
}

/* A closed contact is a report-only record, never a live chat or profile. */
.threads-list a.thread-ended{color:var(--rateu-muted);text-decoration:none}
.threads-list .thread-ended .thread-title-row p{color:var(--rateu-muted)}
.endedContactAvatar{display:grid;place-items:center;width:52px;height:52px;background:var(--rateu-bg,#f7f3ec);border-radius:50%;color:var(--rateu-muted,#77736d)}
.endedContactAvatar svg{width:24px;height:24px}
.endedContactChevron{width:18px;height:18px;color:var(--rateu-muted,#77736d)}
.dialogBg:has(>.dialog.endedContactDialog){display:flex!important;align-items:center;justify-content:center;background:rgba(25,25,25,.5)}
.dialogBg .dialog.endedContactDialog{background:var(--rateu-bg,#f7f3ec);color:var(--rateu-ink,#191919);width:420px;max-width:calc(100vw - 32px);height:auto;min-height:0;max-height:calc(100dvh - 32px);margin:0;border-radius:24px;--dialog-close-color:var(--rateu-ink,#191919)}
.dialogBg .dialog.endedContactDialog>.dialogBody{padding:28px 24px;min-height:0;height:auto;background:transparent;color:inherit}
.endedContact{display:grid;gap:17px;font-family:'Rubik',sans-serif;color:var(--rateu-ink,#191919);text-align:left}
.endedContact h1{padding:0 14px 0 0;margin:0;font:400 25px/1.2 'Lilita One','RateU Caron','Rubik',sans-serif}
.endedContact p{margin:0;font:400 14px/1.6 'Rubik',sans-serif}
.endedContactIcon{width:50px;height:50px;display:grid;place-items:center;border-radius:50%;background:var(--rateu-line,#e6e0d7)}
.endedContactIcon svg{width:25px;height:25px}
.endedContactReport{display:grid;gap:7px;border-top:1px solid var(--rateu-line,#ded9d1);padding-top:13px}
.endedContactReportLink{display:inline-flex;align-items:center;gap:8px;justify-self:start;min-height:40px;color:inherit;text-decoration:underline;text-underline-offset:3px;font-size:14px;font-weight:600}
.endedContactReportLink svg{width:17px;height:17px}
.endedContact .endedContactDeadline,.endedContact .endedContactExpired{font-size:12px;color:var(--rateu-muted,#77736d)}

.threadUnavailableIcon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #f1ede7;
}

.threadUnavailableIcon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: #6d6862;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.threadUnavailable h1 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 750;
}

.threadUnavailable p {
    max-width: 270px;
    margin: 0 0 20px;
    color: var(--rateu-muted);
    font-size: 13px;
    line-height: 1.5;
}

.threadUnavailableAction,
.likesEmpty a {
    display: inline-flex;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 2px solid var(--rateu-ink);
    border-radius: 999px;
    background: var(--rateu-ink);
    color: #fff;
    box-shadow: 4px 4px 0 var(--rateu-accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.likesEmpty {
    display: grid;
    min-height: 300px;
    box-sizing: border-box;
    place-content: center;
    justify-items: center;
    padding: 38px 20px;
    color: var(--rateu-muted);
    text-align: center;
}

.likesEmptyIcon {
    margin-bottom: 10px;
    color: var(--rateu-accent);
    font-size: 48px;
    line-height: 1;
}

.likesEmpty h2 {
    margin: 0 0 7px;
    color: var(--rateu-ink);
    font-size: 17px;
    font-weight: 750;
}

.likesEmpty p {
    max-width: 260px;
    margin: 0 0 19px;
    color: var(--rateu-muted);
    font-size: 13px;
    line-height: 1.5;
}

.likesCard.placeholder {
    filter: none;
    background: linear-gradient(145deg, #d5d0c9, #f0ece6);
}

.likesCard.placeholder::before {
    content: '♡';
    color: rgba(25, 25, 25, .28);
    font-size: 42px;
}

.likesCard.placeholder:has(.likesBlurredPreview)::before{content:none}
.likesCard .likesBlurredPreview{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:blur(4px);
    transform:scale(1.08);
}

.dialog:has(.registration-entry, .registration-panel) {
    width: min(390px, calc(100% - 24px));
    border: 1px solid rgba(25, 25, 25, .1);
    border-radius: 26px;
    background: var(--rateu-bg);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.dialogBody:has(.registration-entry, .registration-panel) {
    min-height: 0 !important;
    box-sizing: border-box;
    padding: 34px 24px 28px !important;
    border-radius: inherit;
    background: var(--rateu-bg) !important;
    color: var(--rateu-ink) !important;
}

/* Verification shares the same light surface and action style as onboarding. */
.dialog:has(.verification-panel) {
    width: min(420px, calc(100% - 24px));
    max-width: 420px;
    border: 1px solid rgba(25, 25, 25, .1);
    border-radius: 26px;
    background: var(--rateu-bg);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.dialogBody:has(.verification-panel) {
    min-height: 0 !important;
    box-sizing: border-box;
    padding: 30px 24px 22px !important;
    border-radius: inherit;
    background: var(--rateu-bg) !important;
    color: var(--rateu-ink) !important;
}

.verification-panel { color: var(--rateu-ink); font-family: 'Rubik', sans-serif; }
.verification-mark {
    display: grid;
    width: 54px;
    height: 54px;
    box-sizing: border-box;
    place-items: center;
    margin: 0 auto 18px;
    border: 2px solid var(--rateu-ink);
    border-radius: 18px;
    background: var(--rateu-surface);
    color: var(--rateu-accent);
    box-shadow: 4px 4px 0 var(--rateu-accent);
}
.verification-mark svg { width: 29px; height: 29px; }
.verification-panel h1 {
    margin: 0 0 22px;
    color: var(--rateu-ink);
    font-family: 'Lilita One','RateU Caron','Rubik',sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}
.verification-panel p { margin: 14px 0; color: var(--rateu-muted); font-size: 14px; line-height: 1.6; }
.manual-verification-notice[hidden] { display: none; }
.manual-verification-notice-actions { display: grid; gap: 12px; margin-top: 22px; }
.manual-verification-notice-actions .registration-primary { margin-top: 0; text-align: center; text-decoration: none; }
.manual-verification-notice-actions button {
    min-height: 46px;
    padding: 10px 14px;
    border: 2px solid var(--rateu-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--rateu-ink);
    font: 700 14px 'Rubik', sans-serif;
    cursor: pointer;
}
.manual-verification-notice-actions button:disabled { opacity: .6; cursor: wait; }
.manual-verification-notice [data-error] { color: var(--rateu-accent); }
.account-decision-notices {
    position: fixed;
    z-index: 990;
    top: calc(12px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top));
    overflow-y: auto;
    display: grid;
    gap: 8px;
}
.account-decision-notice {
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid var(--rateu-line, #ded9d1);
    border-radius: 18px;
    background: var(--rateu-bg, #f7f3ec);
    color: var(--rateu-ink, #191919);
    box-shadow: 0 8px 30px #19191930;
    font-family: 'Rubik', sans-serif;
}
.account-decision-notice h2 { margin: 0 0 6px; font-size: 17px; }
.account-decision-notice.is-approved { border-color: #b4cfbc; }
.account-decision-notice.is-approved h2 { color: #235636; }
.account-decision-notice p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.account-decision-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.account-decision-notice-actions a,
.account-decision-notice-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--rateu-ink, #191919);
    border-radius: 20px;
    background: transparent;
    color: inherit;
    font: 700 13px 'Rubik', sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.account-decision-notice-actions a { background: var(--rateu-ink, #191919); color: #fff; }
.verification-panel .consent-box { width: 100%; padding: 0; }
.verification-panel .consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 15px 14px;
    border: 1px solid var(--rateu-line);
    border-radius: 16px;
    background: var(--rateu-surface);
}
.verification-panel #biometricConsent {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    transform: none;
    accent-color: var(--rateu-accent);
}
.verification-panel .consent-checkbox label { min-width: 0; color: var(--rateu-ink); font-size: 13px; line-height: 1.6; cursor: pointer; }
.verification-panel .consent-checkbox a { color: var(--rateu-accent); text-decoration: underline; text-underline-offset: 2px; }
.verification-panel .verification-access p { color: var(--rateu-ink); font-size: 13px; line-height: 1.5; }
.verification-consent-details { margin: -6px 0 20px; font-size: 13px; line-height: 1.5; }
.verification-consent-details summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.verification-panel .verification-consent-details p { font-size: 13px; }
.verification-consent-details a { color: var(--rateu-ink); text-decoration: underline; }
.verification-panel .verification-continue { display: block; margin-top: 18px; padding: 12px 14px; border: 2px solid var(--rateu-ink); border-radius: 999px; color: var(--rateu-ink); font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
.verification-panel [data-manual-continue] { text-align: center; text-decoration: none; }
.verification-panel .consent-btn,
.verification-panel .verification-photo-link {
    display: block;
    width: 100%;
    min-height: 49px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid var(--rateu-ink);
    border-radius: 999px;
    background: var(--rateu-ink);
    color: #fff;
    box-shadow: 4px 4px 0 var(--rateu-accent);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.verification-panel .consent-btn:not(.enabled) {
    border-color: var(--rateu-line);
    background: #ded9d1;
    color: #6d6861;
    box-shadow: none;
    pointer-events: none;
}
.verification-panel .consent-btn:disabled { opacity: .65; cursor: wait; }
.verification-panel .consent-btn.enabled:not(:disabled):active,
.verification-panel .verification-photo-link:active { transform: translate(3px, 3px); box-shadow: none; }
.verification-panel .verification-settings { margin: 18px 0 0; text-align: center; }

.swipe-location-check {
    max-width: 36rem;
    margin: 1rem auto;
    padding: 1rem;
}
.swipe-location-check .swipe-location-appeal-link a {
    color: var(--rateu-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.swipe-location-appeal form {
    display: grid;
    gap: .5rem;
    margin: 1rem 0;
}
.swipe-location-appeal textarea {
    box-sizing: border-box;
    width: 100%;
    padding: .75rem;
    font: inherit;
    resize: vertical;
}
.verification-settings a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--rateu-muted);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.verification-settings a:hover { color: var(--rateu-ink); }
.verification-panel #verificationLoader { display: none; position: relative; min-height: 100px; text-align: center; }
.verification-panel #verificationLoader .loaderLight { position: static; margin: 24px auto 12px; }

.registration-entry {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    color: var(--rateu-ink);
    font-family: 'Rubik', ui-sans-serif, system-ui, sans-serif;
}

.registration-entry-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin: 0 auto 14px;
    border: 2px solid var(--rateu-ink);
    border-radius: 18px;
    background: #fff;
    color: var(--rateu-accent);
    box-shadow: 4px 4px 0 var(--rateu-accent);
    font-size: 32px;
    line-height: 1;
}

.registration-entry h2 {
    margin: 0 0 20px;
    color: var(--rateu-ink);
    font-family: 'Lilita One','RateU Caron', 'Rubik', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

.registration-entry .registration-google-slot {
    position: relative;
    width: 100%;
    height: 44px;
    flex: 0 0 44px;
}

.registration-entry #googleLoginBtn {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 120ms ease;
}
.registration-entry .registration-google-slot.is-ready #googleLoginBtn { visibility: visible; opacity: 1; }
@media(prefers-reduced-motion:reduce){.registration-entry #googleLoginBtn{transition:none}}

.emailSentStep #emailCode {
    display:block;
    width:100%;
    margin:8px 0 12px;
    padding:12px;
    border:1px solid #bbb5ad;
    border-radius:12px;
    text-align:center;
    font:inherit;
    letter-spacing:.2em;
}
.registration-entry-note {
    margin: 8px 0 0;
    color: var(--rateu-muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.registration-entry .or-divider {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 0;
}

.registration-entry .or-divider div {
    flex: 1;
    height: 1px;
    background: var(--rateu-line);
}

.registration-entry .or-divider span {
    color: var(--rateu-muted);
    font-size: 12px;
}

.registration-entry-secondary,
.registration-entry-primary,
.registration-entry-email {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
}

.registration-entry #emailSignupBtn.registration-entry-secondary {
    border: 1.5px solid #bbb5ad;
    background: #fff !important;
    color: var(--rateu-ink) !important;
    box-shadow: 3px 3px 0 #c9c2b9;
    cursor: pointer;
}

.registration-entry-email {
    margin-bottom: 12px;
    padding: 0 16px;
    border: 1.5px solid #bbb5ad;
    background: #fff;
    color: var(--rateu-ink);
}

.registration-entry-email:focus {
    border-color: var(--rateu-ink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 104, 98, .14);
}

.registration-entry :is(#registerBtn,.registration-sms-open).registration-entry-primary {
    border: 2px solid var(--rateu-ink);
    background: var(--rateu-ink) !important;
    color: #fff !important;
    box-shadow: 4px 4px 0 var(--rateu-accent);
    font-weight: 800;
    cursor: pointer;
}

.registration-entry-primary:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.registration-panel {
    color: var(--rateu-ink);
    font-family: 'Rubik', sans-serif;
}

.registration-panel h2 {
    margin: 0 30px 20px 0;
    color: var(--rateu-ink);
    font-family: 'Lilita One','RateU Caron','Rubik',sans-serif;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 400;
}

.emailSentStep { text-align: center; }
.emailSentStep h2 { margin-right: 0; text-transform: uppercase; }
.registration-panel p { margin: 12px 0; font-size: 14px; line-height: 1.55; }
.registration-panel p strong { overflow-wrap: anywhere; }
.registration-pledge .honesty-signature-logo { margin-bottom: 22px; }
.registration-pledge .honesty-signature-logo span,
.registration-pledge h2 strong { color: var(--rateu-accent); }
.registration-pledge h2 { margin-bottom: 16px; font-size: clamp(23px, 6.5vw, 30px); }
.registration-pledge h2 strong { font-weight: inherit; }
.registration-pledge p { font-size: 15px; }
.registration-pledge p.registration-pledge-karma { margin: 12px 0 23px; font-size: 20px; line-height: 1.3; }
.registration-pledge .registration-pledge-cancel {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: var(--rateu-ink);
    font: 500 14px Rubik, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
#regStep3.registration-panel form label,
#regStep3.registration-panel form a { color: var(--rateu-ink); }
.registration-panel .registration-help,
#regStep3.registration-panel .registration-help {
    margin: 7px 0 16px;
    color: var(--rateu-muted);
    font-size: 12px;
    line-height: 1.5;
}

#regStep3.registration-panel #name[aria-invalid="true"] { margin-bottom: 0; }
#regStep3.registration-panel #registrationNameRules { margin: 4px 0 12px; }
#regStep3.registration-panel #registrationNameRules[hidden] { display: none; }

#regStep3.registration-panel #looking_for { margin-bottom: 0; }

.registration-panel .registration-primary,
.registration-photos .save-button {
    display: block;
    width: 100%;
    min-height: 49px;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 12px 14px;
    border: 2px solid var(--rateu-ink);
    border-radius: 999px;
    background: var(--rateu-ink);
    color: #fff;
    box-shadow: 4px 4px 0 var(--rateu-accent);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.registration-photos .save-button:disabled {
    background: #ded9d1;
    color: #6d6861;
    box-shadow: none;
    cursor: not-allowed;
}

/* Give registration breathing room when height allows it. Keep the compact
   layout on short screens; validation messages/the keyboard may still scroll. */
.dialogBg:has(> .dialog > .dialogBody > #regStep3) { display:flex!important; align-items:center; justify-content:center; }
.dialog:has(#regStep3) { --registration-inset:8px; --registration-field-gap:8px; margin:var(--registration-inset) auto; max-height:calc(100dvh - 2 * var(--registration-inset)); }
.dialogBody:has(#regStep3) { padding:18px 18px 20px !important; }
#regStep3 h2 { margin:0 28px 4px 0; font-size:26px; line-height:1.08; }
#regStep3.registration-panel .registration-subtitle { margin:0 0 13px; color:var(--rateu-muted); font-size:12px; line-height:1.5; }
#regStep3 .registration-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--registration-field-gap,8px); }
#regStep3 .registration-field { min-width:0; height:49px; box-sizing:border-box; padding:5px 10px 3px; border:1px solid var(--rateu-line,#d5cfc6); border-radius:10px; background:var(--rateu-surface,#fff); }
#regStep3.registration-panel .registration-field > label { display:block; margin:0; color:var(--rateu-muted); font-size:11px; font-weight:400; line-height:1.3; }
#regStep3 .registration-field > input,
#regStep3 .registration-field > select { display:block; width:100%; min-width:0; min-height:0; height:28px; box-sizing:border-box; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--rateu-ink); font:400 16px/1.3 'Rubik',sans-serif; }
#regStep3 .registration-field:has(input[aria-invalid="true"]) { border-color:var(--rateu-accent); }
#regStep3 .registration-field > select { appearance:auto; }
#regStep3 #registrationNameRules { margin:0; }
#regStep3 .registration-birthdate { min-width:0; margin:0; padding:0; border:0; }
#regStep3 .registration-birthdate legend { margin:0 0 5px; padding:0; color:var(--rateu-muted); font:400 11px/1.3 'Rubik',sans-serif; }
#regStep3 .birthdate-group { display:grid; grid-template-columns:.8fr 1.2fr 1fr; gap:6px; }
#regStep3 .birthdate-group .birth-input { width:100%; min-width:0; min-height:44px; height:44px; box-sizing:border-box; margin:0; padding:0 6px; border:1px solid var(--rateu-line,#d5cfc6); border-radius:10px; background:var(--rateu-surface,#fff); color:var(--rateu-ink); font:400 16px 'Rubik',sans-serif; appearance:auto; }
#regStep3 .registration-honesty { margin:12px 0 5px; padding:1px 0 1px 11px; border-left:3px solid var(--rateu-accent); }
#regStep3 .registration-honesty strong { display:block; margin:0 0 3px; font-size:13px; font-weight:600; line-height:1.35; }
#regStep3 .registration-honesty p { margin:0; color:var(--rateu-muted); font-size:12px; line-height:1.45; }
#regStep3.registration-panel .registration-legal-notice { margin:16px 0 0; color:var(--rateu-muted); text-align:center; font-size:12px; line-height:1.6; }
#regStep3 .registration-legal-notice a { color:var(--rateu-ink); text-decoration:underline; text-underline-offset:2px; }
#regStep3 .registration-primary { min-height:48px; margin:10px 0 0; padding:12px; border:0; box-shadow:3px 4px 0 var(--rateu-accent); font:400 18px/1.15 'Lilita One','RateU Caron','Rubik',sans-serif; }
@media(max-width:360px){.dialogBody:has(#regStep3){padding-left:14px!important;padding-right:14px!important}#regStep3 h2{font-size:25px}}
@media(min-height:660px){.dialog:has(#regStep3){--registration-inset:clamp(12px,calc(8dvh - 40px),40px)}}
@media(min-height:680px){.dialog:has(#regStep3){--registration-field-gap:10px}}
@media(min-height:740px){.dialog:has(#regStep3){--registration-field-gap:12px}}
@media(min-height:820px){.dialog:has(#regStep3){--registration-field-gap:14px}}

.registration-photos .remove-button {
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rateu-ink);
    box-shadow: none;
    font-size: 12px;
}

.registration-photos .remove-button::before {
    content: '';
    position: absolute;
    width: 27px;
    height: 27px;
    border: 1.5px solid var(--rateu-ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: 2px 2px 0 rgba(25,25,25,.2);
}

.registration-photos .remove-button i { position: relative; z-index: 1; }
.registration-photos .registration-settings { display: block; margin-top: 18px; text-align: right; color: var(--rateu-ink); font-size: 13px; }

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid #6b6862;
    outline-offset: 3px;
}

@media (min-width: 980px) {
    body {
        background:
            radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .9), transparent 30%),
            linear-gradient(135deg, #eee9e2 0%, #ddd7cf 100%);
    }

    #wrap {
        border: 1px solid rgba(25, 25, 25, .1);
        border-radius: 24px;
        box-shadow: 0 30px 70px rgba(45, 38, 31, .18);
    }

    .desktop-brand {
        position: fixed;
        top: 50%;
        left: max(42px, calc(50% - 525px));
        display: block;
        width: 240px;
        color: var(--rateu-ink);
        transform: translateY(-50%);
    }

    .desktop-brand-mark {
        font-family: 'Lilita One','RateU Caron', 'Rubik', sans-serif;
        font-size: 64px;
        line-height: .9;
        letter-spacing: -.045em;
    }

    .desktop-brand::after {
        content: '';
        display: block;
        width: 58px;
        height: 6px;
        margin-top: 14px;
        border-radius: 99px;
        background: var(--rateu-accent);
    }

    .desktop-brand p {
        margin: 16px 0 0;
        color: #6f6962;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.45;
    }
}

/* Long translated compound words may wrap in dialog and information headings. */
.bodyWrapper h1, .bodyWrapper h2, .bodyWrapper h3, .challengeHead h2 {
    overflow-wrap:anywhere;
    hyphens:auto;
}

/* Source-specific restriction notices share the MeanIt dialog appearance. */
.visibility-notices{padding:24px;background:#f8f5ee;color:#191919;max-width:720px;margin:auto;box-sizing:border-box}
.visibility-notices h1{font-size:26px;margin:0 32px 18px 0}.visibility-notices h2{font-size:20px;line-height:1.25}
.visibility-notices h1,.visibility-notices h2,.visibility-notices h3{font-weight:700}.visibility-notices a{color:#191919;text-decoration:underline}
.visibility-notices p{font-size:14px;line-height:1.55;margin:12px 0}.visibility-decision{padding:18px 0;border-top:1px solid #ddd6ce}
.visibility-notices textarea{display:block;box-sizing:border-box;width:100%;margin:10px 0 14px;padding:12px;border:1px solid #ccc4bc;border-radius:12px;background:white;color:#191919;resize:vertical}
.appeal-conversation .appeal-message {
    margin-block: .75rem;
    padding: .75rem;
    border: 1px solid #ccc4bc;
    border-radius: 12px;
    overflow-wrap: anywhere;
}
.appeal-conversation .appeal-question { border-inline-start: 3px solid #a84b45; }
.appeal-conversation .appeal-message p { margin: .25rem 0 0; white-space: pre-wrap; }
.visibility-notices label,.dialog .visibility-notices label{color:#191919}
.visibility-notices button{padding:12px 20px;border:2px solid #191919;border-radius:28px;background:#191919;color:white;font-weight:700;cursor:pointer}
.visibility-notices button:disabled{opacity:.5;cursor:wait}.visibility-notices .visibility-ack{background:white;color:#191919;margin-top:14px}.visibility-notices .visibility-error{color:#9f1239}
.visibility-notice-dialog{width:min(720px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)!important;margin:12px auto!important;border-radius:24px!important;overflow:auto}
.dialogBg .dialog.visibility-notice-dialog,
.dialogBg .dialog:has(> .dialogBody > .visibility-notices){background:#f8f5ee;color:#191919;--dialog-close-color:#191919}
.dialogBg .dialog.visibility-notice-dialog > .dialogBody,
.dialogBg .dialog:has(> .dialogBody > .visibility-notices) > .dialogBody{padding:0;min-height:0;border-radius:inherit;background:#f8f5ee;color:#191919}
.dialogBody > .visibility-notices{border-radius:inherit}
.verification-phone-stage .verification-phone-intro { margin: 0 0 24px; line-height: 1.55; }
.verification-phone-stage .verification-phone-reason { margin: 0 0 24px; padding: 0 0 12px; border-bottom: 1px solid var(--rateu-border,#d8d0c5); }
.verification-phone-stage .verification-phone-reason p { color: var(--rateu-ink); }
.verification-phone-stage .verification-phone-heading { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.verification-phone-stage .verification-explanation { margin-top: 24px; text-align: left; font-size: 14px; line-height: 1.55; }
.verification-phone-stage .verification-explanation summary { cursor: pointer; font-weight: 600; }
.verification-panel .verification-reason-block p { color: var(--rateu-ink); }
.verification-panel .verification-category-label { font-weight: 600; margin-bottom: 6px; }
.verification-panel .verification-categories { margin: 0 0 18px; padding-left: 22px; line-height: 1.6; font-size: 14px; }
.verification-panel .verification-categories > li { display: list-item; list-style: disc; margin: 0 0 3px; padding-left: 0; }
.verification-panel .verification-review { margin-top: 20px; font-size: 13px; line-height: 1.5; }
.verification-panel .verification-review a { color: var(--rateu-ink); text-decoration: underline; text-underline-offset: 3px; }
.verification-panel > .verification-explanation { margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
