a[role="button"] {
    cursor: pointer;
}

html.grv-modal-open #grv-modal-overlay {
  display: flex !important;
}
/* Hides Exit intent if Modal is ever open */
html.grv-modal-open #prop-audience-exit,
html.grv-modal-open #prop-audience-exit-bg {
    display: none !important;
}
.grv-social-row a {
    background-color: rgb(var(--primary-color));
    border-color: rgb(var(--primary-color));
}
/* ===== Auth Dropdown Widget Styles ===== */
.grv-auth-menu{position:relative; padding:10px;}
.grv-auth-trigger{display:inline-flex;align-items:center;gap:.5rem;background:none;border:none;}
.grv-auth-dropdown{
  position:absolute;
  right:0;
  top:100%;
  margin-top:-2px;
  background:rgb(var(--menu-accent));
  color:rgb(var(--menu-accent-text));
  border-radius:8px;
  padding:10px;
  z-index:9999;
  min-width:180px;
}

@media (max-width:991px) {
.grv-auth-dropdown{
position: absolute;
    right: 10px;
    min-width: 50px;
}}

.grv-btn,
.grv-social-btn,
.grv-modal-close,
.grv-topbar-skip {
    cursor: pointer;
}


.menu .menu-item-grv-auth .grv-auth-dropdown {
    background: inherit;
    color: inherit;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    min-width: 150px;
}

