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

.grv-modal * {
    font-family: "DM Sans", sans-serif !important;
}

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:not(.grv-social-btn-full) {
    background-color: rgb(var(--primary-color));
    border-color: rgb(var(--primary-color));
}
/* ===== Auth Dropdown Widget Styles ===== */
.grv-auth-menu{position:relative; padding:15px; z-index:999;}
.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:200px;
 }


@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: 12px 15px;
    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:12px;align-items:center;margin-bottom:12px;padding:5px 0;}
.grv-avatar{border-radius:50%;display:block;background:#222}

/* Hide avatars initially to prevent flash of old image */
.grv-auth-trigger img,
.grv-avatar,
.grv-simple-profile img {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show avatars after JavaScript has updated them */
body.grv-avatars-ready .grv-auth-trigger img,
body.grv-avatars-ready .grv-avatar,
body.grv-avatars-ready .grv-simple-profile img {
    opacity: 1;
}
.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:0.875em;
  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;
  padding:1em;
  background:rgb(0 0 0 / 80%);
  box-sizing:border-box;
}

.grv-modal{
  isolation:isolate;
  font-size:1em;
  line-height:1.45;
  max-width:27.875em;
  width:90%;
  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);
  position:relative;
  overflow:visible;
 }

.grv-modal > .grv-steps {
  max-height:calc(90vh - 2em);
  overflow-y:auto;
}

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

.grv-modal-close{
  position:absolute; top:-.5em; right:-.5em;
  width:1.75em; height:1.75em;
  border:0; border-radius:50%;
  background:#fff;
  color:#333;
  font-size:1.25em;
  line-height:1;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  text-shadow: none;
}
.grv-modal-close:hover {
  background:#f0f0f0;
}

/* Ensure close button is visible on step 1 regardless of browser :has() support */
.grv-modal .grv-steps[data-grv-step="1"] ~ .grv-modal-close,
.grv-modal .grv-steps[data-grv-step="1"] ~ .grv-modal-close[hidden] {
  color: #333 !important;
  text-shadow: none !important;
  display: inline-flex !important;
  visibility: visible !important;
}

/* Override hidden attribute for close button on step 1 */
.grv-modal .grv-steps[data-grv-step="1"] ~ .grv-modal-close[hidden] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.grv-card.unsubscribe-container {
 padding:1.5em;
 }
/* ===== Version 1 no-banner top padding ===== */
.grv-modal-version1 .grv-card {
    padding-top: 20px !important;
}

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


.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); }

/* ===== Dark mode overrides for social buttons & modal elements ===== */
.grv-modal.is-dark .grv-btn-primary {
    background: #fff;
    color: #000;
}
.grv-modal.is-dark .grv-btn-primary:hover {
    background: #e0e0e0;
    color: #000;
}
.grv-modal.is-dark .grv-social-btn-full,
.grv-modal.is-dark .grv--google-full,
.grv-modal.is-dark .grv--apple-full,
.grv-modal.is-dark .grv--facebook-full,
.grv-modal.is-dark .grv--x-full {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    color: rgb(var(--grv-text));
}
.grv-modal.is-dark .grv-social-btn-full:hover {
    background: rgba(255, 255, 255, .14);
}
.grv-modal.is-dark .grv-card > .box-container > .grv-social-row > .grv-social-btn-full {
    border-color: rgba(255, 255, 255, .4);
}
.grv-modal.is-dark .grv-social-more-toggle {
    color: rgba(255, 255, 255, .5);
}
.grv-modal.is-dark .grv-social-more-toggle:hover {
    color: rgba(255, 255, 255, .8);
}
.grv-modal.is-dark .grv-or-divider {
    color: rgba(255, 255, 255, .4);
}
.grv-modal.is-dark .grv-or-divider::before,
.grv-modal.is-dark .grv-or-divider::after {
    background: rgba(255, 255, 255, .2);
}
.grv-modal.is-dark .grv-magic-inline-row {
    border-color: rgba(255, 255, 255, .2);
}

