/* ===========================
   My Daily Mailer – Profile Page
   Clean, de-duplicated CSS (updated)
   =========================== */

/* ---- Brand tokens ---- */
:root{
  --mdm-ink:#2B3A1E;
  --mdm-ink-2:#5C4A3D;

  /* Accent scale for lines/hover depth */
  --mdm-accent:#D97706;
  --mdm-accent-700:#B15C00;
  --mdm-accent-800:#8C4800;

  /* Neutrals & cards */
  --mdm-cream:#FFF9EC;      /* light cream card */
  --mdm-cream-2:#FFF5E3;    /* alternating lighter cream */
  --mdm-card:#FFFFFF;
  --mdm-border:#E8E0D0;

  /* Watermark tint */
  --mdm-wmark: rgba(194,92,14,.12);

  /* Focus & links */
  --focus-ring:#1f6b50;     /* dark green AA focus */
  --link:#2f6d55;           /* matches site links */
}



/* ---- Page background ---- */
body.profilepage-body{
  background:
    radial-gradient(1200px 600px at 50% -200px, #fff7e1 0%, rgba(255,247,225,0) 60%),
    linear-gradient(to bottom, #f7efe1, #f5eddc);
}

/* ---- Global header strip (top of page) ---- */
.profilepage-header {
  background: linear-gradient(to right, #fde7bb, #f9d998);
  padding: 10px 0;
}
.profilepage-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.profilepage-logo { max-width: 260px; height: auto; }
.profilepage-intro { flex: 1 1 300px; max-width: 500px; text-align: center; }
.profilepage-intro p { font-size: 1rem; font-weight: 600; color: var(--mdm-ink); margin: 0 0 10px; }
.profilepage-intro span { color: var(--mdm-accent); }
.profilepage-tagline { font-size: .95rem; color: var(--mdm-ink-2); }

.btn-profilepage-cta{
  /* size & shape */
  padding: 16px 32px;
  border-radius: 999px;
  line-height: 1;

  /* type & layout */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;

  /* brand color (gradient for richer depth) */
  color: #fff;
  background: linear-gradient(180deg, var(--mdm-accent), var(--mdm-accent-700));

  /* depth & motion */
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn-profilepage-cta:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.btn-profilepage-cta:focus-visible{
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--focus-ring) 30%, white);
}

.btn-profilepage-cta.btn-alt{
  background: #fff;
  color: var(--mdm-ink);
  border: 1px solid var(--mdm-border);
  border-radius: 999px;
}
.btn-profilepage-cta.btn-alt:hover{ transform: translateY(-1px); }


.btn-profilepage-secondary{
  display:inline-block; margin-top:15px; padding:10px 20px;
  background-color: var(--mdm-accent); color:#fff; text-decoration:none; border-radius:6px; font-weight:700;
}
.btn-profilepage-secondary:hover{ background-color:#b15c00; }

/* Mobile button spacing */
@media (max-width: 600px) {
  .btn-profilepage-cta { margin-top: 12px; }
}

/* Mobile tagline: collapse into single paragraph */
@media (max-width: 600px) {
  .profilepage-intro p { display: inline; }
  .profilepage-intro br { display: none; }
}

/* Mobile tagline spacing before button */
@media (max-width: 600px) {
  .profilepage-intro { margin-bottom: 12px; }
}




/* ---- Slim sticky header after scroll ---- */
.slim-cta-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  transform: translateY(-100%);
  transition: transform .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
  z-index: var(--cta-z);
  background: rgba(255, 249, 236, .85); /* cream glass */
  backdrop-filter: saturate(1.2) blur(1px);
  border-bottom: 1px solid rgba(232,224,208,.8);
}
.slim-cta-header.is-visible{ transform: translateY(0); box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.slim-cta-inner{
  max-width: 1100px; margin: 0 auto; padding: 8px 16px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.slim-cta-title{
  font-weight: 700; color: var(--mdm-ink); font-size: .95rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* prevent layout jump: add small top padding when header is visible */
body.has-slim-cta { padding-top: 48px; } /* optional if you later toggle this class via JS */


/* ---- Container & grid ---- */
.profilepage-container{ max-width: 980px; margin: 32px auto; padding: 0 24px;}

/* Mobile-first: single column, force visual order: main → sidebar → CTA */
.profilepage-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.profilepage-main    { order: 1; }
.profilepage-sidebar { order: 2; }
.cta-section         { order: 3; }

/* Ensure sidebar is NOT sticky on mobile */
.profilepage-sidebar{
  position: static;
  top: auto;
  align-self: auto;
  height: auto;
}




/* Desktop: 2 columns, CTA under main; make sidebar sticky */
@media (min-width: 980px){
  .profilepage-grid{
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: start;
  }

  /* place items in columns */
  .profilepage-main    { grid-column: 1; order: 1; }
  .profilepage-sidebar { grid-column: 2; order: 2; }
  .cta-section         { grid-column: 1; order: 3; } /* CTA under main on desktop */

  /* sticky only on desktop */
  .profilepage-sidebar{
    position: sticky;
    top: 20px;
    align-self: start;
    height: max-content;
  }
}

/* ---- Cards ---- */
.profilepage-card {
  background: var(--mdm-card);
  padding: 22px 24px;                 /* tighter, consistent */
  margin-bottom: 22px;                /* rhythm */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--mdm-border);/* subtle structure */
}

/* tighten card padding & stack gap just a touch */
.profilepage-card{ padding: 24px 26px; margin-bottom: 24px; }
.profilepage-grid{ gap: 22px; }

/* avoid stray space at bottoms of cards */
.profilepage-card > *:last-child{ margin-bottom: 0; }

.profilepage-card h3,
.profilepage-bio-header{
  margin: 0 0 10px 0;                 /* compact spacing */
  font-weight:800;
  letter-spacing:.2px;
  color:var(--mdm-ink);
  position: relative;
}

.profilepage-card h3::after,
.profilepage-bio-header::after{
  content:"";
  display:block;
  width:44px;
  height:3px;
  margin-top:8px;
  border-radius:2px;
  background: linear-gradient(90deg, var(--mdm-accent), var(--mdm-accent-700));
  opacity:.9;
}

/* Section header accent line */
.profilepage-card h3,
.profilepage-bio-header{
  position: relative;
  margin-bottom: 12px;
}

.profilepage-card h3::after,
.profilepage-bio-header::after{
  content:"";
  display:block;
  width:56px;
  height:3px;
  border-radius:2px;
  background: var(--mdm-accent);
  margin-top: 6px;
  opacity:.9;
}


/* ---- Spotlight / hero (current) ---- */
.profilepage-hero{
  background:
    radial-gradient(120% 120% at -10% -20%, rgba(194,92,14,.10), transparent 60%),
    radial-gradient(120% 120% at 110% -30%, rgba(43,58,30,.08), transparent 60%),
    var(--mdm-cream);
  border-radius:16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 26px rgba(37,31,23,.06);
  border:1px solid var(--mdm-border);
  padding: 22px 24px;               /* match rhythm */
}

.hero-grid{
  display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:center;
}
@media (max-width:719.98px){
  /* 1-col layout, centered */
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  /* Left column stack */
/* Center avatar + chip under "Member Spotlight" */
.hero-left{
  display: flex;
  flex-direction: column;
  align-items: center;
}

  .hero-avatar-wrap{ margin: 0 auto; }
.profilepage-level{
  /* keep your colors, padding, font, etc. */
  display: block;          /* allows auto centering */
  margin: 6px auto 0;      /* small gap + centered */
  width: fit-content;
  text-align: center;
}

  /* Right column */
  .hero-right{ text-align: center; }
  .profilepage-badges-row{ justify-content: center; }
}

@media (max-width:719.98px){ .hero-left{ justify-items:center; min-width:0; } }

.profilepage-spotlight {
  font-weight: 700;
  color: var(--mdm-ink-2);
  line-height: 1.2;
  display: block;
  margin: 0 auto .2rem;  /* top=0, sides auto, bottom=.5rem */
  width: fit-content;
  text-align: center;
}

.hero-avatar-wrap{
  position: relative;
  width: 156px;  /* slightly larger */
  height: 156px;
  padding: 6px;
  border-radius: 50%;
margin: 0 auto;
  background:
    radial-gradient(140% 140% at 30% 20%, color-mix(in oklab, var(--mdm-accent) 55%, transparent), transparent 40%),
    linear-gradient(180deg, var(--mdm-accent), #b15c00);
  box-shadow:
    0 10px 22px rgba(0,0,0,.10),
    inset 0 0 0 2px #fff;
}
@media (prefers-reduced-motion: reduce){
  .hero-avatar-wrap{ animation: none; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


.profilepage-avatar{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  background: #fff;
}

.profilepage-level {
  background:#fff7ef;
  border:1px solid #f3dec9;
  color:var(--mdm-ink-2);
  padding:6px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:.9rem;

  /* Center under the avatar across layouts */
  display:block;
  width:fit-content;
  margin:.4rem auto 0;
  text-align:center;
  justify-self:center; /* also centers if the parent is a CSS grid */
}


.hero-right{ min-width:0; }
.profilepage-name{ color:var(--mdm-ink); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height:1.15; margin:0; }
.profilepage-meta, .profilepage-views{ color:var(--mdm-ink-2); font-size:.98rem; margin:.2rem 0; }

/* ---- Legacy memberbox (kept minimal for compatibility) ---- */
.profilepage-memberbox{
  padding:26px 26px 20px;
  background:
    radial-gradient(800px 400px at 70% -200px, rgba(255, 201, 130, .22), transparent 70%),
    #fff;
  border-radius:14px; border:1px solid var(--mdm-border);
}
.profilepage-left-col{ text-align:center; flex:0 0 180px; }
.profilepage-right-col{ flex:1; }
@media (max-width:600px){
  .profilepage-memberbox{ display:flex; flex-direction:column; align-items:center; text-align:center; }
  .profilepage-left-col, .profilepage-right-col{ flex:1 1 100%; text-align:center; }
}

/* ---- Badges ---- */
.profilepage-badges-row{
  display:flex; flex-wrap:wrap; gap:14px 5px; margin:14px 0 2px; align-items:flex-start;
}
.profilepage-badge-tile{
  width:70px; display:flex; flex-direction:column; align-items:center; text-align:center;
  transform-origin:center;
}
.profilepage-badge-tile img{
  width:70px; height:70px; display:block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.06));
  transition: transform .15s ease;
}
.profilepage-badge-tile:hover{ transform: translateY(-2px); }
.profilepage-badge-label,
.profilepage-badge-tile .profilepage-banner-stats{ font-size:.72rem; line-height:1.15; color:var(--mdm-ink-2); }

/* Optional token-style badge (if used) */
.badge-token{
  width:64px; height:64px; border-radius:50%; display:grid; place-items:center; background:#fff;
  border:2px solid var(--mdm-accent); box-shadow:0 6px 14px rgba(194,92,14,.15); position:relative;
  margin-bottom:16px;    /* NEW: reserves space for the pill */
}

.badge-token img{ width:46px; height:46px; display:block; object-fit:contain;}
.badge-level{
  position:absolute;
  bottom:-18px;          /* keep your visual drop */
  left:50%;
  transform:translateX(-50%);
  font-size:.62rem;      /* your smaller text */
  font-weight:800;
letter-spacing:.2px;
  color:#fff;
  background:var(--mdm-accent);
  padding:2px 8px;
  border-radius:999px;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}


.badge-name{ margin-top:5px; font-size:.8rem; font-weight:700; color:var(--mdm-ink); }


/* Tier colorways */
.profilepage-badge-tile[data-tier="bronze"]   .badge-level{ background: #CD7F32; }
.profilepage-badge-tile[data-tier="silver"]   .badge-level{ background: #C0C0C0; color:#243024; }
.profilepage-badge-tile[data-tier="gold"]     .badge-level{ background: #E6C200; color:#243024; }
.profilepage-badge-tile[data-tier="platinum"] .badge-level{ background: #D2E0E6; color:#243024; }
.profilepage-badge-tile[data-tier="diamond"]  .badge-level{ background: #7BD2F9; color:#0c2a36; }

/* Locked badges (Level 0) */
.profilepage-badge-tile.is-locked .badge-token img{
  filter: grayscale(1) opacity(.35);
}

.profilepage-badge-tile.is-locked .badge-level{
  background: var(--mdm-border);
  color: var(--mdm-ink-2);
  border: 1px dashed var(--mdm-border);
}

/* Lock icon overlay (Font Awesome already loaded on page) */
.profilepage-badge-tile.is-locked .badge-token{
  position: relative;
}
.profilepage-badge-tile.is-locked .badge-token::after{

  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -6px;
  bottom: -6px;
  font-size: 0.85rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  background: #fff;
  color: var(--mdm-ink-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.profilepage-badge-tile .badge-level{
  /* keep your existing styles; ensure it looks “active” by default */
  /* example: background: var(--mdm-accent); color:#fff; ... */
}

.profilepage-badge-tile.is-locked .badge-name{
  color: var(--mdm-ink-2);
  opacity: .8;
}

/* Subtle hover tilt (respects reduced motion) */
.profilepage-badge-tile{
  transition: transform .18s ease, filter .18s ease;
}
@media (hover:hover){
  .profilepage-badge-tile:hover{
    transform: translateY(-2px) rotate(-.75deg);
  }
}
@media (prefers-reduced-motion: reduce){
  .profilepage-badge-tile{ transition:none; }
  .profilepage-badge-tile:hover{ transform:none; }
}

/* ---- Badges responsive tweak ---- */
@media (max-width:480px){
  .profilepage-badge-tile{
    width:56px; /* shrink tile */
  }
  .profilepage-badge-tile img{
    width:56px;
    height:56px;
  }
  .badge-token{
    width:52px; height:52px;
  }
  .badge-token img{
    width:38px; height:38px;
  }
  .badge-name{
    font-size:.72rem; margin-top:10px;
  }
}
@media (max-width:480px){
  .badge-level{ bottom:-12px; font-size:.56rem; padding:2px 6px; }
  .badge-token{ margin-bottom:16px; }
  .badge-name{ margin-top:8px; }
}


/* ---- Stats strip ---- */
.profilepage-stats{
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px;
  background:var(--mdm-cream); border:1px dashed var(--mdm-border);
}
@media (min-width:720px){ .profilepage-stats{ grid-template-columns:repeat(3,1fr); } }
.profilepage-stats>div{
  background:#fffdf7; border:1px solid var(--mdm-border);
  border-radius:10px; padding:16px; text-align:center; box-shadow:0 3px 10px rgba(0,0,0,.03);
}
.profilepage-stats strong{ font-size:1.25rem; color:var(--mdm-ink); }

/* ---- Bio ---- */
.profilepage-bio-full{
  flex-basis:100%; margin:.25rem 0 .5rem; padding-top:.5rem; border-top:1px solid var(--mdm-border);
}
.profilepage-bio-box{ font-style:italic; color:var(--mdm-ink-2); line-height:1.6; }

/* =========================================
   Banner Ads
   ========================================= */

/* Row container */
.profilepage-banner-row{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  justify-content:center;
  margin-top:10px;
}

/* Enlarged 468x60s */
.profilepage-banner-row.big-banners{
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:center;
}
.profilepage-banner-row.big-banners .banner-wrap{
  position:relative;
  max-width:600px;
  width:100%;
}
.profilepage-banner-row.big-banners .banner-wrap img{
  width:100%;
  height:auto;
  border:3px solid var(--mdm-accent);
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.10);
  transition:transform .25s ease, box-shadow .25s ease;
  display:block;
}
.profilepage-banner-row.big-banners .banner-wrap img:hover{
  transform:scale(1.03);
  box-shadow:0 10px 24px rgba(0,0,0,.15);
}

/* === Overlay === */
.banner-wrap .banner-stat-overlay{
  position: absolute;
  z-index: 2;
  pointer-events: none;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity .18s ease;
}
@media (hover:hover){
  .banner-wrap:hover .banner-stat-overlay,
  .banner-wrap:focus-within .banner-stat-overlay{
    opacity: 1;
  }
}
@media (hover:none){
  .banner-wrap .banner-stat-overlay{ opacity: 1; }
}

/* FORCE bottom-right on wide */
.profilepage-banner-row.big-banners .banner-wrap.wide .banner-stat-overlay{
  top:auto !important;
  right:8px;
  bottom:6px !important;
  border-radius:50px;
  font-size:.65rem;
  padding:2px 6px;
}

/* Squares (125x125) */
.profilepage-square-banners{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  justify-content:center;
  margin:6px 0 8px;
}
.profilepage-square{ width:125px; text-align:center; margin:0 auto; }
.profilepage-square .banner-wrap.square{
  position:relative;
  display:inline-block;
}
/* Works for both cases: with .banner-wrap.square or plain <a><img> */
.profilepage-square .banner-wrap.square img,
.profilepage-square > a img{
  display:block;
  width:125px; height:125px; object-fit:contain;
  border-radius:10px;
  background:var(--mdm-cream);
  border:1px solid #D1C4A9;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}

.profilepage-square .banner-wrap.square img:hover,
.profilepage-square > a img:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}

.profilepage-tool-name{
  font-size:.95rem;
  font-weight:600;
  color:var(--mdm-ink);
  margin-top:6px;
  text-align:center;
}
.profilepage-tool-name a{
  color:var(--mdm-ink);
  text-decoration:none;
}
.profilepage-tool-name a:hover{ text-decoration:underline; }

/* Bottom-center overlay on squares — single line */
.profilepage-square .banner-wrap.square .banner-stat-overlay{
  top:auto !important;
  bottom:4px;
  left:50%;
  transform:translateX(-50%);
  border-radius:4px;
  font-size:.62rem;
  padding:2px 6px;
  white-space:nowrap;
  max-width:calc(100% - 10px);
  text-overflow:ellipsis; overflow:hidden;
}

/* Square banner overlays — multiline option */
.profilepage-square .banner-wrap.square .banner-stat-overlay {
  position:absolute;
  bottom:6px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(2px);
  color:#fff;
  font-size:.62rem;
  font-weight:600;
  padding:4px 6px;
  border-radius:4px;
  text-align:center;
  line-height:1.2;
  opacity:0;
  transition:opacity .25s ease;
  pointer-events:none;
}
.profilepage-square .banner-wrap.square:hover .banner-stat-overlay {
  opacity:1;
}

/* Optional count-based alignment helpers */
@media (min-width:480px){
  .profilepage-square-banners.profilepage-square-count-1,
  .profilepage-square-banners.profilepage-square-count-2,
  .profilepage-square-banners.profilepage-square-count-3{ justify-content:center; }
  .profilepage-square-banners.profilepage-square-count-4{ justify-content:space-around; }
  .profilepage-square-banners.profilepage-square-count-5{ justify-content:space-between; }
}
.profilepage-square-banners.profilepage-square-count-1,
.profilepage-square-banners.profilepage-square-count-2,
.profilepage-square-banners.profilepage-square-count-3,
.profilepage-square-banners.profilepage-square-count-4{
  justify-content:center; max-width:fit-content; margin-left:auto; margin-right:auto;
}
@media (max-width:480px){
  .profilepage-square-banners.profilepage-square-count-1,
  .profilepage-square-banners.profilepage-square-count-2{
    flex-direction:column; align-items:center;
  }
}

/* ---- CTA section variant ---- */
.profilepage-card.cta-section{ background: #ffffff; border:1px solid #D1C4A9; }

.cta-section .btn-profilepage-cta{
  font-size:1.05rem; padding:16px 28px;
  background: linear-gradient(180deg, #d26b11, #b85b0b);
  box-shadow: 0 12px 24px rgba(194, 92, 14, .28);

  display:block;                 /* ensure it sizes predictably */
  width:clamp(220px, 92%, 320px);/* never edge‑to‑edge or too tiny */
  margin:0 auto;                 /* center in the card */
  box-sizing:border-box;         /* padding counts toward width */
}


.cta-section .btn-profilepage-cta:hover{ filter:brightness(1.05); transform:translateY(-1px); }

/* CTA layout helpers */
.cta-wrap{ max-width:640px; margin:0 auto; text-align:center; padding-inline:10px; }
.cta-title{ margin: 0 0 .25rem; text-wrap: balance; }
.cta-title::after{
  content:""; display:block; width:72px; height:4px; margin:.5rem auto 0;
  background: var(--mdm-accent); border-radius: 2px;
}
.cta-sub{
  margin: .75rem auto 1rem;
  color: var(--mdm-ink-2);
  max-width: 58ch; /* keeps lines comfy on mobile & desktop */
  text-wrap: balance;
}

/* Clean, branded check list */
.cta-list{
  list-style: none; padding: 0;
  margin: 0 auto 1rem;
  max-width: 520px;
  text-align: left;            /* list reads better left-aligned */
  display: grid; gap: 10px;
}
.cta-list li{
  position: relative; padding-left: 28px; line-height: 1.45;
}
.cta-list li::before{
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-weight: 800; color: var(--mdm-accent);
}

/* Closer & micro‑trust */
.cta-closer{ margin: .25rem 0 1rem; }
.cta-guarantee{
  margin-top: .6rem; font-size: .9rem; color: #8b7e72;
}

/* Button sizing on small screens */
.btn-cta-big{ display:inline-block; }
@media (max-width:560px){
  .btn-cta-big{ width:100%; max-width:320px; }
}


/* ---- Snapshot tiles (main module) ---- */
.profile-snapshot{
  background:#fff; border:1px solid #D1C4A9; border-radius:14px; padding:14px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.profile-snapshot__grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px;
}
.profile-snapshot__tile{
  background:#fff; border:1px solid var(--mdm-border); border-radius:12px;
  padding:6px 10px;  display:grid; grid-template-columns:24px 1fr; align-items:center; gap:8px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.profile-snapshot__tile:hover{ transform:translateY(-1px); box-shadow:0 2px 10px rgba(0,0,0,.06); }
.profile-snapshot__icon{
  width:24px; height:24px; display:grid; place-items:center; border-radius:6px;
  background:#FFF3DE; color:#D97706; flex-shrink:0;
}
.profile-snapshot__meta{ min-width:0; }
.profile-snapshot__value{
  font-family:"Montserrat", sans-serif; font-weight:700; font-size:1.05rem; line-height:1.1; color:var(--mdm-ink);
  font-variant-numeric: tabular-nums;
}
.profile-snapshot__unit{ margin-left:4px; font-size:.78rem; font-weight:700; color:#998E84; }
.profile-snapshot__label{ display:block; margin-top:2px; font-size:.82rem; line-height:1.2; color:#998E84; font-weight:600; letter-spacing:.1px; }
@media (max-width:560px){
  .profile-snapshot__tile{ grid-template-columns:1fr; text-align:center; padding:12px 10px; }
  .profile-snapshot__icon{ margin:0 auto 6px; }
}

/* ---- Sidebar snapshot (compact) ---- */
.msnap-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:560px){ .msnap-grid{ grid-template-columns:1fr; } }
.msnap-item{
  display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--mdm-border);
  border-radius:10px; padding:8px 10px; min-height:54px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.msnap-item:hover{ transform:translateY(-1.5px); box-shadow:0 3px 12px rgba(0,0,0,.07); }
@media (prefers-reduced-motion: reduce){
  .msnap-item{ transition:none; }
  .msnap-item:hover{ transform:none; }
}
.msnap-ico{
  flex:0 0 34px; height:34px; border-radius:10px; background:#FFF2E1; color:var(--mdm-accent);
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.msnap-text{ line-height:1; }
.msnap-label{ font-size:.80rem; color:var(--mdm-ink-2); margin-bottom:3px; white-space:nowrap; }
.msnap-value{ font-size:.98rem; font-weight:700; color:var(--mdm-ink); line-height:1.1; }

/* ---- Inputs global (per your request) ---- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
textarea{
  background-color:#ffffff !important;
}

/* ---- Utilities ---- */
.m-0{ margin:0; }
.mt-0{ margin-top:0; }
.mt-8{ margin-top:8px; }
.mt-16{ margin-top:16px; }

.sr-only{
  position:absolute !important;
  width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important;
  overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important;
}


/* ---- Recent Emails — simple, compact feed ---- */
.recent-feed{
  display:flex;
  flex-direction:column;
  gap:0;
}
.recent-feed-item{
  padding:10px 0 12px;
  border-bottom:1px solid var(--mdm-border);
  border-radius:0;
  background:transparent;
}
.recent-feed-item:last-child{ border-bottom:0; }
.recent-head{ display:block; }
.recent-badge{ display:none !important; }

.recent-feed-link{
  display:block;
  font-weight:700;
  color:#2f6d55;
  text-decoration:none;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
}
.recent-feed-link:hover{ text-decoration:underline; }

.recent-meta{
  margin-top:4px;
  font-size:.86rem;
  color:#998E84;
}

.recent-feed-item:focus-within{
  outline:2px solid #3B7A57;
  outline-offset:2px;
  border-radius:6px;
}

@media (max-width:420px){
  .recent-feed-item{ padding:8px 0 10px; }
  .recent-meta{ font-size:.84rem; }
}

/* Empty-state helper */
/* Empty-state — premium */
.empty-state{
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 16px 16px 56px;
  border: 1px solid #E6DCC4;
  border-radius: 12px;
  background: linear-gradient(180deg,#fffef9,#fff9f0);
  color: #6E5E4C;
  font-weight: 600;
  text-align: left;
}

.empty-state::before{
  content:"\f05a"; /* fa-circle-info */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--mdm-accent);
  opacity: .18; /* watermark, not a badge */
}

/* one-line encouragement */
.empty-state strong{
  display:block;
  margin-top:6px;
  color: var(--mdm-ink);
  font-weight:800;
}


/* Default desktop: inline row */
.username-line {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

/* Mobile: stack into two centered rows */
@media (max-width: 719.98px) {
  .username-line {
    flex-direction: column;
    gap: 2px;
  }
}