.menu .menu-item-grv-auth .grv-auth-dropdown .grv-dd-btn,
.menu .menu-item-grv-auth .grv-auth-dropdown .grv-profile-link,
.menu .menu-item-grv-auth .grv-auth-dropdown .grv-logout {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: inherit; 
    padding: 8px 10px; 
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.menu .menu-item-grv-auth .grv-auth-dropdown .grv-dd-btn:hover,
.menu .menu-item-grv-auth .grv-auth-dropdown .grv-logout:hover,
.menu .menu-item-grv-auth .grv-auth-dropdown .grv-profile-link:hover {
    background-color: rgba(0, 0, 0, 0.05); 
}

.grv-user-row{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.grv-avatar{border-radius:50%;display:block;background:#222}
.grv-who{display:flex;flex-direction:column}
.grv-who .grv-email{opacity:.8;font-size:.9em}

.grv-actions{display:flex;justify-content:space-between;gap:8px;margin-top:8px; min-width: 200px;}

.grv-actions .grv-profile-link{
  color: inherit; 
} 

.grv-auth-trigger svg,
.grv-auth-trigger svg * {
  pointer-events: none;
}


#grv-tp-profile-page {
  min-height:600px;
}
.menu .menu-item-grv-auth .grv-login-btn{
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0.5em 0;  
  cursor: pointer;
}
.menu .menu-item-grv-auth .grv-login-btn:hover{
  text-decoration: underline;
}

.grv-modal:not(.is-dark) .grv-site-logo.grv-logo-mono {
    filter: invert(100%) hue-rotate(180deg); 
    transition: filter 0.3s ease;
}

.grv-modal.is-dark .grv-site-logo.grv-logo-mono {
    filter: none;
    transition: filter 0.3s ease;
}

.grv-modal:not(.is-dark) .grv-site-logo {
filter: none !important; 
}

#grv-flyout-auth-container-master {
    position: absolute; 
    top: 5px;
    right: 2px;
    z-index: 99999;
    width: 250px;
}

span.grv-simple-profile.grv-simple-profile-linked {
  display: flex;
    flex-direction: column;
    align-items: center;
}
/* ---------- Topbar ---------- */
.grv-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:2.5em;      
  padding:0.6em;
}
.grv-topbar-logo{ height:1.375em; width:auto; }
.grv-topbar-skip{
  font-size:1.5em;
  color:#b3b3b3;
  cursor:pointer; user-select:none;
  background:none; border:none; padding:0;
  font-weight:500; transition:color .2s ease;
}
.grv-topbar-skip:hover{ color:#808080; }

/* Ensure clicks go to the button/link, not the inner SVG elements */
.grv-auth-trigger svg,
.grv-auth-trigger svg * {
  pointer-events: none;
}

/* ------- Modal / Card consistency (General Modal Styles) ---------- */
.grv-modal-overlay{
  position:fixed; inset:0; z-index:9999;
  display:none; align-items:center; justify-content:center;
  background:rgb(255 255 255 / 60%);
}

.grv-modal{
  isolation:isolate;
  font-size:1em;
  line-height:1.45;
  max-width:24.875em;
  width:80%;
  background:rgb(var(--grv-body));
  color:rgb(var(--grv-text));
  border-radius:1.75em;
  box-shadow:0 1.25em 3.75em rgba(0,0,0,.35);
  padding:1.375em;
  position:relative;
}

.grv-modal :where(ul,ol){ padding-left:0; }

.grv-modal-close{
  position:absolute; top:.625em; right:.875em;
  border:0; background:transparent;
  color:rgb(var(--grv-lighter-text));
  font-size:1.5em; cursor:pointer;
}

/* ===== Cards (General Modal Card Styles) ===== */
.grv-card{
  display:flex; flex-direction:column; justify-content:flex-start; padding:0.6em;
  text-align:center; transition:opacity .3s ease, transform .3s ease;
}


.grv-card[hidden]{ display:none !important; }

/* Title block */
.grv-eyebrow{
  display:block; font-size:2.6em;
  font-weight:700; color:rgba(var(--grv-text), .95);
  margin-bottom:.375em;
}
.grv-title .grv-site{ color:rgb(var(--heading)); }
.grv-title .grv-brand{ color:rgb(var(--grv-text)); }
.grv-card-title{ margin:0 0 .625em 0; }

/* Divider */
.grv-sep{
  border:0; height:.0625em;
  background:rgba(var(--grv-panel-strong), .8);
  margin:1em 0;
}

/* ===== Bullets ===== */
.grv-bullets{
  list-style:none; padding:0; margin:0 0 .625em 0;
  display:grid; gap:.625em;
  text-align:left;
}
.grv-bullets li{
  display:flex; align-items:flex-start; gap:.75em;
  color:rgb(var(--grv-text));line-height:1.8em;
}
.grv-bullet-img{
  width:1.25em; height:1.25em; flex:0 0 1.25em;
  object-fit:contain; transition:filter .25s ease; filter:none;
}
.grv-modal.is-dark .grv-bullet-img.grv-mono{ filter:invert(1) brightness(1.1) contrast(1.2); }
.grv-modal.is-dark .grv-brand-img.grv-mono{  filter:invert(1) brightness(1.1) contrast(1.2); }
.grv-modal.is-dark .grv-card{ border-color:rgba(var(--grv-panel-strong), .8); }

/* ===== Magic link & Name Field Consistency Fix ===== */
.grv-card input[type="email"],
.grv-card input[type="text"] {
    width: 100%;
    padding: .75em 1em; 
    border-radius: 1.125em;
    border: .0625em solid rgba(var(--grv-panel-strong), .85);
    background: rgb(var(--grv-body)); 
    color: rgb(var(--grv-text));
    box-sizing: border-box; 
}

#grv-magic-form { 
    gap: .625em; 
    text-align: left; 
    margin-bottom: 2em; 
    margin-top: 1em;
}

.grv-card[data-step="2"] input[type="email"] {
    width: 87%;
    border-radius: 1.125em;
    padding: .75em 1em;
}

.grv-card[data-step="name"] input[type="text"] {
    width: 100%;
    border-radius: 1.125em;
    padding: .75em 1em;
}

.grv-help{ font-size:.95em; color:rgba(var(--grv-light-text), .95); margin-top:.5em; }

.grv-social-row{ display:flex; gap:.75em; margin-top:0.6em; margin-bottom:1.2em; flex-wrap:wrap; align-items:center; justify-content:center; }

.grv-social-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:3em; height:3em;
  border-radius:100%;
  border:.0625em solid rgba(var(--grv-panel-strong), .9);
  background:rgb(var(--grv-body)); cursor:pointer;
  transition: box-shadow .2s ease, transform .06s ease;
}
.grv-social-btn:hover{ box-shadow:0 0 0 .1875em rgba(var(--heading), .18); }
.grv-social-btn:active{ transform:translateY(.0625em); }
.grv-social-img{ width:1.5em; height:1.5em; object-fit:contain; }