/* ===== 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; 
}
.box-container {
    padding: 0 1.6em 1em 1.6em;
}

#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-legal-notice {
  text-align:center; font-size: 0.55em; margin-bottom: 0;
 }

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

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

.grv-social-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:3.2em; height:3em;
  border-radius:6px;
  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:2em; height:2em; 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:#000; color:#fff; }
.grv-btn-primary:hover{ background:#222; color:#fff; }
.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 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;
  color:rgba(var(--grv-text), .95);
  margin: auto;
    padding-bottom: 0.6em;
    padding-left: 2em;
    padding-right: 2em;
}

/* 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); }
  .grv-modal{ border: 1px solid rgba(255,255,255,.2); }
  .grv-social-btn-full,
  .grv--google-full,
  .grv--apple-full,
  .grv--facebook-full,
  .grv--x-full { border-color: rgba(255,255,255,.2) !important; }
}

/* ---------- 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:100%;background:rgb(var(--grv-body)); color:rgb(var(--grv-text));
 }
#grv-magic-send.grv-btn-primary{  
 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;
}
/* ===== Version 2 Hero Image Styles ===== */
.grv-hero-image {
    margin: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 24px 24px 0px 0px;
}

.grv-hero-image img {
    width: 100%;
    height: auto;
    max-height: 252px;
    object-fit: cover;
    display: block;
}

/* Title overlay bar on hero image */
.grv-hero-title-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background:rgb(134 134 134 / 26%);
    padding: 0.3em 2em;
    text-align: center;
    border-radius: 24px 24px 0 0;
}
.grv-hero-title-text {
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

/* Version 2 card specific styling */
.grv-card-version2 {
    padding-top: 0 !important;
}

.grv-card-version2 .grv-hero-image {
    margin-bottom: 0.5em;
}

.grv-social-title {
  text-align: center;
    font-size: 1.3em;
    font-weight: 500;
    margin: 15px 0 10px;
}
/* Responsive adjustments for hero image */
@media (max-width: 480px) {
    .grv-hero-title-text {
        font-size: 0.8em;
    }
}

/* ===== V3 Login Layout: Two socials + OR + inline email ===== */
.grv-social-subtitle {
    text-align: center;
    font-size: 0.95em;
    color: rgba(var(--grv-text), .75);
    margin: 0 0 1.25em 0;
}

.grv-social-row-v3 {
    flex-direction: column;
    gap: 0.625em;
    margin-top: 0;
    margin-bottom: 0;
}

.grv-social-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    width: 100%;
    padding: 0.6em 1em;
    border-radius: 1.125em;
    border: .0625em solid rgba(var(--grv-panel-strong), .85);
    background: rgb(var(--grv-body));
    color: rgb(var(--grv-text));
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow .2s ease, transform .06s ease;
    box-sizing: border-box;
}
.grv-social-btn-full:hover {
    box-shadow: 0 0 0 .1875em rgba(var(--heading), .18);
}
.grv-social-btn-full:active {
    transform: translateY(.0625em);
}
.grv-social-btn-full svg,
.grv-social-btn-full .grv-social-img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Google full-width button */
.grv--google-full {
    background: #fff;
    border-color: #dadce0;
    color: #3c4043;
}

/* Apple full-width button */
.grv--apple-full {
    background: #fff;
    border-color: #dadce0;
    color: #3c4043;
}
.grv--apple-full .grv-social-img {
    filter: none;
}

/* Facebook full-width button */
.grv--facebook-full {
    background: #fff;
    border-color: #dadce0;
    color: #3c4043;
}

/* X (Twitter) full-width button */
.grv--x-full {
    background: #fff;
    border-color: #dadce0;
    color: #3c4043;
}

/* Primary social buttons (1st & 2nd) get a darker, thicker border */
.grv-card > .box-container > .grv-social-row > .grv-social-btn-full {
    border: .125em solid #b0b0b0;
}