/* Brand colours */
.grv--google{ background:#F2F2F2; border-color:#F2F2F2; }
.grv--facebook{ background:#1877F2; border-color:#1877F2; }
.grv--x{ background:#262626; border-color:#262626; }
.grv--apple{ background:#000; border-color:#000; }
.grv--email{ background:#F3F4F6; border-color:#E5E7EB; }
.grv--facebook .grv-social-img,
.grv--x .grv-social-img,
.grv--apple .grv-social-img{ filter:brightness(0) invert(1); }

.grv-account-cta{
  text-align:center; margin-top:1em;
  font-weight:700; color:rgb(var(--grv-text));
}
.grv-account-cta .grv-link{ color:rgb(var(--link)); text-decoration:underline; }
.grv-account-cta .grv-link:hover{ color:rgb(var(--link-accent)); }

/* ===== Buttons ===== */
.grv-card-actions{ display:flex; gap:.625em; justify-content:flex-end; margin-top:.875em; }
.grv-btn{
  appearance:none; border-radius:.875em;
  padding:.625em 1em;
  font-weight:700; border:.0625em solid transparent;
  cursor:pointer;
}
.grv-btn-primary{ background:rgb(var(--button)); color:rgb(var(--button-text)); }
.grv-btn-primary:hover{ background:rgb(var(--button-accent)); color:rgb(var(--button-accent-text)); }
.grv-btn-secondary{
  background:rgb(var(--grv-panel)); color:rgb(var(--grv-text));
  border:.0625em solid rgba(var(--grv-panel-strong), .8);
}
.grv-btn-ghost{
  background:transparent; color:rgb(var(--grv-text));
  border:.0625em solid rgba(var(--grv-panel-strong), .7);
}

/* ===== Brand strip (Updated for Grid) ===== */
.grv-brandbar{
  /* Change from flex to grid */
  display: grid; 
  
  /* Define 3 columns: auto-width (Left), fixed 1px (Divider), auto-width (Right) */
  /* fr (fractional unit) ensures the columns take up remaining space equally */
  grid-template-columns: auto 1px auto;
  
  align-items: center; /* Vertically centers content in the row */
  justify-content: space-between; /* Not strictly necessary with grid auto columns, but can help */
  
  border-top:.0625em solid rgba(var(--grv-panel-strong), .9);
  padding-top:.875em;
  width:100%;
  color:rgba(var(--grv-text), .95);
}

/* Remove explicit 50% width and reliance on flex properties */
.grv-brand-left{ 
    display:flex; 
    align-items:center; 
    gap:.625em; 
    /* width:50%; -- REMOVED */
    /* grid-column: 1; -- Implicit */
}

/* Style for the divider (now its own column) */
.grv-divider{ 
    /* flex:0 0 .0625em; -- REMOVED */
    align-self:stretch; 
    background:rgba(var(--grv-panel-strong), .9); 
    width:.0625em; /* Redundant due to grid-template-columns, but harmless */
    margin:0 .5em; 
}

/* Remove explicit 50% width and ensure text aligns to the right */
.grv-brand-right { 
    /* width:50%; -- REMOVED */
    text-align:end; /* Aligns content inside the right grid cell */
    /* grid-column: 3; -- Implicit */
}

/* Other styles (kept for completeness, no changes needed) */
.grv-brand-img{ width:1.375em; height:1.375em; object-fit:contain; border-radius:.375em; }
.grv-mono{ filter:none; }
.grv-modal.is-dark .grv-mono{ filter:invert(1) brightness(1.1) contrast(1.2); transform: rotate(351deg);}
.grv-site-logo{ max-height:2.5em; height:50px; width:auto; max-width:165px; object-fit:contain; }
.grv-brand-name{ font-size:1.4em; }
.grv-brand-site{ color:rgb(var(--heading)); font-weight:800; }
/* ===== Step utility ===== */
[data-step][hidden]{ display:none !important; }

/* Dark scheme tweak */
@media (prefers-color-scheme: dark){
  .grv-card{ border-color:rgba(var(--grv-panel-strong), .8); }
}

/* ---------- STEP 2 (Modal Step 2 Styles) ---------- */
.grv-card[data-step="2"]{ text-align:left; }
.grv-step2-head{ display:flex; align-items:center; gap:.625em; margin-bottom:.625em; }
.grv-step2-head .grv-brand-img{ width:1.75em; height:1.75em; border-radius:.375em; margin-top:-.625em; }
.grv-title{
  margin:0; font-weight:500;
  font-size:1.5em; line-height:1.2;
}
.grv-step2-sub{ margin:.5em 0 1em 0; color:rgba(var(--grv-text), .95); }
.grv-label{ display:block; font-weight:700; margin:0 0 .375em .125em; }
#grv-magic-form .grv-field{ margin:0 0 .75em 0; }
#grv-magic-form input[type="email"]{
  width:87%; border-radius:1.125em; padding:.75em 1em;
  border:.0625em solid rgba(var(--grv-panel-strong), .85);
  background:rgb(var(--grv-body)); color:rgb(var(--grv-text));
}
#grv-magic-send.grv-btn-primary{ margin-top:1.2em; border-radius:1.25em; 
font-size:0.9em; }
.grv-magic-msg{ margin:.625em 0 0 .125em; font-weight:600; }

/* ---------- STEP 3 (Modal Step 3 Styles) ---------- */
.grv-step3{ position:relative; text-align:center; }
.grv-step3-eyebrow{
  font-size:1.8em;
  font-weight:lighter; color:rgba(var(--grv-text), .95);
  margin:.625em 0 .375em 0;
}
.grv-step3-headline{
  font-weight:500; font-size:2.6em;
  line-height:1.05; margin:0;
  color:rgb(var(--grv-text));
}
.grv-step3-art-wrap{ margin:.5em 0 1em 0; display:flex; justify-content:center; } 
.grv-step3-art{ width:9em; height:auto; object-fit:contain; }
.grv-nl-consent{
align-items:center; gap:.625em; 
  margin:.5em 0 .625em 0; color:rgb(var(--grv-text));  
  justify-content: center;
}
.grv-nl-consent input[type="checkbox"]{ width:1.125em; height:1.125em; accent-color:rgb(var(--heading)); }
.grv-actions-center{ justify-content:center; }
.grv-step3 .grv-btn-primary{ padding:0.6em 0.6em; border-radius:1.875em; margin-bottom:1em;}
.grv-step3 .grv-brandbar{ margin-top:1em; }

/* ---------- Dev Toolbar (Modal Dev Styles) ---------- */
.grv-devbar{
  position:absolute; top:.5em; left:.5em; z-index:10;
  display:flex; align-items:center; gap:.375em;
  background:rgba(0,0,0,.55); color:#fff;
  border-radius:.625em; padding:.375em .5em;
  backdrop-filter:saturate(140%) blur(2px);
}
.grv-modal[data-theme="light"] .grv-devbar{ background:rgba(0,0,0,.5); }
.grv-modal.is-dark .grv-devbar{ background:rgba(255,255,255,.12); }
.grv-devbtn{
  font:600 .75em/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:#fff; background:transparent; border:.0625em solid rgba(255,255,255,.45);
  border-radius:.5em; padding:.375em .5em; cursor:pointer;
}
.grv-devbtn:hover{ background:rgba(255,255,255,.12); }
.grv-devsep{ width:.0625em; height:1.125em; background:rgba(255,255,255,.35); display:inline-block; }

/* ---------- STEP 4 (Modal Step 4 Styles) ---------- */
.grv-step4{ position:relative; text-align:center; }
.grv-step4-title{
  font-weight:500; font-size:2em;
  line-height:1.15; margin:.375em 0 .5em; text-align:center;
}
.grv-step4-sub{
  font-size:1em; font-weight: 300;
  color:rgba(var(--grv-light-text), .95);
  margin:0 0 1em;
}
.grv-step4-q{
  font-weight:500; font-size:1.4em;
  margin:.375em 0 1em;
}
.grv-age-grid{
  display:grid; gap:.625em;
  margin:0 auto 1.4em; width:15em;
}
.grv-age-btn{
  display:block; padding:0.5em 0.5em;
  border-radius:1.375em; border:.0625em solid rgba(var(--grv-panel-strong), .85);
  background:rgba(var(--flyout-color),1); color:rgb(var(--flyout-text));
  font-weight:500; cursor:pointer;
}
.grv-age-grid .grv-age-btn:hover,
.grv-age-grid .grv-age-btn.is-selected{
  background:rgb(var(--button)); color:rgb(var(--button-text)); border-color:rgb(var(--button));
}
.grv-step4-actions{ display:flex; justify-content:center; margin-top:.5em; }
.grv-step4 .grv-btn-primary[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------------------------------------------------------------------- */
/* --- MOBILE FLYOUT STATIC CARD AND VISIBILITY LOGIC --- */
/* ---------------------------------------------------------------------- */

/* 1. Positioning Anchor (outermost flyout wrapper) */
.flyout-menu.header-menu-inner {
    position: relative; 
}

/* 2. Position the Static Card Wrapper (LOGGED IN STATE) */
#grv-flyout-profile-card-wrapper {
    position: absolute; 
    top: 5px;          
    right: 5px;       
    z-index: 10000;
    
    /* Initially hide this wrapper. */
    display: none; 
    width: 250px; 
    height: auto; 
}

/* 3. Position the simple Login Trigger (LOGGED OUT STATE) container */
#grv-flyout-login-trigger {
    position: fixed; 
    margin-top: -52px;          
    right: 17px;       
    display:flex;
    justify-content:flex-end;
    top:63px;
    flex-direction: column;
    align-items:flex-end;

}

/* 3b. Style the simple Login Trigger button (compact SVG icon) */
#grv-flyout-login-trigger .grv-login-btn {
    /* Set the size and shape */
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
    border:none;
    
    /* Center the icon and hide text */
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 0 !important;
    overflow: hidden;
    position: relative; 
}

/* 3c. Style the SVG icon within the button */
#grv-flyout-login-trigger .grv-login-btn svg {
    position: static !important; 
    width: 20px !important;
    height: 20px !important;
    color: #fff; /* Ensure icon is white/visible */
}