/* Paired social rows: primary (text) + secondary (icon-only) side by side */
.grv-social-pair {
    display: flex;
    flex-direction: row;
    gap: 0.625em;
    align-items: stretch;
    width: 100%;
}
.grv-social-pair .grv-social-btn-full:not(.grv-social-btn-icon) {
    flex: 0 0 calc(100% - 67px - 0.625em) !important;
    width: calc(100% - 67px - 0.625em) !important;
    white-space: nowrap;
    min-width: 0;
    position: relative;
    justify-content: center;
    padding-left: 2.5em;
    padding-right: 2.5em;
}
.grv-social-pair .grv-social-btn-full:not(.grv-social-btn-icon) svg,
.grv-social-pair .grv-social-btn-full:not(.grv-social-btn-icon) .grv-social-img {
    position: absolute;
    left: 1em;
}
.grv-social-pair .grv-social-btn-full.grv-social-btn-icon {
    flex: 0 0 67px;
    width: 67px;
    padding: 0.75em;
}
.grv-social-btn-icon svg,
.grv-social-btn-icon .grv-social-img {
    width: 16px;
    height: 16px;
}

/* Short labels hidden by default */
.grv-social-label-short {
    display: none;
}

/* Medium screens: swap to short labels */
@media (max-width: 400px) {
    .grv-social-label-full {
        display: none;
    }
    .grv-social-label-short {
        display: inline;
    }
}

/* Small screens: all buttons become icon-only */
@media (max-width: 350px) {
    .grv-social-pair .grv-social-btn-full,
    .grv-social-pair .grv-social-btn-full:not(.grv-social-btn-icon),
    .grv-social-pair .grv-social-btn-full.grv-social-btn-icon {
        flex: 1 1 0 !important;
        width: auto !important;
        padding: 0.75em !important;
        justify-content: center;
    }
    .grv-social-pair .grv-social-btn-full span {
        display: none !important;
    }
    .grv-social-pair .grv-social-btn-full svg,
    .grv-social-pair .grv-social-btn-full .grv-social-img {
        position: static !important;
        width: 20px;
        height: 20px;
    }
    .grv-social-pair {
        justify-content: center;
    }
}

/* OR divider */
.grv-or-divider {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: 1em 0;
    color: rgba(var(--grv-text), .6);
    font-size: 0.9em;
    font-weight: 500;
}
.grv-or-divider::before,
.grv-or-divider::after {
    content: '';
    flex: 1;
    height: .0625em;
    background: rgba(var(--grv-panel-strong), .5);
}

/* ===== See More accordion for 3rd/4th social buttons ===== */
.grv-social-more {
    margin-top: -1.5em;
}
.grv-social-more-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    width: 100%;
    background: none;
    border: none;
    color: rgba(var(--grv-text), .6);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4em 0;
}
.grv-social-more-toggle:hover {
    color: rgb(var(--grv-text));
}
.grv-social-more-chevron {
    transition: transform 0.25s ease;
}
.grv-social-more-toggle[aria-expanded="true"] .grv-social-more-chevron {
    transform: rotate(180deg);
}
.grv-social-more-inline .grv-social-more-chevron {
    transform: rotate(-90deg);
}
.grv-social-more-inline .grv-social-more-toggle[aria-expanded="true"] .grv-social-more-chevron {
    transform: rotate(90deg);
}
.grv-social-more-panel {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}
.grv-social-more-panel.is-open {
    max-height: 200px;
    opacity: 1;
}
.grv-modal-version1 .grv-social-more-panel[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.grv-social-more-panel .grv-social-row {
    padding-top: 0.5em;
}
.grv-social-more-panel .grv-social-btn-full {
    width: 80%;
    margin: 0 auto;
    font-size: 0.9em;
    padding: 0.6em 0.85em;
}
.grv-social-more-panel .grv-social-row {
    margin-bottom: 1.5em;
}

/* ===== Version 2: Inline icon slide for 3rd & 4th socials ===== */
.grv-social-more-inline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}
.grv-social-more-inline .grv-social-more-toggle {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.grv-social-more-inline.is-open .grv-social-more-toggle {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}
.grv-social-more-inline .grv-social-icon-round.grv-social-more-icon {
    position: absolute;
    top: 50%;
    transform: translate(100%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.grv-social-more-inline .grv-social-icon-round.grv-social-more-icon {
    width: 30px;
    height: 30px;
}
.grv-social-more-inline .grv-social-icon-round.grv-social-more-icon svg,
.grv-social-more-inline .grv-social-icon-round.grv-social-more-icon .grv-social-img {
    width: 14px;
    height: 14px;
}
.grv-social-more-inline .grv-social-icon-round.grv-social-more-icon:nth-of-type(1) {
    left: calc(50% - 34px);
}
.grv-social-more-inline .grv-social-icon-round.grv-social-more-icon:nth-of-type(2) {
    left: calc(50% + 4px);
}
.grv-social-more-inline.is-open .grv-social-icon-round.grv-social-more-icon {
    transform: translate(0, -50%);
    opacity: 1;
    pointer-events: auto;
}
.grv-social-more-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-100%, -50%);
    opacity: 0;
    pointer-events: none;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(var(--grv-text), .6);
    padding: 0.4em;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.grv-social-more-back:hover {
    color: rgb(var(--grv-text));
}
.grv-social-more-inline.is-open .grv-social-more-back {
    transform: translate(0, -50%);
    opacity: 1;
    pointer-events: auto;
}
.grv-social-icon-round {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: .0625em solid #dadce0;
    background: #fff;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .06s ease;
    text-decoration: none;
}
.grv-social-icon-round:hover {
    box-shadow: 0 0 0 .1875em rgba(0, 0, 0, .08);
}
.grv-social-icon-round:active {
    transform: translateY(.0625em);
}
.grv-social-icon-round svg,
.grv-social-icon-round .grv-social-img {
    width: 18px;
    height: 18px;
}
.grv--x-full svg,
.grv-social-icon-round.grv--x-full svg {
    width: 14px;
    height: 14px;
}
.grv-modal.is-dark .grv-social-icon-round {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
}
.grv-modal.is-dark .grv-social-icon-round:hover {
    box-shadow: 0 0 0 .1875em rgba(255, 255, 255, .12);
}

/* Inline magic link form on Step 1 */
.grv-magic-inline {
    margin-bottom: 1em;
    margin-top: 0;
}
.grv-magic-inline-row {
    display: flex;
    align-items: center;
    position: relative;
    border: .0625em solid rgba(var(--grv-panel-strong), .85);
    border-radius: 1.125em;
    background: rgb(var(--grv-body));
    overflow: hidden;
}
button#grv-magic-send {
    padding: 1.07em 1em;
}
.grv-magic-inline-row input[type="email"] {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    padding: 0.75em 1em;
    background: transparent;
    color: rgb(var(--grv-text));
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}
.grv-magic-inline-row .grv-btn {
    border-radius: 0em 1.1em 1.1em 0em;
    white-space: nowrap;
    font-size: 0.9em;
    flex-shrink: 0;
}

/* Hide hero image when TalkingPoints sidebar (Vue widget) is visible */
body.tp-sidebar-active .grv-hero-image {
    display: none !important;
}
body.tp-sidebar-active .grv-card-version2 {
    padding-top: 20px !important;
}

/* ===== Unsubscribe Modal Styles ===== */
.grv-unsubscribe-text {
    text-align: center;
    margin-bottom: 1.25em;
    color: rgb(var(--grv-text));
}

.grv-unsubscribe-warning {
    text-align: center;
    font-weight: 600;
    color: rgb(var(--primary-color));
    margin-bottom: 1.25em;
}

.unsubscribe-container .grv-checkbox {
    display: block;
    margin-top: 1em;
}

.unsubscribe-container .grv-card-actions {
    margin-top: 1.25em;
}

.grv-btn-danger {
    background: rgb(var(--primary-color));
    color: rgb(var(--primary-text));
    border: none;
}

.grv-btn-danger:hover:not(:disabled) {
    background: rgb(var(--link-accent));
}

/* ============================================
   Badge Earned Notification Modal
   ============================================ */
.grv-badge-notif-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.grv-badge-notif-overlay--visible {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.grv-badge-notif {
    position: relative;
    background: rgb(var(--grv-body, 255, 255, 255));
    color: rgb(var(--grv-text, 0, 0, 0));
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grv-badge-notif-overlay--visible .grv-badge-notif {
    transform: scale(1) translateY(0);
}

.grv-badge-notif__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: rgb(var(--grv-lighter-text, 160, 160, 160));
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}

.grv-badge-notif__close:hover {
    background: rgba(var(--grv-text, 0, 0, 0), 0.08);
}

.grv-badge-notif__header {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgb(var(--grv-text, 0, 0, 0));
    letter-spacing: -0.025em;
}

.grv-badge-notif__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    width: 100px;
    height: 100px;
}

.grv-badge-notif__icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.grv-badge-notif__icon-emoji {
    font-size: 64px;
    line-height: 1;
}

.grv-badge-notif__name {
    font-size: 1.1em;
    font-weight: 600;
    color: rgb(var(--grv-text, 0, 0, 0));
    margin-bottom: 6px;
}

.grv-badge-notif__desc {
    font-size: 0.875em;
    color: rgb(var(--grv-light-text, 120, 120, 120));
    margin-bottom: 20px;
    line-height: 1.4;
}

.grv-badge-notif__btn {
    display: inline-block;
    padding: 10px 32px;
    border: none;
    border-radius: 9999px;
    background: rgb(var(--primary-color, 59, 130, 246));
    color: rgb(var(--button-text, 255, 255, 255));
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}

.grv-badge-notif__btn:hover {
    background: rgb(var(--flyout-color, 37, 99, 235));
    transform: scale(1.03);
}

/* ===== Stadium Roster — design tokens ===== */
:root {
    --uif-red:      #C8102E;
    --uif-red-deep: #A30D26;
}

/* ===== Stadium Roster — Avatar trigger ===== */

/* Wrapper sits alongside the existing .grv-auth-menu trigger area */
.grv-sr-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.grv-sr-trigger-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* The avatar button */
.grv-sr-avatar-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: transform 150ms ease, border-color 200ms ease, box-shadow 200ms ease;
    display: block;
    flex-shrink: 0;
}
.grv-sr-avatar-btn:hover { transform: translateY(-1px); }