/* --- CRITICAL VISIBILITY TOGGLE LOGIC --- */

/* If the auth widget detects a user is logged in: */
.grv-auth-menu[data-state="user"] #grv-flyout-login-trigger {
    display: none !important;
}
.grv-auth-menu[data-state="user"] #grv-flyout-profile-card-wrapper {
    display: block !important;
}


/* If the auth widget detects the user is logged out: */
.grv-auth-menu[data-state="guest"] #grv-flyout-profile-card-wrapper {
    display: none !important;
}
.grv-auth-menu[data-state="guest"] #grv-flyout-login-trigger {
    display: block !important;
}

#grv-flyout-profile-card-wrapper .grv-simple-profile {
    display: none !important;
}

#grv-flyout-profile-card-wrapper .grv-auth-dropdown {
    display: block !important;
    position: static !important;
    
    /* Styling to match the screenshot card */
    background: #fff; 
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
    padding: 10px;
    width: 250px; 
    position: absolute !important;
    top: 0 !important; 
    right: 0 !important;
}

#grv-flyout-profile-card-wrapper .grv-user {
    display: block !important;
    padding: 0;
    margin: 0;
}

#grv-flyout-profile-card-wrapper .grv-guest {
    display: none !important;
}

#grv-flyout-profile-card-wrapper .grv-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}
#grv-flyout-profile-card-wrapper .grv-actions .grv-profile-link {
    font-weight: bold;
    text-transform: uppercase;
    color: #333; 
}
#grv-flyout-profile-card-wrapper .grv-actions .grv-logout {
    background: rgb(var(--primary-color)); 
    color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
}
#grv-flyout-profile-card-wrapper .grv-user-row {
    justify-content: flex-start; 
}
#grv-flyout-profile-card-wrapper .grv-who {
    text-align: left;
}