/* "Selected" ring when dropdown is open */
.grv-sr-avatar-btn.grv-sr-avatar--open {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

/* Unread count badge on the avatar */
.grv-sr-dropdown-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 28px;
    padding: 0;
    clip-path: url(#grv-tp-bubble);
    background: #FF2D2D;
    color: #fff;
    font-family: 'DM Sans', ui-sans-serif, sans-serif;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    z-index: 2;
    line-height: 1;
    pointer-events: none;
}

/* Profile page avatar notification chip */
.grv-sr-profile-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 34px;
    height: 37px;
    padding: 0;
    clip-path: url(#grv-tp-bubble);
    background: #FF2D2D;
    color: #fff;
    font-family: 'DM Sans', ui-sans-serif, sans-serif;
    font-size: 13px;
    font-weight: 800;
    display: grid;
    place-items: center;
    z-index: 10;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
    border: none;
}

/* ===== Stadium Roster — Dropdown card ===== */

.grv-sr-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 12px;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 28px 60px rgba(20, 23, 43, 0.26), 0 4px 10px rgba(20, 23, 43, 0.08);
    overflow: hidden;
    z-index: 50000;
    transform-origin: top right;
    animation: grv-sr-pop-in 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    color: #000;
}

@keyframes grv-sr-pop-in {
    from { opacity: 0; transform: scale(0.92) translateY(-6px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.grv-sr-dropdown-inner {
    position: relative;
}

/* ── Decorative corner flourish ── */
.grv-sr-flourish {
    position: absolute;
    top: 0; right: 0;
    width: 110px; height: 110px;
    background: radial-gradient(circle at 100% 0%, rgba(200, 16, 46, 0.16), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── View containers ── */
.grv-sr-view { position: relative; z-index: 1; }

/* ── Identity row ── */
.grv-sr-identity {
    padding: 20px 20px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.grv-sr-id-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

/* Tier badge dot hanging off the identity avatar */
.grv-sr-tier-badge-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.grv-sr-id-text {
    flex: 1;
    min-width: 0;
}

.grv-sr-id-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grv-sr-id-handle {
    font-size: 13px;
    color: #5F6368;
    margin-top: 1px;
}

.grv-sr-tier-line {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.grv-sr-tier-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Notifications CTA ── */
.grv-sr-notif-cta-wrap {
    padding: 0 16px 12px;
}

.grv-sr-notif-cta {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--uif-red, #C8102E), var(--uif-red-deep, #A30D26));
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.grv-sr-notif-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.32);
}

.grv-sr-notif-cta-tile {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
    color: #fff;
}

/* Count chip on the icon tile */
.grv-sr-notif-chip {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #fff;
    color: var(--uif-red, #C8102E);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
}

.grv-sr-notif-cta-label {
    flex: 1;
    min-width: 0;
}

.grv-sr-notif-cta-primary {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grv-sr-notif-cta-secondary {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    margin-top: 1px;
}

/* ── Divider ── */
.grv-sr-divider {
    height: 1px;
    background: #E0E0E3;
    margin: 0 20px;
}

/* ── Action split row ── */
.grv-sr-actions {
    padding: 8px 8px 12px;
    display: flex;
    gap: 4px;
}

.grv-sr-action,
.grv-sr-action:link,
.grv-sr-action:visited,
.grv-sr-action:hover,
.grv-sr-action:active {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 150ms ease;
}
.grv-sr-action:hover { background: rgba(0, 0, 0, 0.04); }
.grv-sr-action svg path { fill: #000 !important; }
.grv-sr-action--muted svg path { fill: #5F6368 !important; }
.grv-sr-action--muted,
.grv-sr-action--muted:link,
.grv-sr-action--muted:visited { color: #5F6368 !important; }

/* ===== Stadium Roster — Notifications view ===== */

/* Header bar */
.grv-sr-notif-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #E0E0E3;
}

.grv-sr-notif-back {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 120ms;
}
.grv-sr-notif-back:hover { background: rgba(0, 0, 0, 0.05); }

.grv-sr-notif-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
}

.grv-sr-notif-markall {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5F6368;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 120ms;
}
.grv-sr-notif-markall:hover { background: rgba(0, 0, 0, 0.04); }

/* Notification list */
.grv-sr-notif-list {
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Each row */
.grv-sr-notif-row {
    width: 100%;
    display: flex;
    gap: 12px;
    padding: 12px 20px 12px 36px;
    position: relative;
    background: transparent;
    border: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 120ms;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.grv-sr-notif-row:last-child { border-bottom: none; }
.grv-sr-notif-row:hover { background: rgba(0, 0, 0, 0.03); }
.grv-sr-notif-row--unread { background: rgba(26, 115, 232, 0.04); }
.grv-sr-notif-row--unread:hover { background: rgba(26, 115, 232, 0.07); }

/* Row wrapper — holds the row button + per-item delete */
.grv-sr-notif-row-wrap {
    display: flex;
    align-items: stretch;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.grv-sr-notif-row-wrap:last-child { border-bottom: none; }
.grv-sr-notif-row-wrap .grv-sr-notif-row {
    flex: 1;
    border-bottom: none;
}
.grv-sr-notif-row-wrap:hover .grv-sr-notif-delete { opacity: 1; }

/* Per-item delete button */
.grv-sr-notif-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #BBBBBF;
    cursor: pointer;
    opacity: 0;
    transition: opacity 120ms, color 120ms, background 120ms;
    padding: 0;
}
.grv-sr-notif-delete:hover { color: #C8102E; background: rgba(200,16,46,0.06); }

/* Header actions group (dropdown) */
.grv-sr-notif-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Delete-all icon button (dropdown) */
.grv-sr-notif-deleteall {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #BBBBBF;
    cursor: pointer;
    transition: background 120ms, color 120ms;
    padding: 0;
}
.grv-sr-notif-deleteall:hover { background: rgba(200,16,46,0.06); color: #C8102E; }

/* Red unread dot at left edge */
.grv-sr-notif-unread-dot {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--uif-red, #C8102E);
    flex-shrink: 0;
}

/* Icon tile */
.grv-sr-notif-icon-tile {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #F5F5F7;
    display: grid;
    place-items: center;
}

/* Body text */
.grv-sr-notif-body {
    flex: 1;
    min-width: 0;
}

.grv-sr-notif-msg {
    font-size: 13px;
    line-height: 1.4;
    color: #000;
}
.grv-sr-notif-who {
    font-weight: 700;
}
.grv-sr-notif-text {
    color: #5F6368;
}
.grv-sr-notif-time {
    font-size: 11px;
    font-weight: 500;
    color: #9AA0A6;
    margin-top: 3px;
}

/* Empty state */
.grv-sr-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    color: #5F6368;
    text-align: center;
}
.grv-sr-notif-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}
.grv-sr-notif-empty-sub {
    font-size: 13px;
    color: #5F6368;
    line-height: 1.5;
}

/* Retry button */
.grv-sr-notif-retry {
    margin-top: 12px;
    background: none;
    border: 1px solid #E0E0E3;
    border-radius: 8px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #000;
    transition: background 120ms;
}
.grv-sr-notif-retry:hover { background: rgba(0,0,0,0.04); }

/* Skeleton loading rows */
.grv-sr-skeleton-row { pointer-events: none; }
.grv-sr-skeleton-tile {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: grv-sr-shimmer 1.4s infinite;
}
.grv-sr-skeleton-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: grv-sr-shimmer 1.4s infinite;
    display: block;
}
@keyframes grv-sr-shimmer {
    to { background-position: -200% 0; }
}

/* ===== Notifications side panel ===== */

#grv-notif-side-panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

#grv-notif-side-panel .grv-nsp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 28, 0.45);
    animation: grv-sr-fade-in 200ms ease both;
}

@keyframes grv-sr-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes grv-nsp-slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes grv-nsp-slide-out {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

#grv-notif-side-panel .grv-nsp-panel {
    position: relative;
    width: 380px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 0 40px rgba(15, 18, 28, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: grv-nsp-slide-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
    z-index: 1;
    color: #000;
}

#grv-notif-side-panel.grv-nsp-closing .grv-nsp-backdrop {
    animation: grv-sr-fade-in 200ms ease reverse both;
}
#grv-notif-side-panel.grv-nsp-closing .grv-nsp-panel {
    animation: grv-nsp-slide-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
}

/* Panel header */
.grv-nsp-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 16px 24px;
    border-bottom: 1px solid #E0E0E3;
    flex-shrink: 0;
}

.grv-nsp-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #000;
}

.grv-nsp-markall {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5F6368;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 120ms;
}
.grv-nsp-markall:hover { background: rgba(0,0,0,0.04); }

/* Head actions group */
.grv-nsp-head-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Delete-all icon button (side panel) */
.grv-nsp-deleteall {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #BBBBBF;
    cursor: pointer;
    transition: background 120ms, color 120ms;
    padding: 0;
}
.grv-nsp-deleteall:hover { background: rgba(200,16,46,0.06); color: #C8102E; }

.grv-nsp-close {
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid #E0E0E3;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #5F6368;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 120ms, color 120ms;
    padding: 0;
}
.grv-nsp-close:hover { background: #F5F5F7; color: #000; }

/* Panel body */
.grv-nsp-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Notification list in panel — remove the max-height cap */
#grv-notif-side-panel .grv-sr-notif-list {
    max-height: none;
}

/* Retry button within panel */
.grv-nsp-retry-wrap {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #5F6368;
    text-align: center;
}

/* ── Hide old trigger + dropdown when logged in (Stadium Roster replaces them) ── */
.grv-auth-menu[data-grv-auth-widget][data-state="user"] > .grv-auth-trigger,
.grv-auth-menu[data-grv-auth-widget][data-state="user"] > .grv-auth-dropdown {
    display: none !important;
}

/* Header context: .header-user — align the stadium roster to header height */
.header-user .grv-sr-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}
.header-user .grv-sr-avatar-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

