/* styles.css */
/* ALL YOUR ORIGINAL CSS STYLES WITH RELATIVE PATHS */

:root { --header-h: 90px; } /* Removed --vvb calculation: using fixed position is the modern standard */




@media (max-width: 900px){
  :root { --header-h: 105px; } /* match your mobile logo */
}



/* Dynamic viewport */
/* Stable root sizing to avoid fixed-bottom drift when Safari UI collapses */
html {
  height: -webkit-fill-available;                  /* iOS Safari */
}
body {
  min-height: 100svh;                              /* “small” vh = stable */
  min-height: -webkit-fill-available;              /* fallback for older iOS */
  height: auto;
  overscroll-behavior: contain;
}
/***** Dynamic viewport (E N D)****/


/* Global styles */
body {
    font-family: 'Segoe UI Historic', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5; /*Color original era #f0f2f5*/
}

/* Logged-in page bottom breathing room
   - lets the last post scroll fully into view even on desktop/tablet */
body.authed {
    padding-bottom: 56px;
}

/* ---------- NEW: prevent pre-JS flash ---------- */
.login-form{ display:none; }   /* hidden until JS decides */
.mobile-nav{ display:none; }   /* idem */

/* Auth-only UI: hidden until a valid session */
.profile-controls,
#staticButton-insideHeaven,
#logoutBtn,
.post-form,
.feed,
.right-sidebar,
#firstBouquetText { display: none; }
.mobile-nav{ display:none;  } /* inline-flex / grid are fine too */

/* ---------- NEW block ends ---------- */


/* ===== Utility: quickly hide any element ===== */
.hidden {
    display: none !important;
}
/*************quickly hide any element (E N D)****/


/* Static buttons:
- #staticButton-insideHeaven stays fixed (Your Heaven)
- #staticButton is placed by .profile-controls */
#staticButton-insideHeaven {
  position: fixed;
  left: 20px;
  top: 245px !important; /* keep below the profile pill on tablets */
  z-index: 1000;
}

#staticButton {
  position: static !important;
  left: auto !important;
  top: auto !important;
}

/* Header styles */
.header {
    background-color: #ffffff; /*Color original era #e6e9f0*/
    color: #3b5998;
    padding: 0.5rem; /* Added some padding for better spacing */
    text-align: center;
    position: fixed;
    top: 0;
    left: 0; /* Changed to 0 for consistency */
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    height: var(--header-h); /* set via CSS variable */
    display: flex; /* Use flexbox for alignment */
    justify-content: space-evenly; /* Space between logo and buttons */
    align-items: center; /* Center items vertically */
    padding: 5px; /* Add some padding */
}     

.header h1 {
    flex: 1; /* Allow title to take available space */
    text-align: center; /* Center the title text */
    margin: 0; /* Remove default margin */
}

.header button {
    margin: 0 5px; /* Space between buttons */
}

/* Login and post forms */
.login-form, .post-form {
    margin: 9rem auto 0;
    padding: 2rem;
    top: 10em; /* Aligns it to the top of the viewport */
    background-color: white;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* LOGO FACE en el "Header" — scale by height, keep aspect ratio */
/* LOGO FACE base — neutral; sizes are set by media queries below */
.logo-Face {
  height: auto;
  width: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  margin-left: -12px;
  margin-top: 0px;
  display: inline-block;
}

.logo-container {
    flex: 0; /* Keep the logo fixed to the left */
}                

/* Feed and posts */
.feed {
    margin: 0rem auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-sizing: border-box;
    width: 95%;
    max-width: 700px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden; /* ⛔ Prevents side scrolling */
}

/* =========================================================
   Feed bottom breathing room
   - creates real scrollable space after the final post
   - helps the last post/comments clear sticky/fixed UI
   ========================================================= */
.feed::after{
    content: "";
    display: block;
    height: 110px;
}
/* =========================================================
   Feed bottom breathing room (E N D)
   ========================================================= */

.post {
    border: 1px solid #ccc; /* Light border around each post */
    border-radius: 10px; /* Rounded corners */
    padding: 15px; /* Padding inside the post */
    margin: 10px auto; /* Center the post and add margin */
    margin-bottom: 20px;
    background-color: #f9f9f9; /* Light background for posts */
    width: 100%; /* Set to desired width, e.g., 350px or a percentage */
    max-width: 400px; /* Set a maximum width */
    border: 1px solid #ccc; /* Optional: Add border for visual separation */
    overflow: hidden; /* Prevent overflow */
    position: relative; /* Added for positioning overlays */
    box-sizing: border-box;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-on-post {
    margin-top: 2px; /* Space above the comment */
    padding: 6px 8px; /* Slightly roomier for comment actions */
    border-radius: 10px; /* Softer card feel */
    background-color: #f9f9f9; /* Background color for comments */
    word-wrap: break-word; /* Ensure long words break */
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comment-on-post-content {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.4;
}

.comment-author-name {
    color: #2563eb;
    font-weight: 400;
}

.comment-report-trigger {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.comment-report-trigger:hover {
    background: rgba(243, 244, 246, 0.96);
}

/* =========================================================
   Comment Thread Collapse V1
   - reduces visual noise on posts with many comments
   - keeps each comment's 3-dot report menu untouched
   ========================================================= */
.comment-thread-collapse-v1 {
    margin: 6px 0 8px;
    padding: 0 6px;
}

.comment-thread-collapse-v1 .comment-on-post {
    margin: 6px 0 !important;
}

.comment-thread-collapse-v1 .comment-on-post[hidden],
.comment-thread-toggle[hidden],
.comment-thread-empty-hint[hidden] {
    display: none !important;
}

/* =========================================================
   Empty Comment State V1 (S T A R T)
   - Calm empty state for posts/reflections with no comments yet
   ========================================================= */
.comment-thread-empty-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    margin: 8px 0 2px;
    padding: 7px 11px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.comment-thread-empty-hint::before {
    content: "↳";
    color: rgba(34, 197, 94, 0.9);
    font-size: 0.92rem;
    font-weight: 800;
}
/* =========================================================
   Empty Comment State V1 (E N D)
   ========================================================= */

.comment-thread-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    padding: 7px 4px 5px;
    margin: 2px 0 3px;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-thread-toggle::before {
    content: "↳";
    font-size: 14px;
    opacity: 0.82;
}

.comment-thread-toggle:hover {
    color: #0f5132;
    text-decoration: underline;
}

.comment-thread-toggle:focus-visible {
    outline: 2px solid rgba(22, 163, 74, 0.35);
    outline-offset: 3px;
    border-radius: 8px;
}

.comment-thread-collapse-v1.is-expanded .comment-thread-toggle {
    color: #374151;
}
/* =========================================================
   Comment Thread Collapse V1 (E N D)
   ========================================================= */

.post img, .post video {
    max-width: 100%; /* Ensure media fits within the post */
    height: auto; /* Maintain aspect ratio */
    border-radius: 4px; /* Rounded corners for media */
    display: block; /* Ensure the media elements are block-level */
}

.post .media-container {
    width: 100%; /* Ensure it takes the full width of the post */
    position: relative; /* Ensure overlays are positioned correctly */
}

/* Buttons */
button { 
    background-color: #007bff; /* Button background color */
    color: white; /* Button text color */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners for buttons */
    padding: 5px 10px; /* Padding inside buttons */
    cursor: pointer; /* Pointer cursor on hover */
}

button:hover {
    background-color: #d1d6dc; /* Darker shade on hover */
}

input[type="text"] {
    width: 100%; /* Full width for comment input */
    padding: 8px; /* Padding inside input */
    margin-top: 5px; /* Space above the input */
    border: 1px solid #ccc; /* Light border */
    border-radius: 4px; /* Rounded corners */
}

/* Boton de NOMBRE de USUARIO */
.special-button { 
    background-color: #f0f7f200; /* Custom background color */
    color: rgb(6, 6, 6);
    padding: 0rem 0rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 0;
    
    /* Custom font styles */
    font-family: 'Segoe UI Historic', sans-serif; /* Change to your desired font family */
    font-size: 16px; /* Change to your desired font size */
    font-weight: bold; /* Change to your desired font weight */
    font-style: normal; /* Change to italic if desired */
}

.special-button:hover {
    background-color: #a8acb332; /* Custom hover color */
}

/* Rotulo para GIORGIO'S HEAVEN */
.insideHeaven-button {
    background-color: #f0f7f200; /* Custom background color */
    color: rgb(6, 6, 6);
    padding: 0rem 0rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 0;
    
    /* Custom font styles */
    font-family: 'Segoe UI Historic', sans-serif; /* Change to your desired font family */
    font-size: 16px; /* Change to your desired font size */
    font-weight: bold; /* Change to your desired font weight */
    font-style: normal; /* Change to italic if desired */
}

.header-buttons button {
    background-color: #ffffff; /* Button color */
    color: #3b5998;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.insideHeaven-button:hover {
    background-color: #a8acb332; /* Custom hover color */
}

.header-buttons button:hover {
    background-color: #f1f2f6; /* Darker shade for hover effect */
}

/* AVATAR global */
.avatar {
    width: 25px; /* Set the desired width */
    height: 25px; /* Set the desired height */
    border-radius: 50%; /* Makes the image circular */
    margin-right: 8px; /* Spacing between the image and text */
    vertical-align: middle; /* Aligns the image vertically with the text */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    overflow: hidden; /* Ensures any overflow is hidden */
}

.avatar-miniature {
    border-radius: 50%; /* Makes the avatar circular */
    width: 25px; /* Width of the miniature */
    height: 25px; /* Height of the miniature */
    margin-bottom: 10px; /* Space below the avatar */
}

/* Make every miniature avatar show a pointer on hover */
.post .avatar-miniature{
  cursor: pointer;
}

.welcome-text h3 {
    font-family: 'Segoe UI Historic', sans-serif; /* Change to your desired font */
    font-size: 24px; /* Adjust the size as needed */
    color: #9a9da1; /* Change to your desired color */
    text-align: center;      /* Center the text */
    margin-bottom: 0px;     /* Add some space below the heading */
    font-weight: bold;       /* Make the text bold */
    text-transform: none; /* Transform the text to uppercase */
}

/* BOUQUET SECTION */
/* Mobile instructions: visible under header; never intercept taps */
.first-bouquet-text {
    position: relative;        /* was: sticky */
    top: auto;                 /* let JS control show/hide; no sticky box */
    right: auto;
    margin: 8px 12px 6px;      /* normal flow; no giant left margin */
    width: auto;
    z-index: 900;              /* below modals, above feed content */
    padding: 10px;
    color: #202021;
    text-align: right;

    /* Custom font styles */
    font-family: 'Segoe UI Historic', sans-serif; /* Change to your desired font family */
    font-size: 16px; /* Change to your desired font size */
    font-weight: bold; /* Change to your desired font weight */
    font-style: normal; /* Change to italic if desired */

    pointer-events: none;      /* text never blocks taps */

  }

/* Instructions Bouquete buttons- CONTAINER */
.INSTRUCTIONS-bouquet-button-container {
    display: none;
    position: fixed; /* Keep the container fixed */
    top: calc(var(--header-h, 64px) + 56px); /* same visual spot under header */
    right: 20px; /* Adjust the horizontal position */
    z-index: 1000; /* Ensure it overlays other content */
    margin-top: 20px; /* Space between bouquet text and buttons */
    justify-content: center;
    background-color: #f5f5f5; /*Usar este primero #f5f5f5 **** Color original era #f0f2f5*/

    /* Keep its hitbox compact so it can't overlay the feed */
    pointer-events: auto;
}

/* Bouquete Buttons */
.INSTRUCTIONS-bouquet-small-button {
    background-color: #f5f5f5; /*Color original era #f0f2f5*/
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    padding: 5px; /* Reduce padding for a tighter look */
    margin: 2px; /* Adjust this value to control the space between buttons */
}

/* Size of the BOUQUETS images */
.INSTRUCTIONS-bouquet-small-button img {
    width: 40px; /* Size of the button image */
    height: 40px; /* Size of the button image */
    background-color: #f5f5f5; /*Color original era #f0f2f5*/
    transition: transform 0.9s; /* Smooth transition for scaling */
}

.INSTRUCTIONS-bouquet-small-button:hover {
    background-color: #a8acb332; /* Darker shade for hover effect */
    transform: scale(1.2); /* Scale down to 90% of the original size */
}

.Bouquet-Post-button-container {
    display: flex;
    justify-content: space-between; /* Adjust alignment */
    margin-bottom: 10px; /* Space above Like and Comment buttons */
}

.buquet-post-action-button {
    margin-right: 12px; /* Space between buttons */
    margin-left: 10px; /* Space between buttons */
    background-color: #f9f9f9; /* Button background color */
    color: #9a9da1; /* Button text color */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners for buttons */
    cursor: pointer; /* Pointer cursor on hover */
}

.buquet-post-action-button:hover {
    background-color: #a8acb332; /* Darker shade for hover effect */
}

/* =========================================================
   Bouquet Eligibility Cleanup V1 (START)
   - Safety net: text-only posts must never show bouquet UI,
     even if old data or old DOM appears during re-render.
   ========================================================= */
.post-item-bouquet-disabled .Bouquet-Post-button-container,
.post-item-bouquet-disabled .bouquet-layer,
.post-item-bouquet-disabled .bouquet-count-chip,
.post-item-bouquet-disabled .post-givers-list {
    display: none !important;
}
/* =========================================================
   Bouquet Eligibility Cleanup V1 (END)
   ========================================================= */

.overlay-image {
    position: absolute;
    z-index: 10; /* Ensure the overlay is above the media */
}

/* Modal Dialog BOX for adding bouquet "YES" and "NO" */
.modal-bouquet {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    justify-content: center; /* Center the content */
    align-items: center;
}

.modal-bouquet-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Payment Modal Styles */
.payment-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1002; /* Sit on top, above other modals */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    justify-content: center; /* Center the content */
    align-items: center;
}

.payment-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 350px;
}

.payment-modal-content h3 {
    margin-bottom: 20px;
}

.payment-modal-content .input-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.payment-modal-content .input-row input {
    width: 70px;
    padding: 5px;
    text-align: center;
    font-size: 16px;
}

.payment-modal-content .input-row span {
    align-self: center;
}

.payment-modal-content .expiration-date {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.payment-modal-content .expiration-date input {
    width: 50px;
    padding: 5px;
    text-align: center;
    font-size: 16px;
}

.payment-modal-content .expiration-date span {
    margin: 0 5px;
    font-size: 18px;
}

.payment-modal-content .cvv-input {
    width: 80px;
    padding: 5px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-modal-content .button-row {
    margin-top: 20px;
}

.payment-modal-content .button-row button {
    margin: 0 10px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

.payment-modal-content .button-row button:hover {
    background-color: #0056b3;
}

/* Bouquet checkout premium modal polish (S T A R T)
   Modernizes bouquet confirmation + payment modals while keeping feed-style action buttons. */
#bouquetModal.modal-bouquet,
#paymentModal.payment-modal,
#bouquetContributionModal.contrib-modal {
    background:
        radial-gradient(circle at top, rgba(34, 197, 94, 0.20), transparent 34%),
        rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 18px;
    box-sizing: border-box;
}

#bouquetModal .moh-bouquet-decision-card,
#paymentModal .moh-payment-card,
#bouquetContributionModal .modal-bouquet-content {
    width: min(92vw, 430px);
    box-sizing: border-box;
    border-radius: 28px;
    padding: 24px 20px 20px;
    text-align: center;
    color: #f8fafc;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
    border: 1px solid rgba(34, 197, 94, 0.28);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

#bouquetModal .moh-bouquet-decision-card::before,
#paymentModal .moh-payment-card::before,
#bouquetContributionModal .modal-bouquet-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.20), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
}

#bouquetModal .moh-bouquet-decision-card > *,
#paymentModal .moh-payment-card > *,
#bouquetContributionModal .modal-bouquet-content > * {
    position: relative;
    z-index: 1;
}

.moh-bouquet-modal-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #86efac;
    font-size: 28px;
    line-height: 1;
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(134, 239, 172, 0.42);
    box-shadow: 0 0 26px rgba(34, 197, 94, 0.20);
}

.moh-bouquet-modal-eyebrow {
    margin: 0 0 8px;
    color: rgba(187, 247, 208, 0.90);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#bouquetModal .moh-bouquet-decision-card h3,
#paymentModal .moh-payment-card h3,
#bouquetContributionModal .modal-bouquet-content h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(21px, 4.8vw, 28px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.moh-premium-green,
#bouquetContributionModal .modal-bouquet-content b {
    color: #22c55e;
}

.moh-bouquet-modal-copy,
#bouquetContributionModal .modal-bouquet-content p {
    margin: 12px auto 0 !important;
    max-width: 34rem;
    color: rgba(226, 232, 240, 0.86);
    font-size: 14px;
    line-height: 1.55 !important;
}

.moh-feed-modal-actions,
#paymentModal .button-row,
#bouquetContributionModal .contrib-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.moh-feed-modal-action,
#paymentModal .button-row button,
#bouquetContributionModal .contrib-actions button {
    width: auto;
    min-width: 132px;
    min-height: 42px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: #ffffff;
    color: #111827;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.moh-feed-modal-action:hover,
#paymentModal .button-row button:hover,
#bouquetContributionModal .contrib-actions button:hover {
    background: #ffffff;
    border-color: rgba(22, 163, 74, 0.46);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.18),
        0 0 0 3px rgba(34, 197, 94, 0.12);
    transform: translateY(-1px);
}

.moh-feed-modal-action-primary,
#yesButton.moh-feed-modal-action-primary,
#proceedPaymentButton.moh-feed-modal-action-primary,
#bouquetContributionModal #contribContinue {
    border-color: rgba(34, 197, 94, 0.48);
    background: linear-gradient(180deg, #ffffff, #f0fdf4);
    color: #064e3b;
}

/* =========================================================
   Paid Bouquet Placement Modal Clarity V1 (START)
   - Centers the single placement button after Stripe payment.
   - Keeps "No, cancel" hidden only for paid placement/recovery.
   ========================================================= */
#bouquetModal.moh-paid-placement-flow .moh-feed-modal-actions {
    justify-content: center;
}

#bouquetModal.moh-paid-placement-flow #noButton {
    display: none !important;
}

#bouquetModal.moh-paid-placement-flow #yesButton {
    min-width: 190px;
    padding-inline: 22px;
}
/* Paid Bouquet Placement Modal Clarity V1 (END) */

#paymentModal #proceedPaymentButton {
    min-width: 178px;
    padding-inline: 10px;
    font-size: 9px;
    letter-spacing: 0.035em;
    line-height: 1.05;
    white-space: normal;
    flex-direction: column;
    gap: 2px;
}

#paymentModal #proceedPaymentButton span {
    display: block;
}

.moh-feed-modal-action-secondary,
#noButton.moh-feed-modal-action-secondary,
#cancelPaymentButton.moh-feed-modal-action-secondary,
#bouquetContributionModal #contribCancel {
    background: rgba(255, 255, 255, 0.94);
    color: #1f2937;
}

#paymentModal .moh-payment-label {
    display: block;
    margin: 18px 0 7px;
    color: rgba(187, 247, 208, 0.92);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-align: left;
}

#paymentModal .input-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

#paymentModal .input-row span {
    display: none;
}

#paymentModal .input-row input,
#paymentModal .expiration-date input,
#paymentModal .cvv-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(134, 239, 172, 0.28);
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    padding: 9px 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#paymentModal .input-row input:focus,
#paymentModal .expiration-date input:focus,
#paymentModal .cvv-input:focus {
    border-color: rgba(34, 197, 94, 0.86);
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#paymentModal .moh-payment-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 2px;
}

#paymentModal .expiration-date {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 7px;
    margin: 0;
}

#paymentModal .expiration-date span {
    color: rgba(226, 232, 240, 0.82);
    font-weight: 900;
}

#bouquetContributionModal .contrib-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

#bouquetContributionModal .contrib-skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 13px;
}

#bouquetContributionModal .contrib-skip input {
    accent-color: #22c55e;
}

/* =========================================================
   PayPal V1-C — bouquet payment choice cards (START)
   - Stripe remains primary.
   - PayPal appears as a secondary secure option when enabled.
   ========================================================= */
#bouquetContributionModal .moh-bouquet-payment-choice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

#bouquetContributionModal .moh-bouquet-payment-choice-card {
    width: 100%;
    min-height: 62px;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 13px 14px;
    border-radius: 18px;
    border: 1px solid rgba(134, 239, 172, 0.26);
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

#bouquetContributionModal .moh-bouquet-payment-choice-card:hover,
#bouquetContributionModal .moh-bouquet-payment-choice-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(34, 197, 94, 0.62);
    background: rgba(15, 23, 42, 0.90);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28),
        0 0 0 3px rgba(34, 197, 94, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    outline: none;
}

#bouquetContributionModal .moh-bouquet-payment-choice-card--primary {
    border-color: rgba(34, 197, 94, 0.58);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.78));
    color: #f8fafc;
}

#bouquetContributionModal .moh-bouquet-payment-choice-card--primary:hover,
#bouquetContributionModal .moh-bouquet-payment-choice-card--primary:focus-visible {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.88));
}

#bouquetContributionModal .moh-bouquet-payment-choice-card--paypal {
    border-color: rgba(96, 165, 250, 0.44);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.74));
}

#bouquetContributionModal .moh-bouquet-payment-choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

#bouquetContributionModal .moh-bouquet-payment-brand-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

#bouquetContributionModal .moh-bouquet-payment-brand-badge--stripe {
    color: #635bff;
}

#bouquetContributionModal .moh-bouquet-payment-brand-badge--paypal {
    color: #003087;
}

#bouquetContributionModal .moh-bouquet-payment-choice-title {
    display: block;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

#bouquetContributionModal .moh-bouquet-payment-choice-subtitle {
    display: block;
    color: #22c55e;
    opacity: 1;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

#bouquetContributionModal .moh-bouquet-payment-helper {
    margin-top: 12px !important;
    color: rgba(226, 232, 240, 0.74) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

@media (min-width: 520px) {
    #bouquetContributionModal .moh-bouquet-payment-choice {
        grid-template-columns: 1fr 1fr;
    }
}
/* PayPal V1-C — bouquet payment choice cards (END) */

@media (max-width: 430px) {
    #bouquetModal .moh-bouquet-decision-card,
    #paymentModal .moh-payment-card,
    #bouquetContributionModal .modal-bouquet-content {
        width: min(94vw, 390px);
        padding: 22px 16px 18px;
        border-radius: 24px;
    }

    .moh-feed-modal-actions,
    #paymentModal .button-row,
    #bouquetContributionModal .contrib-actions {
        gap: 10px;
    }

    .moh-feed-modal-action,
    #paymentModal .button-row button,
    #bouquetContributionModal .contrib-actions button {
        min-width: 0;
        flex: 1 1 130px;
        padding-inline: 12px;
    }

    #paymentModal .moh-payment-small-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
/* Bouquet checkout premium modal polish (E N D) */

/* GIVERS List Styles */
.givers-list {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    z-index: 1000;
}

.givers-list h3 {
    margin-top: 5;
    font-size: 14px;
    text-align: left;
}

.giver-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.giver-item:hover {
    background-color: #f1f1f1;
}

.giver-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 5px;
}

.giver-name {
    font-size: 12px;
    color: #333;
}
/* ***** END OF CSS for GIVERS List***** */

/* === Profile-popover (click any avatar) ============================== */
.profile-popover{
  position:absolute;              /* pins next to the clicked avatar */
  background:#fff;
  padding:12px;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  transform-origin:top left;      /* for the flip-card entrance */
  animation:flipIn .35s ease forwards;
  z-index:1200;                   /* above normal content */
}
/* avatar inside the card */
.profile-popover img{
  width:120px;
  height:120px;
  border-radius:6px;
  object-fit:cover;
  display:block;
}
/* close “×” button */
.profile-popover .close-popover{
  position:absolute;
  top:6px; right:8px;
  background:transparent;
  border:none;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
/* Safari (iOS/iPadOS) sometimes clips inline‐block buttons at 22 px font size */
.profile-popover .close-popover{
  line-height: 22px;  /* ensure full height so the glyph isn’t cropped */
}

.profile-popover .close-popover{
  color:#333;            /* always dark so it shows on white */
}
/* ——— tiny “Change picture” button inside the pop-over ——— */
.profile-popover .change-btn{
  display:block;
  margin:6px auto 0;
  padding:4px 10px;
  font-size:13px;
  border:1px solid #1877f2;
  border-radius:4px;
  background:#1877f2;
  color:#fff;
  cursor:pointer;
}
.profile-popover .change-btn:hover{ background:#0b64d9; }

.scroll-arrow img{
  width:22px; height:22px;
  pointer-events:none;       /* so the whole button is clickable */
}


/* sweet card-flip entrance */
@keyframes flipIn{
  0%{ transform:rotateX(90deg) scale(.5); opacity:0; }
  100%{ transform:rotateX(0deg)  scale(1); opacity:1; }
}
/* ===========Profile-popover (E N D)================================== */
/* ==================================================================== */


/* 🌸 Bouquet Overlays for Posts */
.bouquet-overlay-container {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
  padding-left: 6px;
}

/* Rail: sits between frame and album */
.bouquet-layer{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap:6px 8px;                 /* tighter, lush */
  padding:10px 12px;
  margin:6px 0 10px;
  border-radius:14px;
  background:rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08) inset, 0 2px 8px rgba(0,0,0,0.06);
  align-items:center;
  justify-items:center;
  pointer-events:none;         /* keeps clicks on the media/lightbox */
}

/* Each bouquet icon */
.bouquet-overlay{
  width:34px;
  height:34px;
  object-fit:contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.22)) saturate(1.05);
  transform: translateY(0) scale(1);
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
  opacity: 1;
}

/* Freshly-added bouquet: subtle pop-in */
.bouquet-overlay.bouquet-new{
  animation: bouquet-pop 220ms ease-out forwards, bouquet-glow 900ms ease-out;
}

@keyframes bouquet-pop{
  0%   { transform: translateY(calc(var(--jitter) + 6px)) scale(.82) rotate(var(--tilt)); opacity: 0; }
  60%  { transform: translateY(calc(var(--jitter) - 2px)) scale(1.08) rotate(var(--tilt)); opacity: 1; }
  100% { transform: translateY(var(--jitter)) scale(1) rotate(var(--tilt)); }
}

@keyframes bouquet-glow{
  0%   { filter: drop-shadow(0 0 0 rgba(255,180,0,.0)) saturate(1.1); }
  30%  { filter: drop-shadow(0 0 8px rgba(255,180,0,.45)) saturate(1.15); }
  100% { filter: drop-shadow(0 2px 2px rgba(0,0,0,.22)) saturate(1.05); }
}

/* Slightly larger on narrow screens for “lush” feel */
@media (max-width: 480px){
  .bouquet-overlay{ width:38px; height:38px; }
  .bouquet-layer{ gap:6px 6px; padding:12px; }
}

/******************Bouquet Overlays for Posts END******************************/

.post img,
.post video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ✨ Username button container inside each post */
.user-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

/********************************************************************/
/* ✨ Username text styled as a button (non-clickable for now) */
.username-button {
    font-family: 'Segoe UI Historic', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: rgb(6, 6, 6);
    background-color: transparent;
    border: none;
    cursor: default;
    padding: 0;
}

/********** Inline GIVERS list for each post ********/
.post-givers-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    text-align: left;
}
/********** Inline GIVERS list for each post END ********/

/* === iOS anti-zoom: keep login inputs ≥16 px ========== */
.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    font-size: 17px;      /* 16 is the minimum; 17 looks a bit crisper */
}
/* === iOS anti-zoom - END ========== */

/* === ************Logout icon – desktop defaults **********=== */
.logout-button {
  background:#fff;
  border:none;
  padding:0rem;
  cursor:pointer;

  /* NEW – always fixed in the same spot */
  position:fixed;
  top:6px;
  right:12px;
  z-index:1100;        /* stays above header content */
}
.logout-button:hover { background:#f1f2f6; }

/* === ************Logout icon – E N D **********=== */

/* Login & sign-up inputs: thin text */
.login-form input{
  font-family: 'Segoe UI', sans-serif;
  font-weight: 400;        /* normal */
}



/* ===============================================
   RESPONSIVE TWEAKS – added 2025‑06‑09 (Georgia)
   Keeps header icons horizontal & hides fixed
   buttons / instructions on small screens
   =============================================== */


   /* Bouquet instructions – mobile layout (visible & below header) */
  .first-bouquet-text {
    position: relative;       /* stays in flow, can layer above others */
    z-index: 900;             /* above the static avatar buttons */
    margin: 110px auto 4px;   /* 110 px = header (90) + breathing room */
    width: 92%;
    text-align: left;
    display: block !important;  /* override inline 'display:none' */
  }

  .INSTRUCTIONS-bouquet-button-container {
    position: relative;
    z-index: 900;
    width: 100%;
    margin: 6px auto 18px;
    justify-content: center;
    flex-wrap: wrap;
    display: flex !important;    /* override inline 'display:none' */
  }

/* =======================SIDE BAR================================
   FIX: 2025-06-11  –  Bouquet instructions in right bar
   ============================================================== */
:root {
  --sidebar-width: 320px;   /* tweak at will */
}

/* Right-hand sidebar container – anchors everything */
.right-sidebar {
  position: fixed;
  top: 110px;              /* below the 90 px header + 20 px gap */
  right: 10px;
  width: var(--sidebar-width);
  z-index: 1000;           /* stays above posts */

  /* NEW – make every child stack full-width */
  display: flex;
  flex-direction: column;

  /*container ignores taps*/
  pointer-events: none;
}

.right-sidebar *{
  pointer-events: auto;
}


/* Sidebar container sticks under the header as you scroll */
.sidebar-sticky {
  position: sticky;
  top: 16px;           /* space from the top while pinned */
  align-self: start;   /* helps in CSS grid layouts */
  height: fit-content; /* avoid stretching the column height */
}

/* Every direct child stacks at full width inside the sidebar */
.right-sidebar > * { flex: 0 0 100%; }


/****** === Bouquet INSTRUCTIONS pill – steady blur *****============= */
.first-bouquet-text {
    background-color: rgba(245,245,245,0.92);   /* matches layout */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);

    /* ✨ prepare for scroll glow */
    transition: box-shadow 0.25s ease, filter 0.25s ease;
}
/****** === Bouquet INSTRUCTIONS pill – steady blur -  E N D *****============= */

/* === Glow while scrolling ================================== */
.first-bouquet-text.scroll-active {
    filter: brightness(1.05) saturate(1.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.16);
}
/* === Glow while scrolling - E N D================================== */

/* =====================================================================
   2025-06-15 • 10 px breathing room for the Instructions pill
   Applies to all screens so you always see the rounded right edge.
   ===================================================================== */

/* ❶  GLOBAL default — inline-block so pill hugs text */
body .first-bouquet-text {
    display: inline-block;              /* shrink to content + padding   */
    max-width: calc(100% - 20px);       /* never touch viewport edges    */
    margin: 0 10px 2px 10px;            /* top 0 | right 10 | bottom 2 | left 10 */
}

/* ❷  Desktop / tablet sidebar — equal side margins inside sidebar      */
.right-sidebar .first-bouquet-text {
    width: auto !important;             /* override earlier 100 % or 92 % */
    margin: 0 10px 8px 10px !important; /* top 0 | right 10 | bottom 8 | left 10 */
}
/* ❶  GLOBAL default — E N D */


/* Feed shifts left so it doesn't hide behind sidebar
   ──────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .feed { margin-right: calc(var(--sidebar-width) + 30px); }
}

/* NEW: mid-width laptops (768 – 1023 px)  */
@media (min-width: 768px) and (max-width: 1023px) {
  .feed {
    margin-right: calc(var(--sidebar-width) + 30px);
    width: auto;                 /* ← override the old 95 % */
    max-width: calc(100% - var(--sidebar-width) - 40px); /* respect sidebar */
  }

      .feed{
      margin-right: calc(var(--sidebar-width) + 20px);  /* room for new sidebar */
      max-width: calc(100% - var(--sidebar-width) - 40px); /* always visible */
  }


}

/*  NARROW WIDESCREEN – shrink sidebar so it never overlaps feed  */
@media (max-width: 1200px) {
  :root { --sidebar-width: 260px; }   /* was 320 */
}

/*  ULTRA-NARROW WIDESCREEN – even slimmer (optional)  */
/* =======================================================================
   2025-06-15  FINAL TABLET LANDSCAPE FIX  –  bouquet bar locked to ONE row
   Replaces the former @media (max-width: 1024px) rule
   ======================================================================= */
@media screen and (min-width: 768px) and (max-width: 1365px) and (orientation: landscape) {

  /* keep sidebar wide enough on iPads */
  :root { --sidebar-width: 300px; }   /* roomy bar, was in old block */

  /* 🎯 five-icon bouquet bar */
  .right-sidebar .INSTRUCTIONS-bouquet-button-container {
      display: grid !important;             /* beats old flex */
      grid-auto-flow: column;               /* single horizontal track */
      grid-template-columns: repeat(5, 40px);
      grid-auto-rows: 40px;
      gap: 4px;
      width: max-content;
      margin: 0 auto;
  }

  /* 🚫 prevent icons from stretching & wrapping */
  .right-sidebar .INSTRUCTIONS-bouquet-button-container
  .INSTRUCTIONS-bouquet-small-button {
      width: 40px !important;
      height: 40px !important;
      margin: 0 !important;
      padding: 0 !important;
  }
}
/* ===== END 2025-06-15 tablet landscape bouquet fix ==================== */



/* Bouquet instructions inside sidebar */
.right-sidebar .first-bouquet-text {
  /* —— override global sticky settings —— */
  position: static;     /* was: sticky */
  top: auto;            /* clear old offset */
  margin: 0 0 8px 0;    /* normal spacing under header */
  width: 100%;          /* span full sidebar */

  /* —— keep typography —— */
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

@media (min-width: 1025px) {          /* ← NEW wrapper */
.right-sidebar .INSTRUCTIONS-bouquet-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;   /* NEW – occupy full sidebar width */

  /* —— override the old fixed positioning —— */
  position: static;   /* was: fixed */
  top: auto;
  right: auto;
  margin: 0;          /* let the sidebar’s normal spacing take over */

    }
}

/* Givers list now lives below instructions */
.right-sidebar .givers-list {
  position: static;
  margin-top: 18px;
}

/*****  TABLETS & SMALL LAPTOPS  (≤ 992 px)  *******───────────── */
@media (max-width: 992px) {

  /* Keep the header itself on one line */
  .header {
    flex-wrap: nowrap;
    justify-content: flex-start;  /* logo + nav row left-aligned */
  }

  /* Optional: shrink or hide the big title to free space */
  .header h1 {
    font-size: 16px;     /* ↓ smaller text */
    margin: 0 8px 0 0;   /* tiny gap after logo */
    white-space: nowrap; /* don’t break */
  }

  /* Nav row stays horizontal & scrollable */
  .header-buttons {
    flex: 1 1 auto;      /* grow to fill remaining width */
    display: flex;
    flex-wrap: nowrap;   /* never wrap */
    overflow-x: auto;    /* enables side-scroll if cramped */
    gap: 8px;

    padding-right: 160px;   /* ⬅ NEW – width of the logout icon + gap */
    margin: 0;           /* kill old 10% + 550 px margins */
    white-space: nowrap; /* keep buttons on one visual line */
  }

  /* Prevent buttons from flex-shrinking below icon width */
  .header-buttons button { flex: 0 0 auto; }


  /* ---- Header navigation row --------------------------------- */
  /* Optional: tiny scrollbar so users know they can swipe/scroll */
  .header-buttons::-webkit-scrollbar       { height: 6px; }
  .header-buttons::-webkit-scrollbar-thumb { background:#ccc;border-radius:3px; }

  /******* KEEP THIS JUST IN CASE WE NEED IT LATER ON ***********/
  /* ---- Two fixed avatar buttons (left side) ------------------ */
  /* They block the feed on narrow screens, so hide them */
  /** #staticButton, **/
  /** #staticButton-insideHeaven { **/
  /**   display: none;  **/
  /*  }  **/
  /******* END ***********/


  /* ---- Bouquet “Instructions” overlay ------------------------ */
  /* Let them flow naturally instead of fixed in top‑right corner */
  .first-bouquet-text
   {
    position: static;   /* exits fixed / sticky mode          */
    margin: 10px 0 0;   /* simple spacing above feed          */
    right: auto; top: auto; margin-left: 0;
  }

  /* ---- Optional: hide the side Givers list IN PHONES AND TABLETS------------------- */
  /* Uncomment if 300 px panel feels cramped below 992 px*/
  /*.givers-list { display:none; }*/
  
}


/******  UNIVERSAL NAV FIX  – applies to every width ≤ 1400 px
    Keeps header nav icons on ONE horizontal row        *******/
@media (max-width: 1920px) {

  .header {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .header h1 {
    font-size: 18px;
    margin: 0 8px 0 0;
    white-space: nowrap;
  }
  @media (max-width: 1024px) { .header h1 { font-size: 16px; } }
  @media (max-width: 820px)  { .header h1 { display: none;   } }

  .header-buttons {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 8px;
    margin: 0 !important;
    white-space: nowrap;
  }

  .header-buttons button { flex: 0 0 auto; }
}
/********** UNIVERSAL NAV FIX -----E N D *********/


/*  MID-WIDTH (tablet landscape & narrow laptops) – move avatar buttons bottom-left  */
/*  HIDE static avatar buttons on every screen ≤ 1200 px  */
@media (max-width: 767px) {
  #staticButton,
  #staticButton-insideHeaven {
    display: none !important;   /* beats any inline JS styles */
  }
}
/********** (tablet landscape & narrow laptops) -----E N D *********/


/*****************************************************************/
/* ------------------ Phones / narrow tablets ------------------ */
@media (max-width: 768px) {

  /* === ❶  Sticky sidebar under the header ==================== */
  .right-sidebar {
    position: sticky;
    top: 110px;            /* header(90) + 20 px gap */
    width: 100%;
    margin: 0 auto;
    z-index: 999;
    pointer-events: none;
  }

  /* === NEW: tighter Create-post spacing on phones ============= */
  .post-form {
      margin: 6rem auto 0;      /* was 9rem globally */
  }

  /* === ❷  Feed: full width, starts *below* bouquet bar ======= */
  .feed {
    margin-right: 0;
    margin-top: 95px;     /* header 90 + text ~20 + buttons 40 + 5px */
  }

  /* === ❸  Hide big title & avatar buttons on phones ========= */
  .header h1 { display: none; }
  #staticButton,
  #staticButton-insideHeaven { display: none; }

  /* === ❹  Hide “List of GIVERS” panel on phones ============== */
  body .givers-list { display: none !important; }   /* beats inline JS */

  /* === ❺  Instruction text (left-aligned) ==================== */
  .right-sidebar .first-bouquet-text {
    margin: 0 0 2px 10px;   /* left 10 px, tiny gap below */
  }

  /* === ❻  Five-icon bouquet row (one line, left) ============= */
  .right-sidebar .INSTRUCTIONS-bouquet-button-container {
    /* kill the old fixed offset that pushed it down */
    position: relative;      /* was fixed in global rule      */
    top: 0 !important;       /* ← overrides old top:135px     */
    right: auto !important;  /* clear old right:20px          */

    width: max-content;      /* shrink to icon width          */
    margin: 0 0 10px 10px;   /* tight under the text          */

    display: flex !important;
    justify-content: flex-start;
    flex-wrap: nowrap;       /* never wrap on phones          */
  }

  /* Disable sticky on small screens so it doesn’t fight the layout */
  .sidebar-sticky {
    position: static;
    top: auto;
  }

    /* =========================================================
       Mobile header / sticky sidebar / feed spacing alignment
       - keep the sticky instructions fully below the fixed header
       - keep the normal feed safely below that strip
       - give Search-opened memorial feed a little extra room
       ========================================================= */

    /* ❶  Sticky sidebar fully below the mobile header */
    .right-sidebar {
      top: calc(var(--header-h) + 8px);
    }

    /* ❷  Instructions pill fully visible */
    .right-sidebar .first-bouquet-text {
      margin: 0 10px 2px 10px !important;
    }

    /* ❸  Bouquet row tucked neatly under the instructions */
    .right-sidebar .INSTRUCTIONS-bouquet-button-container {
      margin: 0 0 10px 10px !important;
    }

    /* ❹  Normal feed starts below the sticky strip */
    .feed {
      margin-top: 78px !important;
    }

    /* ❺  Search-opened memorial surface:
           push the "Feed" row a little lower so it clears the strip */
    .post-form[aria-hidden="true"] ~ .feed {
      margin-top: 112px !important;
    }

    /* =========================================================
       Mobile header / sticky sidebar / feed spacing alignment (E N D)
       ========================================================= */

    /* ▶ Reserve 70 px on the right so nav buttons never slide under Logout */
  .header {
      overflow: hidden;      /* clip anything that still tries */
  }

    /* === Curtain under the fixed Logout icon =================== */
  .header::after{
      content:"";
      position:absolute;
      top:0;
      right:0;
      width:80px;          /* 40-px icon + ~40-px cushion   */
      height:100%;
      background:#ffffff;  /* same as header background     */
      pointer-events:none; /* let taps go through            */
      z-index:1000;        /* below Logout (1100)            */
  }

}

/* === Hide-on-scroll helper (phones only) ========================= */
.hidden-on-scroll{
    opacity:0;                 /* fade out */
    pointer-events:none;       /* ignore taps */
    transition:opacity .35s ease;
}
/* ------------------ Phones / narrow tablets — END ------------ */



/***************************************************************/
/* === iPad Landscape hot-fix – keep 5 bouquets on one row === */
@media (max-width: 1024px) {
  body .right-sidebar .INSTRUCTIONS-bouquet-button-container {
      display: grid !important;          /* strongest override */
      grid-template-columns: repeat(5, 1fr); /* 5 equal slots */
      grid-auto-rows: 40px;              /* lock height */
      gap: 4px;
      width: max-content;
  }
}

/* =====================================================================
   2025-06-16 • Bouquet-button PILL – fits icons exactly
   ===================================================================== */
body .INSTRUCTIONS-bouquet-button-container,
.right-sidebar .INSTRUCTIONS-bouquet-button-container {
    /* Pill look (keep from Option B) */
    background-color: rgba(245,245,245,0.92) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);

    /* Tight fit */
    display: inline-flex !important;    /* hug content               */
    width: max-content !important;
    padding: 2px;                       /* just enough to show curve */
    gap: 0;                             /* no gaps from flex         */
}

body .INSTRUCTIONS-bouquet-button-container
.INSTRUCTIONS-bouquet-small-button {
    margin: 0 !important;               /* abolish per-icon margins  */
}

/* =======================================================================
   2025-06-16 • Bouquet button PILL — flush-fit version
   ✦ Lighter original grey (#F5F5F5 ≈ rgba(245,245,245,0.92))
   ✦ Pill height 44 px  (40 px icon + 2 px cushion top & bottom)
   ✦ No side padding  ▶  pill left/right edges align with icons
   ======================================================================= */

/* 1️⃣  Pill container — applies everywhere (sidebar + phone) */
body .INSTRUCTIONS-bouquet-button-container,
.right-sidebar .INSTRUCTIONS-bouquet-button-container {
    /* —— Visual style —— */
    background-color: rgba(245,245,245,0.92) !important;  /* original grey */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);

    /* —— Geometry —— */
    display: inline-flex !important;      /* shrink-wrap to icons            */
    align-items: center !important;       /* vertical centring               */
    width: max-content !important;        /* width = icons only              */
    padding: 2px 0 !important;            /* 2 px top/bottom, 0 sides        */
    height: auto !important;              /* auto = 44 px (40 + 2 + 2)       */
    gap: 0;                               /* no flex gaps                    */
    overflow: hidden;                     /* trims rounded ends flush        */
}

/* 2️⃣  Each bouquet button inside the pill */
body .INSTRUCTIONS-bouquet-button-container
       .INSTRUCTIONS-bouquet-small-button,
.right-sidebar .INSTRUCTIONS-bouquet-button-container
       .INSTRUCTIONS-bouquet-small-button {
    /* remove original 5 px padding so squares align */
    padding: 0 !important;
    margin: 0 !important;

    /* lock each grey square to 40 × 40 px */
    width: 40px !important;
    height: 40px !important;
    box-sizing: border-box;
}

/* You can fine-tune the curve thickness by changing the top/bottom
   padding (currently 2 px).  Increase for a fatter pill, set to 1 px
   for slimmer edges. */
/******************************************************/


/******* 🗑 Delete-post trash-can **********/
.delete-post-btn{
  background:transparent;
  border:none;
  padding:4px;
  cursor:pointer;
  position:absolute;
  top:8px;
  right:8px;
}

/* Darken only while .pressed is set in JS */
.delete-post-btn.pressed{
  filter:brightness(0.8);
}

/* Extra hover for real mice only */
@media (hover:hover) and (pointer:fine){
  .delete-post-btn:hover{ filter:brightness(0.8); }
}
/******* 🗑 Delete-post trash-can  (END) **********/


/************ iOS/Android: prevent sticky tap-highlight on action buttons */
.delete-post-btn,
.like-btn,             /* we'll add these class names in JS below */
.comment-btn{
  -webkit-tap-highlight-color: transparent;   /* kills grey flash */
}
/************ iOS/Android: prevent sticky tap-highlight on action buttons (E N D)****/


/********* --- tiny confirm modal ------------------------------------ */
.confirm-modal{
  display:none;                      /* hidden by default      */
  position:fixed; inset:0;
  background:rgba(0,0,0,0.45);
  align-items:center; justify-content:center;
  z-index:4000;
}
.confirm-box{
  background:#fff; padding:16px 20px;
  border-radius:10px; width:260px;
  font:16px/1.4 "Segoe UI",sans-serif;
  text-align:center;
}
.confirm-actions{ margin-top:14px; display:flex; gap:12px; justify-content:center }
.confirm-actions button{
  flex:1 1 0; padding:6px 0; border:none; border-radius:6px;
  background:#007bff; color:#fff; font-size:15px;
}
.confirm-actions button:last-child{ background:#aaa }
.confirm-actions button:active{ opacity:.7 }        /* quick tap flash */

/********* --- tiny confirm modal (E N D)------------------------------------ */

/* =========================================================
   Report Post V1
   - non-owner top-right report pill
   - glass modal for report reason + optional note
   ========================================================= */
.report-post-btn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:6;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
  background:rgba(15,23,42,0.72);
  box-shadow:0 10px 24px rgba(0,0,0,0.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  -webkit-tap-highlight-color: transparent;
}

.report-post-btn:hover{
  background:rgba(15,23,42,0.84);
}

.report-post-btn:active{
  transform:translateY(1px);
}

.report-post-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(2,6,23,0.34);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  z-index:4200;
}

.report-post-modal.open{
  display:flex;
}

.report-post-card{
  width:min(500px, 92vw);
  max-width:100%;
  border-radius:26px;
  border:1px solid rgba(226,232,240,0.16);
  background:rgba(15,23,42,0.68);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
  overflow:hidden;
  color:#f8fafc;
}

.report-post-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 0;
}

.report-post-title{
  font-size:22px;
  line-height:1.1;
  font-weight:800;
  color:#4ade80;
}

.report-post-close{
  border:none;
  background:transparent;
  color:rgba(248,250,252,0.88);
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.report-post-copy{
  margin:10px 18px 0;
  color:rgba(226,232,240,0.88);
  font-size:14px;
  line-height:1.5;
}

/* =========================================================
   Report Profile/User V1 — premium modal layout polish
   - keeps the existing beautiful dark/glass background
   - fixes title spacing, modern select, textarea alignment, and compact actions
   ========================================================= */
#reportProfileModal .report-post-card{
  position:relative;
  box-sizing:border-box;
  width:min(500px, calc(100vw - 34px));
  max-height:calc(100dvh - 42px);
  overflow:auto;
  padding:0;
}

#reportProfileModal .report-post-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:22px 22px 0;
}

#reportProfileModal .report-post-eyebrow{
  margin:0 0 7px;
  color:rgba(74,222,128,0.92);
  font-size:12px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

#reportProfileModal .report-post-header h3{
  margin:0;
  color:#f8fafc;
  font-size:24px;
  line-height:1.12;
  font-weight:900;
  letter-spacing:-0.03em;
}

#reportProfileModal .report-post-close{
  flex:0 0 auto;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  margin:-5px -5px 0 0;
  border:1px solid rgba(226,232,240,0.14);
  border-radius:999px;
  background:rgba(15,23,42,0.48);
  color:rgba(248,250,252,0.9);
  font-size:24px;
  line-height:1;
}

#reportProfileModal .report-post-copy{
  margin:14px 22px 0;
  color:rgba(226,232,240,0.84);
  font-size:14px;
  line-height:1.5;
}

#reportProfileModal .report-post-label{
  display:block;
  margin:16px 22px 8px;
  color:rgba(226,232,240,0.88);
  font-size:13px;
  line-height:1.2;
  font-weight:900;
}

#reportProfileModal .report-post-select{
  display:block;
  width:calc(100% - 44px);
  min-height:48px;
  margin:0 22px;
  padding:0 44px 0 14px;
  border:1px solid rgba(74,222,128,0.28);
  border-radius:16px;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  box-sizing:border-box;
  color:#f8fafc;
  font:inherit;
  font-size:14px;
  font-weight:800;
  background:
    linear-gradient(45deg, transparent 50%, rgba(248,250,252,0.78) 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(248,250,252,0.78) 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    rgba(15,23,42,0.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 26px rgba(0,0,0,0.16);
}

#reportProfileModal .report-post-select:focus{
  border-color:rgba(74,222,128,0.62);
  box-shadow:
    0 0 0 3px rgba(34,197,94,0.14),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

#reportProfileModal .report-post-textarea{
  display:block;
  width:calc(100% - 44px);
  min-height:112px;
  margin:0 22px;
  padding:13px 14px;
  border:1px solid rgba(226,232,240,0.14);
  border-radius:18px;
  outline:none;
  resize:vertical;
  box-sizing:border-box;
  color:#f8fafc;
  font:inherit;
  font-size:14px;
  line-height:1.45;
  background:rgba(255,255,255,0.07);
}

#reportProfileModal .report-post-textarea::placeholder{
  color:rgba(226,232,240,0.52);
}

#reportProfileModal .report-post-textarea:focus{
  border-color:rgba(74,222,128,0.48);
  box-shadow:0 0 0 3px rgba(34,197,94,0.12);
}

#reportProfileModal .report-post-message{
  min-height:18px;
  margin:10px 22px 0;
  color:rgba(248,113,113,0.92);
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}

#reportProfileModal .report-post-actions{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:18px 22px 22px;
}

#reportProfileModal .report-post-actions button{
  width:auto;
  min-width:118px;
  min-height:42px;
  padding:0 18px;
  border-radius:999px;
  font-size:13px;
}

#reportProfileModal .report-post-submit{
  min-width:142px;
}

@media (max-width: 420px){
  #reportProfileModal .report-post-card{
    width:calc(100vw - 28px);
    max-height:calc(100dvh - 34px);
  }

  #reportProfileModal .report-post-header{
    padding:20px 18px 0;
  }

  #reportProfileModal .report-post-copy,
  #reportProfileModal .report-post-label,
  #reportProfileModal .report-post-message{
    margin-left:18px;
    margin-right:18px;
  }

  #reportProfileModal .report-post-select,
  #reportProfileModal .report-post-textarea{
    width:calc(100% - 36px);
    margin-left:18px;
    margin-right:18px;
  }

  #reportProfileModal .report-post-actions{
    margin:17px 18px 20px;
    gap:10px;
  }

  #reportProfileModal .report-post-actions button{
    min-width:104px;
    padding:0 14px;
  }

  #reportProfileModal .report-post-submit{
    min-width:132px;
  }
}
/* =========================================================
   Report Profile/User V1 — premium modal layout polish (E N D)
   ========================================================= */

.report-post-form{
  padding:16px 18px 18px;
}

.report-post-reasons{
  display:grid;
  gap:10px;
}

.report-post-reason{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 13px;
  border-radius:16px;
  border:1px solid rgba(226,232,240,0.12);
  background:rgba(255,255,255,0.05);
  cursor:pointer;
}

.report-post-reason input{
  margin-top:2px;
}

.report-post-reason span{
  color:#f8fafc;
  font-size:14px;
  line-height:1.35;
}

.report-post-note-wrap{
  display:block;
  margin-top:14px;
}

.report-post-note-label{
  display:block;
  margin-bottom:8px;
  color:rgba(226,232,240,0.88);
  font-size:13px;
  font-weight:700;
}

.report-post-note-wrap textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  border:none;
  border-radius:16px;
  padding:12px 13px;
  font:inherit;
  color:#f8fafc;
  background:rgba(255,255,255,0.07);
  box-sizing:border-box;
}

.report-post-note-wrap textarea::placeholder{
  color:rgba(226,232,240,0.56);
}

.report-post-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:16px;
}

.report-post-actions button{
  min-height:46px;
  padding:0 16px;
  border:none;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;
  font-size:14px;
}

.report-post-cancel{
  background:rgba(255,255,255,0.12);
  color:#f8fafc;
}

.report-post-submit{
  background:rgba(34,197,94,0.22);
  color:#f0fdf4;
  border:1px solid rgba(74,222,128,0.26);
}

.report-post-submit:disabled{
  opacity:0.6;
  cursor:not-allowed;
}

@media (max-width: 768px){
  .report-post-btn{
    top:8px;
    right:8px;
    padding:6px 10px;
    font-size:11px;
  }

  .report-post-card{
    width:min(94vw, 460px);
    border-radius:24px;
  }

  .report-post-actions{
    flex-direction:column-reverse;
  }

  /* =========================================================
     Mobile sizing for tiny "Reported" pill
     - keep the action rail compact on phones
     ========================================================= */
  .post-user-info.post-user-info--with-reported{
    padding-right: 138px;
  }

  .post-top-actions .report-post-btn.is-reported{
    min-width: 58px;
    height: 24px;
    padding: 0 8px;
    font-size: 9.5px;
  }
  /* =========================================================
     Mobile sizing for tiny "Reported" pill (E N D)
     ========================================================= */
}
/* =========================================================
   Report Post V1 (E N D)
   ========================================================= */

/* ==============================================================
   FINAL LOCK – Logout icon & nav-row buffer (added 2025-06-19)
   Guarantees:
     • Logout button is always fixed top-right on EVERY width
     • Nav-row can never scroll past the icon
   ============================================================== */

/* 1️⃣  Logout button – strongest override */
.logout-button{
    position:fixed !important;
    top:6px !important;
    right:12px !important;
    z-index:1100 !important;     /* above header & nav row */
}

/* 2️⃣  Nav row buffer – phones & tablets (≤ 992 px) */
@media (max-width: 992px){
    .header-buttons{
        padding-right:72px !important;   /* 40 px icon + 32 px gap   */
    }
}

/* ===========================================================
   LOGIN-/SIGN-UP  mini-layout (added 2025-06-27)
   -----------------------------------------------------------
   • Stacks every label/input together (.auth-field)
   • Keeps the two “forgot …” links on one tidy line
   • Puts Login + Create buttons on one row, right-aligned
   • Adds blue + grey button palettes you can reuse everywhere
   =========================================================== */
.auth-field{
    display:flex;
    flex-direction:column;
    margin-bottom:12px;
}
.auth-field label{ margin-bottom:4px; font-weight:600; }
.auth-field input{
    padding:8px;
    border:1px solid #ccc;
    border-radius:4px;
}
.link-row{
    display:flex;
    justify-content:space-between;   /* puts each link at an edge */
    margin-bottom:16px;
    font-size:0.9rem;
}
.link-row a{
    text-decoration:none;
    color:#007bff;
}
.link-row a:hover{ text-decoration:underline; }

.btn-row{
    display:flex;
    gap:12px;
    justify-content:flex-end;        /* buttons hug the right side */
}

/* Re-usable button palettes
   (keeps global “button { … }” for generic default)            */
.btn-primary{
    background:#007bff;
    color:#fff;
    border:none;
    padding:8px 16px;
    border-radius:4px;
    cursor:pointer;
}
.btn-secondary{
    background:#6c757d;
    color:#fff;
    border:none;
    padding:8px 16px;
    border-radius:4px;
    cursor:pointer;
}
.btn-primary:hover   { background:#0056b3; }
.btn-secondary:hover { background:#545b62; }
/* ===================LOGIN-/SIGN-UP  mini-layout  (E N D)======================================== */

/*****************************************************************/
/* ===== Pre-login: default-hidden fixed avatar buttons ========= */
#staticButton,
#staticButton-insideHeaven {
    display: none;             /* CSS default = hidden */
}
/* They’re shown later via showUserInterface() with inline style */


/* ===== Pre-login: (E N D))========= */
/*****************************************************************/


/* Tiny inline error text */
.error-text{
  color:#dc3545;
  font-size:0.85rem;
  margin-top:4px;
}

.input-error{ 
  border:1px solid #dc3545 !important; }

/* === FINAL OVERRIDE: show fixed avatar buttons on tablets ============ */
@media (min-width: 768px) and (max-width: 1024px) {
#staticButton-insideHeaven {
  left: 10px !important;
  top: 245px !important;       /* below the profile pill */
  z-index: 900 !important;     /* under .profile-controls (1300) */
  transform: scale(0.85);
}

}
/* ===================================================================== */

  /* universal tiny avatar */
#avatar,
.avatar,
.avatar-miniature {
  width : 40px;          /* or 25px if you prefer smaller */
  height: 40px;
  border-radius: 50%;
  object-fit: cover;     /* crop instead of stretching */
}

/* --------------------------------------------------
   PHONE bottom-nav (keeps ALL buttons, with arrows)
   -------------------------------------------------- */
@media (max-width: 767px){

  /* sticky header stays, we’re only styling the bottom nav */
.mobile-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;

  /* Always kiss the device edge; content clears the home-indicator */
  padding-left:  env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);

  /* Normalize bar height (no double-count). Chrome will feel less tall too. */
  height: 56px;

  background: #fff;
  border-top: 1px solid #ccc;
  display: flex; align-items: center;
  z-index: 1100;

  /* movement handled via iOS-only override; keep base neutral */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);         /* composite the bar; avoids tiny desyncs */
  contain: layout paint;            /* isolate layout/paint for stability */
  }

  .header-buttons{
    flex:1 1 auto; display:flex; overflow-x:auto;
    scroll-behavior:smooth;             /* finger glide */
  }
  .header-buttons::-webkit-scrollbar{ display:none; } /* hide chrome */

  .feed{ padding-bottom: calc(70px + env(safe-area-inset-bottom)); }    /* keeps posts above bar */

  /* arrows overlay at the hard edges */
  .scroll-arrow{
    flex:0 0 48px; height:48px; margin:0;
    background:#fff; border:none; font-size:22px; color:#666;
    display:flex; align-items:center; justify-content:center;
  }
  .scroll-arrow:active{ filter:brightness(.9); }   /* ripple */

}

.scroll-arrow img{ pointer-events:none; }  /* whole button stays clickable */


@media (max-width:767px){
  .header .header-buttons{ display:none; }
}


/* === Altar frames – square container (v3) ============================= */
.frame-wrapper {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;      /* perfect square */
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

/* neutral matte + soft blur halo */
.frame-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
background:#7c543c;      /* slightly darker grey  */
  filter:blur(15px);       /* stronger, softer halo */
  transform: scale(1.05);   /* spill a bit past the edge for softness */
  z-index: 0;
  pointer-events: none;
}

/* ornate PNG frame */
.frame-wrapper::after {
  z-index: 3;               /* always on top */
}

/* media itself */
.frame-wrapper img,
.frame-wrapper video{
    position: absolute;
    top: 50%;
    left: 50%;
    width:  auto;
    height: auto;
    max-width:  100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: 50% 50%;
    margin: auto;
    border-radius: 8px;
    z-index: 1;
    /* NEW — tell browsers “give me all touch events, don’t scroll” */
    touch-action:none;
}

/* === Mobile fine-tune: full-width square & flex-centred === */
@media (max-width: 767px){
  .frame-wrapper{
    width: 100%;           /* fill the card */
    max-width: none;       /* override 600 px cap */
    display:flex;          /* ↓ centres child before JS runs */
    align-items:center;
    justify-content:center;
  }
}

/* Fallback for older Safari / Edge (no aspect-ratio) */
@supports not (aspect-ratio: 1 / 1) {
  .frame-wrapper::before {
    content: '';
    float: left;
    padding-top: 100%;     /* 1 : 1 square */
  }
  .frame-wrapper::after {
    content: '';
    display: table;
    clear: both;
  }
}

/* One ::after rule per frame */
.frame-lyla::after,
.frame-monarchy::after,
.frame-old-new-york::after, /* <-- ALL LOWERCASE, HYPHENS */
.frame-royal::after,
.frame-victorian::after,
.frame-waldorf-astoria::after, /* <-- ALL LOWERCASE, HYPHENS */
.frame-comodore::after,
.frame-kennedy::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.frame-lyla::after            { background-image: url('/images/frames/lyla.png'); }
.frame-monarchy::after        { background-image: url('/images/frames/monarchy.png'); }
.frame-old-new-york::after    { background-image: url('/images/frames/old-new-york.png'); } /* <-- ALL LOWERCASE, HYPHENS */
.frame-royal::after           { background-image: url('/images/frames/royal.png'); }
.frame-victorian::after       { background-image: url('/images/frames/victorian.png'); }
.frame-waldorf-astoria::after { background-image: url('/images/frames/waldorf-astoria.png'); } /* <-- ALL LOWERCASE, HYPHENS */
.frame-comodore::after        { background-image: url('/images/frames/comodore.png'); }
.frame-kennedy::after         { background-image: url('/images/frames/kennedy.png'); }

/* keep the ornate PNG above the media */
.frame-wrapper::after {
  z-index: 3;   /* > image (1) > blur layer (0) */
}

/* Images become free-floating when zoomable */
.frame-wrapper img{
  position:absolute;
  top:50%; left:50%;       /* centre reference for translate() */
  transform:translate(-50%, -50%) scale(1);
  transform-origin:center;
}

/***************************************************/
/* ===== Altar 2.0 — Album strip look & feel ===== */
.album-strip {
position: relative;
display: flex;
align-items: center;
gap: 12px;
overflow-x: auto;
padding: 10px 12px;
min-height: 110px;
border-radius: 14px;
background: rgba(14,16,20,0.65);
border: 1px solid rgba(255,255,255,0.08);
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.05),
0 8px 20px rgba(0,0,0,0.28);
backdrop-filter: blur(10px) saturate(120%);
-webkit-backdrop-filter: blur(10px) saturate(120%);
}

/* subtle “flip-flop” sheen */
.album-strip::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
background-size: 200% 100%;
pointer-events: none;
opacity: .25;
animation: albumSheen 8s linear infinite;
border-radius: inherit;
}
@keyframes albumSheen {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}

/* hide heavy scrollbars while keeping accessibility */
.album-strip::-webkit-scrollbar { height: 8px; }
.album-strip::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.12);
border-radius: 10px;
}
.album-strip { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }

/* Each thumbnail holder */
.album-thumb {
position: relative;
flex: 0 0 auto;
width: 120px;
height: 82px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.06);
overflow: hidden;
display: grid;
place-items: center;
transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}
.album-thumb:hover {
transform: translateY(-1px);
filter: brightness(1.25);
border-color: rgba(255,255,255,0.22);
}

/* Real media inside thumb */
.album-thumb img,
.album-thumb video {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Ghost placeholders when empty (teach side-scroll) */
.album-thumb.ghost {
background:
radial-gradient(120px 60px at 40% 30%, rgba(255,255,255,0.08), transparent 60%),
rgba(255,255,255,0.04);
border: 1px dashed rgba(255,255,255,0.18);
}

/* Delete pill (owner only) */
.album-del {
position: absolute;
top: 6px;
right: 6px;
width: 22px;
height: 22px;
border: none;
border-radius: 50%;
background: rgba(0,0,0,0.55);
color: #fff;
font-weight: 700;
cursor: pointer;
line-height: 22px;
display: grid;
place-items: center;
}

/* +Add CTA inside strip */
.album-add-btn {
order: -1; /* 👈 move to the beginning */
flex: 0 0 auto;
padding: 8px 12px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.16);
background: rgba(255,255,255,0.06);
color: #fff;
cursor: pointer;
white-space: nowrap;
transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}

.album-add-btn:hover {
filter: brightness(1.2);
border-color: rgba(255,255,255,0.26);
}
/* ===== Altar 2.0 — Album strip look & feel (E N D)===== */
/***************************************************/

/* =====================================================================
   Fix #2 — LIGHTBOX (Album) visuals
   ===================================================================== */
.mohe-lightbox-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  /* hidden by default so it can't intercept taps */
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  z-index: 3000; /* above everything */
}
.mohe-lightbox-content{
  max-width: 92vw;
  max-height: 90vh;
}
.mohe-lightbox-media{
  display: block;
  max-width: 92vw;
  max-height: 90vh;
}
.mohe-lightbox-close{
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.mohe-lightbox-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
}
.mohe-lightbox-arrow.mohe-left { left: 12px; }
.mohe-lightbox-arrow.mohe-right{ right: 12px; }

/* ==============Fix #2 — LIGHTBOX (Album) visuals (E N D)============== */
/* ===================================================================== */

/* =====================================================================
   Fix #2.1 — Lightbox animation + swipe helpers
   ===================================================================== */
.mohe-lightbox-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  /* hidden by default so it can't intercept taps */
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;                       /* fade-in */
  transition: opacity .18s ease-out;
}
.mohe-lightbox-backdrop.show{
  /* only when shown, it should exist and accept input */
  display: flex;
  pointer-events: auto;
  opacity: 1;
}
.mohe-lightbox-content{
  max-width: 92vw;
  max-height: 90vh;
  transform: scale(.985);            /* small scale-in */
  opacity: 0;
  transition: transform .18s ease-out, opacity .18s ease-out;
  will-change: transform, opacity;
}
.mohe-lightbox-backdrop.show .mohe-lightbox-content{
  transform: scale(1);
  opacity: 1;
}
.mohe-lightbox-media{
  display: block;
  max-width: 92vw;
  max-height: 90vh;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;               /* allow vertical scroll intent */
}
.mohe-lightbox-close{
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.mohe-lightbox-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
}
.mohe-lightbox-arrow.mohe-left { left: 12px; }
.mohe-lightbox-arrow.mohe-right{ right: 12px; }

/* Swipe feedback: turn off transitions while finger is down */
.mohe-swipe-active .mohe-lightbox-content{
  transition: none !important;
}

/* ====Fix #2.1 — Lightbox animation + swipe helpers (E N D)============ */
/* ===================================================================== */

/* =====================================================================
   Fix #3 — Album upload progress chip
   ===================================================================== */
.album-upload-chip{
  position: absolute;                /* anchored to the .album-strip */
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #fff;
  background: rgba(25,28,35,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  pointer-events: none;              /* never block clicks */
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease-out, transform .18s ease-out;
}
.album-upload-chip.show{ opacity: 1; transform: translateY(0); }
.album-upload-chip .label{ opacity:.9; letter-spacing:.2px; }
.album-upload-chip .pct{ font-weight:800; }
.album-upload-chip .rail{
  width: 120px; height: 4px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.12);
}
.album-upload-chip .bar{
  width: 0%; height: 100%;
  background: rgba(255,255,255,0.85);
  transition: width .15s linear;
}
.album-upload-chip.ok{ background: rgba(21,108,43,0.78); }
.album-upload-chip.err{ background: rgba(138,28,28,0.80); }

/* (already present) .album-strip is position:relative; we rely on that */

/* ====Fix #3 — Album upload progress chip (E N D)============ */
/* ===================================================================== */


/* =========================================================
   Album thumb removal — 120ms dissolve
   ========================================================= */
.album-strip .album-thumb{
  transition: opacity .12s ease, transform .12s ease;
}
.album-strip .album-thumb.mohe-removing{
  opacity: 0;
  transform: scale(.92);
  filter: saturate(.6);
}

/* Album delete confirmation modal (START)
   Protects album media from accidental one-tap deletion. */
.album-delete-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at top, rgba(20, 184, 111, 0.18), transparent 34%),
    rgba(5, 8, 12, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.album-delete-confirm-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  border-radius: 26px;
  padding: 24px 20px 18px;
  color: #f8fafc;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(24, 31, 40, 0.96), rgba(10, 14, 20, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.album-delete-confirm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.album-delete-confirm-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #10b981;
  font-size: 25px;
  font-weight: 900;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.36);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.18);
}

.album-delete-confirm-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.album-delete-confirm-title span,
.album-delete-confirm-copy span {
  color: #10b981;
}

.album-delete-confirm-copy {
  margin: 0 auto 16px;
  max-width: 34ch;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.94rem;
  line-height: 1.45;
}

.album-delete-confirm-preview {
  width: min(210px, 72vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.album-delete-confirm-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.album-delete-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.album-delete-confirm-keep,
.album-delete-confirm-remove {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.93rem;
  font-weight: 800;
  cursor: pointer;
}

.album-delete-confirm-keep {
  color: #052016;
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.24);
}

.album-delete-confirm-remove {
  color: #fff;
  background: linear-gradient(135deg, #b42318, #7f1d1d);
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.28);
}

.album-delete-confirm-remove:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 420px) {
  .album-delete-confirm-backdrop {
    padding: 16px;
    align-items: flex-end;
  }

  .album-delete-confirm-modal {
    width: 100%;
    border-radius: 26px 26px 22px 22px;
    padding: 24px 16px 16px;
  }

  .album-delete-confirm-actions {
    grid-template-columns: 1fr;
  }

  .album-delete-confirm-keep,
  .album-delete-confirm-remove {
    width: 100%;
  }
}
/* Album delete confirmation modal (END) */

.album-strip.mohe-busy{
  pointer-events: none;  /* avoid double taps while removing */
}
/* ====Album thumb removal — 120ms dissolve (E N D)============ */
/* ===================================================================== */


/* =========================================================
   Bouquets should render above the ornate frame
   ========================================================= */
.frame-wrapper .bouquet-overlay{
  position: absolute;
  z-index: 5;            /* higher than .frame-wrapper::after (z:3) */
  pointer-events: none;  /* decorative; don’t block taps */
}
/* ====Bouquets should render above the ornate frame (E N D)============ */
/* ***********************************************************************/

/* =========================================================
/* ===== Bouquets rail (between frame and album) ===== */
/*========================================================= */

.bouquet-layer{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;     /* stems align like real bouquets */
  gap: 0;                    /* ✅ overlap is controlled by JS (20%) */
  margin: 12px 0 8px;
  position: static !important;
}

/* Reset any legacy absolute styles on images */
.bouquet-layer .bouquet-overlay{
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;       /* ✅ photo-real PNGs keep shape */
  pointer-events: none;

  position: relative;        /* ✅ required so z-index from JS works */
  transform-origin: bottom center;
  will-change: transform;    /* smoother pop on mobile */

  --tilt: 0deg;
  --jitter: 0px;

  transform: translateY(var(--jitter)) rotate(var(--tilt));
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.25));
  transition: transform 180ms ease, filter 180ms ease;
}

.bouquet-bigpop{
  animation: bouquet-bigpop 2200ms cubic-bezier(.18,.9,.22,1) both;
  z-index: 5;
}

@keyframes bouquet-bigpop{
  0%{
    transform: translateY(calc(var(--jitter) + 10px)) scale(.72) rotate(var(--tilt));
    filter: drop-shadow(0 0 0 rgba(16,185,129,0)) saturate(1.05);
    opacity: .55;
  }
  16%{
    transform: translateY(calc(var(--jitter) - 8px)) scale(1.55) rotate(var(--tilt));
    filter:
      drop-shadow(0 0 14px rgba(16,185,129,.62))
      drop-shadow(0 10px 18px rgba(0,0,0,.30))
      saturate(1.22);
    opacity: 1;
  }
  36%{
    transform: translateY(var(--jitter)) scale(1.08) rotate(var(--tilt));
    filter:
      drop-shadow(0 0 8px rgba(16,185,129,.42))
      drop-shadow(0 5px 10px rgba(0,0,0,.24))
      saturate(1.15);
  }
  58%{
    transform: translateY(calc(var(--jitter) - 4px)) scale(1.28) rotate(var(--tilt));
    filter:
      drop-shadow(0 0 16px rgba(16,185,129,.58))
      drop-shadow(0 8px 16px rgba(0,0,0,.26))
      saturate(1.22);
  }
  78%{
    transform: translateY(var(--jitter)) scale(1.04) rotate(var(--tilt));
    filter:
      drop-shadow(0 0 7px rgba(16,185,129,.30))
      drop-shadow(0 3px 7px rgba(0,0,0,.20))
      saturate(1.12);
  }
  100%{
    transform: translateY(var(--jitter)) scale(1) rotate(var(--tilt));
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)) saturate(1.05);
    opacity: 1;
  }
}

.chip-bounce{
  animation: chip-bounce 520ms cubic-bezier(.2,.9,.2,1);
}
@keyframes chip-bounce{
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22); }
  70%  { transform: scale(.96); }
  100% { transform: scale(1); }
}

.bouquet-confetti{
  position:absolute;
  width:1px;
  height:1px;
  pointer-events:none;
  z-index: 9999;
}

.bouquet-confetti .confetti-piece{
  position:absolute;
  left:0;
  top:0;
  width:7px;
  height:12px;
  border-radius: 999px;
  background: hsl(var(--h) 70% 80% / 0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transform: translate(0,0) rotate(0deg);
  animation: confetti-fly 1900ms ease-out forwards;
}

@keyframes confetti-fly{
  0%   { transform: translate(0,0) rotate(0deg) scale(1); opacity:1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.2); opacity:0; }
}
/* ====Bouquets rail (between frame and album) (E N D)============ */
/* *********************************************************/

/* *********************************************************/
/* Hide any accidental bouquet icons dropped inside the frame */
.media-container > img[src*="Bouquet"] {
  display: none !important;
}
/* ====Hide any accidental bouquet icons (E N D)============ */
/* *********************************************************/


/* =========================================================
   Onboarding / Activation V1
   - gentle starter card above the feed tabs
   ========================================================= */
.activation-start-card {
  position: relative;
  margin: 14px 0 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  color: #111827;
}

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

.activation-start-copy {
  padding-right: 34px;
}

.activation-start-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #16803a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activation-start-copy h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.2;
  color: #111827;
}

.activation-start-copy p:last-child {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;
}

.activation-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.activation-start-btn {
  border: 1px solid rgba(22, 128, 58, 0.32);
  background: rgba(255, 255, 255, 0.9);
  color: #166534;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.activation-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 128, 58, 0.14);
}

.activation-start-btn.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(22, 128, 58, 0.4);
  color: #ffffff;
}

.activation-start-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.activation-start-dismiss:hover {
  color: #111827;
  background: #ffffff;
}

/* =========================================================
   Empty Feed / First Session Guidance V2-A
   - animated first-memory guide for new/quiet Home feeds
   - CSS lives here; app.js only renders behavior/markup
   ========================================================= */
.activation-empty-feed-guidance {
  position: relative;
  margin: 14px 0 18px;
  padding: 18px;
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 24px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 12% 4%, rgba(34, 197, 94, 0.22), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(16, 185, 129, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(2, 6, 23, 0.94));
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.activation-empty-feed-guidance::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.10) 24%, transparent 46%);
  transform: translateX(-120%);
  animation: activationEmptyGuideSheen 4s ease-in-out infinite;
  z-index: -1;
}

.activation-empty-feed-guidance--v2a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
}

.activation-empty-feed-guidance__content {
  min-width: 0;
}

.activation-empty-feed-guidance__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(240, 253, 244, 0.92);
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.20);
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.activation-empty-feed-guidance__close:hover {
  transform: translateY(-1px);
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(34, 197, 94, 0.14);
}

.activation-empty-feed-guidance__eyebrow {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(134, 239, 172, 0.96);
}

.activation-empty-feed-guidance__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 3.5vw, 27px);
  line-height: 1.08;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.activation-empty-feed-guidance__text {
  max-width: 46rem;
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.9);
}

.activation-empty-feed-guide {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 4px 0 4px 2px;
}

.activation-empty-feed-guide__line {
  position: absolute;
  left: 10px;
  top: 17px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(134, 239, 172, 0.15),
    rgba(34, 197, 94, 0.78),
    rgba(134, 239, 172, 0.15)
  );
  overflow: hidden;
}

.activation-empty-feed-guide__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: translateY(-100%);
  animation: activationEmptyGuideLineFlow 2.8s ease-in-out infinite;
}

.activation-empty-feed-guide__step {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  opacity: 0;
  transform: translateY(8px);
  animation: activationEmptyGuideStepIn 5.6s ease-in-out infinite;
}

.activation-empty-feed-guide__step--write {
  animation-delay: 0s;
}

.activation-empty-feed-guide__step--media {
  animation-delay: 0.45s;
}

.activation-empty-feed-guide__step--post {
  animation-delay: 0.9s;
}

.activation-empty-feed-guide__dot {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.13),
    0 0 24px rgba(34, 197, 94, 0.34);
}

.activation-empty-feed-guide__dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #052e16;
  opacity: 0.82;
}

.activation-empty-feed-guide__step strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.22;
}

.activation-empty-feed-guide__step span:not(.activation-empty-feed-guide__dot) {
  display: block;
  color: rgba(203, 213, 225, 0.78);
  font-size: 12px;
  line-height: 1.3;
}

.activation-empty-feed-guidance__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.activation-empty-feed-guidance__button {
  appearance: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.activation-empty-feed-guidance__button:hover {
  transform: translateY(-1px);
}

.activation-empty-feed-guidance__button--primary {
  border: 1px solid rgba(134, 239, 172, 0.46);
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.26);
}

.activation-empty-feed-guidance__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(240, 253, 244, 0.92);
  background: rgba(255, 255, 255, 0.075);
}

.activation-empty-feed-guidance__button--secondary:hover {
  border-color: rgba(134, 239, 172, 0.30);
  background: rgba(34, 197, 94, 0.12);
}

.activation-empty-feed-guidance__hint {
  margin: 11px 0 0;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.72);
}

.activation-empty-feed-visual {
  position: relative;
  min-height: 188px;
  display: grid;
  place-items: center;
}

.activation-empty-feed-visual__glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.20);
  filter: blur(24px);
  animation: activationEmptyGuideGlow 3.2s ease-in-out infinite;
}

.activation-empty-feed-visual__card {
  position: relative;
  z-index: 1;
  width: min(150px, 100%);
  min-height: 164px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 244, 0.90));
  border: 1px solid rgba(134, 239, 172, 0.50);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(255, 255, 255, 0.05);
  transform-origin: center;
  animation: activationEmptyGuideCardFloat 3.8s ease-in-out infinite;
}

.activation-empty-feed-visual__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, transparent 28%),
    linear-gradient(135deg, #bbf7d0, #16a34a);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.activation-empty-feed-visual__lines {
  display: grid;
  gap: 7px;
  margin: 13px 0;
}

.activation-empty-feed-visual__lines span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.activation-empty-feed-visual__lines span:nth-child(1) {
  width: 92%;
}

.activation-empty-feed-visual__lines span:nth-child(2) {
  width: 78%;
}

.activation-empty-feed-visual__lines span:nth-child(3) {
  width: 58%;
}

.activation-empty-feed-visual__lines span::after {
  content: "";
  display: block;
  width: 55%;
  height: 100%;
  border-radius: inherit;
  background: rgba(34, 197, 94, 0.30);
  transform: translateX(-120%);
  animation: activationEmptyGuideTyping 3.2s ease-in-out infinite;
}

.activation-empty-feed-visual__lines span:nth-child(2)::after {
  animation-delay: 0.32s;
}

.activation-empty-feed-visual__lines span:nth-child(3)::after {
  animation-delay: 0.64s;
}

.activation-empty-feed-visual__photo {
  height: 46px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(15, 23, 42, 0.09));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.activation-empty-feed-visual__photo span {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(135deg, #86efac, #15803d);
  animation: activationEmptyGuidePhotoPop 3.2s ease-in-out infinite;
}

.activation-empty-feed-visual__post-button {
  width: fit-content;
  margin: 12px 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: #052e16;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(135deg, #86efac, #22c55e);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.24);
  animation: activationEmptyGuidePostPulse 3.2s ease-in-out infinite;
}

.activation-retention-guide-pill-wrap {
  margin: 12px 0 14px;
  display: flex;
  align-items: center;
}

.activation-retention-guide-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.activation-retention-guide-pill span {
  color: rgba(34, 197, 94, 0.92);
  font-size: 0.92rem;
  font-weight: 900;
}

.activation-retention-guide-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(15, 23, 42, 0.70);
  color: #ffffff;
}

@keyframes activationEmptyGuideSheen {
  0%, 64% {
    transform: translateX(-120%);
  }

  82%, 100% {
    transform: translateX(120%);
  }
}

@keyframes activationEmptyGuideLineFlow {
  0%, 20% {
    transform: translateY(-100%);
    opacity: 0;
  }

  45%, 70% {
    opacity: 1;
  }

  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes activationEmptyGuideStepIn {
  0%, 8% {
    opacity: 0;
    transform: translateY(8px);
  }

  16%, 74% {
    opacity: 1;
    transform: translateY(0);
  }

  86%, 100% {
    opacity: 0.72;
    transform: translateY(0);
  }
}

@keyframes activationEmptyGuideGlow {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes activationEmptyGuideCardFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}

@keyframes activationEmptyGuideTyping {
  0%, 25% {
    transform: translateX(-120%);
  }

  58%, 100% {
    transform: translateX(150%);
  }
}

@keyframes activationEmptyGuidePhotoPop {
  0%, 46% {
    transform: scale(0.76);
    opacity: 0.48;
  }

  58%, 100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes activationEmptyGuidePostPulse {
  0%, 62%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.24);
  }

  74% {
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.38);
  }
}

@media (max-width: 680px) {
  .activation-empty-feed-guidance--v2a {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .activation-empty-feed-visual {
    min-height: 146px;
  }

  .activation-empty-feed-visual__card {
    width: min(210px, 78vw);
    min-height: 120px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 9px 10px;
    align-items: start;
  }

  .activation-empty-feed-visual__avatar {
    grid-row: span 2;
  }

  .activation-empty-feed-visual__lines {
    margin: 2px 0 0;
  }

  .activation-empty-feed-visual__photo {
    grid-column: 1 / -1;
    height: 34px;
  }

  .activation-empty-feed-visual__post-button {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .activation-empty-feed-guidance__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activation-empty-feed-guidance__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activation-empty-feed-guidance::before,
  .activation-empty-feed-guide__line::after,
  .activation-empty-feed-guide__step,
  .activation-empty-feed-visual__glow,
  .activation-empty-feed-visual__card,
  .activation-empty-feed-visual__lines span::after,
  .activation-empty-feed-visual__photo span,
  .activation-empty-feed-visual__post-button {
    animation: none !important;
  }

  .activation-empty-feed-guide__step {
    opacity: 1;
    transform: none;
  }
}
/* =========================================================
   Empty Feed / First Session Guidance V2-A (E N D)
   ========================================================= */

/* =========================================================
   Activation memory CTA spotlight
   - briefly highlights the real composer after Start here
   ========================================================= */
.post-form.activation-memory-spotlight {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.14),
    0 14px 34px rgba(22, 128, 58, 0.18);
  animation: activationMemorySpotlightPulse 1.6s ease-in-out 2;
}

@keyframes activationMemorySpotlightPulse {
  0% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(-2px);
  }

  70% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-form.activation-memory-spotlight {
    animation: none;
  }
}
/* =========================================================
   Activation memory CTA spotlight (E N D)
   ========================================================= */

@media (max-width: 640px) {
  .activation-start-card {
    margin: 12px 0 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .activation-start-actions {
    flex-direction: column;
  }

  .activation-start-btn {
    width: 100%;
  }
}
/* =========================================================
   Activation Card V2-C — close preference modal
   - premium dark/glass modal for Start Guide close choice
   ========================================================= */
.activation-close-choice-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background: rgba(7, 11, 20, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.activation-close-choice-card {
  width: min(420px, 94vw);
  border-radius: 22px;
  padding: 20px;
  color: #f9fafb;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(3, 7, 18, 0.96));
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
  text-align: left;
}

.activation-close-choice-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #22c55e;
}

.activation-close-choice-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.activation-close-choice-text {
  margin: 0 0 16px;
  color: rgba(249, 250, 251, 0.78);
  line-height: 1.45;
  font-size: 14px;
}

.activation-close-choice-actions {
  display: grid;
  gap: 10px;
}

.activation-close-choice-button {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  min-height: 46px;
}

.activation-close-choice-button--primary {
  color: #052e16;
  background: linear-gradient(135deg, #86efac, #22c55e);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

.activation-close-choice-button--secondary {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.activation-close-choice-button--cancel {
  color: rgba(249, 250, 251, 0.72);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.activation-close-choice-button:active {
  transform: translateY(1px);
}

@media (max-width: 520px) {
  .activation-close-choice-layer {
    align-items: flex-end;
  }

  .activation-close-choice-card {
    border-radius: 24px 24px 18px 18px;
  }
}
/* =========================================================
   Activation Card V2-C — close preference modal (E N D)
   ========================================================= */

/* =========================================================
   Onboarding / Activation V1 (E N D)
   ========================================================= */

/* Feed switch under composer */
.feed-switch {
  display:flex; gap:8px; margin:8px 0 14px;
}
.feed-tab {
  border:1px solid #60a5fa; color:#0b66ff; border-radius:999px; padding:6px 12px; 
  background:#dbeafe; font-size:14px; cursor:pointer;
}
.feed-tab.active { background:#4CAF50; color:#fff; border-color:#0b66ff; }
.feed-tab:focus { outline:2px solid #a7c4ff; outline-offset:2px; }

/* =========================================================
   Feed Load More Button
   - appears only when the feed has another backend page available
   ========================================================= */
.feed-load-more {
  display: block;
  margin: 18px auto 28px;
  padding: 10px 18px;
  border: 1px solid rgba(76, 175, 80, 0.55);
  border-radius: 999px;
  background: #f0fff4;
  color: #166534;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.feed-load-more:hover {
  background: #dcfce7;
}

.feed-load-more:focus {
  outline: 2px solid rgba(76, 175, 80, 0.45);
  outline-offset: 3px;
}
/* =========================================================
   Feed Load More Button (E N D)
   ========================================================= */

/* ============Feed Switch (E N D)======================== */
/* *********************************************************/

/* ---------- Visibility badge ---------- */
.post.post-item{ position: relative; } /* safe even if already present */
/* Flowing badge under username (no overlay) */
.visibility-badge{
  position: static;               /* ← no absolute */
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin: 4px 0 8px 0;           /* space around the chip */
  padding: 2px 7px;
  border-radius: 999px;
  background:#eef2ff;
  color:#4338ca;                 /* indigo vibe */
  border:1px solid #d7def0;
  font-size:.78rem;
  font-weight:300;
  line-height:1;
  white-space:nowrap;
}
.visibility-badge .vb-emoji{
  font-size:.90rem;
}

/* Row that will host the badge under the header (we’ll create it in JS) */
/*======================================================*\
*==== Post badge row / top dashboard control layout ====*\
\*======================================================*/
.post-badge-row{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-left: 0 !important;  /* ← align with avatar & card inner corner */
}

.post-badge-row .visibility-badge,
.post-badge-row .image-controls-btn,
.post-badge-row .moved-frame-btn{
  flex: 0 0 auto;
}
/*==== End badge label size reduction + row spacing tightening ===== */

/***********************************************************/
/* ---------- Visibility badge (E N D) ---------- */
/* *********************************************************/



/************************************************************/
/* ---------- Owner image controls + lock shield ---------- */


/*======================================================*\
*==== Top dashboard row buttons: image controls/frame ==*\
\*======================================================*/
.image-controls-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  border-radius:12px !important;
  box-shadow:none !important;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  flex:0 0 44px !important;
  overflow:hidden !important;
}

.image-controls-btn:hover,
.image-controls-btn:focus,
.image-controls-btn:active{
  background:rgba(59,130,246,0.08) !important;
  border:0 !important;
  box-shadow:none !important;
  outline:none !important;
}

.image-controls-btn img{
  width:42px !important;
  height:42px !important;
  max-width:none !important;
  max-height:none !important;
  display:block;
  object-fit:contain;
}
/*==== Top dashboard row buttons: image controls/frame ==*/
/*====================E N D==================================*/

/* ===== Frame picker button: make the visible art feel bigger without growing the whole row ===== */
.moved-frame-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  margin:0 2px 0 0 !important;
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  border-radius:12px !important;
  box-shadow:none !important;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  flex:0 0 44px !important;
  overflow:hidden !important;
  position:relative;
}

.moved-frame-btn:hover,
.moved-frame-btn:focus,
.moved-frame-btn:active{
  background:rgba(76,175,80,0.10) !important;
  border:0 !important;
  box-shadow:none !important;
  outline:none !important;
}

.moved-frame-btn img{
  width:40px !important;
  height:40px !important;
  max-width:none !important;
  max-height:none !important;
  display:block;
  object-fit:contain;
  object-position:center;
  transform:none !important;

  /* trims likely transparent padding from the PNG so the visible art stands out more */
  clip-path: inset(14% 14% 14% 14%);

  /* gives the icon more visual presence even if the source art is delicate */
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.18));
}
/* ===== End frame picker button visual prominence patch ===== */

/*==== Top dashboard row buttons: image controls/frame ==*\
/*===================E  N  D============================*/
/*******************************************************/

.media-container{
  position:relative;
}

.media-lock-shield{
  position:absolute;
  inset:0;
  z-index:4;
  background:transparent !important;
  border:0 !important;
  outline:none !important;
  box-shadow:none !important;
  padding:0;
  margin:0;
  cursor:default;
  touch-action:pan-y;
  appearance:none;
  -webkit-appearance:none;
  -webkit-tap-highlight-color: transparent;
  user-select:none;
}

.media-lock-shield:hover,
.media-lock-shield:focus,
.media-lock-shield:active,
.media-lock-shield:focus-visible{
  background:transparent !important;
  border:0 !important;
  outline:none !important;
  box-shadow:none !important;
  filter:none !important;
}

.media-edit-unlocked .media-lock-shield{
  display:none !important;
}

/* =========================================================
   Media Edit Guidance V1-F — Keep Slim Bar, Kill Center Circle
   - removes only the experimental center circle/bubble/guide
   - keeps the Slim Edit Bar
   - keeps the real frame layer untouched
   ========================================================= */
.media-center-guide,
.media-edit-glass-scope,
.media-glass-scope-shine,
.media-glass-scope-dot,
.media-glass-scope-ring,
.media-center-dot,
.media-center-ring{
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:0 !important;
  max-height:0 !important;
  opacity:0 !important;
  pointer-events:none !important;
  visibility:hidden !important;
  background:none !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
}

/* Keep the green edit state, but remove the extra pseudo badge/bubble.
   Do NOT target .frame-wrapper::after; that is the real frame. */
.media-container.media-edit-unlocked{
  box-shadow:
    0 0 0 2px rgba(76, 175, 80, 0.42),
    0 14px 34px rgba(22, 163, 74, 0.14);
}

.media-container.media-edit-unlocked::before{
  content:"" !important;
  position:absolute;
  top:10px;
  right:10px;
  z-index:8;
  width:13px;
  height:13px;
  border-radius:999px;
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:none !important;
  background:#22c55e !important;
  border:2px solid rgba(240, 253, 244, 0.92) !important;
  box-shadow:
    0 0 0 0 rgba(34, 197, 94, 0.58),
    0 0 12px rgba(34, 197, 94, 0.72) !important;
  animation: mediaEditCornerRadarPing 1.35s ease-out infinite;
}

@keyframes mediaEditCornerRadarPing{
  0%{
    box-shadow:
      0 0 0 0 rgba(34, 197, 94, 0.58),
      0 0 12px rgba(34, 197, 94, 0.72);
  }
  70%{
    box-shadow:
      0 0 0 12px rgba(34, 197, 94, 0),
      0 0 14px rgba(34, 197, 94, 0.60);
  }
  100%{
    box-shadow:
      0 0 0 0 rgba(34, 197, 94, 0),
      0 0 12px rgba(34, 197, 94, 0.72);
  }
}
/* =========================================================
   Media Edit Guidance V1-F — Keep Slim Bar, Kill Center Circle (E N D)
   ========================================================= */

.media-edit-bar{
  position: relative;
  margin: 8px 0 10px;
  border: 1px solid rgba(76, 175, 80, 0.22);
  border-radius: 16px;
  padding: 10px 44px 10px 10px;
  background:
    radial-gradient(circle at top left, rgba(76, 175, 80, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.90));
  color: #fff;
  box-shadow:
    0 10px 24px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.07);
  display: grid;
  gap: 9px;
  animation: mediaEditBarIn .16s ease-out;
}

@keyframes mediaEditBarIn{
  from{ opacity:0; transform:translateY(-4px); }
  to{ opacity:1; transform:translateY(0); }
}

.media-edit-bar-close{
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #d1fae5;
  font-size: 18px;
  line-height: 1;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.media-edit-bar-close:hover,
.media-edit-bar-close:focus-visible{
  background: rgba(255,255,255,.14);
  outline: 2px solid rgba(74,222,128,.25);
  outline-offset: 2px;
}

.media-edit-bar-copy{
  display: grid;
  gap: 3px;
}

.media-edit-bar-copy span{
  color: #4ade80;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.media-edit-bar-copy strong{
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.media-edit-bar-copy small{
  color: rgba(226, 232, 240, .78);
  font-size: 11px;
  line-height: 1.35;
}

.media-edit-bar-copy b{
  color: #86efac;
  font-weight: 950;
}

.media-edit-bar-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.media-edit-bar-actions button{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #f8fafc;
  padding: 8px 9px;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.media-edit-bar-actions button:hover,
.media-edit-bar-actions button:focus-visible{
  background: rgba(255,255,255,.14);
  outline: none;
}

.media-edit-bar-actions .media-edit-save-lock-btn{
  border-color: rgba(74, 222, 128, .44);
  background: linear-gradient(135deg, rgba(34,197,94,.92), rgba(22,163,74,.92));
  color: #052e16;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(34,197,94,.20);
}

.media-edit-bar-actions .media-edit-save-lock-btn:hover,
.media-edit-bar-actions .media-edit-save-lock-btn:focus-visible{
  background: linear-gradient(135deg, rgba(74,222,128,.98), rgba(34,197,94,.98));
}

@media (max-width: 480px){
  .media-edit-bar{
    border-radius: 15px;
    padding: 9px 42px 9px 9px;
    gap: 8px;
  }

  .media-edit-bar-copy strong{
    font-size: 11.5px;
  }

  .media-edit-bar-actions{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Media Edit Guidance V1-E — No Center Overlay + Exit-Safe Slim Edit Bar (E N D)
   ========================================================= */

/* =========================================================
   Media Edit Guidance V1-H — Safe Drag Radar Guide
   - same visual language as the "Use Drag" teaching modal
   - intentionally does NOT use old .media-center-guide classes
   - stays above the media/frame, but never blocks touch/drag
   ========================================================= */
.media-edit-radar-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  z-index: 12;
  pointer-events: none;
  opacity: 0.96;
}

.media-edit-radar-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4CAF50;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 6px rgba(76, 175, 80, 0.12),
    0 0 16px rgba(76, 175, 80, 0.42);
  z-index: 3;
}

.media-edit-radar-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(76, 175, 80, 0.72);
  transform: translate(-50%, -50%) scale(.65);
  animation: mediaEditRadarPulse 1.5s ease-out infinite;
  z-index: 2;
}

.media-edit-radar-ring-2 {
  animation-delay: .22s;
}

.media-edit-radar-ring-3 {
  animation-delay: .44s;
}

@keyframes mediaEditRadarPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.55);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}
/* =========================================================
   Media Edit Guidance V1-H — Safe Drag Radar Guide (E N D)
   ========================================================= */

.image-controls-overlay{
  position:fixed;
  inset:0;
  z-index:2147483646;
  display:none;
  align-items:center;
  justify-content:center;
}

.image-controls-overlay.show{
  display:flex;
}

.image-controls-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.78);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}

.image-controls-sheet{
  position:relative;
  z-index:1;
  width:min(92vw, 420px);
  border-radius:22px;
  background:rgba(17,24,39,0.92);
  color:#fff;
  box-shadow:0 18px 60px rgba(0,0,0,0.46);
  border:1px solid rgba(255,255,255,0.12);
  padding:18px 16px 16px;
}

.image-controls-close{
  position:absolute;
  top:8px;
  right:8px;
  width:38px;
  height:38px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,0.10);
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.image-controls-title{
  font-size:22px;
  line-height:1.15;
  font-weight:800;
  margin:2px 34px 10px 0;
  color:#fff;
}

.image-controls-copy{
  margin:0 0 14px;
  color:rgba(255,255,255,0.90);
  line-height:1.45;
  font-size:14px;
}

.key-green{
  color:#4CAF50;
  font-weight:800;
}

.image-controls-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.image-controls-actions.stack{
  flex-direction:column;
}

.image-controls-actions button{
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.08);
  color:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
}

.image-controls-actions button:hover,
.image-controls-close:hover{
  background:rgba(255,255,255,0.16);
}

.gesture-demo{
  position:relative;
  height:220px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(55,65,81,0.92), rgba(31,41,55,0.98));
  border:1px solid rgba(255,255,255,0.08);
  overflow:hidden;
  margin:6px 0 14px;
}

.gesture-hand{
  position:absolute;
  display:block;
  object-fit:contain;
  opacity:.98;
  z-index:2;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.18));
}

.gesture-drag-demo .gesture-hand.one-finger{
  width:88px;
  height:88px;
  left:50%;
  top:50%;
  transform:translate(-50%,-12%);
  animation:dragHandMove 2.2s ease-in-out infinite;
}

.gesture-zoom-demo .gesture-hand.pinch-hand{
  width:129px;
  height:129px;
  left:57.5%;
  top:30%;
  transform:translate(-50%,-8%);
  animation:zoomHandPulse 1.5s ease-in-out infinite;
}

.gesture-demo .gesture-hand{
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
  opacity: .94;
}

.gesture-zoom-demo .zoom-arrow{
  display:none !important;
}

@keyframes dragHandMove{
  0%,100% { transform:translate(-50%,-38%) translate(0,0); }
  20%     { transform:translate(-50%,-38%) translate(-14px,0); }
  40%     { transform:translate(-50%,-38%) translate(14px,0); }
  60%     { transform:translate(-50%,-38%) translate(0,-14px); }
  80%     { transform:translate(-50%,-38%) translate(0,14px); }
}

@keyframes zoomHandPulse{
  0%,100% { transform:translate(-50%,-8%) scale(.96); }
  50%     { transform:translate(-50%,-8%) scale(1.05); }
}

.touch-dot,
.zoom-dot{
  position:absolute;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#4CAF50;
  box-shadow:0 0 0 6px rgba(76,175,80,0.12);
  z-index:3;
}

.touch-dot{
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

.touch-ring{
  position:absolute;
  left:50%;
  top:50%;
  width:56px;
  height:56px;
  border-radius:50%;
  border:2px solid rgba(76,175,80,0.72);
  transform:translate(-50%,-50%) scale(.65);
  animation:dragPulse 1.5s ease-out infinite;
}

.touch-ring.ring-2{ animation-delay:.22s; }
.touch-ring.ring-3{ animation-delay:.44s; }

@keyframes dragPulse{
  0%   { opacity:0; transform:translate(-50%,-50%) scale(.55); }
  30%  { opacity:1; }
  100% { opacity:0; transform:translate(-50%,-50%) scale(1.45); }
}

.drag-arrows .arrow,
.zoom-arrow{
  position:absolute;
  width:18px;
  height:18px;
  z-index:4;
  animation:arrowBlink 1.3s ease-in-out infinite;
  opacity:.95;
}

.drag-arrows .arrow::before,
.zoom-arrow::before{
  content:"";
  position:absolute;
  inset:0;
  border-top:3px solid #4CAF50;
  border-right:3px solid #4CAF50;
  box-sizing:border-box;
  filter:drop-shadow(0 0 8px rgba(76,175,80,0.18));
}

.drag-arrows .up{ left:50%; top:24px; transform:translateX(-50%) rotate(-45deg); }
.drag-arrows .right{ right:26px; top:50%; transform:translateY(-50%) rotate(45deg); }
.drag-arrows .down{ left:50%; bottom:24px; transform:translateX(-50%) rotate(135deg); }
.drag-arrows .left{ left:26px; top:50%; transform:translateY(-50%) rotate(225deg); }

@keyframes arrowBlink{
  0%,100%{ opacity:.45; }
  50%{ opacity:1; }
}

.zoom-dot-a{
  left:39%;
  top:38%;
  animation:zoomDotA 1.5s ease-in-out infinite;
}
.zoom-dot-b{
  left:61%;
  top:62%;
  animation:zoomDotB 1.5s ease-in-out infinite;
}
.zoom-arrow-a{
  left:58%;
  top:24%;
  animation:zoomArrowA 1.5s ease-in-out infinite;
}
.zoom-arrow-b{
  left:61%;
  top:53%;
  animation:zoomArrowB 1.5s ease-in-out infinite;
}

.zoom-arrow-a::before,
.zoom-arrow-b::before,
.drag-arrows .arrow::before{
  transform:none;
}

@keyframes zoomDotA{
  0%,100%{ transform:translate(0,0) scale(1); }
  50%{ transform:translate(-16px,-16px) scale(1.05); }
}
@keyframes zoomDotB{
  0%,100%{ transform:translate(0,0) scale(1); }
  50%{ transform:translate(16px,16px) scale(1.05); }
}
@keyframes zoomArrowA{
  0%,100%{ transform:translate(0,0) rotate(-45deg); opacity:.55; }
  50%{ transform:translate(-10px,-10px) rotate(-45deg); opacity:1; }
}
@keyframes zoomArrowB{
  0%,100%{ transform:translate(0,0) rotate(135deg); opacity:.55; }
  50%{ transform:translate(10px,10px) rotate(135deg); opacity:1; }
}

@media (max-width: 480px){
  .image-controls-sheet{
    width:min(94vw, 380px);
    padding:16px 12px 14px;
  }

  .image-controls-title{
    font-size:20px;
  }

  .gesture-demo{
    height:190px;
  }
}
/* ---------- Owner image controls + lock shield (E N D) ---------- */
/********************************************************************/

/* --- Feed crumbs + "View all" link --- */
.feed-crumbs-wrap { display:flex; align-items:center; gap:10px; margin:6px 0 12px; }
.btn-ghost { border:1px solid #e5e7eb; background:#f9fafb; padding:6px 10px; border-radius:10px; cursor:pointer; }
.view-all-from{
  margin-top:8px; font-size:0.9rem; border:none; background:transparent; color:#2563eb; cursor:pointer;
}
.view-all-from:hover{ text-decoration: underline; }
/* ============Feed crumbs + "View all" (E N D)======================== */
/* **********************************************************************/


/* *********************************************************/
/* ************Follow button *******************************/
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color, #2b6cb0);
  background: #2b6cb0;
  color: var(--link-color, white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 60ms;
}

.follow-btn:hover {
  background: rgba(43, 108, 176, 0.08);
}

.follow-btn:active {
  transform: translateY(1px);
}

.follow-btn.is-following {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}
/* ============Follow button (E N D)======================== */
/* *********************************************************/

/* =========================================================
   Post header lane for Report + Follow coexistence
   - only applies on cards that actually have a Report button
   ========================================================= */
.post-user-info--with-report{
  padding-right: 96px;
  min-height: 40px;
}

@media (max-width: 768px){
  .post-user-info--with-report{
    padding-right: 88px;
    min-height: 38px;
  }
}
/* =========================================================
   Post header lane for Report + Follow coexistence (E N D)
   ========================================================= */

/* ******************************/
/* ---- Feed scope switch ---- */
#feedScope { 
  margin: 10px 0 14px; 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap;
}

#feedScope .scope-btn {
  padding: 8px 14px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, color .15s ease, border-color .15s ease;
  user-select: none;
}
#feedScope .scope-btn:hover { transform: translateY(-1px); }

#feedScope .scope-btn.active {
  background: #2563eb;          /* blue */
  color: #fff;
  border-color: #2563eb;
}

/* Dark mode safety (only if you use a dark body class) */
body.dark #feedScope .scope-btn {
  background: #111827;
  color: #e5e7eb;
  border-color: #374151;
}
body.dark #feedScope .scope-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
/* ============Feed scope switch (E N D)======================== */
/* *********************************************************/


/* ────────────────────────────────────────────────────────────
   GIVERS sidebar: scrollable list
   Target: #giversListContent (the inner container we fill from app.js)
   ──────────────────────────────────────────────────────────── */
#giversListContent {
  /* layout */
  display: grid;
  grid-auto-rows: minmax(44px, auto);
  row-gap: 8px;

  /* scrolling */
  max-height: calc(100vh - 160px);  /* adjust 160px if your header is taller/shorter */
  overflow-y: auto;
  overscroll-behavior: contain;      /* prevents bounce from scrolling the whole page */
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
  scrollbar-gutter: stable;          /* keeps content from shifting when scrollbar appears */

  /* padding so the scrollbar doesn't overlap content */
  padding-right: 6px;
}

/* nice, subtle scrollbar (Chromium/WebKit) */
#giversListContent::-webkit-scrollbar {
  width: 8px;
}
#giversListContent::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
}
#giversListContent::-webkit-scrollbar-track {
  background: transparent;
}

/* Mobile: cap the list height a bit lower so it doesn’t dominate the screen */
@media (max-width: 900px) {
  #giversListContent {
    max-height: 240px;
  }
}
/* ============GIVERS sidebar: scrollable list (E N D)======================== */
/* *****************************************************************************/

/* Profile controls live inside the header flow (no fixed/sticky) */
.profile-controls{
  position: static;              /* participate in header’s flex row */
  display: none;                 /* responsive: hidden by default */
  align-items: center;
  gap: 8px;
}

/* Mobile/tablet: show inside header */
@media (max-width: 900px){
  .header .profile-controls{
    display: inline-flex;
    margin-left: 8px;            /* tiny breathing room next to name */
  }
}

/* Desktop: keep hidden (desktop header likely has other controls) */
/* Desktop/tablet (>900px): show the avatar+name pill; hide the ⋮ */
@media (min-width: 901px){
  .header .profile-controls{ display: inline-flex !important; }
  .header .profile-controls .icon-button{ display: none !important; }
  .header .profile-controls #staticButton{ display: inline-flex !important; }
  .header .logo-container{ width: auto !important; height: auto !important; flex: 0 0 auto !important; }
  .header .logo-container > img.logo-Face{ height: 48px !important; width: auto !important; object-fit: contain !important; }

}

/* ====Profile controls live inside the header flow (no fixed/sticky) (E N D)====== */
/* ==================================================================================/


/* Let the avatar pill sit inline inside the wrapper */
#staticButton{
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0;
}

/* tiny three-dots button */
.icon-button{
  background: #d1d6dc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px;
  line-height: 0;        /* tight icon box */
  cursor: pointer;
  color: #111827;        /* ← three-dots color (slate-900) */
}
.icon-button:hover{
  color: #2563eb;         /* ← hover color (blue-600) */
}


.icon-button:active{ transform: translateY(1px); }
.icon-button .kebab{ font-size: 18px; line-height: 1; display: inline-block; }

/* dropdown panel */
.profile-menu[hidden]{ display: none !important; }
.profile-menu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 232px;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 18px;
  box-shadow:
    0 18px 44px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  padding: 10px;
  display: grid;
  gap: 8px;
  z-index: 1200;
  overflow: hidden;
}

.profile-menu::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(134, 239, 172, 0.10),
    rgba(34, 197, 94, 0.52),
    rgba(134, 239, 172, 0.10)
  );
  pointer-events: none;
  opacity: 0.72;
}

.profile-menu::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 26px;
  width: 2px;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.78), transparent);
  pointer-events: none;
  animation: profileMenuRailFlow 3.2s ease-in-out infinite;
  opacity: 0.68;
}

.profile-menu button{
  position: relative;
  width: 100%;
  min-height: 40px;
  text-align: left;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(74,222,128,0.16);
  border-radius: 14px;
  padding: 9px 12px 9px 34px;
  cursor: pointer;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  overflow: hidden;
}

.profile-menu button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10),
    0 0 18px rgba(34, 197, 94, 0.28);
}

.profile-menu button::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(5, 46, 22, 0.78);
}

.profile-menu button:hover{
  background: rgba(74,222,128,0.16);
  border-color: rgba(74,222,128,0.30);
  color: #ffffff;
}

/* danger action */
.profile-menu .danger-btn{
  background: rgba(127, 29, 29, 0.36);
  border-color: rgba(248,113,113,0.28);
  color: #fee2e2;
}

.profile-menu .danger-btn::before {
  background: linear-gradient(135deg, #fecaca, #ef4444);
  box-shadow:
    0 0 0 4px rgba(239, 68, 68, 0.10),
    0 0 18px rgba(239, 68, 68, 0.24);
}

.profile-menu .danger-btn::after {
  background: rgba(69, 10, 10, 0.78);
}

.profile-menu .danger-btn:hover{
  background: rgba(185, 28, 28, 0.48);
  border-color: rgba(248,113,113,0.40);
  color: #ffffff;
}

@keyframes profileMenuRailFlow {
  0%, 18% {
    transform: translateY(-125%);
    opacity: 0;
  }

  42%, 68% {
    opacity: 0.68;
  }

  100% {
    transform: translateY(245%);
    opacity: 0;
  }
}

/* === Profile dropdown — END ================================== */
/* ***************************************************************/


/* ***************************************************************/
/* === FINAL AUTHORITY for the profile controls (removed)
The header now controls layout; no fixed positioning here. */
/* ***************************************************************/


/* Keep the Profile pill inside the wrapper, never fixed */
#staticButton{
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0;
}



/* === Profile dropdown: subtle fade/slide ===================== */
.profile-menu{
  /* start closed */
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

/* when open */
.profile-menu.open{
  opacity: 1;
  transform: translateY(0);
}

/* during the short closing animation, ignore pointer input */
.profile-menu:not(.open){
  pointer-events: none;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce){
  .profile-menu{ transition: none; transform: none; }
}
/* === Profile dropdown animation subtle fade/slide — END ======================= */
/* ********************************************************************************/

/* --- Make the Back button stand out --- */
#feed-back-btn.btn-ghost{
  background:#eff6ff;          /* soft blue pill */
  border-color:#93c5fd;
  color:#1d4ed8;               /* blue-700 */
  font-weight:600;
  padding:8px 12px;
  border-radius:9999px;        /* full pill */
  box-shadow:0 1px 2px rgba(0,0,0,.06);
  transition:background .15s ease, border-color .15s ease, transform .05s ease;
}
#feed-back-btn.btn-ghost:hover{
  background:#dbeafe;          /* stronger on hover */
  border-color:#60a5fa;
}
#feed-back-btn.btn-ghost:active{
  transform:translateY(1px);   /* tactile press */
}
#feed-back-btn.btn-ghost:focus-visible{
  outline:2px solid #60a5fa;   /* accessible focus ring */
  outline-offset:2px;
}

/* === Make the Back button stand out — (E N D) ======================= */
/* ********************************************************************************/


/* ── Mobile user badge ───────────────────────────────────────────── */
.mobile-user-badge {
  display: none;                 /* shown only on small screens */
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  justify-content: flex-start;
  border-bottom: 0px solid rgba(0,0,0,0.08);
  background: #fff;
  position: sticky;              /* keeps it visible while scrolling */
  top: var(--header-h);  /* sit right below the fixed header */
  z-index: 1001;                   /* above content, below modals */
}
.mobile-user-badge img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.mobile-user-badge .name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70vw;
}

/* Show only on mobile/tablet */
@media (max-width: 900px) {
  .mobile-user-badge { display: flex; }
    /* optional: align it to the right inside header */
  /* .mobile-user-badge { margin-left: auto; } */

}

@media (min-width: 901px) {
  .mobile-user-badge { display: none !important; }
}
/* ========= Mobile user badge — (E N D) ======================= */
/* ***************************************************************/

/* === Mobile header: show ⋮ next to the display name ==================== */
@media (max-width: 900px){
  /* Make the mobile badge a tight row: [avatar][name] */
  #mobileUserBadge{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: -18px;
  }

  /* Turn the profile-controls back on INSIDE the header, right after the badge */
  .header .profile-controls{
    display: inline-flex !important;   /* override the auth-level hide */
    position: static;                  /* flow with header */
    margin-left: 6px;                  /* sits just to the right of the name */
    align-items: center;
    gap: 6px;
  }

  /* Hide the duplicate username pill inside profile-controls on phones */
  .header .profile-controls #staticButton{
    display: none !important;
  }

  /* Keep only the three-dots button visible on phones */
  .header .profile-controls .icon-button{
    display: inline-flex;
  }

  /* Optional: reduce extra spacing in the header on phones */
  .header{
    justify-content: center;           /* title centered */
  }
}
/* === Mobile header — END =============================================== */
/* *************************************************************************/



/* === Mobile header layout (≤900px): show badge + ⋮, hide bulky items ====== */
@media (max-width: 900px){
  /* Hide heavy header content to free space */
  .header .header-buttons{ display: none !important; }
  .header h1{ display: none !important; }
  .header .logo-container{ display: inline-flex !important; }

  /* Keep header simple and left-aligned */
  .header{
    justify-content: flex-start;   /* align items in a row */
    overflow: hidden;              /* keep but now nothing overflows */
  }

  /* Show the mobile badge: [avatar][display name] */
  #mobileUserBadge{
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }

  /* Put the ⋮ immediately to the right of the display name */
  .header .profile-controls{
    display: inline-flex !important;  /* override auth-level hide */
    position: static;                 /* participate in header flow */
    margin-left: 6px;                 /* sits right after the name */
    align-items: center;
    gap: 6px;
  }

  /* On phones we only want the ⋮ from profile-controls (avoid duplicate name pill) */
  .header .profile-controls #staticButton{
    display: none !important;
  }

  /* Ensure the actual three-dots button is visible */
  .header .profile-controls .icon-button{
    display: inline-flex;
  }
}
/* === Mobile header layout — END =========================================== */
/* *************************************************************************/


/* === Mobile header layout (≤900px): badge + ⋮, no clutter ================= */
@media (max-width: 900px){
  /* Hide bulky header items to free space on phones */
  .header .header-buttons{ display: none !important; }
  .header h1{ display: none !important; }
  .header .logo-container{ display: inline-flex !important; }

  /* Keep header compact and left-aligned */
  .header{
    justify-content: flex-start;
    overflow: hidden;
  }

  /* Show mobile badge: [avatar][display name] */
  #mobileUserBadge{
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }

  /* Show ⋮ immediately to the right of the display name */
  .header .profile-controls{
    display: inline-flex !important;  /* override the global auth-level hide */
    position: static;                 /* flow inside the header row */
    margin-left: 6px;
    align-items: center;
    gap: 6px;
  }

  /* Avoid duplicate name pill inside profile-controls on phones */
  .header .profile-controls #staticButton{
    display: none !important;
  }

  /* Ensure the three-dots button itself is visible */
  .header .profile-controls .icon-button{
    display: inline-flex;
  }
}

/* Desktop/tablet (≥901px): show the avatar+name pill; hide the ⋮ */
@media (min-width: 901px){
  .header .profile-controls{ display: inline-flex !important; align-items: center; gap: 8px; }
  .header .profile-controls .icon-button{ display: none !important; }     /* no ⋮ on desktop */
  .header .profile-controls #staticButton{ display: inline-flex !important; } /* show pill */
  .header .logo-container{ width: auto !important; height: auto !important; flex: 0 0 auto !important; }
  .header .logo-container > img.logo-Face{ height: 48px !important; width: auto !important; object-fit: contain !important; }

}
/* === Mobile header layout (≤900px): badge + ⋮, no clutter — END ======== */
/* *************************************************************************/



/* Mobile (≤900px): show only the ⋮ to the right of the display name */
@media (max-width: 900px){
  #mobileUserBadge{
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-left: -14px;   /* ← bring badge closer to the logo */
  }

  .header .profile-controls{
    display: inline-flex !important;
    position: static;
    margin-left: 6px;          /* sits just after the name */
    align-items: center;
    gap: 6px;
  }

  /* mobile = no duplicate name: hide the pill */
  .header .profile-controls #staticButton{ display: none !important; }

  /* keep only three-dots */
  .header .profile-controls .icon-button{ display: inline-flex !important; }
}
/* === Mobile (≤900px): show only the ⋮ to the right of the display name — (E N D) ======== */
/* *****************************************************************************************/


/* ==== FINAL HEADER VISIBILITY (wins over earlier duplicates) ==== */
/* Desktop/tablet (≥901px): show the avatar+name pill in the header, hide ⋮ and the phone badge */
@media (min-width: 901px){
  .header .profile-controls{
    display: inline-flex !important;
    position: static !important;
    align-items: center; gap: 8px;
  }
  .header .profile-controls .icon-button{ display: none !important; }   /* no ⋮ on desktop */
  .header .profile-controls #staticButton{ display: inline-flex !important; } /* show pill */
  #mobileUserBadge{ display: none !important; }                          /* kill duplicate badge */
  .header .logo-container{ width: auto !important; height: auto !important; flex: 0 0 auto !important; }
  .header .logo-container > img.logo-Face{ height: 48px !important; width: auto !important; object-fit: contain !important; }

}

/* Mobile (≤900px): show the phone badge + only the ⋮ right of the name */
@media (max-width: 900px){
  #mobileUserBadge{
    display: inline-flex !important;
    align-items: center; gap: 6px;
  }
  .header .profile-controls{
    display: inline-flex !important;
    position: static !important;
    margin-left: 6px; align-items: center; gap: 6px;
  }
  .header .profile-controls #staticButton{ display: none !important; }  /* avoid duplicate name pill */
  .header .profile-controls .icon-button{ display: inline-flex !important; } /* keep ⋮ visible */
}
/* ======= FINAL HEADER VISIBILITY (wins over earlier duplicates) ==== (E N D) ===== */
/* ***********************************************************************************/


/* ==== MOBILE: make the brand logo visible again (wins over earlier hides) ==== */
@media (max-width: 900px){
  /* Unhide whichever selector your logo uses */
  .header .logo-container,
  .header .logo-Face,
  #LOGO3 {
    display: inline-flex !important;
    align-items: center;
  }

  /* Optional: keep the layout tidy */
  .header .logo-container img,
  #LOGO3 img {
    max-height: none !important;
    height: auto;
    width: auto;
  }

  /* Optional ordering (logo left, name center, ⋮ just right of name) */
  .header .logo-container, .header .logo-Face, #LOGO3 { order: 0; }
  #mobileUserBadge { order: 1; }
  .header .profile-controls { order: 2; }     /* this holds the ⋮ on phones */
  #logoutBtn { order: 3; }
}
/* ======= MOBILE: make the brand logo visible again (wins over earlier hides)  === (E N D) ===== */
/* ************************************************************************************************/


/* ==== MOBILE: show the brand logo + keep clean layout (final override) ==== */
@media (max-width: 900px){
  /* 1) Unhide the logo on phones regardless of earlier rules */
  .header .logo-container,
  .header .logo-Face,
  #LOGO3{
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;            /* don't let logo stretch */
    order: 0;                   /* logo at the left */
  }
  
  .header .logo-container img,
  #LOGO3 img{
    max-height: none !important;
    height: auto;
    width: auto;
  }

  /* 2) Let the name area expand in the middle and avoid pushing the logo off */
  #mobileUserBadge{
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;            /* take the remaining space */
    min-width: 0;              /* allow text truncation */
    order: 1;
    justify-content: flex-start;   /* keep the name visually centered */
    text-align: center;
    margin-left: 3px;
  }

  /* If the name is long, truncate instead of pushing things out */
  #mobileUserBadge *{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 3) ⋮ stays immediately to the right of the name, but doesn't steal space */
  .header .profile-controls{
    display: inline-flex !important;
    position: static !important;
    order: 2;
    flex: 0 0 auto;            /* fixed-size next to the name */
    margin-top: 40px;
    align-items: center;
    gap: 6px;
    z-index: 1001;
  }

  /* 4) Logout at the far right; keep it compact so the logo can fit */
  #logoutBtn{
    order: 3;
    flex: 0 0 auto;
  }

  /* 5) Header spacing tuned for phones */
  .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
  }
}

/* ======= MOBILE: show the brand logo + keep clean layout (final override)=== (E N D) ===== */
/* *******************************************************************************************/


/* ==== FINAL: ensure logo shows on phones, keep layout tidy ==== */
@media (max-width: 900px){
  .header .logo-container,
  .header .logo-Face{
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    order: 0;
  }
  
  .header .logo-container img{
    max-height: none !important;
    height: auto;
    width: auto;
  }
}

/* ======= FINAL: ensure logo shows on phones, keep layout tidy=== (E N D) ===== */
/* *******************************************************************************/


/* === FINAL-FINAL: mobile logo size (beats every earlier cap) === */
@media (max-width: 900px){
  /* ensure the container itself isn't constraining the img */
  .header .logo-container{
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  /* target the ACTUAL <img>, with higher specificity than any prior rules */
  .header .logo-container > img.logo-Face{
    height: 44px !important;      /* ← set your mobile size here */
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain !important;
    display: inline-block !important;
  }
}
/* === FINAL-FINAL: mobile logo size (beats every earlier cap)===(E N D) ===== */
/* *******************************************************************************/


/* === FINAL AUTHORITATIVE LOGO SIZE — KEEP AT EOF === */

/* Mobile (≤900px) */
@media (max-width: 900px){
  .header .logo-container > img.logo-Face{
    height: 104px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
  }
}

/* Desktop / Tablet (≥901px) */
@media (min-width: 901px){
  .header .logo-container > img.logo-Face{
    height: 105px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
  }
}
/* === FINAL LOGO SIZE (authoritative) (E N D) ========================= */
/* *******************************************************************************/

/* === MOBILE: place kebab next to the badge; prevent overlap === */
@media (max-width: 900px){
  .header{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: nowrap;            /* avoid wrapping that pushes kebab out */
  }

  /* Ensure order: LOGO → Badge → Kebab → (rest) → Logout */
  .logo-container{ order: 0; }
  #mobileUserBadge{ order: 1; }
  .profile-controls{ 
    order: 2; 
    display: flex !important; 
    align-items: center; 
    gap: 4px; 
  }

  /* Make the kebab visible and snug next to the badge */
  #profileMenuToggle{
    display: inline-flex !important;
    order: 2;
    margin-left: 2px;             /* nudge closer to the badge */
    position: relative; 
    z-index: 5;                   /* sit above logout if they overlap */
  }

  /* Push logout to the far right and behind in stacking if needed */
  #logoutBtn{ 
    order: 9;                     /* keep it at the end of the row */
    position: relative; 
    z-index: 1; 
  }

  /* (Optional) Hide the desktop header buttons on mobile, if not already */
  .header-buttons{ display: none !important; }
}
/* === === MOBILE: place kebab next to the badge; prevent overlap (E N D) =========== */
/* *******************************************************************************/

/* === MOBILE HEADER LAYOUT: make kebab visible & place it next to the badge === */
@media (max-width: 900px){
  .header{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:6px !important;
    flex-wrap:nowrap !important;
    overflow:visible !important;
  }

  /* Hide non-essential stuff on phones to free space */
  .header h1{ display:none !important; }
  .header-buttons{ display:none !important; }

  /* Left-to-right order: LOGO → Badge → Kebab … → Logout (far right) */
  .logo-container{ order:0 !important; flex:0 0 auto !important; }
  #mobileUserBadge{ order:1 !important; flex:0 1 auto !important; margin-left:0 !important; }

  /* Ensure the profile-controls row exists and only shows the kebab */
  .profile-controls{
    order:2 !important;
    display:flex !important;
    align-items:center !important;
    gap:4px !important;
    flex:0 0 auto !important;
  }
  #staticButton{ display:none !important; }            /* hide the big button on mobile */
  #profileMenuToggle{
    display:inline-flex !important;
    order:0 !important;                                /* first inside profile-controls */
    margin-left:0 !important;
    position:relative !important;
    z-index:1001 !important;                              /* above neighbors if they overlap */
    flex:0 0 auto !important;
  }

  /* Logout goes all the way to the right */
  #logoutBtn{
    order:9 !important;
    margin-left:auto !important;
    position:relative !important;
    z-index:1100 !important;
    flex:0 0 auto !important;
    margin-top: -65px !important;
    margin: -5x !important;

  }
}
/* ========= MOBILE HEADER LAYOUT: make kebab visible & place it next to the badge === (E N D) =========== */
/* *******************************************************************************/
/* === Mobile bottom bar: force the button strip visible, regardless of header rules === */
@media (max-width: 900px){
  .mobile-nav .header-buttons{
    display: flex !important;    /* override any blanket hides */
    align-items: center;
    gap: 0;
    overflow-x: auto;
  }
  .mobile-nav .header-buttons button{
    display: inline-flex !important;  /* ensure buttons render */
    align-items: center;
    justify-content: center;
  }
  .mobile-nav .header-buttons img{
    display: block !important;        /* ensure icons aren’t suppressed */
  }
}
/*  === Mobile bottom bar: force the button strip visible, regardless of header rules ==== (E N D) =========== */
/* *******************************************************************************/

/* === AUTH STATE VISIBILITY (tiny, robust) ===================== */
/* When NOT authed (e.g., login form), hide badge + kebab on all viewports */
body:not(.authed) #mobileUserBadge,
body:not(.authed) #profileMenuToggle {
  display: none !important;
}

/* When authed, ensure they can appear */
body.authed #profileMenuToggle { display: inline-flex !important; }
body.authed #mobileUserBadge  { display: inline-flex !important; }

/* Desktop: do NOT show the header's profile-controls row; use a desktop badge instead */
@media (min-width: 901px){
  .header .profile-controls { display: none !important; }
  #desktopUserBadge { display: block; margin-bottom: 6px; font-weight: 600; }
}
/*  === AUTH STATE VISIBILITY (tiny, robust) =====================(E N D) =========== */
/* *******************************************************************************/

/* === AUTH VISIBILITY GUARDS (authoritative) ================== */
/* Logged OUT: keep header clean on the login screen */
body:not(.authed) .header,
body:not(.authed) #mobileUserBadge,
body:not(.authed) #profileMenuToggle,
body:not(.authed) .profile-controls,
body:not(.authed) #desktopUserBadge {
  display: none !important;
}

/* Logged IN: allow these to render */
body.authed #profileMenuToggle { display: inline-flex !important; }
body.authed #mobileUserBadge  { display: inline-flex !important; }

/* Desktop: we show name above the "Your Heaven" button instead of in header */
@media (min-width: 901px){
  .header .profile-controls { display: none !important; }
}

/*  === AUTH VISIBILITY GUARDS (authoritative) ==================(E N D) =========== */
/* *******************************************************************************/




/* =========================================================
   Main feed post composer textarea visibility
   - restores the regular Home-feed text box
   - lets users create text-only thoughts/reflections again
   - keeps visibility controlled by the existing .post-form JS display logic
   ========================================================= */
#postForm #postContent{
  display: block !important;
  width: 100%;
  min-height: 88px;
  box-sizing: border-box;
  margin: 10px 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
  outline: none;
}

#postForm #postContent::placeholder{
  color: rgba(75, 85, 99, 0.72);
}

#postForm #postContent:focus{
  border-color: rgba(22, 163, 74, 0.52);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

/* Safety: if the textarea ever gets wrapped again, do not hide that wrapper. */
#postForm .post-text,
#postForm .text-area-wrapper,
#postForm label[for="postContent"]{
  display: block !important;
}

#postForm{
  gap: 10px;
}

@media (max-width: 900px){
  #postForm #postContent{
    min-height: 78px;
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 14px;
  }
}
/* =========================================================
   Main feed post composer textarea visibility (E N D)
   ========================================================= */


/* =========================================================
   Composer Activation Assist V1
   - makes the main composer explain the posting flow by itself
   - compact numbered stepper, inspired by Activation guide motion language
   ========================================================= */
#postForm.composer-activation-steps {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 2px 0 0;
}

#postForm.composer-activation-steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 22px;
  bottom: 26px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(134, 239, 172, 0.08),
    rgba(34, 197, 94, 0.46),
    rgba(134, 239, 172, 0.08)
  );
  pointer-events: none;
}

#postForm.composer-activation-steps::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 22px;
  width: 2px;
  height: 26%;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.82), transparent);
  pointer-events: none;
  opacity: 0.62;
  animation: composerGuideRailFlow 3.4s ease-in-out infinite;
}

.composer-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.composer-step-badge {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10),
    0 0 18px rgba(34, 197, 94, 0.24);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.composer-step-body {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 250, 251, 0.86));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.composer-step-label {
  display: block;
  margin: 0 0 7px;
  color: #166534;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.composer-step--media .post-media-row {
  margin-top: 2px;
}

#postForm.composer-activation-steps #postContent {
  margin: 0;
}

#postForm.composer-activation-steps #postVisibility {
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 650;
  outline: none;
}

#postForm.composer-activation-steps #postVisibility:focus {
  border-color: rgba(22, 163, 74, 0.52);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

#postForm.composer-activation-steps .composer-step--submit button[type="submit"] {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.65);
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 0.98));
  color: #0b66ff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.14);
}

#postForm.composer-activation-steps .composer-step--submit button[type="submit"]:hover {
  background:
    linear-gradient(135deg, rgba(207, 228, 255, 1), rgba(191, 219, 254, 1));
  border-color: rgba(79, 151, 248, 0.86);
}

.post-form.composer-activation-assist-live .composer-step-badge {
  animation: composerGuideBadgePulse 1.45s ease-in-out 4;
}

.post-form.composer-activation-assist-live .composer-step-body {
  animation: composerGuideBodyGlow 1.45s ease-in-out 4;
}

.post-form.composer-activation-assist-live .composer-step--media .composer-step-body {
  border-color: rgba(34, 197, 94, 0.44);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.10),
    0 14px 30px rgba(22, 128, 58, 0.12);
}

@keyframes composerGuideRailFlow {
  0%, 18% {
    transform: translateY(-125%);
    opacity: 0;
  }

  42%, 68% {
    opacity: 0.62;
  }

  100% {
    transform: translateY(285%);
    opacity: 0;
  }
}

@keyframes composerGuideBadgePulse {
  0%, 100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 5px rgba(34, 197, 94, 0.14),
      0 0 24px rgba(34, 197, 94, 0.34);
  }
}

@keyframes composerGuideBodyGlow {
  0%, 100% {
    border-color: rgba(34, 197, 94, 0.14);
  }

  45% {
    border-color: rgba(34, 197, 94, 0.34);
  }
}

@media (max-width: 900px) {
  .composer-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .composer-step-badge {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .composer-step-body {
    padding: 9px 10px;
    border-radius: 15px;
  }

  #postForm.composer-activation-steps::before,
  #postForm.composer-activation-steps::after {
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #postForm.composer-activation-steps::after,
  .post-form.composer-activation-assist-live .composer-step-badge,
  .post-form.composer-activation-assist-live .composer-step-body {
    animation: none !important;
  }
}
/* =========================================================
   Composer Activation Assist V1 (E N D)
   ========================================================= */

/* =========================================================
   First Memory Momentum Card V1
   - inline next-step card after a successful Home-feed post
   - keeps momentum without interrupting the new post view
   ========================================================= */
.first-memory-momentum-card {
  position: relative;
  width: min(100%, 420px);
  margin: 8px auto 22px;
  padding: 17px 16px 16px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 22px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 197, 94, 0.24), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.94));
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.first-memory-momentum-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.10) 24%, transparent 46%);
  transform: translateX(-120%);
  animation: firstMemoryMomentumSheen 4.4s ease-in-out infinite;
}

.first-memory-momentum-card::after {
  content: "";
  position: absolute;
  left: 37px;
  top: 60px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(134, 239, 172, 0.08),
    rgba(34, 197, 94, 0.38),
    rgba(134, 239, 172, 0.08)
  );
  pointer-events: none;
}

.first-memory-momentum-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.first-memory-momentum-card.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.first-memory-momentum-card > * {
  position: relative;
  z-index: 1;
}

.first-memory-momentum-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(240, 253, 244, 0.88);
  background: rgba(15, 23, 42, 0.54);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.first-memory-momentum-card__close:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(134, 239, 172, 0.35);
}

.first-memory-momentum-card__mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow:
    0 0 0 5px rgba(34, 197, 94, 0.10),
    0 0 24px rgba(34, 197, 94, 0.28);
  font-size: 18px;
  font-weight: 950;
  animation: firstMemoryMomentumMarkPulse 2.6s ease-in-out infinite;
}

.first-memory-momentum-card__body {
  min-width: 0;
  padding-right: 22px;
}

.first-memory-momentum-card__eyebrow {
  margin: 0 0 4px;
  color: rgba(134, 239, 172, 0.95);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.first-memory-momentum-card__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.first-memory-momentum-card__text {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.84);
  font-size: 13px;
  line-height: 1.42;
}

.first-memory-momentum-card__actions {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.first-memory-momentum-card__button {
  appearance: none;
  border: 1px solid rgba(134, 239, 172, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(240, 253, 244, 0.92);
  background: rgba(15, 23, 42, 0.48);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.first-memory-momentum-card__button:hover {
  transform: translateY(-1px);
  border-color: rgba(134, 239, 172, 0.36);
  background: rgba(34, 197, 94, 0.12);
}

.first-memory-momentum-card__button--primary {
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  border-color: rgba(187, 247, 208, 0.55);
}

.first-memory-momentum-card__button--primary:hover {
  background: linear-gradient(135deg, #dcfce7, #22c55e);
}

@keyframes firstMemoryMomentumSheen {
  0%, 38% {
    transform: translateX(-120%);
    opacity: 0;
  }

  48%, 62% {
    opacity: 1;
  }

  76%, 100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes firstMemoryMomentumMarkPulse {
  0%, 100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.07);
    box-shadow:
      0 0 0 6px rgba(34, 197, 94, 0.13),
      0 0 28px rgba(34, 197, 94, 0.34);
  }
}

@media (max-width: 680px) {
  .first-memory-momentum-card {
    width: 100%;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px 14px 15px;
    border-radius: 20px;
  }

  .first-memory-momentum-card::after {
    left: 33px;
  }

  .first-memory-momentum-card__mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .first-memory-momentum-card__body {
    padding-right: 20px;
  }

  .first-memory-momentum-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .first-memory-momentum-card__button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .first-memory-momentum-card,
  .first-memory-momentum-card::before,
  .first-memory-momentum-card__mark {
    animation: none !important;
    transition: none !important;
  }
}
/* =========================================================
   First Memory Momentum Card V1 (E N D)
   ========================================================= */
/* *******************************************************************************/


/*****************************************************************************
/* === Make the "Choose file" button look like a feed tab =================== */
/* Base button */
#postMedia::file-selector-button,
#postForm input[type="file"]::-webkit-file-upload-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Size to match tabs (tweak if your tabs differ slightly) */
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;                 /* pill like your tabs */
  border: 1px solid #60a5fa;           /* tab border */
  background: #dbeafe;                 /* tab bg */
  color: #0b66ff;                      /* tab text */
  font-weight: 200;
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

/* Hover / active states to match tabs */
#postMedia::file-selector-button:hover,
#postForm input[type="file"]::-webkit-file-upload-button:hover{
  background: #eef2f7;
  border-color: #c5ced9;
}
#postMedia::file-selector-button:active,
#postForm input[type="file"]::-webkit-file-upload-button:active{
  background: #e5eaf1;
}

/* Focus ring similar to tabs */
#postMedia:focus-visible::file-selector-button,
#postForm input[type="file"]:focus-visible::-webkit-file-upload-button{
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Keep spacing in the form tidy when textarea is hidden */
#postForm input[type="file"]{
  margin: 0; /* rely on form gap */
}

/* Mobile: match tab height if yours is smaller */
@media (max-width: 900px){
  #postMedia::file-selector-button,
  #postForm input[type="file"]::-webkit-file-upload-button{
    height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    font-size: 13px;
  }
}

/* === Post media row + remove-file button =============================== */
.post-media-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#clearPostMediaBtn,
#postForm .clear-post-media-btn{
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 60ms ease;
}

#clearPostMediaBtn:not([hidden]),
#postForm .clear-post-media-btn:not([hidden]){
  display: inline-flex;
}

#clearPostMediaBtn[hidden],
#postForm .clear-post-media-btn[hidden]{
  display: none !important;
}

#clearPostMediaBtn:hover,
#postForm .clear-post-media-btn:hover{
  background: #eef2f7;
  border-color: #c5ced9;
}

#clearPostMediaBtn:active,
#postForm .clear-post-media-btn:active{
  transform: translateY(1px);
}

#clearPostMediaBtn:focus-visible,
#postForm .clear-post-media-btn:focus-visible{
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

@media (max-width: 900px){
  #clearPostMediaBtn,
  #postForm .clear-post-media-btn{
    height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    font-size: 13px;
  }
}
/* === Post media row + remove-file button (E N D) ======================= */

/*****************************************************************************
/*  === ake the "Choose file" button look like a feed tab (E N D)========== */
/* *******************************************************************************/




/* === Make the Post button look like a feed tab (blue variant) ========== */
/* Support both <button type="submit"> and <input type="submit"> */
#postForm button[type="submit"],
#postForm input[type="submit"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  padding: 0 14px;
  border-radius: 18px;

  border: 1px solid #60a5fa;   /* your tweak */
  background: #dbeafe;         /* your tweak */
  color: #0b66ff;              /* your tweak */

  font-weight: 200;
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 60ms ease;
}

/* Hover / active */
#postForm button[type="submit"]:hover,
#postForm input[type="submit"]:hover{
  background: #cfe4ff;         /* slightly deeper */
  border-color: #4f97f8;
}
#postForm button[type="submit"]:active,
#postForm input[type="submit"]:active{
  transform: translateY(1px);
}

/* Focus ring */
#postForm button[type="submit"]:focus-visible,
#postForm input[type="submit"]:focus-visible{
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Mobile sizing parity with tabs */
@media (max-width: 900px){
  #postForm button[type="submit"],
  #postForm input[type="submit"]{
    height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    font-size: 13px;
  }
}
/*  ======= Make the Post button look like a feed tab (blue variant) (E N D)========== */
/* *************************************************************************************/




/* === Visibility selector: larger, tab-style hit target ================== */
/* If it's a <select id="visibilitySelector"> */
#visibilitySelector {
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 36px; /* improves vertical centering on some browsers */
}

/* If it's a custom trigger (button/div) */
.visibility-selector,
#postForm .visibility-selector,
#postForm .visibility-trigger,
#postForm button.visibility-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

/* Hover / active */
#visibilitySelector:hover,
.visibility-selector:hover,
#postForm .visibility-trigger:hover {
  background: #eef2f7;
  border-color: #c5ced9;
}
#visibilitySelector:active,
.visibility-selector:active,
#postForm .visibility-trigger:active {
  transform: translateY(1px);
}

/* Focus ring */
#visibilitySelector:focus-visible,
.visibility-selector:focus-visible,
#postForm .visibility-trigger:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Dropdown menu options (if you have a popover) — make tap targets comfy */
.visibility-menu button,
.visibility-menu [role="menuitem"] {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 14px;
}

/* Mobile sizing parity */
@media (max-width: 900px){
  #visibilitySelector,
  .visibility-selector,
  #postForm .visibility-trigger,
  #postForm button.visibility-selector {
    height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    font-size: 13px;
  }
}
/*  ======= Visibility selector: larger, tab-style hit target (E N D)========== */
/* *************************************************************************************/



/* Mobile feed: non-zoomable media must allow normal touch + taps */
.frame-wrapper img:not([data-zoomable="1"]),
.frame-wrapper video:not([data-zoomable="1"]) {
  touch-action: auto !important;
  pointer-events: auto !important;
}
/*  === Mobile feed: non-zoomable media must allow normal touch + taps (E N D)====== */
/* ***********************************************************************************/

/* === FINAL: CSS-only bottom lock using dynamic viewport units (no JS, no transforms) === */
@media (max-width: 767px){
  .mobile-nav{
    /* Use fixed position for bottom nav */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;

    /* Always apply safe area padding at the bottom */
    padding-bottom: env(safe-area-inset-bottom) !important;

    /* size stays stable */
    height: 56px !important;
  }
}
/*  === FINAL: CSS-only bottom lock using dynamic viewport units (no JS, no transforms) (E N D)====== */
/* ***********************************************************************************/

/* === Auth gate for bottom bar (no bar on login) === */
body:not(.authed) .mobile-nav { display: none !important; }

@media (max-width: 900px){
  body.authed .mobile-nav { display: flex !important; }
}
/*  === Auth gate for bottom bar (no bar on login) (E N D)====== */
/* ***************************************************************/

/* --- HEADER HARD LOCK (authoritative) --- */
.header{
  position: fixed !important;
  top: 0 !important;
  left: 0; right: 0;
  transform: none !important;   /* kill any accidental transforms */
  will-change: auto !important; /* avoid compositing quirks */
  z-index: 1000;
}
/*  === HEADER HARD LOCK (authoritative) (E N D)====== */
/* ***************************************************************/


/* === ANTI-SLIDE SHIELD (authoritative) ===================== */
.header{
  position: fixed !important;
  top: 0 !important; left: 0; right: 0;
  transform: none !important;           /* neutralize any JS translateY */
  transition: none !important;          /* no scroll-hide animations */
  z-index: 1000;
  height: auto !important;              /* allow content to fit */
  min-height: var(--header-h) !important;
  overflow: hidden;                     /* prevents tall-name spill */
}

/* If anything tries to toggle hide-on-scroll classes, force neutral */
.header.hidden-on-scroll,
.header.is-hidden,
.header--hidden,
.header.scroll-up,
.header.scroll-down { 
  top: 0 !important; 
  transform: none !important; 
  opacity: 1 !important; 
  pointer-events: auto !important;
}

/* Mobile bottom bar: still fixed to the real bottom */
@media (max-width: 900px){
  .mobile-nav{
    position: fixed !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    height: 56px !important;
    z-index: 1100 !important;
    transform: none !important;  /* no animations */
    will-change: auto !important;
  }
}

/* Landscape on phones: hide bottom bar, show header nav on top */
@media (orientation: landscape) and (max-width: 900px){
  .mobile-nav{ display: none !important; }
  .header .header-buttons{ display: flex !important; }
}

/* Clamp very long display names so header height stays constant */
@media (max-width: 900px){
  #mobileUserBadge .name{
    max-width: 55vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}
/* =====HEADER HARD LOCK (authoritative) (E N D)======== */
/* ***************************************************************/


/* === MOBILE NAV — authoritative lock + body clearance (EOF) === */
:root { --mobile-nav-height: 56px; } /* default; JS will override with the real height */

@supports (height: 100dvh) {
  html, body { height: 100%; }
  body { min-height: 100dvh; } /* dynamic viewport keeps layout correct as Safari UI collapses */
}

/* Phone/tablet */
@media (max-width: 900px){
  /* 1) Bar kisses the bottom; safe-area padding goes INSIDE the bar */
  .mobile-nav{
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1100 !important;

    /* safe-area INSIDE the bar (never use bottom: env(...)) */
    padding-bottom: env(safe-area-inset-bottom, 0) !important;

    /* optional iOS paint stability */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }

  /* 2) Content clearance: move padding from .feed to the BODY */
  .feed{ padding-bottom: 0 !important; }
  body.authed{
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0) + 28px) !important;
  }
}
/* =====MOBILE NAV — authoritative lock + body clearance (E N D)======== */
/* ***********************************************************************/


/* === MOBILE NAV — FINAL PACK (authoritative) === */

/* Hide by default unless authed on ≤900px */
body:not(.authed) .mobile-nav { display: none !important; }
@media (max-width: 900px){
  body.authed .mobile-nav { display: flex !important; }
}

/* Lock to bottom + safe areas; give the page bottom clearance */
:root { --mobile-nav-height: 56px; }

@supports (height: 100dvh){ html, body { height: 100%; } body { min-height: 100dvh; } }

@media (max-width: 900px){
  .mobile-nav{
    position: fixed !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    height: 56px !important;
    z-index: 1100 !important;
    display: flex; align-items: center;
    background: #fff; border-top: 1px solid #ccc;

    /* safe areas inside the bar */
    padding-left:  env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: env(safe-area-inset-bottom, 0) !important;

    /* paint stability */
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  /* content clearance lives on body, and the feed gets a real spacer too */
  .feed{ padding-bottom: 0 !important; }

  .feed::after,
  .group-feed-shell::after{
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0) + 120px);
  }

  body.authed{
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0) + 120px) !important;
  }
}

/* Phone landscape: hide bottom bar, show header buttons */
@media (orientation: landscape) and (max-width: 900px){
  .mobile-nav{ display: none !important; }
  .header .header-buttons{ display: flex !important; }
}

/* Make sure the bar’s buttons show, even if header rules hide them */
@media (max-width: 900px){
  .mobile-nav .header-buttons{ display: flex !important; gap: 0; overflow-x: auto; }
  .mobile-nav .header-buttons button{ display: inline-flex !important; align-items: center; justify-content: center; }
  .mobile-nav .header-buttons img{ display: block !important; }
}


:root { --safe-top: env(safe-area-inset-top); }
.header { padding-top: calc(8px + var(--safe-top)); } /* adjust .header selector to your real header */


/* === Nav buttons: 44px tap targets, hover/active/focus ================== */
.nav-btn{
  --hit:44px;
  display:inline-flex; align-items:center; justify-content:center;
  min-width:var(--hit); min-height:var(--hit);
  padding:6px; border:0; background:transparent; border-radius:12px;
  cursor:pointer;
  position: relative;
}
.nav-btn img{ display:block; width:30px; height:30px; object-fit:contain; }
.nav-btn:hover{ background:#f3f4f6; }
.nav-btn.is-active{ background:#e5e7eb; }
.nav-btn:focus-visible{ outline:2px solid #3b82f6; outline-offset:2px; }

/* =========================================================
   Notifications nav unread badge
   - calm premium count badge for desktop + mobile nav
   ========================================================= */
.nav-btn-has-badge{
  position: relative;
}

.nav-unread-badge{
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  pointer-events: none;
}

.nav-unread-badge[hidden]{
  display: none !important;
}
/* =========================================================
   Notifications nav unread badge (E N D)
   ========================================================= */

/* Phone row: keep things visible inside the scroller */
@media (max-width:900px){
  .mobile-nav .header-buttons{ gap:0; }
}

/* =========================================================
   Search overlay
   - keep header/input untouched
   - make the panel shell transparent so the results area
     can actually look translucent instead of flat gray
   ========================================================= */
.search-overlay{
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.search-overlay.open{
  display: flex;
}

.search-panel{
  width: min(760px, 96vw);
  max-height: min(78vh, 720px);
  background: transparent;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.26);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* =========================================================
   Search overlay above Groups
   - lets Group Members cards reuse the existing Search preview modal
   - prevents the preview from opening behind the Groups sheet
   ========================================================= */
.search-overlay.search-overlay--above-groups{
  z-index: 4200;
}
/* =========================================================
   Search overlay above Groups (E N D)
   ========================================================= */

/* =========================================================
   Search input row
   - keep the desktop outer close X
   - add a mobile-only clear X inside the input row
   ========================================================= */
.search-box{
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.search-input-wrap{
  position: relative;
  flex: 1;
  min-width: 0;
}

#searchInput{
  width: 100%;
  height: 46px;
  font-size: 16px;
  padding: 0 12px;
  border: 1px solid rgba(22,163,74,0.40);
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    0 0 0 1px rgba(22,163,74,0.05);
}

#searchInput:focus{
  outline: none;
  border-color: rgba(22,163,74,0.62);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.14);
}

.search-input-clear{
  display: none;
  border: 0;
  background: transparent;
  color: #4CAF50;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
}

.search-input-clear:hover{
  background: rgba(76,175,80,0.08);
}

.search-input-clear:focus-visible{
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.search-input-clear[hidden]{
  display: none !important;
}

.search-close{
  border: 0;
  background: #f3f4f6;
  border-radius: 12px;
  height: 46px;
  padding: 0 14px;
  cursor: pointer;
}

.search-close:focus-visible{
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

@media (max-width: 900px){
  #searchInput{
    padding-right: 44px;
  }

  .search-input-clear{
    display: inline-flex;
  }

  /* Hide the browser-native search clear control on mobile
     so only our custom in-row X appears there */
  #searchInput::-webkit-search-cancel-button{
    -webkit-appearance: none;
    appearance: none;
    display: none;
  }
}
/* =========================================================
   Search input row (E N D)
   ========================================================= */

/* =========================================================
   Search / Find Someone Assist V1
   - premium helper card under the Search input
   - disappears when a real query starts showing results
   ========================================================= */
.search-find-assist-card{
  position: relative;
  margin: 0;
  padding: 17px 16px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(134,239,172,0.18);
  border-bottom: 1px solid rgba(134,239,172,0.16);
  color: #f8fafc;
  background:
    radial-gradient(circle at 14% 0%, rgba(34,197,94,0.24), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(16,185,129,0.13), transparent 30%),
    linear-gradient(145deg, rgba(15,23,42,0.94), rgba(2,6,23,0.90));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 30px rgba(0,0,0,0.14);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.search-find-assist-card::before{
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.10) 24%, transparent 46%);
  transform: translateX(-120%);
  animation: searchFindAssistSheen 4.6s ease-in-out infinite;
}

.search-find-assist-card.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.search-find-assist-card.is-leaving{
  opacity: 0;
  transform: translateY(6px);
}

.search-find-assist-card.is-guided{
  animation: searchFindAssistPulse 1.25s ease-in-out 0s 4;
}

.search-find-assist-card > *{
  position: relative;
  z-index: 1;
}

.search-find-assist-card__close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(240,253,244,0.88);
  background: rgba(15,23,42,0.54);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.search-find-assist-card__close:hover{
  background: rgba(34,197,94,0.14);
  border-color: rgba(134,239,172,0.35);
}

.search-find-assist-card__mark{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow:
    0 0 0 5px rgba(34,197,94,0.10),
    0 0 24px rgba(34,197,94,0.25);
  font-size: 19px;
  font-weight: 950;
}

.search-find-assist-card__body{
  min-width: 0;
  padding-right: 24px;
}

.search-find-assist-card__eyebrow{
  margin: 0 0 4px;
  color: rgba(134,239,172,0.96);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.search-find-assist-card__title{
  margin: 0;
  color: #ffffff;
  font-size: clamp(17px, 4.4vw, 21px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.search-find-assist-card__text{
  margin: 8px 0 0;
  max-width: 560px;
  color: rgba(226,232,240,0.84);
  font-size: 13px;
  line-height: 1.42;
}

.search-find-assist-card__steps{
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.search-find-assist-card__step{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: rgba(240,253,244,0.92);
  font-size: 12.5px;
  font-weight: 760;
}

.search-find-assist-card__dot{
  width: 25px;
  height: 25px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow:
    0 0 0 4px rgba(34,197,94,0.09),
    0 0 16px rgba(34,197,94,0.22);
  font-size: 11px;
  font-weight: 950;
}

.search-find-assist-card__actions{
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-find-assist-card__button{
  appearance: none;
  border: 1px solid rgba(134,239,172,0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(240,253,244,0.92);
  background: rgba(15,23,42,0.48);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.search-find-assist-card__button:hover{
  transform: translateY(-1px);
  border-color: rgba(134,239,172,0.36);
  background: rgba(34,197,94,0.12);
}

.search-find-assist-card__button--primary{
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  border-color: rgba(187,247,208,0.55);
}

.search-find-assist-card__button--primary:hover{
  background: linear-gradient(135deg, #dcfce7, #22c55e);
}

@keyframes searchFindAssistSheen{
  0%, 38%{
    transform: translateX(-120%);
    opacity: 0;
  }

  48%, 62%{
    opacity: 1;
  }

  76%, 100%{
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes searchFindAssistPulse{
  0%, 100%{
    transform: translateY(0);
  }

  50%{
    transform: translateY(-3px);
    box-shadow:
      0 0 0 5px rgba(52,211,153,0.13),
      0 18px 42px rgba(0,0,0,0.22);
  }
}

@media (max-width: 680px){
  .search-find-assist-card{
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px 14px 15px;
  }

  .search-find-assist-card__mark{
    width: 33px;
    height: 33px;
    font-size: 17px;
  }

  .search-find-assist-card__body{
    padding-right: 20px;
  }

  .search-find-assist-card__actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-find-assist-card__button{
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce){
  .search-find-assist-card,
  .search-find-assist-card::before,
  .search-find-assist-card.is-guided{
    animation: none !important;
    transition: none !important;
  }
}
/* =========================================================
   Search / Find Someone Assist V1 (E N D)
   ========================================================= */

.search-results{
  flex: 1;
  overflow: auto;
  padding: 12px 14px 14px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.search-results-hint{
  color: #6b7280;
  font-size: 14px;
  padding: 8px 2px;
}

.search-results-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 900px){
  .search-overlay{
    align-items: flex-start;
    padding:
      calc(env(safe-area-inset-top, 0px) + 10px)
      10px
      calc(env(safe-area-inset-bottom, 0px) + 10px);
  }

  .search-panel{
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px);
    border-radius: 18px;
  }

  .search-box{
    padding: 12px;
  }
}
/* =========================================================
   Search overlay (E N D)
   ========================================================= */

/* =========================================================
   Search result rows
   - make the whole results area live in the same visual family
     as the centered preview modal
   - keep the thin app-green outline on result cards
   - do NOT touch the search input/header in this pass
   ========================================================= */
.search-results{
  flex: 1;
  overflow: auto;
  padding: 14px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border-top: 1px solid rgba(226,232,240,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(226,232,240,0.24) rgba(255,255,255,0.04);
}

.search-results::-webkit-scrollbar{
  width: 10px;
}

.search-results::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.search-results::-webkit-scrollbar-thumb{
  background: rgba(226,232,240,0.24);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.03);
}

.search-results::-webkit-scrollbar-thumb:hover{
  background: rgba(226,232,240,0.34);
}

.search-results-hint{
  color: rgba(226,232,240,0.78);
  font-size: 14px;
  padding: 10px 6px 12px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.24);
}

.search-results-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Search result cards: 50% more translucent, keep green outline --- */
.search-result-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border: 1px solid rgba(34,197,94,0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.search-result-card:hover{
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(34,197,94,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.search-result-card:active,
.search-result-card:focus-visible,
.search-result-card.search-result-card--active{
  outline: none;
  background: rgba(15, 23, 42, 0.36);
  border-color: rgba(34,197,94,0.52);
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.10) inset,
    inset 0 1px 0 rgba(255,255,255,0.06);
}
/* --- Search result cards translucency update end --- */

.search-result-avatar-wrap{
  flex: 0 0 auto;
}

.search-result-avatar,
.search-result-avatar-fallback{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: block;
}

.search-result-avatar{
  object-fit: cover;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.search-result-avatar-fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.search-result-meta{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-name{
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
}

.search-result-sub{
  font-size: 13px;
  color: rgba(226,232,240,0.80);
  line-height: 1.3;
  word-break: break-word;
}
/* =========================================================
   Search result rows (E N D)
   ========================================================= */

/* =========================================================
   Search preview modal
   - Dense-glass preview above Search
   - Whole screen gets another dark translucent layer
   - Modal itself is also dark translucent for double-glass effect
   ========================================================= */
.search-preview-layer{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1202;
}

.search-preview-layer.open{
  display: flex;
}

.search-preview-card{
  width: min(460px, 92vw);
  max-width: 100%;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border-radius: 26px;
  border: 1px solid rgba(226,232,240,0.16);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.search-preview-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 0;
}

.search-preview-back,
.search-preview-close{
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-preview-back:hover,
.search-preview-close:hover{
  background: rgba(255,255,255,0.12);
}

.search-preview-body{
  padding: 18px 18px 22px;
  text-align: center;
}

.search-preview-avatar-wrap{
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.search-preview-avatar,
.search-preview-avatar-fallback{
  width: 104px;
  height: 104px;
  border-radius: 999px;
}

.search-preview-avatar{
  display: block;
  object-fit: cover;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.search-preview-avatar-fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.search-preview-name{
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: #f8fafc;
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
}

.search-preview-handle{
  margin-top: 6px;
  font-size: 15px;
  color: rgba(226,232,240,0.82);
}

.search-preview-followers{
  margin-top: 8px;
  font-size: 14px;
  color: rgba(226,232,240,0.78);
}

.search-preview-action-clarity{
  position: relative;
  margin: 16px auto 0;
  padding: 13px 13px 12px;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid rgba(74,222,128,0.22);
  background:
    radial-gradient(circle at 14% 0%, rgba(34,197,94,0.18), transparent 34%),
    rgba(15,23,42,0.46);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

.search-preview-action-clarity::before{
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(187,247,208,0.22), rgba(34,197,94,0.78), rgba(187,247,208,0.18));
}

.search-preview-action-clarity__eyebrow{
  margin: 0 0 5px;
  padding-left: 12px;
  color: rgba(134,239,172,0.95);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-preview-action-clarity__copy{
  margin: 0;
  padding-left: 12px;
  color: rgba(226,232,240,0.84);
  font-size: 12.5px;
  line-height: 1.38;
  font-weight: 650;
}

.search-preview-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.search-preview-primary{
  order: 1;
}

.search-preview-secondary{
  order: 2;
}

.search-preview-report-profile{
  order: 3;
  min-height:48px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(248,113,113,.35);
  color:#fecaca;
  background:rgba(127,29,29,.18);
  font-weight:800;
  cursor:pointer;
}

.search-preview-report-profile:hover{
  border-color:rgba(248,113,113,.58);
  background:rgba(127,29,29,.28);
}

.search-preview-report-profile:disabled{
  opacity:.62;
  cursor:default;
}

.search-preview-secondary,
.search-preview-primary{
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.search-preview-secondary{
  border: 1px solid rgba(134,239,172,0.18);
  color: rgba(240,253,244,0.92);
  background: rgba(15,23,42,0.48);
}

.search-preview-secondary:hover{
  border-color: rgba(134,239,172,0.36);
  background: rgba(34,197,94,0.12);
}

.search-preview-primary{
  border: 1px solid rgba(187,247,208,0.55);
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
}

.search-preview-primary:hover{
  background: linear-gradient(135deg, #dcfce7, #22c55e);
}

.search-preview-primary:focus-visible,
.search-preview-secondary:focus-visible,
.search-preview-back:focus-visible,
.search-preview-close:focus-visible{
  outline: 2px solid rgba(255,255,255,0.18);
  outline-offset: 2px;
}

@media (max-width: 900px){
  .search-preview-layer{
    padding: 12px;
  }

  .search-preview-card{
    width: min(94vw, 420px);
    border-radius: 24px;
  }

  .search-preview-body{
    padding: 16px 16px 20px;
  }

  .search-preview-name{
    font-size: 22px;
  }
}
/* =========================================================
   Search preview modal (E N D)
   ========================================================= */


/* === Notifications drawer ============================================== */
.notif-drawer{
  /* My Own Heaven drawer viewport fix (START)
     Keeps Notifications / Analytics / Reports drawers inside the real mobile viewport,
     so lower buttons stay scrollable and tappable on iPhone/PWA. */
  position:fixed;
  top:0;
  right:0;
  height:100%;
  height:100dvh;
  max-height:100dvh;
  box-sizing:border-box;
  width:min(420px, 92vw);
  background: rgba(15, 23, 42, 0.54);
  border-left: 1px solid rgba(226,232,240,0.16);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  transform:translateX(100%);
  transition:transform .18s ease;
  z-index:1100;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  color:#f8fafc;
  /* My Own Heaven drawer viewport fix (END) */
}
.notif-drawer.open{
  transform:translateX(0);
  box-shadow:
    -18px 0 60px rgba(0,0,0,0.30),
    inset 1px 0 0 rgba(255,255,255,0.06);
}
.notif-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(226,232,240,0.14);
  font-size:16px;
}

.notif-header strong{
  color:#4ade80;
  font-size:22px;
  font-weight:800;
}
.notif-close{
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.10);
  border-radius:12px;
  height:36px;
  padding:0 12px;
  cursor:pointer;
  color:#4ade80;
}
.notif-close:focus-visible{ outline:2px solid #3b82f6; outline-offset:2px; }
.notif-content{
  /* My Own Heaven drawer scroll fix (START)
     Allows the drawer body to scroll independently and leaves bottom safe-area space. */
  flex:1 1 auto;
  min-height:0;
  padding:14px;
  padding-bottom:96px;
  padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px));
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  /* My Own Heaven drawer scroll fix (END) */
}

.notif-state{
  padding: 10px 2px;
  color: rgba(226,232,240,0.78);
  font-size: 14px;
}

.notif-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-item{
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.notif-item-clickable{
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.notif-item-clickable:hover{
  border-color: rgba(74,222,128,0.34);
  box-shadow: 0 14px 32px rgba(0,0,0,0.20);
}

.notif-item-clickable:active{
  transform: scale(0.995);
}

.notif-item-clickable:focus-visible{
  outline: 2px solid rgba(22,163,74,0.38);
  outline-offset: 2px;
}

.notif-item-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #166534;
  font-weight: 700;
  font-size: 16px;
}

.notif-item-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notif-item-body{
  min-width: 0;
}

.notif-item-message{
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.notif-item-comment{
  margin-top: 6px;
  color: #374151;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f9fafb;
}

.notif-item-meta{
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

/* =========================================================
   Notifications drawer — dark glass text polish
   - aligns notification typography with Search + Groups glass
   ========================================================= */
.notif-item-title,
.notif-item-message,
.notif-item strong{
  color:#f8fafc;
}

.notif-item-time,
.notif-item-meta,
.notif-item span{
  color:rgba(226,232,240,0.76);
}

.notif-item-snippet,
.notif-comment-snippet{
  background:rgba(255,255,255,0.08);
  color:rgba(248,250,252,0.88);
  border-radius:12px;
}
/* =========================================================
   Notifications drawer — dark glass text polish (E N D)
   ========================================================= */

/* =========================================================
   Notification read state clarity V1 (START)
   - premium New / Seen state styling for Notifications drawer
   - keeps non-feed surfaces aligned with the dark glass app style
   ========================================================= */
.notif-read-summary{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 13px;
  border-radius:18px;
  border:1px solid rgba(226,232,240,0.14);
  background:
    radial-gradient(circle at top left, rgba(74,222,128,0.12), transparent 34%),
    rgba(15,23,42,0.46);
  box-shadow:0 14px 34px rgba(0,0,0,0.16);
}

.notif-read-summary strong{
  color:#4ade80;
  font-size:14px;
  font-weight:800;
  letter-spacing:0.01em;
}

.notif-read-summary span{
  color:rgba(226,232,240,0.76);
  font-size:12.5px;
  line-height:1.35;
}

/* =========================================================
   Notification Drawer Polish V2-C mark-all action (START)
   - premium explicit action for clearing New activity
   - hidden automatically when no unread notifications remain
   ========================================================= */
.notif-mark-all-seen-btn{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:4px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(74,222,128,0.35);
  background:
    linear-gradient(135deg, rgba(74,222,128,0.20), rgba(34,197,94,0.10)),
    rgba(15,23,42,0.64);
  color:#dcfce7;
  font-size:12px;
  font-weight:900;
  letter-spacing:0.01em;
  box-shadow:0 10px 26px rgba(0,0,0,0.18);
}

.notif-mark-all-seen-btn:hover{
  background:
    linear-gradient(135deg, rgba(74,222,128,0.28), rgba(34,197,94,0.16)),
    rgba(15,23,42,0.78);
  color:#ffffff;
}

.notif-mark-all-seen-btn:focus-visible{
  outline:2px solid rgba(74,222,128,0.55);
  outline-offset:3px;
}

.notif-mark-all-seen-btn:disabled{
  opacity:0.58;
  cursor:default;
}

.notif-mark-all-seen-btn[hidden]{
  display:none !important;
}
/* =========================================================
   Notification Drawer Polish V2-C mark-all action (END)
   ========================================================= */

/* =========================================================
   Notification Drawer Polish V2-B grouping (START)
   - separates unread New activity from already-seen Earlier items
   - keeps the grouping lightweight and frontend-only
   ========================================================= */
.notif-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:14px 2px 8px;
  padding:0 2px;
  color:rgba(226,232,240,0.78);
  font-size:11px;
  font-weight:900;
  letter-spacing:0.11em;
  text-transform:uppercase;
}

.notif-section-heading span{
  color:rgba(240,253,244,0.92);
}

.notif-section-heading em{
  flex:0 0 auto;
  font-style:normal;
  color:rgba(187,247,208,0.82);
  font-size:10.5px;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:none;
}

.notif-section-heading[data-notification-section="earlier"] span{
  color:rgba(226,232,240,0.74);
}
/* =========================================================
   Notification Drawer Polish V2-B grouping (END)
   ========================================================= */

.notif-item{
  position:relative;
  overflow:hidden;
}

.notif-item-unread{
  border-color:rgba(74,222,128,0.38);
  background:
    linear-gradient(135deg, rgba(74,222,128,0.12), rgba(15,23,42,0.50) 42%),
    rgba(15,23,42,0.52);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.notif-item-unread::before{
  content:"";
  position:absolute;
  top:12px;
  bottom:12px;
  left:0;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg, #86efac, #22c55e);
  box-shadow:0 0 14px rgba(34,197,94,0.45);
}

.notif-item-read{
  border-color:rgba(226,232,240,0.11);
  background:rgba(15,23,42,0.34);
}

.notif-item-read .notif-item-message{
  color:rgba(248,250,252,0.82);
}

.notif-item-unread .notif-item-message{
  font-weight:750;
}

.notif-item-status-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:9px;
}

.notif-item .notif-read-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.02em;
  line-height:1;
}

.notif-item .notif-read-pill-new{
  color:#bbf7d0;
  border:1px solid rgba(74,222,128,0.38);
  background:rgba(34,197,94,0.14);
  box-shadow:0 0 18px rgba(34,197,94,0.13);
}

.notif-item .notif-read-pill-seen{
  color:rgba(226,232,240,0.68);
  border:1px solid rgba(226,232,240,0.14);
  background:rgba(255,255,255,0.055);
}

/* =========================================================
   Notification Drawer Polish V2 visual chips (START)
   - keeps notification cards easier to scan without changing read logic
   ========================================================= */
.notif-type-pill{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:999px;
  padding:3px 8px;
  font-size:0.68rem;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
  color:rgba(235,243,238,0.86);
  background:rgba(255,255,255,0.045);
}

.notif-type-pill-bouquet{
  color:#baf7cd;
  border-color:rgba(34,197,94,0.28);
  background:rgba(34,197,94,0.12);
}

.notif-type-pill-comment,
.notif-type-pill-group{
  color:#d6ffe2;
  border-color:rgba(34,197,94,0.22);
  background:rgba(34,197,94,0.09);
}

.notif-type-pill-like,
.notif-type-pill-memory{
  color:rgba(255,255,255,0.88);
  border-color:rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
}

.notif-action-hint{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#9af3b6;
  font-size:0.72rem;
  font-weight:850;
  letter-spacing:.01em;
  white-space:nowrap;
}

.notif-action-hint::after{
  content:'›';
  font-size:1rem;
  line-height:1;
  transform:translateY(-1px);
}

@media (max-width:520px){
  .notif-action-hint{
    width:100%;
    justify-content:flex-start;
    margin-left:0;
    padding-top:1px;
  }
}
/* =========================================================
   Notification Drawer Polish V2 visual chips (E N D)
   ========================================================= */

.notif-item-status-row .notif-item-meta{
  margin-top:0;
  color:rgba(226,232,240,0.62);
  font-size:12px;
}
/* =========================================================
   Notification read state clarity V1 (END)
   ========================================================= */   

/* =========================================================
   Notification return context banner V1
   - premium orientation banner after notification click-through
   - keeps the user aware of why they landed on a post
   ========================================================= */
.notification-return-context-banner{
  width:min(95%, 700px);
  margin:14px auto 0;
  padding:14px;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  border-radius:20px;
  border:1px solid rgba(74,222,128,0.22);
  background:
    radial-gradient(circle at top left, rgba(74,222,128,0.18), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,0.96), rgba(6,78,59,0.92));
  box-shadow:0 18px 44px rgba(0,0,0,0.30);
  color:#f8fafc;
  position:relative;
  z-index:12;
}

.notification-return-context-icon{
  width:38px;
  height:38px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(74,222,128,0.14);
  border:1px solid rgba(74,222,128,0.30);
  color:#86efac;
  font-weight:900;
  box-shadow:0 0 22px rgba(34,197,94,0.18);
}

.notification-return-context-copy{
  min-width:0;
}

.notification-return-context-copy strong{
  display:block;
  font-size:14px;
  line-height:1.2;
  color:#f8fafc;
  letter-spacing:0.01em;
}

.notification-return-context-copy p{
  margin:5px 0 0;
  color:rgba(226,232,240,0.80);
  font-size:13px;
  line-height:1.35;
}

.notification-return-context-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.notification-return-context-btn{
  width:auto;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  transition:transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.notification-return-context-btn--primary{
  border:1px solid rgba(74,222,128,0.42);
  background:rgba(34,197,94,0.16);
  color:#bbf7d0;
  box-shadow:0 10px 24px rgba(34,197,94,0.12);
}

.notification-return-context-btn--secondary{
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.08);
  color:rgba(248,250,252,0.86);
}

.notification-return-context-btn:hover{
  transform:translateY(-1px);
}

.notification-return-context-btn--primary:hover{
  border-color:rgba(74,222,128,0.62);
  background:rgba(34,197,94,0.22);
}

.notification-return-context-btn--secondary:hover{
  border-color:rgba(255,255,255,0.24);
  background:rgba(255,255,255,0.12);
}

.notification-return-context-btn:active{
  transform:translateY(0);
}

.notification-return-context-btn:focus-visible{
  outline:2px solid rgba(74,222,128,0.55);
  outline-offset:2px;
}

@media (max-width:640px){
  .notification-return-context-banner{
    grid-template-columns:auto minmax(0, 1fr);
    align-items:start;
    padding:13px;
  }

  .notification-return-context-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
  }

  .notification-return-context-btn{
    min-height:38px;
  }
}
/* =========================================================
   Notification return context banner V1 (E N D)
   ========================================================= */

/* =========================================================
   Group activity return cue V1 (START)
   - premium cue shown when Groups Home brings the user into a group with unread activity
   ========================================================= */
.group-activity-return-cue{
  width:min(95%, 700px);
  margin:12px auto 0;
  padding:14px;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  border-radius:20px;
  border:1px solid rgba(74,222,128,0.22);
  background:
    radial-gradient(circle at top left, rgba(74,222,128,0.16), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,0.96), rgba(6,78,59,0.88));
  box-shadow:0 18px 44px rgba(0,0,0,0.28);
  color:#f8fafc;
  position:relative;
  z-index:12;
}

.group-activity-return-cue-icon{
  width:38px;
  height:38px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(74,222,128,0.14);
  border:1px solid rgba(74,222,128,0.30);
  color:#86efac;
  font-weight:900;
  box-shadow:0 0 22px rgba(34,197,94,0.18);
}

.group-activity-return-cue-copy{
  min-width:0;
}

.group-activity-return-cue-copy strong{
  display:block;
  font-size:14px;
  line-height:1.2;
  color:#f8fafc;
  letter-spacing:0.01em;
}

.group-activity-return-cue-copy p{
  margin:5px 0 0;
  color:rgba(226,232,240,0.80);
  font-size:13px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.group-activity-return-cue-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.group-activity-return-cue-btn{
  width:auto;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  transition:transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.group-activity-return-cue-btn--primary{
  border:1px solid rgba(74,222,128,0.42);
  background:rgba(34,197,94,0.16);
  color:#bbf7d0;
  box-shadow:0 10px 24px rgba(34,197,94,0.12);
}

.group-activity-return-cue-btn--secondary{
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.08);
  color:rgba(248,250,252,0.86);
}

.group-activity-return-cue-btn:hover{
  transform:translateY(-1px);
}

.group-activity-return-cue-btn--primary:hover{
  border-color:rgba(74,222,128,0.62);
  background:rgba(34,197,94,0.22);
}

.group-activity-return-cue-btn--secondary:hover{
  border-color:rgba(255,255,255,0.24);
  background:rgba(255,255,255,0.12);
}

.group-activity-return-cue-btn:active{
  transform:translateY(0);
}

.group-activity-return-cue-btn:focus-visible{
  outline:2px solid rgba(74,222,128,0.55);
  outline-offset:2px;
}

@media (max-width:640px){
  .group-activity-return-cue{
    grid-template-columns:auto minmax(0, 1fr);
    align-items:start;
    padding:13px;
  }

  .group-activity-return-cue-copy p{
    white-space:normal;
  }

  .group-activity-return-cue-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
  }

  .group-activity-return-cue-btn{
    min-height:38px;
  }
}
/* =========================================================
   Group activity cue CTA V2 — composer spotlight (START)
   - highlights the real Group Feed composer after Share a memory
   ========================================================= */
.group-feed-composer.group-feed-composer-return-spotlight{
  border-color:rgba(34,197,94,0.68) !important;
  box-shadow:
    0 0 0 3px rgba(34,197,94,0.14),
    0 18px 42px rgba(22,128,58,0.18) !important;
  animation:groupFeedComposerReturnPulse 1.6s ease-in-out 2;
}

@keyframes groupFeedComposerReturnPulse{
  0%{
    transform:translateY(0);
  }

  35%{
    transform:translateY(-2px);
  }

  70%{
    transform:translateY(0);
  }

  100%{
    transform:translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .group-feed-composer.group-feed-composer-return-spotlight{
    animation:none;
  }
}
/* =========================================================
   Group activity cue CTA V2 — composer spotlight (END)
   ========================================================= */

/* =========================================================
   Group activity return cue V1 (END)
   ========================================================= */

/* =========================================================
   Admin Analytics V1 — drawer styling
   - isolated admin-only analytics surface
   - event-based shell only in this step
   - real data wiring comes next
   ========================================================= */
.admin-analytics-drawer{
  width: min(94vw, 560px);
}

.admin-analytics-header strong{
  color: #4ade80;
  font-weight: 800;
}

.admin-analytics-toolbar{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px 0;
}

.admin-analytics-guide{
  border: 1px solid rgba(22,163,74,0.14);
  background: linear-gradient(180deg, rgba(240,253,244,0.98), rgba(248,250,252,0.98));
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-analytics-guide strong{
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-guide span{
  color: #374151;
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-toolbar-actions{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-analytics-link-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(22,163,74,0.18);
  background: rgba(160, 233, 187, 0.08);
  color: #30ee79;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.admin-analytics-link-btn:hover{
  background: rgba(22,163,74,0.12);
  border-color: rgba(22,163,74,0.26);
}

/* =========================================================
   Admin Analytics Excel Export V2
   - premium export button plus action modal
   - gives admins Download file and Share file choices
   ========================================================= */
.admin-analytics-export-btn{
  min-height: 38px;
  padding: 0 15px;
  border-color: rgba(74,222,128,0.42);
  background: linear-gradient(135deg, rgba(22,163,74,0.96), rgba(21,128,61,0.96));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(22,163,74,0.20);
}

.admin-analytics-export-btn:hover{
  background: linear-gradient(135deg, rgba(34,197,94,0.98), rgba(22,163,74,0.98));
  border-color: rgba(187,247,208,0.62);
  color: #ffffff;
}

.admin-analytics-export-btn:disabled{
  cursor: wait;
  opacity: 0.68;
  box-shadow: none;
}

.admin-analytics-export-modal-backdrop{
  position: fixed;
  inset: 0;
  z-index: 99970;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at top, rgba(34,197,94,0.18), transparent 35%),
    rgba(2, 6, 10, 0.76);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.admin-analytics-export-modal-backdrop.open{
  display: flex;
}

.admin-analytics-export-modal{
  position: relative;
  width: min(430px, 100%);
  border-radius: 28px;
  padding: 24px 20px 18px;
  color: #f8fafc;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(20, 28, 38, 0.97), rgba(8, 12, 18, 0.98));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 26px 74px rgba(0,0,0,0.58),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.admin-analytics-export-close{
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.08);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.admin-analytics-export-icon{
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #34d399;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.36);
  box-shadow: 0 0 26px rgba(16,185,129,0.18);
}

.admin-analytics-export-icon-svg{
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-analytics-export-title{
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.admin-analytics-export-title span,
.admin-analytics-export-footnote span{
  color: #34d399;
}

.admin-analytics-export-copy{
  margin: 0 auto 16px;
  max-width: 35ch;
  color: rgba(226,232,240,0.84);
  font-size: 0.94rem;
  line-height: 1.45;
}

.admin-analytics-export-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.admin-analytics-export-option{
  min-height: 94px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 13px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.admin-analytics-export-option strong{
  font-size: 0.95rem;
  font-weight: 850;
}

.admin-analytics-export-option small{
  color: rgba(226,232,240,0.72);
  font-size: 0.77rem;
  line-height: 1.35;
}

.admin-analytics-export-option:hover{
  transform: translateY(-1px);
}

.admin-analytics-export-option.is-primary{
  color: #052016;
  background: linear-gradient(135deg, #34d399, #10b981);
  border-color: rgba(187,247,208,0.58);
  box-shadow: 0 14px 32px rgba(16,185,129,0.22);
}

.admin-analytics-export-option.is-primary small{
  color: rgba(5,32,22,0.74);
}

.admin-analytics-export-option.is-secondary{
  color: #f8fafc;
  background: rgba(255,255,255,0.07);
}

.admin-analytics-export-option.is-secondary:hover{
  border-color: rgba(52,211,153,0.34);
  background: rgba(16,185,129,0.11);
}

.admin-analytics-export-option:disabled{
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.admin-analytics-export-footnote{
  margin: 14px auto 0;
  max-width: 36ch;
  color: rgba(203,213,225,0.72);
  font-size: 0.78rem;
  line-height: 1.38;
}

@media (max-width: 420px){
  .admin-analytics-export-modal-backdrop{
    align-items: flex-end;
    padding: 16px;
  }

  .admin-analytics-export-modal{
    border-radius: 28px 28px 22px 22px;
    padding: 24px 16px 16px;
  }

  .admin-analytics-export-actions{
    grid-template-columns: 1fr;
  }

  .admin-analytics-export-option{
    min-height: 76px;
  }
}
/* =========================================================
   Admin Analytics Excel Export V2 (E N D)
   ========================================================= */

.admin-analytics-drawer .notif-content{
  padding-top: 12px;
}

/* =========================================================
   Admin Analytics V1 — grouped summary / buckets / recent styles
   - supports the new summary-card + bucket-card markup from app.js
   - keeps the Analytics drawer calm, readable, and mobile-safe
   ========================================================= */
.admin-analytics-summary,
.admin-analytics-summary-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-analytics-stat-card,
.admin-analytics-summary-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(22,163,74,0.12);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.admin-analytics-stat-value,
.admin-analytics-summary-value,
.admin-analytics-summary-card strong{
  color: #111827;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.admin-analytics-stat-label,
.admin-analytics-summary-label{
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-section{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-analytics-section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.admin-analytics-section-head strong{
  color: #30ee79;
  font-size: 14px;
  font-weight: 800;
}

.admin-analytics-section-head span{
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-breakdown{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-analytics-bucket-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.admin-analytics-bucket-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-analytics-bucket-copy{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-analytics-bucket-title{
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.admin-analytics-bucket-subtitle{
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-bucket-totals{
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex: 0 0 auto;
}

.admin-analytics-bucket-totals > div{
  padding: 7px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.admin-analytics-bucket-totals strong{
  color: #166534;
  font-size: 13px;
  font-weight: 800;
}

.admin-analytics-bucket-includes{
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-empty-note,
.admin-analytics-empty-inline{
  border: 1px dashed rgba(22,163,74,0.20);
  background: rgba(248,250,252,0.92);
  border-radius: 14px;
  padding: 12px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

/* =========================================================
   Admin Analytics Reporting Helper V1
   - copy-ready investor summary inside the Analytics drawer
   ========================================================= */
.admin-analytics-reporting-helper{
  border: 1px solid rgba(22,163,74,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border-radius: 18px;
  padding: 14px;
}

.admin-analytics-reporting-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-analytics-reporting-head h4{
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.admin-analytics-reporting-head p{
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-reporting-pills{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-analytics-reporting-pill{
  border: 1px solid rgba(22,163,74,0.20);
  background: #ffffff;
  color: #166534;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
}

.admin-analytics-reporting-pill.is-active{
  background: #166534;
  color: #ffffff;
}

.admin-analytics-reporting-insights{
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-analytics-reporting-insight{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(22,163,74,0.14);
  background: rgba(240,253,244,0.72);
  color: #14532d;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.admin-analytics-reporting-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.admin-analytics-reporting-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(22,163,74,0.12);
  background: #ffffff;
}

.admin-analytics-reporting-card span{
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-reporting-card strong{
  color: #111827;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.admin-analytics-reporting-copy{
  width: 100%;
  min-height: 190px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #f9fafb;
  color: #111827;
  font-size: 12px;
  line-height: 1.5;
  font-family: inherit;
}

.admin-analytics-reporting-copy-btn{
  margin-top: 10px;
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  background: #166534;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}
/* =========================================================
   Admin Analytics Reporting Helper V1 (E N D)
   ========================================================= */

/* =========================================================
   Admin Analytics Reports Snapshot V1
   - moderation/report queue helper inside Analytics drawer
   ========================================================= */
.admin-analytics-reports-snapshot{
  border: 1px solid rgba(22,163,74,0.14);
  background: linear-gradient(180deg, rgba(240,253,244,0.98), rgba(255,255,255,0.98));
  border-radius: 18px;
  padding: 14px;
}

.admin-analytics-reports-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-analytics-reports-head h4{
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.admin-analytics-reports-head p{
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
}

.admin-analytics-reports-open{
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 11px;
  background: #166534;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(22,163,74,0.16);
}

/* =========================================================
   Admin Analytics Reports Snapshot V1 (E N D)
   ========================================================= */


/* =========================================================
   Admin Analytics Trust & Safety activity summary V2
   - lets the reports grid wrap cleanly as more activity cards are added
   - shares the same calm card style for latest queue + action history
   ========================================================= */
.admin-analytics-reports-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.admin-analytics-reports-card{
  border: 1px solid rgba(22,163,74,0.12);
  background: #ffffff;
  border-radius: 14px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-analytics-reports-card span{
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-reports-card strong{
  color: #111827;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.admin-analytics-reports-card.needs-attention{
  border-color: rgba(180,83,9,0.28);
  background: #fffbeb;
}

.admin-analytics-reports-card.needs-attention span{
  color: #92400e;
}

.admin-analytics-reports-card.is-clear{
  border-color: rgba(22,163,74,0.18);
}

.admin-analytics-reports-latest,
.admin-analytics-reports-activity,
.admin-analytics-reports-loading,
.admin-analytics-reports-error{
  margin-top: 10px;
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(248,250,252,0.92);
}

.admin-analytics-reports-latest,
.admin-analytics-reports-activity{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-analytics-reports-latest span,
.admin-analytics-reports-activity span{
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-reports-latest strong,
.admin-analytics-reports-activity strong{
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.admin-analytics-reports-latest p,
.admin-analytics-reports-activity p,
.admin-analytics-reports-loading,
.admin-analytics-reports-error{
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-reports-latest.is-empty,
.admin-analytics-reports-activity.is-empty{
  border-color: rgba(22,163,74,0.14);
  background: rgba(240,253,244,0.92);
}

.admin-analytics-reports-activity{
  border-color: rgba(22,163,74,0.16);
  background: linear-gradient(180deg, rgba(240,253,244,0.88), rgba(248,250,252,0.96));
}

.admin-analytics-reports-error{
  border-color: rgba(185,28,28,0.22);
  background: #fef2f2;
  color: #991b1b;
}
/* =========================================================
   Admin Analytics Trust & Safety activity summary V2 (E N D)
   ========================================================= */

/* =========================================================
   Admin Analytics V4 — retention note styling
   - small explanatory note between investor/trend data and raw activity
   - visually calm, readable, and consistent with the drawer
   ========================================================= */
.admin-analytics-retention-note{
  border: 1px solid rgba(22,163,74,0.14);
  background: linear-gradient(180deg, rgba(240,253,244,0.98), rgba(248,250,252,0.98));
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-analytics-retention-note strong{
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-retention-note span{
  color: #374151;
  font-size: 12px;
  line-height: 1.5;
}
/* =========================================================
   Admin Analytics V4 — retention note styling (E N D)
   ========================================================= */

.admin-analytics-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.admin-analytics-row-main{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-analytics-row-main strong{
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.admin-analytics-row-main small{
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.admin-analytics-row-counts{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-analytics-row-counts span{
  min-width: 64px;
  padding: 7px 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
}

.admin-analytics-row-counts b{
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.admin-analytics-row-counts small{
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-recent-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =========================================================
   Admin Analytics V2 — investor snapshot styling
   - lifetime business facts + latest growth rollup
   - keeps the investor layer clean and premium
   ========================================================= */
.admin-analytics-investor-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-analytics-investor-grid-compact{
  margin-top: 4px;
}

.admin-analytics-investor-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(22,163,74,0.12);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.admin-analytics-investor-card-compact{
  padding: 12px;
}

.admin-analytics-investor-label{
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-investor-value{
  color: #111827;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.admin-analytics-investor-card-compact .admin-analytics-investor-value{
  font-size: 20px;
}

.admin-analytics-investor-empty{
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

/* =========================================================
   Admin Analytics V1 — revenue analytics styling
   - makes paid bouquet revenue visible without overclaiming net profit
   - keeps pending-placement recovery obvious for payment trust
   ========================================================= */
.admin-analytics-revenue-section{
  border-color: rgba(22,163,74,0.18);
  background: linear-gradient(180deg, rgba(240,253,244,0.82), rgba(255,255,255,0.96));
}

.admin-analytics-revenue-section .admin-analytics-section-head strong span,
.admin-analytics-revenue-note strong{
  color: #16a34a;
}

.admin-analytics-revenue-card{
  border-color: rgba(22,163,74,0.18);
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.admin-analytics-revenue-card small{
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.admin-analytics-revenue-note{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(22,163,74,0.14);
  background: rgba(255,255,255,0.78);
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}
/* =========================================================
   Admin Analytics V1 — revenue analytics styling (E N D)
   ========================================================= */

/* =========================================================
   Admin Purchase Ledger / Paid Bouquet Audit V1
   - admin-only Stripe purchase audit cards inside Analytics
   ========================================================= */
.admin-analytics-purchase-ledger-section{
  border-color: rgba(15, 23, 42, 0.10);
  background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(255,255,255,0.96));
}

.admin-analytics-purchase-ledger-section .admin-analytics-section-head strong span{
  color: #16a34a;
}

.admin-analytics-purchase-ledger-refresh{
  appearance: none;
  border: 1px solid rgba(22,163,74,0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #166534;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}

.admin-analytics-purchase-ledger-refresh:hover{
  background: #f0fdf4;
  border-color: rgba(22,163,74,0.42);
}

.admin-analytics-purchase-ledger-list{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* Admin Purchase Ledger polish — cleaner purchase card START */
.admin-analytics-purchase-ledger-card{
  border: 1px solid rgba(148,163,184,0.20);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 13px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.07);
  overflow: hidden;
}
/* Admin Purchase Ledger polish — cleaner purchase card END */

.admin-analytics-purchase-ledger-card.is-pending{
  border-color: rgba(245,158,11,0.34);
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.admin-analytics-purchase-ledger-main{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-analytics-purchase-ledger-main strong{
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
}

.admin-analytics-purchase-ledger-main p,
.admin-analytics-purchase-ledger-memory p{
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.admin-analytics-purchase-ledger-ref,
.admin-analytics-purchase-ledger-memory span{
  color: #16a34a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-analytics-purchase-ledger-badges{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-analytics-purchase-ledger-badge{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-analytics-purchase-ledger-badge.is-ok{
  background: #dcfce7;
  color: #166534;
}

.admin-analytics-purchase-ledger-badge.is-warning{
  background: #fef3c7;
  color: #92400e;
}

.admin-analytics-purchase-ledger-badge.is-muted{
  background: #e2e8f0;
  color: #475569;
}

.admin-analytics-purchase-ledger-memory{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,0.16);
}

.admin-analytics-purchase-ledger-times{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Admin Purchase Ledger polish — readable timing pills START */
.admin-analytics-purchase-ledger-times span{
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  padding: 6px 8px;
}
/* Admin Purchase Ledger polish — readable timing pills END */

.admin-analytics-purchase-ledger-warning{
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(245,158,11,0.26);
  background: rgba(255,251,235,0.92);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-analytics-purchase-ledger-note,
.admin-analytics-purchase-ledger-empty{
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.82);
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-purchase-ledger-note strong{
  color: #16a34a;
}

/* Stripe Live/Test Mode Visibility Hardening V1B — admin UI mode styling START */
.admin-analytics-mode-safety {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.88)),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 38%);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

.admin-analytics-mode-safety.is-mode-test {
  border-color: rgba(250, 204, 21, 0.48);
}

.admin-analytics-mode-safety.is-mode-live {
  border-color: rgba(34, 197, 94, 0.62);
}

.admin-analytics-mode-safety-top,
.admin-analytics-mode-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-analytics-mode-safety-top {
  justify-content: flex-start;
}

.admin-analytics-mode-actions {
  justify-content: flex-end;
}

.admin-analytics-mode-safety strong {
  color: #f8fafc;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.admin-analytics-mode-safety p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-analytics-mode-pill,
.admin-analytics-purchase-ledger-badge.is-mode-test,
.admin-analytics-purchase-ledger-badge.is-mode-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-analytics-mode-pill.is-mode-test,
.admin-analytics-purchase-ledger-badge.is-mode-test,
.admin-analytics-revenue-note strong.is-mode-test,
.admin-analytics-purchase-ledger-note strong.is-mode-test {
  border: 1px solid rgba(250, 204, 21, 0.54);
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
}

.admin-analytics-mode-pill.is-mode-live,
.admin-analytics-purchase-ledger-badge.is-mode-live,
.admin-analytics-revenue-note strong.is-mode-live,
.admin-analytics-purchase-ledger-note strong.is-mode-live {
  border: 1px solid rgba(34, 197, 94, 0.58);
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.admin-analytics-revenue-note strong.is-mode-test,
.admin-analytics-revenue-note strong.is-mode-live,
.admin-analytics-purchase-ledger-note strong.is-mode-test,
.admin-analytics-purchase-ledger-note strong.is-mode-live {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-right: 8px;
  margin-bottom: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-analytics-revenue-section.is-mode-test,
.admin-analytics-purchase-ledger-section.is-mode-test {
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.14);
}

.admin-analytics-revenue-section.is-mode-live,
.admin-analytics-purchase-ledger-section.is-mode-live {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.admin-analytics-purchase-ledger-card.is-mode-test {
  border-left: 3px solid rgba(250, 204, 21, 0.72);
}

.admin-analytics-purchase-ledger-card.is-mode-live {
  border-left: 3px solid rgba(34, 197, 94, 0.72);
}

.admin-analytics-purchase-refund-readiness {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 42%),
    rgba(15, 23, 42, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 6px;
}

.admin-analytics-purchase-refund-readiness strong {
  color: #dcfce7;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.admin-analytics-purchase-refund-readiness span,
.admin-analytics-purchase-refund-readiness small {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-analytics-purchase-refund-readiness.is-refunded {
  border-color: rgba(34, 197, 94, 0.38);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.2), transparent 46%),
    rgba(6, 78, 59, 0.26);
}

.admin-analytics-purchase-refund-button {
  margin-top: 8px;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.78rem;
  color: #022c22;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.22);
}

.admin-analytics-purchase-refund-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* Stripe Live/Test Mode Visibility Hardening V1B — admin UI mode styling END */

/* Stripe Live Readiness V1D — Analytics drawer visual cleanup START
   This block fixes the new Stripe launch safety readability,
   restores rounded premium card corners, and protects the TEST/LIVE badge
   from the generic Analytics header span styling.
*/
.admin-analytics-revenue-section,
.admin-analytics-purchase-ledger-section,
.stripe-readiness-section {
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.70);
}

.admin-analytics-revenue-section.is-mode-test,
.admin-analytics-purchase-ledger-section.is-mode-test {
  border-color: rgba(250, 204, 21, 0.30);
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(250, 204, 21, 0.16);
}

.admin-analytics-revenue-section.is-mode-live,
.admin-analytics-purchase-ledger-section.is-mode-live {
  border-color: rgba(34, 197, 94, 0.30);
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.stripe-readiness-head {
  align-items: flex-start;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.stripe-readiness-head > div {
  min-width: 0;
}

.admin-analytics-kicker {
  margin-bottom: 4px;
  color: #16a34a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stripe-readiness-head h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
}

.stripe-readiness-head h4 .green-text {
  color: #16a34a;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.stripe-readiness-head p {
  margin: 5px 0 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.admin-analytics-section-head .payment-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.admin-analytics-section-head .payment-mode-pill-test {
  color: #713f12;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: linear-gradient(180deg, rgba(254, 249, 195, 0.98), rgba(254, 240, 138, 0.90));
}

.admin-analytics-section-head .payment-mode-pill-live {
  color: #14532d;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.98), rgba(187, 247, 208, 0.92));
}

.admin-analytics-section-head .payment-mode-pill-attention {
  color: #7f1d1d;
  border: 1px solid rgba(248, 113, 113, 0.44);
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.98), rgba(254, 202, 202, 0.90));
}

.stripe-readiness-card,
.stripe-readiness-hero,
.stripe-readiness-check,
.stripe-readiness-loading,
.stripe-readiness-error {
  overflow: hidden;
}

@media (max-width: 640px) {
  .admin-analytics-revenue-section,
  .admin-analytics-purchase-ledger-section,
  .stripe-readiness-section {
    padding: 12px;
    border-radius: 19px;
  }

  .stripe-readiness-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .admin-analytics-section-head .payment-mode-pill {
    align-self: flex-start;
  }
}
/* Stripe Live Readiness V1D — Analytics drawer visual cleanup END */

/* Admin Purchase Ledger polish — premium support-action panel START */
.admin-analytics-purchase-ledger-card.has-support-attention {
  border-color: rgba(34, 197, 94, 0.32);
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(34, 197, 94, 0.10);
}

.admin-analytics-purchase-support-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(15, 23, 42, 0.12);
}

.admin-analytics-purchase-support-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-analytics-purchase-support-header strong {
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.2;
}

.admin-analytics-purchase-support-header span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid rgba(134, 239, 172, 0.24);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.13);
  color: #86efac;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-analytics-purchase-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.admin-analytics-purchase-support-grid label,
.admin-analytics-purchase-support-note-label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.admin-analytics-purchase-support-grid select,
.admin-analytics-purchase-support-note-label textarea {
  width: 95%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.82rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-analytics-purchase-support-grid select:focus,
.admin-analytics-purchase-support-note-label textarea:focus {
  border-color: rgba(34, 197, 94, 0.62);
  background: rgba(15, 23, 42, 0.98);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-analytics-purchase-support-grid select {
  min-height: 40px;
  padding: 0 11px;
}

.admin-analytics-purchase-support-note-label {
  margin-top: 11px;
}

.admin-analytics-purchase-support-note-label textarea {
  min-height: 76px;
  padding: 11px;
  resize: vertical;
  line-height: 1.45;
}

.admin-analytics-purchase-support-note-label textarea::placeholder {
  color: rgba(203, 213, 225, 0.66);
}

.admin-analytics-purchase-support-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-analytics-purchase-support-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #03120a;
  font-size: 0.8rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.22);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.admin-analytics-purchase-support-actions button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(34, 197, 94, 0.26);
}

.admin-analytics-purchase-support-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.admin-analytics-purchase-support-actions span {
  flex: 1 1 170px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.72rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .admin-analytics-purchase-support-grid {
    grid-template-columns: 1fr;
  }

  .admin-analytics-purchase-support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-analytics-purchase-support-actions button {
    width: 100%;
  }

  .admin-analytics-purchase-support-actions span {
    flex: 1 1 auto;
  }
}
/* Admin Purchase Ledger polish — premium support-action panel END */

.admin-analytics-purchase-ledger-empty.is-error{
  border-color: rgba(239,68,68,0.24);
  background: #fef2f2;
  color: #991b1b;
}

/* =========================================================
   Stripe Live Readiness Checklist + Safety Prep V1D
   Premium admin safety panel before real Stripe launch.
   ========================================================= */
.stripe-readiness-section{
  border: 1px solid rgba(22,163,74,0.18);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}

.stripe-readiness-head{
  align-items: flex-start;
}

.stripe-readiness-body{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stripe-readiness-loading,
.stripe-readiness-error{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(255,255,255,0.88);
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.stripe-readiness-error{
  border-color: rgba(239,68,68,0.28);
  background: #fef2f2;
  color: #991b1b;
}

.stripe-readiness-error p{
  margin: 5px 0 0;
  color: #7f1d1d;
  font-weight: 650;
}

.stripe-readiness-hero{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.stripe-readiness-status-test{
  border-color: rgba(59,130,246,0.22);
  background: linear-gradient(135deg, rgba(239,246,255,0.98), rgba(255,255,255,0.96));
}

.stripe-readiness-status-live{
  border-color: rgba(22,163,74,0.28);
  background: linear-gradient(135deg, rgba(240,253,244,0.98), rgba(255,255,255,0.96));
}

.stripe-readiness-status-attention{
  border-color: rgba(245,158,11,0.34);
  background: linear-gradient(135deg, rgba(255,251,235,0.98), rgba(255,255,255,0.96));
}

.stripe-readiness-eyebrow{
  display: block;
  margin-bottom: 5px;
  color: #16a34a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stripe-readiness-hero strong{
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.stripe-readiness-hero p{
  margin: 6px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.stripe-readiness-generated{
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.82);
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.stripe-readiness-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
}

.stripe-readiness-card{
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 26px rgba(15,23,42,0.05);
}

.stripe-readiness-card h5{
  margin: 0 0 11px;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.stripe-readiness-checks{
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.stripe-readiness-check{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border-radius: 15px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(248,250,252,0.82);
}

.stripe-readiness-check-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.stripe-readiness-check strong{
  display: block;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.stripe-readiness-check p{
  margin: 4px 0 0;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 650;
}

.stripe-readiness-check-ready{
  border-color: rgba(22,163,74,0.18);
  background: rgba(240,253,244,0.78);
}

.stripe-readiness-check-ready .stripe-readiness-check-icon{
  background: #dcfce7;
  color: #15803d;
}

.stripe-readiness-check-attention{
  border-color: rgba(245,158,11,0.28);
  background: rgba(255,251,235,0.9);
}

.stripe-readiness-check-attention .stripe-readiness-check-icon{
  background: #fef3c7;
  color: #b45309;
}

.stripe-readiness-check-manual{
  border-color: rgba(59,130,246,0.18);
  background: rgba(239,246,255,0.86);
}

.stripe-readiness-check-manual .stripe-readiness-check-icon{
  background: #dbeafe;
  color: #2563eb;
}

.stripe-readiness-muted{
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   Payment Processor Readiness Polish V1H-B
   - Provider-neutral payment readiness cards.
   - Stripe active now, PayPal planned later.
   ========================================================= */
.payment-processor-readiness-panel{
  padding: 15px;
  border-radius: 22px;
  border: 1px solid rgba(22,163,74,0.18);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.10), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.90));
  box-shadow: 0 14px 32px rgba(15,23,42,0.06);
}

.payment-processor-readiness-head{
  margin-bottom: 12px;
}

.payment-processor-readiness-head strong{
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.payment-processor-readiness-head p{
  margin: 6px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 675;
}

.payment-processor-card-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-processor-card{
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}

.payment-processor-card.is-test{
  border-color: rgba(59,130,246,0.22);
  background: linear-gradient(135deg, rgba(239,246,255,0.96), rgba(255,255,255,0.92));
}

.payment-processor-card.is-live{
  border-color: rgba(22,163,74,0.26);
  background: linear-gradient(135deg, rgba(240,253,244,0.96), rgba(255,255,255,0.92));
}

.payment-processor-card.is-planned{
  border-color: rgba(148,163,184,0.26);
  background: linear-gradient(135deg, rgba(248,250,252,0.96), rgba(255,255,255,0.92));
}

.payment-processor-card-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.payment-processor-eyebrow{
  display: block;
  margin-bottom: 4px;
  color: #16a34a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-processor-card strong{
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.payment-processor-status{
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.82);
  color: #334155;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.payment-processor-card p{
  margin: 10px 0 0;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 675;
}

.payment-processor-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.payment-processor-meta span{
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  color: #334155;
  font-size: 10px;
  font-weight: 900;
}

/* =========================================================
   In-app Payment Mode Status Check V1H-C2
   - Admin-only operator shortcut inside Analytics.
   ========================================================= */
.payment-mode-operator-panel{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(22,163,74,0.18);
  background: rgba(240,253,244,0.74);
}

.payment-mode-operator-panel strong{
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.payment-mode-operator-panel p{
  margin: 5px 0 0;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 700;
}

.payment-mode-status-button{
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(22,163,74,0.30);
  border-radius: 999px;
  background: linear-gradient(180deg, #16a34a, #15803d);
  color: #ffffff;
  padding: 9px 13px;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(22,163,74,0.18);
}

.payment-mode-status-button:hover{
  background: linear-gradient(180deg, #22c55e, #15803d);
}

.payment-mode-status-button:disabled{
  opacity: 0.68;
  cursor: wait;
}

.payment-mode-status-result{
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.82);
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

.payment-mode-status-result.is-empty,
.payment-mode-status-result.is-loading{
  color: #64748b;
  background: rgba(248,250,252,0.88);
}

.payment-mode-status-result.is-error{
  color: #991b1b;
  border-color: rgba(239,68,68,0.20);
  background: rgba(254,242,242,0.90);
}

.payment-mode-status-result.is-error strong{
  display: block;
  color: #7f1d1d;
  margin-bottom: 4px;
}

.payment-mode-status-result.is-error p{
  margin: 0;
}

.payment-mode-status-card{
  display: grid;
  gap: 12px;
}

.payment-mode-status-card-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.payment-mode-status-card-head strong{
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.payment-mode-status-card-head p{
  margin: 5px 0 0;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 700;
}

.payment-mode-status-time{
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

.payment-mode-status-summary,
.payment-mode-status-key-row,
.payment-mode-status-verdict{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.payment-mode-status-summary span,
.payment-mode-status-key-row span,
.payment-mode-status-verdict span{
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  color: #334155;
  font-size: 10.5px;
  font-weight: 850;
}

.payment-mode-status-summary b{
  display: inline-block;
  margin-right: 5px;
  color: #0f172a;
  font-weight: 950;
}

.payment-mode-status-key-row b{
  color: #0f172a;
}

.payment-mode-status-checks{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.payment-mode-status-check{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 13px;
  background: rgba(248,250,252,0.92);
}

.payment-mode-status-check span{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 950;
}

.payment-mode-status-check.is-ok span{
  background: #dcfce7;
  color: #166534;
}

.payment-mode-status-check.is-attention span{
  background: #fee2e2;
  color: #991b1b;
}

.payment-mode-status-check p{
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.payment-mode-status-verdict .is-ok{
  background: #dcfce7;
  color: #166534;
}

.payment-mode-status-verdict .is-muted{
  background: #e2e8f0;
  color: #475569;
}
/* In-app Payment Mode Status Check V1H-C2 END */

@media (max-width: 760px){
  .payment-processor-readiness-panel{
    border-radius: 20px;
    padding: 13px;
  }

  .payment-processor-card-grid{
    grid-template-columns: 1fr;
  }

  .payment-processor-card-top,
  .payment-mode-operator-panel,
  .payment-mode-status-card-head{
    flex-direction: column;
  }

  .payment-mode-status-button{
    width: 100%;
  }

  .payment-mode-status-checks{
    grid-template-columns: 1fr;
  }

  .payment-mode-status-time{
    text-align: left;
  }
}
/* =========================================================
   Payment Processor Readiness Polish V1H-B END
   ========================================================= */

/* =========================================================
   Stripe Live Switch Safety Checklist / Dry Run V1F
   - Adds a premium dry-run launch sequence inside Stripe launch safety.
   - Keeps live switching manual, visible, and controlled.
   ========================================================= */
.stripe-readiness-dry-run{
  padding: 15px;
  border-radius: 22px;
  border: 1px solid rgba(22,163,74,0.20);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.92));
  box-shadow: 0 14px 34px rgba(15,23,42,0.07);
}

.stripe-readiness-dry-run-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stripe-readiness-dry-run-head strong{
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.stripe-readiness-dry-run-head p{
  margin: 6px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 675;
}

.stripe-readiness-dry-run-steps{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 760px){
  .stripe-readiness-dry-run{
    border-radius: 20px;
    padding: 13px;
  }

  .stripe-readiness-dry-run-head{
    flex-direction: column;
  }

  .stripe-readiness-dry-run-steps{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Stripe Live Switch Safety Checklist / Dry Run V1F END
   ========================================================= */

@media (max-width: 760px){
  .stripe-readiness-hero{
    flex-direction: column;
  }

  .stripe-readiness-generated{
    white-space: normal;
  }

  .stripe-readiness-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Stripe Live Readiness Checklist + Safety Prep V1D END
   ========================================================= */

/* =========================================================
   Admin Purchase Ledger / Paid Bouquet Audit V1 (E N D)
   ========================================================= */

.admin-analytics-section-head-subtle{
  margin-top: 12px;
}

.admin-analytics-trend-strip{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.admin-analytics-trend-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(22,163,74,0.12);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.admin-analytics-trend-label{
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-analytics-trend-value{
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}
/* =========================================================
   Admin Analytics V2 — investor snapshot styling (E N D)
   ========================================================= */

.admin-analytics-event-row{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.admin-analytics-event-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-analytics-event-top strong{
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-analytics-event-top span{
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.admin-analytics-event-meta{
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}
/* =========================================================
   Admin Analytics V1 — grouped summary / buckets / recent styles (E N D)
   ========================================================= */
@media (max-width: 768px){
  .admin-analytics-drawer{
    width: min(96vw, 560px);
  }

  .admin-analytics-toolbar{
    padding: 10px 12px 0;
  }

  /* =========================================================
     Admin Analytics V1 — mobile grouped layout
     - stacks summary cards, bucket totals, recent-event rows,
       investor snapshot cards, and trend strip cleanly
     ========================================================= */
  .admin-analytics-summary,
  .admin-analytics-summary-grid,
  .admin-analytics-investor-grid,
  .admin-analytics-investor-grid-compact,
  .admin-analytics-trend-strip,
  .admin-analytics-reporting-grid,
  .admin-analytics-reports-grid{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-analytics-reporting-head{
    flex-direction: column;
  }

  .admin-analytics-reporting-pills{
    justify-content: flex-start;
  }

  .admin-analytics-bucket-head{
    flex-direction: column;
    align-items: stretch;
  }

  .admin-analytics-bucket-totals{
    align-items: stretch;
  }

  .admin-analytics-bucket-totals > div{
    text-align: left;
  }

  .admin-analytics-row{
    grid-template-columns: 1fr;
  }

  .admin-analytics-row-counts{
    justify-content: flex-start;
  }

  .admin-analytics-row-counts span{
    min-width: 58px;
  }

  .admin-analytics-event-top{
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-analytics-investor-card,
  .admin-analytics-investor-card-compact{
    padding: 12px;
  }

  .admin-analytics-investor-value{
    font-size: 20px;
  }
  /* =========================================================
     Admin Analytics V1 — mobile grouped layout (E N D)
     ========================================================= */
}
/* =========================================================
   Admin Analytics V1 — drawer styling (E N D)
   ========================================================= */

/* =========================================================
   Admin Reports Inbox V1 — drawer styling
   - reuses the notifications drawer shell
   - keeps moderation calm, internal, and consistent
   - full JS/data wiring comes in the next step
   ========================================================= */
.admin-reports-drawer{
  width: min(92vw, 460px);
}

.admin-reports-header strong{
  color: #4ade80;
  font-weight: 800;
}

.admin-reports-toolbar{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px 0;
}

.admin-reports-filter-wrap{
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.admin-reports-filter-wrap span{
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* =========================================================
   Admin Reports Inbox V1 — operator guide styling
   - calm internal moderation helper
   - clarifies how the status workflow should be used
   ========================================================= */
.admin-reports-guide{
  border: 1px solid rgba(22,163,74,0.14);
  background: linear-gradient(180deg, rgba(240,253,244,0.98), rgba(248,250,252,0.98));
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-reports-guide strong{
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-reports-guide span{
  color: #374151;
  font-size: 12px;
  line-height: 1.45;
}

.admin-reports-guide b{
  color: #166534;
  font-weight: 800;
}
/* =========================================================
   Admin Reports Inbox V1 — operator guide styling (E N D)
   ========================================================= */

.admin-reports-filter{
  width: 100%;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.admin-reports-filter:focus{
  border-color: rgba(22,163,74,0.38);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.10);
}

.admin-reports-drawer .notif-content{
  /* My Own Heaven Reports Inbox mobile scroll fix (START)
     Extra bottom room keeps the final moderation buttons above the iPhone bottom bar. */
  padding-top: 12px;
  padding-bottom:128px;
  padding-bottom:calc(128px + env(safe-area-inset-bottom, 0px));
  /* My Own Heaven Reports Inbox mobile scroll fix (END) */
}

/* =========================================================
   Admin Reports Inbox V1 — empty state polish
   - finished-looking message when a filter has no reports
   - keeps moderation drawer from feeling broken or unfinished
   ========================================================= */
.admin-reports-empty-state{
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid rgba(22,163,74,0.14);
  border-radius: 16px;
  background: rgba(240,253,244,0.72);
  color: #374151;
}

.admin-reports-empty-state strong{
  color: #166534;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-reports-empty-state span{
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}
/* =========================================================
   Admin Reports Inbox V1 — empty state polish (E N D)
   ========================================================= */

/* Prepared card styles for the next JS step */
.admin-report-item{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.admin-report-item-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-report-reason{
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-report-status-pill{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  border: 1px solid rgba(22,163,74,0.20);
  background: rgba(22,163,74,0.10);
  color: #166534;
}

.admin-report-note{
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f9fafb;
}

.admin-report-meta{
  display: grid;
  gap: 4px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.admin-report-meta strong{
  color: #111827;
  font-weight: 700;
}

.admin-report-preview{
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.admin-report-preview-label{
  display: block;
  margin-bottom: 6px;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-report-preview-text{
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

/* =========================================================
   Admin Reports Inbox V1 — action history clarity
   - calm timeline-style summary inside each admin report card
   - clarifies status, saved notes, and current enforcement state
   ========================================================= */
.admin-report-action-history{
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,0.08);
  background: rgba(249,250,251,0.9);
}

.admin-report-action-history-title{
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-report-action-history-list{
  display: grid;
  gap: 7px;
}

.admin-report-action-history-row{
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.admin-report-action-history-dot{
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(107,114,128,0.8);
}

.admin-report-action-history-row.open .admin-report-action-history-dot{
  background: rgba(22,163,74,0.95);
}

.admin-report-action-history-row.reviewed .admin-report-action-history-dot{
  background: rgba(37,99,235,0.9);
}

.admin-report-action-history-row.resolved .admin-report-action-history-dot{
  background: rgba(22,163,74,0.95);
}

.admin-report-action-history-row.dismissed .admin-report-action-history-dot,
.admin-report-action-history-row.neutral .admin-report-action-history-dot{
  background: rgba(107,114,128,0.8);
}

.admin-report-action-history-text{
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-report-action-history-label{
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-report-action-history-value{
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}
/* =========================================================
   Admin Reports Inbox V1 — action history clarity (E N D)
   ========================================================= */

/* =========================================================
   Admin Reports Inbox V1 — admin moderation note UI
   - internal admin note field inside report cards
   - matches the calm card language of the Reports Inbox
   ========================================================= */
.admin-report-admin-note{
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(22,163,74,0.16);
  background: rgba(240,253,244,0.72);
}

.admin-report-admin-note-label{
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-report-admin-note-input{
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(209,213,219,0.95);
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.admin-report-admin-note-input:focus{
  border-color: rgba(22,163,74,0.42);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.10);
}

.admin-report-admin-note-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-report-admin-note-saved-at{
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.admin-report-note-save-btn{
  min-height: 30px;
  padding: 0 11px;
}
/* =========================================================
   Admin Reports Inbox V1 — admin moderation note UI (E N D)
   ========================================================= */

/* =========================================================
   Admin Reports Inbox V1 — moderation outcome box
   - calm audit cue for resolved comments and hidden posts
   - truthful wording without over-claiming moderation source
   ========================================================= */
.admin-report-outcome{
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22,163,74,0.18);
  background: rgba(22,163,74,0.08);
}

.admin-report-outcome-label{
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-report-outcome-text{
  color: #166534;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

/* =========================================================
   Reports Inbox profile-report manual-review polish
   - clear admin cue for profile/user reports
   - avoids confusing profile reports with post/comment enforcement
   ========================================================= */
.admin-report-profile-review{
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22,163,74,0.20);
  background:
    radial-gradient(circle at top left, rgba(22,163,74,0.13), transparent 42%),
    rgba(240,253,244,0.78);
}

.admin-report-profile-review-label{
  color: #166534;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-report-profile-review-text{
  color: #14532d;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

/* =========================================================
   Reports Inbox profile-report outcome clarity
   - status-aware explanation box for Profile/User reports
   - does not imply user blocking/removal exists yet
   ========================================================= */
.admin-report-profile-outcome{
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22,163,74,0.18);
  background: rgba(22,163,74,0.08);
}

.admin-report-profile-outcome-label{
  color: #166534;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-report-profile-outcome-text{
  color: #14532d;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.admin-report-profile-outcome.is-reviewed{
  border-color: rgba(59,130,246,0.20);
  background: rgba(59,130,246,0.08);
}

.admin-report-profile-outcome.is-reviewed .admin-report-profile-outcome-label,
.admin-report-profile-outcome.is-reviewed .admin-report-profile-outcome-text{
  color: #1d4ed8;
}

.admin-report-profile-outcome.is-resolved{
  border-color: rgba(16,185,129,0.22);
  background: rgba(16,185,129,0.10);
}

.admin-report-profile-outcome.is-dismissed{
  border-color: rgba(107,114,128,0.20);
  background: rgba(107,114,128,0.08);
}

.admin-report-profile-outcome.is-dismissed .admin-report-profile-outcome-label,
.admin-report-profile-outcome.is-dismissed .admin-report-profile-outcome-text{
  color: #374151;
}
/* =========================================================
   Reports Inbox profile-report outcome clarity (E N D)
   ========================================================= */

/* =========================================================
   Reports Inbox — View reported profile CTA
   - gives profile/user reports a clear review action
   - keeps it visually separate from Hide/Restore/Remove actions
   ========================================================= */
.admin-report-view-profile-btn{
  border-color: rgba(22,163,74,0.28);
  background:
    linear-gradient(135deg, rgba(22,163,74,0.14), rgba(255,255,255,0.96));
  color: #14532d;
  box-shadow: 0 8px 18px rgba(21,128,61,0.10);
}

.admin-report-view-profile-btn:hover{
  border-color: rgba(22,163,74,0.42);
  background:
    linear-gradient(135deg, rgba(22,163,74,0.20), rgba(240,253,244,0.98));
  color: #064e3b;
}

.admin-report-view-profile-btn::before{
  content: '↗';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.9;
}
/* =========================================================
   Reports Inbox — View reported profile CTA (E N D)
   ========================================================= */

/* =========================================================
   Reports Inbox profile-report manual-review polish (E N D)
   ========================================================= */

/* =========================================================
   Reports Inbox — Profile account review state
   - My Own Heaven premium moderation styling
   - scoped so it does NOT damage the existing manual-review guidance box
   ========================================================= */
.admin-report-profile-review-state {
  margin: 12px 0 0;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(22,163,74,0.18);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.13), transparent 42%),
    rgba(240,253,244,0.84);
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}

.admin-report-profile-review-state.is-under-review {
  border-color: rgba(22,163,74,0.28);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.18), transparent 44%),
    linear-gradient(135deg, rgba(240,253,244,0.94), rgba(255,255,255,0.92));
}

.admin-report-profile-review-state.is-clear {
  border-color: rgba(148,163,184,0.22);
  background:
    radial-gradient(circle at top left, rgba(148,163,184,0.10), transparent 42%),
    rgba(248,250,252,0.92);
}

.admin-report-profile-review-state .admin-report-profile-review-label {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #166534;
}

.admin-report-profile-review-state.is-clear .admin-report-profile-review-label {
  color: #475569;
}

.admin-report-profile-review-state .admin-report-profile-review-text {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #14532d;
}

.admin-report-profile-review-state.is-clear .admin-report-profile-review-text {
  color: #475569;
}

.admin-report-profile-review-btn.is-review-action {
  border-color: rgba(22,163,74,0.34);
  background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(255,255,255,0.96));
  color: #14532d;
  box-shadow: 0 8px 18px rgba(22,163,74,0.10);
}

.admin-report-profile-review-btn.is-review-action:hover {
  border-color: rgba(22,163,74,0.48);
  transform: translateY(-1px);
}

.admin-report-profile-review-btn.is-clear-action {
  border-color: rgba(148,163,184,0.26);
  background: rgba(255,255,255,0.94);
  color: #334155;
  box-shadow: none;
}

.admin-report-profile-review-btn.is-clear-action:hover {
  border-color: rgba(100,116,139,0.34);
  transform: translateY(-1px);
}
/* =========================================================
   Reports Inbox — Profile account review state (E N D)
   ========================================================= */

/* =========================================================
   Admin Reports Inbox V1 — resolved comment outcome box (E N D)
   ========================================================= */

/* =========================================================
   Reports Inbox — Profile account restriction state
   - keeps account enforcement inside the dark/premium app style
   - makes Restrict/Clear compact instead of full-width ugly
   ========================================================= */
.admin-report-profile-review-state.is-restricted {
  border-color: rgba(248, 113, 113, 0.34);
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 36px rgba(0,0,0,0.18);
}

.admin-report-profile-review-state.is-restricted .admin-report-profile-review-label {
  color: rgba(254, 226, 226, 0.98);
}

.admin-report-profile-review-state.is-restricted .admin-report-profile-review-text {
  color: rgba(254, 242, 242, 0.82);
}

.admin-report-action-btn.admin-report-profile-restrict-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 158px;
  max-width: min(100%, 220px);
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 10px 22px rgba(0,0,0,0.14);
}

.admin-report-action-btn.admin-report-profile-restrict-btn.is-restrict-action {
  border-color: rgba(248, 113, 113, 0.42);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.30), rgba(15, 23, 42, 0.86));
  color: rgba(254, 242, 242, 0.98);
}

.admin-report-action-btn.admin-report-profile-restrict-btn.is-restrict-action:hover {
  border-color: rgba(248, 113, 113, 0.58);
  background:
    linear-gradient(135deg, rgba(153, 27, 27, 0.38), rgba(15, 23, 42, 0.92));
  color: #ffffff;
  transform: translateY(-1px);
}

.admin-report-action-btn.admin-report-profile-restrict-btn.is-clear-restriction-action {
  border-color: rgba(52, 211, 153, 0.42);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(15, 23, 42, 0.86));
  color: rgba(236, 253, 245, 0.98);
}

.admin-report-action-btn.admin-report-profile-restrict-btn.is-clear-restriction-action:hover {
  border-color: rgba(52, 211, 153, 0.58);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.30), rgba(15, 23, 42, 0.92));
  color: #ffffff;
  transform: translateY(-1px);
}
/* =========================================================
   Reports Inbox — Profile account restriction state (E N D)
   ========================================================= */


/* =========================================================
   Admin Reports Inbox V1 — per-card status actions
   - calm internal moderation controls
   - subtle status color language
   ========================================================= */

/* =========================================================
   Admin reports — View reported profile CTA
   - makes the profile-review action match the Reports Inbox buttons
   - keeps profile review calm, admin-like, and not feed-styled
   ========================================================= */
.admin-report-profile-cta {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  width: 100%;
}

.admin-report-profile-cta-btn,
.admin-report-view-profile-btn,
.admin-report-action-btn.admin-report-view-profile-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.admin-report-profile-cta-btn:hover,
.admin-report-view-profile-btn:hover,
.admin-report-action-btn.admin-report-view-profile-btn:hover {
  background: #f0fdf4;
  border-color: rgba(22,163,74,0.24);
  color: #14532d;
}

.admin-report-profile-cta-btn:active,
.admin-report-view-profile-btn:active,
.admin-report-action-btn.admin-report-view-profile-btn:active {
  transform: none;
}

.admin-report-profile-cta-btn:focus-visible,
.admin-report-view-profile-btn:focus-visible,
.admin-report-action-btn.admin-report-view-profile-btn:focus-visible {
  outline: 2px solid rgba(22,163,74,0.45);
  outline-offset: 2px;
}

.admin-report-view-profile-btn::before {
  content: none !important;
  display: none !important;
}
/* =========================================================
   Admin reports — View reported profile CTA (E N D)
   ========================================================= */

.admin-report-status-pill.is-open{
  border-color: rgba(22,163,74,0.20);
  background: rgba(22,163,74,0.10);
  color: #166534;
}

.admin-report-status-pill.is-reviewed{
  border-color: rgba(59,130,246,0.18);
  background: rgba(59,130,246,0.10);
  color: #1d4ed8;
}

.admin-report-status-pill.is-resolved{
  border-color: rgba(16,185,129,0.22);
  background: rgba(16,185,129,0.11);
  color: #047857;
}

.admin-report-status-pill.is-dismissed{
  border-color: rgba(107,114,128,0.22);
  background: rgba(107,114,128,0.10);
  color: #374151;
}

.admin-report-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-report-action-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.admin-report-action-btn:hover{
  background: #f0fdf4;
  border-color: rgba(22,163,74,0.24);
}

/* =========================================================
   Admin Reports Inbox V1 — enforcement action buttons
   - red for Hide post / Remove comment
   - green for Restore post
   ========================================================= */
.admin-report-danger-btn{
  border-color: rgba(185,28,28,0.22);
  background: rgba(254,242,242,0.92);
  color: #991b1b;
}

.admin-report-danger-btn:hover{
  border-color: rgba(185,28,28,0.34);
  background: #fee2e2;
  color: #7f1d1d;
}

.admin-report-restore-btn{
  border-color: rgba(22,163,74,0.22);
  background: rgba(240,253,244,0.96);
  color: #166534;
}

.admin-report-restore-btn:hover{
  border-color: rgba(22,163,74,0.34);
  background: #dcfce7;
  color: #14532d;
}
/* =========================================================
   Admin Reports Inbox V1 — enforcement action buttons (E N D)
   ========================================================= */

.admin-report-action-btn.is-current,
.admin-report-action-btn:disabled{
  border-color: rgba(22,163,74,0.20);
  background: rgba(22,163,74,0.10);
  color: #166534;
  cursor: default;
  opacity: 1;
}

.admin-report-item.is-updating{
  opacity: 0.72;
}

.admin-report-item.is-updating .admin-report-action-btn{
  pointer-events: none;
}
/* =========================================================
   Admin Reports Inbox V1 — per-card status actions (E N D)
   ========================================================= */

@media (max-width: 768px){
  .admin-reports-drawer{
    width: min(96vw, 460px);
  }

  .admin-reports-toolbar{
    padding: 10px 12px 0;
  }

  .admin-report-item{
    gap: 9px;
    padding: 11px;
  }

  .admin-report-item-top{
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-report-actions{
    gap: 6px;
  }

  .admin-report-action-btn{
    flex: 1 1 calc(50% - 6px);
    min-height: 34px;
    padding: 0 10px;
  }
}
/* =========================================================
   Admin Reports Inbox V1 — drawer styling (E N D)
   ========================================================= */

/* === Notifications drawer (E N D)============================================== */

/* Make only the “✕” glyph green (same green as your toast) */
.search-close,
.notif-close {
  color: #4CAF50; /* glyph only; background stays as-is */
}
/* === Search & Notifications closing 'X' color (E N D)============================================== */

/* ======Desktop search launcher (prep) ==========*/
.desktop-search { display: none; }
@media (min-width: 901px){
  .desktop-search{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px; /* keeps it tidy next to title */
  }
  .desktop-search input{
    height: 36px;
    font-size: 16px;                 /* avoids iOS zoom */
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
  }
  .desktop-search button{
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: #3b82f6;
    cursor: pointer;
  }
  .desktop-search button:focus-visible{
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }
}
/* === Desktop search launcher (prep) (E N D)============================================== */

/* === Desktop search visibility: only when logged-in AND wide screens === */
/* Hidden everywhere by default */
.desktop-search { display: none !important; }

/* Only show on desktop (≥901px) AND only after auth (body.authed) */
@media (min-width: 901px){
  body.authed .desktop-search { display: flex !important; align-items: center; gap: 8px; }
}

/* (Optional) basic look when visible on desktop later */
@media (min-width: 901px){
  body.authed .desktop-search input{
    height: 36px; font-size: 16px; padding: 0 10px;
    border: 1px solid #d1d5db; border-radius: 10px;
  }
  body.authed .desktop-search button{
    height: 36px; padding: 0 12px; border: 0; border-radius: 10px;
    background: #f3f4f6; cursor: pointer;
  }
  body.authed .desktop-search button:focus-visible{
    outline: 2px solid #3b82f6; outline-offset: 2px;
  }
}
/* === Desktop search visibility: only when logged-in AND wide screens (E N D)======== */



/* === Notifications drawer: safe-area + tap target ====================== */
/* Push content below iPhone Dynamic Island / status bar */
.notif-drawer{
  /* previously: position:fixed; top:0; right:0; height:100%; ... */
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
}

/* Keep the header away from the very edges on notched devices */
.notif-header{
  padding-left:  calc(14px + env(safe-area-inset-left, 0px));
  padding-right: calc(14px + env(safe-area-inset-right, 0px));
}

/* Ensure the close button is an easy 44×44 tap target */
.notif-close{
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Optional: slightly narrow the drawer on very small phones */
@media (max-width: 380px){
  .notif-drawer{ width: min(400px, 92vw); }
}

/* Backdrop to allow “tap outside to close” */
.notif-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1099; /* just under the drawer (which should be ≥1100) */
}
.notif-backdrop.open{ display: block; }
/* === Notifications drawer: safe-area + tap target (E N D)======== */

/* =========================================================
   Groups Home Sheet — adaptive bottom sheet / dialog
   Mobile = bottom sheet
   Desktop / tablet = centered dialog
   ========================================================= */
.groups-home-overlay{
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.groups-home-overlay.show{
  display: flex;
}

.groups-home-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* =========================================================
   Groups Home sheet
   - make the sheet translucent like the approved Search
     results background glass
   - touch only the sheet surface
   ========================================================= */
.groups-home-sheet{
  position: relative;
  width: min(100%, 760px);
  max-height: min(84vh, calc(100dvh - 18px));
  margin: 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(226,232,240,0.16);
/* =========================================================
   Groups Home — match Search glass system
   - same dark translucent base used by Search surfaces
   - slightly softer than Search preview, stronger than Search results
   ========================================================= */
background: rgba(15, 23, 42, 0.54);

box-shadow:
  0 28px 70px rgba(0,0,0,0.30),
  inset 0 1px 0 rgba(255,255,255,0.06);

backdrop-filter: blur(22px) saturate(145%);
-webkit-backdrop-filter: blur(22px) saturate(145%);
/* =========================================================
   Groups Home glass alignment (E N D)
   ========================================================= */
  color: #ffffff;
  overflow: auto;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}
/* =========================================================
   Groups Home sheet (E N D)
   ========================================================= */

.groups-home-overlay.show .groups-home-sheet{
  transform: translateY(0);
  opacity: 1;
}

.groups-home-grabber{
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  margin: 0 auto 14px;
}

.groups-home-close{
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent !important;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.groups-home-close:hover{
  background: rgba(255,255,255,0.08) !important;
}

.groups-home-body{
  padding-top: 4px;
}

.groups-home-title{
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.groups-home-copy{
  margin: 0 0 18px;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.groups-key-green{
  color: #4ade80;
  font-weight: 700;
}

.groups-activation-assist-card{
  position: relative;
  margin: 4px 0 18px;
  padding: 18px 16px 16px;
  border-radius: 24px;
  border: 1px solid rgba(74,222,128,0.24);
  background:
    radial-gradient(circle at 16% 0%, rgba(74,222,128,0.24), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(16,185,129,0.13), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.90));
  box-shadow:
    0 22px 54px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.groups-activation-assist-card::before{
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.10) 24%, transparent 46%);
  transform: translateX(-120%);
  animation: groupsActivationAssistSheen 4.8s ease-in-out infinite;
}

.groups-activation-assist-card::after{
  content: "";
  position: absolute;
  left: 28px;
  top: 138px;
  bottom: 84px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(134,239,172,0.08),
    rgba(34,197,94,0.42),
    rgba(134,239,172,0.08)
  );
  pointer-events: none;
}

.groups-activation-assist-card.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.groups-activation-assist-card.is-leaving{
  opacity: 0;
  transform: translateY(6px);
}

.groups-activation-assist-card.is-guided{
  animation: groupsActivationAssistPulse 1.25s ease-in-out 0s 4;
}

.groups-activation-assist-card > *{
  position: relative;
  z-index: 1;
}

.groups-activation-assist-card__close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(240,253,244,0.88);
  background: rgba(15,23,42,0.54);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.groups-activation-assist-card__close:hover{
  background: rgba(34,197,94,0.14);
  border-color: rgba(134,239,172,0.35);
}

.groups-activation-assist-card__content{
  min-width: 0;
  padding-right: 22px;
}

.groups-activation-assist-card__eyebrow{
  margin: 0 0 5px;
  color: rgba(134,239,172,0.96);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.groups-activation-assist-card__title{
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 5.2vw, 28px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.groups-activation-assist-card__text{
  margin: 9px 0 0;
  max-width: 560px;
  color: rgba(226,232,240,0.86);
  font-size: 14px;
  line-height: 1.45;
}

.groups-activation-assist-card__steps{
  position: relative;
  display: grid;
  gap: 10px;
  margin: 15px 0 0;
}

.groups-activation-assist-card__step{
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(240,253,244,0.93);
  font-size: 13px;
  font-weight: 750;
}

.groups-activation-assist-card__dot{
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow:
    0 0 0 4px rgba(34,197,94,0.10),
    0 0 18px rgba(34,197,94,0.24);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.groups-activation-assist-card__actions{
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.groups-activation-assist-card__button{
  appearance: none;
  border: 1px solid rgba(134,239,172,0.18);
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(240,253,244,0.92);
  background: rgba(15,23,42,0.48);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.groups-activation-assist-card__button:hover{
  transform: translateY(-1px);
  border-color: rgba(134,239,172,0.36);
  background: rgba(34,197,94,0.12);
}

.groups-activation-assist-card__button--primary{
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  border-color: rgba(187,247,208,0.55);
}

.groups-activation-assist-card__button--primary:hover{
  background: linear-gradient(135deg, #dcfce7, #22c55e);
}

.groups-activation-invite-picker{
  margin-top: 15px;
  padding: 14px 13px 13px;
  border-radius: 18px;
  border: 1px solid rgba(134,239,172,0.20);
  background:
    radial-gradient(circle at 12% 0%, rgba(34,197,94,0.16), transparent 34%),
    rgba(15,23,42,0.54);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.groups-activation-invite-picker.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.groups-activation-invite-picker__eyebrow{
  margin: 0 0 4px;
  color: rgba(134,239,172,0.94);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.groups-activation-invite-picker__title{
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.groups-activation-invite-picker__copy{
  margin: 6px 0 0;
  color: rgba(226,232,240,0.82);
  font-size: 12px;
  line-height: 1.4;
}

.groups-activation-invite-picker__list{
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.groups-activation-invite-picker__item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(2,6,23,0.36);
}

.groups-activation-invite-picker__avatar{
  display: none !important;
}

.groups-activation-invite-picker__main{
  min-width: 0;
}

.groups-activation-invite-picker__main strong{
  display: block;
  color: rgba(255,255,255,0.96);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.groups-activation-invite-picker__main p{
  margin: 3px 0 0;
  color: rgba(203,213,225,0.78);
  font-size: 11px;
  line-height: 1.25;
}

.groups-activation-invite-picker__empty-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.groups-activation-invite-picker__button{
  appearance: none;
  border: 1px solid rgba(134,239,172,0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(240,253,244,0.92);
  background: rgba(15,23,42,0.48);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.groups-activation-invite-picker__button:hover{
  transform: translateY(-1px);
  border-color: rgba(134,239,172,0.36);
  background: rgba(34,197,94,0.12);
}

.groups-activation-invite-picker__button--primary{
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  border-color: rgba(187,247,208,0.55);
}

.groups-activation-invite-picker__button--primary:hover{
  background: linear-gradient(135deg, #dcfce7, #22c55e);
}

/* Groups Invite Picker V1-B — force picker buttons to match premium card buttons */
.groups-activation-invite-picker button.groups-activation-invite-picker__button{
  border-radius: 999px !important;
  border: 1px solid rgba(134,239,172,0.18) !important;
  padding: 8px 11px !important;
  color: rgba(240,253,244,0.92) !important;
  background: rgba(15,23,42,0.48) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.groups-activation-invite-picker button.groups-activation-invite-picker__button:hover{
  transform: translateY(-1px);
  border-color: rgba(134,239,172,0.36) !important;
  background: rgba(34,197,94,0.12) !important;
}

.groups-activation-invite-picker button.groups-activation-invite-picker__button--primary{
  color: #052e16 !important;
  background: linear-gradient(135deg, #bbf7d0, #22c55e) !important;
  border-color: rgba(187,247,208,0.55) !important;
}

.groups-activation-invite-picker button.groups-activation-invite-picker__button--primary:hover{
  background: linear-gradient(135deg, #dcfce7, #22c55e) !important;
}

.groups-activation-assist-card__button.is-invite-picker-open{
  border-color: rgba(134,239,172,0.40);
  background: rgba(34,197,94,0.14);
  color: rgba(240,253,244,0.96);
}

.groups-activation-assist-list-focus{
  outline: 2px solid rgba(74,222,128,0.72);
  outline-offset: 4px;
  border-radius: 18px;
  animation: groupsActivationAssistListPulse 1.1s ease-in-out 0s 3;
}

@keyframes groupsActivationAssistSheen{
  0%, 38%{
    transform: translateX(-120%);
    opacity: 0;
  }

  48%, 62%{
    opacity: 1;
  }

  76%, 100%{
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes groupsActivationAssistPulse{
  0%, 100%{
    transform: translateY(0);
  }

  50%{
    transform: translateY(-3px);
    box-shadow:
      0 0 0 5px rgba(52,211,153,0.13),
      0 24px 70px rgba(0,0,0,0.34);
  }
}

@keyframes groupsActivationAssistListPulse{
  0%, 100%{
    box-shadow: none;
  }

  50%{
    box-shadow: 0 0 0 6px rgba(74,222,128,0.10);
  }
}

@media (max-width: 680px){
  .groups-activation-assist-card{
    padding: 17px 14px 15px;
    border-radius: 22px;
  }

  .groups-activation-assist-card::after{
    left: 26px;
    top: 139px;
    bottom: 132px;
  }

  .groups-activation-assist-card__content{
    padding-right: 20px;
  }

  .groups-activation-assist-card__actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .groups-activation-assist-card__button{
    width: 100%;
    text-align: center;
  }

  .groups-activation-invite-picker__item{
    grid-template-columns: minmax(0, 1fr);
  }

  .groups-activation-invite-picker__button{
    grid-column: auto;
    width: auto;
    min-width: 88px;
    justify-self: start;
    text-align: center;
  }

  .groups-activation-invite-picker__empty-actions{
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  .groups-activation-assist-card,
  .groups-activation-assist-card::before,
  .groups-activation-assist-card.is-guided,
  .groups-activation-assist-list-focus{
    animation: none !important;
    transition: none !important;
  }
}

.groups-home-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.groups-home-primary,
.groups-home-secondary{
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
}

.groups-home-primary{
  background: #ffffff;
  color: #111827;
}

.groups-home-primary:hover{
  background: #f3f4f6;
}

.groups-home-secondary{
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
}

.groups-home-secondary:hover{
  background: rgba(255,255,255,0.14);
}

.groups-home-section-label{
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.groups-home-mode-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.groups-home-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 14px;
}

.groups-home-card strong{
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.groups-home-card p{
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
}

.groups-home-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.groups-home-list-item{
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.groups-home-list-item:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(74,222,128,0.22);
}

.groups-home-list-item:focus-visible{
  outline: 2px solid rgba(74,222,128,0.65);
  outline-offset: 2px;
}

.groups-home-list-item--loading{
  cursor: default;
}

.groups-home-list-avatar{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(74,222,128,0.32), rgba(15,23,42,0.82));
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.groups-home-list-main{
  min-width: 0;
}

.groups-home-list-main strong{
  display: block;
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.groups-home-list-main p{
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.groups-home-list-activity{
  margin-top: 4px !important;
  color: rgba(255,255,255,0.56) !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* =========================================================
   Groups Home unread counter
   - compact new-activity badge for one group row
   - replaces the tiny dot with a clearer return trigger
   ========================================================= */
.groups-home-list-unread-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  justify-self: end;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.14);
}

.groups-home-list-unread-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(74,222,128,0.18);
  border: 1px solid rgba(74,222,128,0.36);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.08);
}
/* =========================================================
   Groups Home unread counter (E N D)
   ========================================================= */

.groups-home-list-type{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4ade80;
}

.groups-home-list-time{
  color: rgba(255,255,255,0.54);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.groups-home-list-chevron{
  color: rgba(255,255,255,0.58);
  font-size: 20px;
  line-height: 1;
}

.groups-home-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.groups-home-chip{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.28);
  color: #ecfdf5;
  font-size: 13px;
}

.groups-home-note{
  margin: 18px 0 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
}

@media (min-width: 768px){
  .groups-home-overlay{
    align-items: center;
    padding: 24px;
  }

  .groups-home-sheet{
    max-width: 720px;
    max-height: min(760px, calc(100dvh - 48px));
    padding: 24px;
    border-radius: 24px;
    box-shadow:
      0 28px 70px rgba(0,0,0,0.34),
      inset 0 1px 0 rgba(255,255,255,0.05);
  }

  .groups-home-grabber{
    display: none;
  }

  .groups-home-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .groups-home-mode-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce){
  .groups-home-sheet{
    transition: none;
  }
}
/* =========================================================
   Groups Home Sheet — adaptive bottom sheet / dialog (E N D)
   ========================================================= */


/* =========================================================
   Groups Create View — form styles inside Groups sheet
   ========================================================= */
.groups-create-topbar{
  display:flex;
  align-items:center;
  margin-bottom:8px;
}

.groups-create-back{
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#ffffff;
  font-weight:600;
}

.groups-create-back:hover{
  background:rgba(255,255,255,0.12);
}

.groups-create-form{
  display:grid;
  gap:14px;
  margin-top:8px;
}

.groups-create-field{
  display:grid;
  gap:8px;
}

.groups-create-label{
  font-size:14px;
  font-weight:700;
  color:#f9fafb;
}

.groups-create-input,
.groups-create-textarea,
.groups-create-file{
  width:100%;
  box-sizing:border-box;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#ffffff;
  padding:12px 14px;
  font:inherit;
}

.groups-create-input::placeholder,
.groups-create-textarea::placeholder{
  color:rgba(255,255,255,0.42);
}

.groups-create-input:focus,
.groups-create-textarea:focus,
.groups-create-file:focus{
  outline:none;
  border-color:rgba(74,222,128,0.65);
  box-shadow:0 0 0 3px rgba(74,222,128,0.14);
}

.groups-create-textarea{
  min-height:110px;
  resize:vertical;
}

.groups-create-chip-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.groups-create-chip-btn,
.groups-create-privacy-btn{
  min-height:38px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#ffffff;
  font-weight:600;
}

.groups-create-chip-btn.is-active,
.groups-create-privacy-btn.is-active{
  background:rgba(74,222,128,0.16);
  border-color:rgba(74,222,128,0.42);
  color:#ecfdf5;
}

.groups-create-privacy{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.groups-create-helper{
  font-size:13px;
  color:rgba(255,255,255,0.6);
}

.groups-create-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:4px;
}

@media (min-width: 768px){
  .groups-create-actions{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
/* =========================================================
   Groups Create View — form styles inside Groups sheet (E N D)
   ========================================================= */


/* =========================================================
   Groups Detail View — shell after Create Group
   ========================================================= */
.groups-detail-topbar{
  display:flex;
  align-items:center;
  margin-bottom:10px;
}

.groups-detail-back{
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#ffffff;
  font-weight:600;
}

.groups-detail-back:hover{
  background:rgba(255,255,255,0.12);
}

.groups-detail-cover-wrap{
  margin:0 0 14px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
}

.groups-detail-cover-image{
  display:block;
  width:100%;
  aspect-ratio:16 / 6;
  object-fit:cover;
}

.groups-detail-header{
  display:grid;
  gap:10px;
}

.groups-detail-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:4px;
}

.groups-detail-pill{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(74,222,128,0.12);
  border:1px solid rgba(74,222,128,0.28);
  color:#ecfdf5;
  font-size:13px;
  font-weight:700;
}

.groups-detail-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:18px 0;
}

.groups-detail-role-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.groups-members-open-btn{
  margin-top: 12px;
  width: 100%;
}

.groups-members-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.groups-members-state{
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 14px;
  text-align: center;
}

.groups-members-state-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.24);
  font-size: 20px;
}

.groups-members-state--error .groups-members-state-icon{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.groups-members-state p{
  max-width: 360px;
}

.groups-members-retry{
  margin-top: 4px;
  min-height: 40px;
  padding: 0 14px;
}

.groups-member-card{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(74,222,128,0.18);
  color: #f8fafc;
  text-align: left;
}

.groups-member-card--manageable{
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.groups-member-card:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(74,222,128,0.34);
}

.groups-member-profile-btn{
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.groups-member-remove-btn{
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(248,113,113,0.34);
  background: rgba(248,113,113,0.10);
  color: #fecaca;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.groups-member-remove-btn:hover{
  background: rgba(248,113,113,0.18);
  border-color: rgba(248,113,113,0.52);
}

.groups-member-remove-btn:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}

.groups-member-avatar,
.groups-member-avatar-fallback{
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.groups-member-avatar{
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
}

.groups-member-avatar-fallback{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74,222,128,0.42), rgba(15,23,42,0.58));
  color: #ffffff;
  font-weight: 800;
}

.groups-member-meta{
  min-width: 0;
  display: grid;
  gap: 3px;
}

.groups-member-meta strong{
  color: #f8fafc;
  font-size: 15px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.groups-member-meta span{
  color: rgba(226,232,240,0.72);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.groups-member-role{
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(74,222,128,0.14);
  border: 1px solid rgba(74,222,128,0.22);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.groups-detail-empty-feed{
  margin-top:10px;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
}

.groups-detail-empty-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:6px;
}

.groups-detail-empty-feed p{
  margin:0;
  color:rgba(255,255,255,0.82);
  line-height:1.45;
}

@media (min-width: 768px){
  .groups-detail-actions{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .groups-detail-role-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
/* =========================================================
   Groups Detail View — shell after Create Group (E N D)
   ========================================================= */

/* =========================================================
   Groups Feed Screen — full honoring-wall surface
   - leaves the dark Groups utility shell
   - reuses regular feed/post visual language
   ========================================================= */
.group-feed-screen{
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f5f5f5;
}

.group-feed-screen.show{
  display: block;
}

.group-feed-shell{
  min-height: 100%;
  padding: 0 0 calc(32px + env(safe-area-inset-bottom, 0px));
}

/* =========================================================
   Group feed bottom breathing room
   - gives the final post/comments room to clear the bottom UI
   ========================================================= */
.group-feed-shell::after{
  content: "";
  display: block;
  height: 110px;
}
/* =========================================================
   Group feed bottom breathing room (E N D)
   ========================================================= */

.group-feed-topbar{
  position: sticky;
  top: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.group-feed-topbar-btn{
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #ffffff;
  color: #111827;
  font-weight: 700;
}

/* =========================================================
   Group Feed topbar actions
   - keeps Invite + Info grouped cleanly on the right
   ========================================================= */
.group-feed-topbar-actions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
/* =========================================================
   Group Feed topbar actions (E N D)
   ========================================================= */

.group-feed-topbar-btn:hover{
  background: #f8fafc;
}

.group-feed-topbar-copy{
  flex: 1;
  min-width: 0;
}

.group-feed-topbar-kicker{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 2px;
}

.group-feed-topbar-title{
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-feed-topbar-subtitle{
  margin-top: 3px;
  font-size: 13px;
  color: #475569;
}

.group-feed-context-card{
  width: min(95%, 700px);
  margin: 14px auto 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 2px 10px rgba(15,23,42,0.06);
}

.group-feed-context-card strong{
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.group-feed-context-card p{
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.group-feed-screen .post-form{
  display: block !important;
  margin: 14px auto 0;
  width: min(95%, 700px);
}

.group-feed-screen .feed{
  display: block !important;
  margin: 14px auto 0;
  width: min(95%, 700px);
}

.group-feed-screen .feed h2{
  display: none;
}

.group-feed-empty{
  width: min(95%, 700px);
  margin: 14px auto 0;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 2px 10px rgba(15,23,42,0.06);
}

.group-feed-empty strong{
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.group-feed-empty p{
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

@media (max-width: 900px){
  .group-feed-topbar{
    padding-left: 12px;
    padding-right: 12px;
  }

  .group-feed-topbar-title{
    font-size: 20px;
  }

  .group-feed-context-card,
  .group-feed-screen .feed,
  .group-feed-empty{
    width: calc(100% - 20px);
  }

  .group-feed-screen .post-form{
    width: calc(100% - 48px);
  }
}
/* =========================================================
   Groups Feed Screen — full honoring-wall surface (E N D)
   ========================================================= */

/* =========================================================
   Groups Membership UI — states inside Group Detail
   ========================================================= */
.groups-membership-shell{
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.groups-membership-header{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:10px;
}

.groups-membership-pill{
  background: rgba(74,222,128,0.16);
  border-color: rgba(74,222,128,0.42);
}

.groups-membership-copy-wrap{
  display:grid;
  gap:6px;
  margin-bottom:14px;
}

.groups-membership-title{
  font-size:17px;
  font-weight:700;
  color:#ffffff;
}

.groups-membership-copy{
  margin:0;
  color:rgba(255,255,255,0.82);
  line-height:1.45;
}

.groups-membership-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-bottom:16px;
}

.groups-home-primary.is-disabled{
  opacity:0.62;
  cursor:not-allowed;
}

.groups-membership-preview-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.groups-membership-preview-btn{
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#ffffff;
  font-weight:600;
}

.groups-membership-preview-btn.is-active{
  background:rgba(74,222,128,0.16);
  border-color:rgba(74,222,128,0.42);
  color:#ecfdf5;
}

@media (min-width: 768px){
  .groups-membership-actions{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
/* =========================================================
   Groups Membership UI — states inside Group Detail (E N D)
   ========================================================= */

/* =========================================================
   Groups Invite View — owner-facing invite flow
   ========================================================= */
.groups-invite-topbar{
  display:flex;
  align-items:center;
  margin-bottom:10px;
}

.groups-invite-back{
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#ffffff;
  font-weight:600;
}

.groups-invite-back:hover{
  background:rgba(255,255,255,0.12);
}

.groups-invite-card{
  margin:14px 0 16px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
}

.groups-invite-card-title{
  font-size:16px;
  font-weight:700;
  color:#ffffff;
  margin-bottom:6px;
}

.groups-invite-card-copy{
  margin:0;
  color:rgba(255,255,255,0.82);
  line-height:1.45;
}

.groups-invite-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.groups-invite-field{
  display:grid;
  gap:8px;
  margin-bottom:14px;
}

.groups-invite-link-row{
  display:flex;
  align-items:center;
}

.groups-invite-link-input{
  width:100%;
  min-height:46px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#ffffff;
  font:inherit;
}

.groups-invite-link-input:focus{
  outline:none;
  border-color:rgba(74,222,128,0.65);
  box-shadow:0 0 0 3px rgba(74,222,128,0.14);
}

.groups-invite-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-bottom:18px;
}

.groups-invite-journey-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

@media (min-width: 768px){
  .groups-invite-actions{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .groups-invite-journey-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
/* =========================================================
   Groups Invite View — owner-facing invite flow (E N D)
   ========================================================= */   

/* ===== Bouquet contribution modal (pre-payment) ===== */
.contrib-modal .modal-bouquet-content{
  position: relative;
  max-width: 380px;
  width: calc(100vw - 28px);
  border-radius: 14px;
}
.contrib-modal .contrib-close{
  position:absolute;
  top:10px; right:12px;
  border:0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.contrib-modal .contrib-skip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size: 13px;
  margin-top: 10px;
  color:#333;
}
.contrib-modal .contrib-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top: 12px;
}
.contrib-modal .contrib-actions button{
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}
.contrib-modal #contribContinue{ background:#111827; color:#fff; }
.contrib-modal .ghost{ background:#f3f4f6; color:#111827; }

/* ===== Bouquet count chip ===== */
.bouquet-count-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245,245,245,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  margin-left: 10px;
}
/* ===== Bouquet contribution modal (pre-payment) ===== */
/* ================E  N  D============================= */

/* ===========================
   FULLSCREEN BOUQUET CELEBRATION
   YouTube-level + album-style fullscreen
   =========================== */

#bouquetMegaOverlay{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

#bouquetMegaOverlay.show{
  display: flex;
}

#bouquetMegaOverlay.out{
  pointer-events: none;
}

#bouquetMegaOverlay .mega-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
}

#bouquetMegaOverlay.show .mega-backdrop{
  animation: mega-backdrop-in 260ms ease-out forwards;
}

#bouquetMegaOverlay.out .mega-backdrop{
  animation: mega-backdrop-out 260ms ease-in forwards;
}

@keyframes mega-backdrop-in{
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mega-backdrop-out{
  from { opacity: 1; }
  to   { opacity: 0; }
}

#bouquetMegaOverlay .mega-center{
  position: relative;
  width: min(92vw, 460px);
  text-align: center;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: rgba(17,24,39,0.42);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.46);
  transform: translateY(14px) scale(.96);
  opacity: 0;
}

#bouquetMegaOverlay.show .mega-center{
  animation: mega-center-in 420ms cubic-bezier(.2,.9,.2,1) forwards;
}

#bouquetMegaOverlay.out .mega-center{
  animation: mega-center-out 260ms ease-in forwards;
}

@keyframes mega-center-in{
  0%   { opacity: 0; transform: translateY(16px) scale(.96); }
  65%  { opacity: 1; transform: translateY(0) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mega-center-out{
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(10px) scale(.97); }
}

#bouquetMegaOverlay .mega-controls{
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

#bouquetMegaOverlay .mega-sound-toggle,
#bouquetMegaOverlay .mega-close{
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

#bouquetMegaOverlay .mega-sound-toggle:hover,
#bouquetMegaOverlay .mega-close:hover{
  background: rgba(255,255,255,0.22);
}

#bouquetMegaOverlay .mega-bouquet-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

#bouquetMegaOverlay .mega-halo{
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(74,222,128,0.30) 0%,
      rgba(74,222,128,0.18) 34%,
      rgba(255,255,255,0.10) 58%,
      rgba(255,255,255,0.00) 72%);
  filter: blur(3px);
  animation: mega-halo-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mega-halo-pulse{
  0%,100% { transform: scale(.92); opacity: .70; }
  50%     { transform: scale(1.08); opacity: 1; }
}

#bouquetMegaOverlay .mega-bouquet{
  position: relative;
  z-index: 2;
  width: 182px;
  height: 182px;
  object-fit: contain;
  transform-origin: center;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.42));
  cursor: zoom-in;
}

#bouquetMegaOverlay.show .mega-bouquet{
  animation:
    mega-bouquet-in 460ms cubic-bezier(.2,.9,.2,1) forwards,
    mega-bouquet-breathe 1.9s ease-in-out 460ms infinite,
    mega-bouquet-blink 1.15s steps(2,end) 460ms infinite;
}

#bouquetMegaOverlay .mega-bouquet.zoomed{
  transform: scale(1.34) !important;
  cursor: zoom-out;
}

@keyframes mega-bouquet-in{
  0%   { transform: scale(.42) rotate(-7deg); opacity: 0; }
  45%  { transform: scale(1.16) rotate(3deg); opacity: 1; }
  70%  { transform: scale(.98) rotate(-1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes mega-bouquet-breathe{
  0%,100% { transform: scale(1) rotate(0deg); }
  50%     { transform: scale(1.045) rotate(.6deg); }
}

@keyframes mega-bouquet-blink{
  0%,100% { opacity: 1; }
  50%     { opacity: .88; }
}

#bouquetMegaOverlay .mega-title{
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

#bouquetMegaOverlay .mega-title .accent{
  color: #4CAF50;
}

#bouquetMegaOverlay .mega-sub{
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
}

#bouquetMegaOverlay .mega-tip{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

#bouquetMegaOverlay .mega-sparkle,
#bouquetMegaOverlay .mega-petal{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

#bouquetMegaOverlay .mega-sparkle{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.98) 0%, rgba(74,222,128,0.85) 45%, rgba(74,222,128,0) 78%);
  box-shadow: 0 0 14px rgba(255,255,255,0.55);
  animation: mega-sparkle 1.15s ease-out forwards;
}

@keyframes mega-sparkle{
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.2); }
  20%  { opacity: 1; transform: translate(-50%,-50%) translate(var(--dx), var(--dy)) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%,-50%) translate(calc(var(--dx) * 1.15), calc(var(--dy) * 1.15)) scale(.2); }
}

#bouquetMegaOverlay .mega-petal{
  width: 8px;
  height: 14px;
  border-radius: 999px;
  background: hsl(var(--h) 75% 82% / 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,.20);
  animation: mega-petal 1s ease-out forwards;
}

@keyframes mega-petal{
  0%   { opacity: 1; transform: translate(-50%,-50%) translate(0,0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.18); }
}

@media (max-width: 480px){
  #bouquetMegaOverlay .mega-center{
    width: min(94vw, 420px);
    padding: 16px 12px 14px;
  }

  #bouquetMegaOverlay .mega-bouquet{
    width: 154px;
    height: 154px;
  }

  #bouquetMegaOverlay .mega-halo{
    width: 182px;
    height: 182px;
  }

  #bouquetMegaOverlay .mega-title{
    font-size: 21px;
  }

  #bouquetMegaOverlay .mega-sub{
    font-size: 14px;
  }
}

/* ==================================
   FULLSCREEN BOUQUET CELEBRATION
   =========E  N  D================== */

/*======================================================*\
*==== Allow enlarged frame icon to breathe in row ======*\
\*======================================================*/
.post-badge-row{
  overflow:visible !important;
}
/*==== Allow enlarged frame icon to breathe in row ======*\
\*===================E  N  D============================*/

/* =========================================================
   Group Comment Loop Polish V1 (START)
   - group-feed-only comment helper and success cue
   - keeps the feed respectful/old-school while improving the loop
   ========================================================= */
.group-comment-loop-post .group-comment-loop-nudge,
.group-comment-loop-post .group-comment-loop-success{
  width: calc(100% - 60px);
  margin: 8px 30px 2px;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.20);
  border-left: 4px solid rgba(34, 197, 94, 0.62);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  color: #14532d;
  font-size: 12.5px;
  line-height: 1.35;
}

.group-comment-loop-post .group-comment-loop-nudge[hidden],
.group-comment-loop-post .group-comment-loop-success[hidden]{
  display: none !important;
}

.group-comment-loop-post .group-comment-loop-nudge strong,
.group-comment-loop-post .group-comment-loop-success strong{
  display: block;
  margin-bottom: 2px;
  color: #064e3b;
  font-size: 13px;
  font-weight: 800;
}

.group-comment-loop-post .group-comment-loop-nudge span,
.group-comment-loop-post .group-comment-loop-success span{
  display: block;
  color: rgba(20, 83, 45, 0.86);
}

.group-comment-loop-post .group-comment-loop-nudge.is-visible{
  animation: groupCommentLoopSoftIn 220ms ease-out both;
}

.group-comment-loop-post .group-comment-loop-success{
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 1), rgba(255, 255, 255, 0.98));
}

.group-comment-loop-post .group-comment-loop-success.is-fading{
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.feed-comment-loop-post .feed-comment-loop-input,
.group-comment-loop-post .group-comment-loop-input{
  width: calc(100% - 60px) !important;
  margin: 10px 30px !important;
  padding: 9px 13px !important;
  border: 1px solid rgba(22, 163, 74, 0.24) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(15, 23, 42, 0.06);
}

.feed-comment-loop-post .feed-comment-loop-input:focus,
.group-comment-loop-post .group-comment-loop-input:focus{
  outline: none;
  border-color: rgba(22, 163, 74, 0.52) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* =========================================================
   Group Like / Comment Button Alignment V1 (START)
   - keeps Like and Comment on the same row after Like becomes Liked
   - preserves the premium green active state without pushing Comment down
   ========================================================= */
.group-comment-loop-submit{
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: calc(50% - 18px);
  min-width: 104px;
  min-height: 36px;
  padding: 8px 15px !important;
  box-sizing: border-box;
  white-space: nowrap;
  border: 1px solid rgba(22, 163, 74, 0.24) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f0fdf4, #ffffff) !important;
  color: #166534 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.15;
  letter-spacing: 0.005em;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.group-comment-loop-submit:hover{
  transform: translateY(-1px);
  border-color: rgba(22, 163, 74, 0.46) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.group-comment-loop-like{
  margin-left: 30px !important;
  margin-right: 8px !important;
}

.feed-like-comment-consistency-v1 .group-comment-loop-submit:not(.group-comment-loop-like),
.group-comment-loop-post .group-comment-loop-submit:not(.group-comment-loop-like){
  margin-left: 8px !important;
  margin-right: 30px !important;
}

.group-comment-loop-like.is-liked{
  border-color: rgba(22, 163, 74, 0.72) !important;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 42%, #15803d 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.26), 0 4px 12px rgba(15, 23, 42, 0.10);
}

.group-comment-loop-like.is-liked:hover{
  border-color: rgba(21, 128, 61, 0.78) !important;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 48%, #166534 100%) !important;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.32), 0 5px 14px rgba(15, 23, 42, 0.12);
}

.group-comment-loop-submit:disabled{
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

@media (max-width: 600px){
  .group-comment-loop-submit{
    min-width: 106px;
    max-width: calc(50% - 10px);
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 13.5px !important;
  }

  .group-comment-loop-like{
    margin-left: 16px !important;
    margin-right: 5px !important;
  }

  .feed-like-comment-consistency-v1 .group-comment-loop-submit:not(.group-comment-loop-like),
  .group-comment-loop-post .group-comment-loop-submit:not(.group-comment-loop-like){
    margin-left: 5px !important;
    margin-right: 16px !important;
  }
}
/* =========================================================
   Group Like / Comment Button Alignment V1 (END)
   ========================================================= */

@keyframes groupCommentLoopSoftIn{
  from{
    opacity: 0;
    transform: translateY(4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px){
  .group-comment-loop-post .group-comment-loop-nudge,
  .group-comment-loop-post .group-comment-loop-success,
  .feed-comment-loop-post .feed-comment-loop-input,
  .group-comment-loop-post .group-comment-loop-input{
    width: calc(100% - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}
/* =========================================================
   Group Comment Loop Polish V1 (E N D)
   ========================================================= */

/* =========================================================
   Inline Comment Send Button V1 (S T A R T)
   - Adds the green paper-plane send button inside comment inputs
   - Keeps the button hidden until the user starts typing
   ========================================================= */
.feed-comment-loop-post .comment-send-composer-v1,
.group-comment-loop-post .comment-send-composer-v1{
  position: relative;
  width: calc(100% - 60px);
  margin: 10px 30px;
  box-sizing: border-box;
}

.feed-comment-loop-post .comment-send-composer-v1 .feed-comment-loop-input,
.group-comment-loop-post .comment-send-composer-v1 .group-comment-loop-input{
  width: 100% !important;
  margin: 0 !important;
  padding-right: 54px !important;
  box-sizing: border-box;
}

.comment-send-button-v1{
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) scale(0.94);
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border: 1px solid rgba(22, 163, 74, 0.64) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 48%, #166534 100%) !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28), 0 3px 10px rgba(15, 23, 42, 0.14);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease, opacity 150ms ease;
  z-index: 2;
}

.comment-send-button-v1[hidden]{
  display: none !important;
}

.comment-send-button-v1:hover{
  transform: translateY(-50%) scale(1);
  filter: brightness(1.03);
  box-shadow: 0 13px 28px rgba(22, 163, 74, 0.34), 0 4px 12px rgba(15, 23, 42, 0.16);
}

.comment-send-button-v1:active{
  transform: translateY(-50%) scale(0.92);
}

.comment-send-button-v1:focus-visible{
  outline: 3px solid rgba(34, 197, 94, 0.28);
  outline-offset: 3px;
}

.comment-send-button-icon-v1{
  width: 20px;
  height: 20px;
  display: block;
  transform: translateX(1px) rotate(-2deg);
}

@media (max-width: 600px){
  .feed-comment-loop-post .comment-send-composer-v1,
  .group-comment-loop-post .comment-send-composer-v1{
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .comment-send-button-v1{
    width: 34px;
    height: 34px;
    right: 5px;
  }

  .comment-send-button-icon-v1{
    width: 19px;
    height: 19px;
  }
}
/* =========================================================
   Inline Comment Send Button V1 (E N D)
   ========================================================= */

/* =========================================================
   Group Feed Composer — make it feel like the regular feed
   while keeping the group textarea visible
   ========================================================= */
.group-feed-composer-context{
  margin:8px 0 12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(22,163,74,0.16);
  border-left:4px solid rgba(22,163,74,0.72);
  background:linear-gradient(135deg, rgba(240,253,244,0.92), rgba(255,255,255,0.98));
  box-shadow:0 2px 10px rgba(15,23,42,0.05);
}

.group-feed-composer-context strong{
  display:block;
  margin-bottom:4px;
  color:#166534;
  font-size:13px;
  font-weight:800;
  letter-spacing:0.02em;
}

.group-feed-composer-context span{
  display:block;
  color:#475569;
  font-size:13px;
  line-height:1.4;
}

.group-feed-composer #groupFeedPostForm{
  display:grid;
  gap:10px;
}

.group-feed-composer .post-media-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.group-feed-composer #groupFeedPostContent{
  width:100%;
  min-height:110px;
  box-sizing:border-box;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #d1d5db;
  background:#ffffff;
  color:#111827;
  font:inherit;
  resize:vertical;
}

.group-feed-composer #groupFeedPostContent::placeholder{
  color:#9ca3af;
}

.group-feed-composer #groupFeedPostContent:focus{
  outline:2px solid #3b82f6;
  outline-offset:2px;
}

/* ===== Choose file button — same language as regular feed ===== */
#groupFeedPostMedia::file-selector-button,
#groupFeedPostForm input[type="file"]::-webkit-file-upload-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  border-radius:18px;
  border:1px solid #60a5fa;
  background:#dbeafe;
  color:#0b66ff;
  font-weight:200;
  font-size:14px;
  cursor:pointer;
  transition:background 120ms ease, border-color 120ms ease, color 120ms ease;
}

#groupFeedPostMedia::file-selector-button:hover,
#groupFeedPostForm input[type="file"]::-webkit-file-upload-button:hover{
  background:#eef2f7;
  border-color:#c5ced9;
}

#groupFeedPostMedia::file-selector-button:active,
#groupFeedPostForm input[type="file"]::-webkit-file-upload-button:active{
  background:#e5eaf1;
}

#groupFeedPostMedia:focus-visible::file-selector-button,
#groupFeedPostForm input[type="file"]:focus-visible::-webkit-file-upload-button{
  outline:2px solid #3b82f6;
  outline-offset:2px;
}

/* ===== Remove file button — same neutral pill as regular feed ===== */
#groupFeedClearMediaBtn{
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  border-radius:18px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  color:#111827;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:background 120ms ease, border-color 120ms ease, color 120ms ease, transform 60ms ease;
}

#groupFeedClearMediaBtn:not([hidden]){
  display:inline-flex;
}

#groupFeedClearMediaBtn[hidden]{
  display:none !important;
}

#groupFeedClearMediaBtn:hover{
  background:#eef2f7;
  border-color:#c5ced9;
}

#groupFeedClearMediaBtn:active{
  transform:translateY(1px);
}

#groupFeedClearMediaBtn:focus-visible{
  outline:2px solid #3b82f6;
  outline-offset:2px;
}

/* ===== Post button — same blue pill language as regular feed ===== */
#groupFeedPostForm button[type="submit"],
#groupFeedPostForm input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  border-radius:18px;
  border:1px solid #60a5fa;
  background:#dbeafe;
  color:#0b66ff;
  font-weight:200;
  font-size:14px;
  cursor:pointer;
  transition:background 120ms ease, border-color 120ms ease, color 120ms ease, transform 60ms ease;
}

#groupFeedPostForm button[type="submit"]:hover,
#groupFeedPostForm input[type="submit"]:hover{
  background:#cfe4ff;
  border-color:#4f97f8;
}

#groupFeedPostForm button[type="submit"]:active,
#groupFeedPostForm input[type="submit"]:active{
  transform:translateY(1px);
}

#groupFeedPostForm button[type="submit"]:focus-visible,
#groupFeedPostForm input[type="submit"]:focus-visible{
  outline:2px solid #3b82f6;
  outline-offset:2px;
}

@media (max-width: 900px){
  #groupFeedPostMedia::file-selector-button,
  #groupFeedPostForm input[type="file"]::-webkit-file-upload-button,
  #groupFeedClearMediaBtn,
  #groupFeedPostForm button[type="submit"],
  #groupFeedPostForm input[type="submit"]{
    height:34px;
    padding:0 12px;
    border-radius:17px;
    font-size:13px;
  }

  .group-feed-composer #groupFeedPostContent{
    min-height:100px;
  }
}
/* =========================================================
   Group Feed Composer — make it feel like the regular feed (E N D)
   ========================================================= */

   /* =========================================================
   Group Feed Composer — mobile polish pass
   - keep textarea visible
   - put Remove file on its own row
   - keep Post as a compact pill, not a full-width bar
   ========================================================= */
@media (max-width: 900px){
  .group-feed-composer .post-media-row{
    align-items:center;
    row-gap:10px;
  }

  .group-feed-composer #groupFeedClearMediaBtn{
    flex:0 0 auto;
    width:auto;
    margin-top:8px;
    align-self:flex-start;
  }

  .group-feed-composer #groupFeedClearMediaBtn:not([hidden]){
    display:inline-flex;
  }

  /* keep Post compact like the regular composer, not stretched */
  .group-feed-composer #groupFeedPostForm button[type="submit"],
  .group-feed-composer #groupFeedPostForm input[type="submit"]{
    width:auto;
    min-width:96px;
    justify-self:start;
  }
}
/* =========================================================
   Group Feed Composer — mobile polish pass (E N D)
   ========================================================= */

/* =========================================================
   Group Feed / Frame Picker layering fix
   - frame picker must open above the fullscreen group feed
   ========================================================= */
#frameModal{
  z-index: 4000 !important;
}
/* =========================================================
   Group Feed / Frame Picker layering fix (E N D)
   ========================================================= */

   /* =========================================================
   Group Feed / Bouquet modal layering fix
   - bouquet contribution modal and payment modal
   must open above the fullscreen group feed
   ========================================================= */
.modal-bouquet,
.payment-modal{
  z-index: 4000 !important;
}
/* =========================================================
   Group Feed / Bouquet modal layering fix (E N D)
   ========================================================= */

   /* =========================================================
   Public-post visibility confirmation modal
   - glassy confirmation only for Public posts
   - green translucent actions + visibility pulse on change
   ========================================================= */
.post-visibility-confirm-layer{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1203;
}

.post-visibility-confirm-layer.open{
  display: flex;
}

.post-visibility-confirm-card{
  width: min(460px, 92vw);
  max-width: 100%;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border-radius: 26px;
  border: 1px solid rgba(226,232,240,0.16);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.post-visibility-confirm-body{
  padding: 22px 20px 20px;
  text-align: center;
}

.post-visibility-confirm-title{
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #f8fafc;
}

.post-visibility-confirm-text{
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(226,232,240,0.88);
}

.post-visibility-confirm-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.post-visibility-confirm-btn{
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(34, 197, 94, 0.16);
  color: #f0fdf4;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.post-visibility-confirm-btn:hover{
  background: rgba(34, 197, 94, 0.22);
}

.post-visibility-confirm-btn--change{
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.24);
}

.post-visibility-confirm-btn:focus-visible{
  outline: 2px solid rgba(74, 222, 128, 0.65);
  outline-offset: 3px;
}

/* =========================================================
   Restricted-account premium modal
   - replaces the basic green toast with a polished app-style modal
   - visually matches the existing "Last check" confirmation modal
   ========================================================= */
.account-restriction-modal-overlay,
.account-restriction-modal-backdrop,
.restricted-account-modal-overlay,
.restricted-account-modal-backdrop,
.account-restriction-notice-overlay,
.account-restriction-notice-backdrop{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.account-restriction-modal-card,
.restricted-account-modal-card,
.account-restriction-notice-card{
  width: min(460px, calc(100vw - 32px));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(31, 41, 55, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 28px 70px rgba(0,0,0,0.34);
  color: rgba(248, 250, 252, 0.96);
  padding: 26px 22px 24px;
  text-align: center;
}

.account-restriction-modal-eyebrow,
.restricted-account-modal-eyebrow,
.account-restriction-notice-eyebrow{
  margin: 0 0 8px;
  color: rgba(74, 222, 128, 0.92);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-restriction-modal-title,
.restricted-account-modal-title,
.account-restriction-notice-title{
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.35rem, 4vw, 1.72rem);
  font-weight: 900;
  line-height: 1.14;
}

.account-restriction-modal-text,
.restricted-account-modal-text,
.account-restriction-notice-text{
  margin: 0 auto 20px;
  max-width: 360px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1rem;
  line-height: 1.45;
}

.account-restriction-modal-action,
.account-restriction-modal-btn,
.account-restriction-modal-button,
.restricted-account-modal-action,
.restricted-account-modal-btn,
.restricted-account-modal-button,
.account-restriction-notice-action,
.account-restriction-notice-btn,
.account-restriction-notice-button{
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(34, 197, 94, 0.44);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(21, 128, 61, 0.45), rgba(20, 83, 45, 0.34));
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 28px rgba(0,0,0,0.20);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.account-restriction-modal-action:hover,
.account-restriction-modal-btn:hover,
.account-restriction-modal-button:hover,
.restricted-account-modal-action:hover,
.restricted-account-modal-btn:hover,
.restricted-account-modal-button:hover,
.account-restriction-notice-action:hover,
.account-restriction-notice-btn:hover,
.account-restriction-notice-button:hover{
  transform: translateY(-1px);
  border-color: rgba(74, 222, 128, 0.68);
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.56), rgba(21, 128, 61, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 16px 34px rgba(0,0,0,0.24);
}

.account-restriction-modal-action:active,
.account-restriction-modal-btn:active,
.account-restriction-modal-button:active,
.restricted-account-modal-action:active,
.restricted-account-modal-btn:active,
.restricted-account-modal-button:active,
.account-restriction-notice-action:active,
.account-restriction-notice-btn:active,
.account-restriction-notice-button:active{
  transform: translateY(0);
}
/* =========================================================
   Restricted-account premium modal (E N D)
   ========================================================= */

/* =========================================================
   Public-post visibility confirmation modal (E N D)
   ========================================================= */

/* =========================================================
   Visibility selector attention pulse
   - run 3 times so it is easier to notice
   ========================================================= */
.vis-label.post-visibility-pulse,
#postVisibility.post-visibility-pulse{
  animation: post-visibility-pulse 0.98s ease-out 5;
}
/* =========================================================
   Visibility selector attention pulse (E N D)
   ========================================================= */

@keyframes post-visibility-pulse{
  0% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0.00);
    transform: scale(1);
  }
  18% {
    box-shadow: 0 0 0 8px rgba(34,197,94,0.18);
    transform: scale(1.01);
  }
  60% {
    box-shadow: 0 0 0 14px rgba(34,197,94,0.00);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0.00);
    transform: scale(1);
  }
}

.feed-empty-state{
  margin: 18px auto 0;
  padding: 18px 16px;
  max-width: 520px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 30px rgba(15,23,42,0.08);
  text-align: center;
}

.feed-empty-state strong{
  display: block;
  font-size: 18px;
  color: #0f172a;
}

.feed-empty-state p{
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
}

@media (max-width: 900px){
  .post-visibility-confirm-layer{
    padding: 12px;
  }

  .post-visibility-confirm-card{
    width: min(94vw, 420px);
    border-radius: 24px;
  }

  .post-visibility-confirm-body{
    padding: 18px 16px 18px;
  }

  .post-visibility-confirm-actions{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Public-post visibility confirmation modal (E N D)
   ========================================================= */

   /* =========================================================
   Post header cleanup
   - keep memorial author name clean
   - move Follow + Report into one top-right rail
   - prevent long names from wrapping into two lines
   ========================================================= */
.post-user-info{
  position: relative;
  min-width: 0;
  padding-right: 108px;
}

/* =========================================================
   Post Created Date V1 — post header timestamp (START)
   - Keeps the author name clean.
   - Adds a subtle shared-date line under the author.
   - Uses a tiny green accent so it feels native to My Own Heaven.
   ========================================================= */
.post-author-meta{
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.post-author-name{
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.post-created-date{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  color: var(--moh-green, #22c56e);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-created-date::before{
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--moh-green, #22c55e);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

@media (max-width: 420px){
  .post-created-date{
    font-size: 10.75px;
  }
}
/* =========================================================
   Post Created Date V1 — post header timestamp (END)
   ========================================================= */

.post-top-actions{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Smaller, cleaner Follow/Following */
.post-top-actions .follow-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

/* Quiet overflow-style Report trigger */
.post-top-actions .report-post-btn{
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15,23,42,0.72);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex: 0 0 auto;
}

.post-top-actions .report-post-btn:hover{
  background: rgba(15,23,42,0.84);
}

.post-top-actions .report-post-btn span{
  transform: translateY(-1px);
}

/* =========================================================
   Quiet "Reported" pill
   - replaces the meatball only after a successful report
   - keeps the state respectful and low-noise
   ========================================================= */
.post-top-actions .report-post-btn.is-reported{
  width: auto;
  min-width: 64px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.12);
  color: #166534;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  cursor: default;
}

.post-top-actions .report-post-btn.is-reported:hover{
  background: rgba(34,197,94,0.12);
}

.post-top-actions .report-post-btn.is-reported span{
  transform: none;
}
/* =========================================================
   Quiet "Reported" pill (E N D)
   ========================================================= */

/* =========================================================
   Tiny "Reported" state helper
   - only adds extra right-space when the quiet Reported pill is active
   ========================================================= */
.post-user-info.post-user-info--with-reported{
  padding-right: 152px;
  min-height: 0 !important;
}
/* =========================================================
   Tiny "Reported" state helper (E N D)
   ========================================================= */

@media (max-width: 768px){
  .post-user-info{
    padding-right: 100px;
  }

  .post-top-actions{
    top: 7px;
    right: 7px;
    gap: 5px;
  }

  .post-top-actions .follow-btn{
    min-height: 24px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .post-top-actions .report-post-btn{
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;

    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 17px;
    flex: 0 0 auto;
  }
}
/* =========================================================
   Post header cleanup (E N D)
   ========================================================= */

/* =========================================================
   Investor/Admin Polish Closeout V1-A — Analytics Demo Path Panel
   - compact top investor path with dropdown + modal detail
   - keeps Analytics demo-safe without hiding admin truth
   ========================================================= */
.admin-analytics-demo-path-panel{
  margin: 0 0 14px;
  border: 1px solid rgba(48, 238, 121, 0.22);
  background:
    radial-gradient(circle at top left, rgba(48, 238, 121, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.30);
  overflow: hidden;
}

.admin-analytics-demo-path-hero{
  display: grid;
  gap: 5px;
  padding: 2px 2px 12px;
}

.admin-analytics-demo-path-hero span{
  color: #30ee79;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-analytics-demo-path-hero strong{
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 950;
}

.admin-analytics-demo-path-hero p{
  margin: 0;
  color: rgba(226, 232, 240, 0.80);
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-demo-path-dropdown{
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 17px;
  overflow: hidden;
}

.admin-analytics-demo-path-dropdown summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 42px 12px 12px;
  display: grid;
  gap: 4px;
  position: relative;
  user-select: none;
}

.admin-analytics-demo-path-dropdown summary::-webkit-details-marker{
  display: none;
}

.admin-analytics-demo-path-dropdown summary::after{
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #86efac;
  font-size: 20px;
  line-height: 1;
  transition: transform 180ms ease;
}

.admin-analytics-demo-path-dropdown[open] summary::after{
  transform: translateY(-50%) rotate(180deg);
}

.admin-analytics-demo-path-dropdown summary span{
  color: #86efac;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-analytics-demo-path-dropdown summary strong{
  color: rgba(248, 250, 252, 0.92);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.admin-analytics-demo-path-options{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.admin-analytics-demo-path-option{
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
  color: #f8fafc;
  border-radius: 15px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.admin-analytics-demo-path-option:hover{
  transform: translateY(-1px);
  border-color: rgba(48, 238, 121, 0.34);
  background:
    radial-gradient(circle at top right, rgba(48, 238, 121, 0.12), transparent 42%),
    rgba(15, 23, 42, 0.78);
}

.admin-analytics-demo-path-option:focus-visible{
  outline: 2px solid rgba(48, 238, 121, 0.42);
  outline-offset: 2px;
}

.admin-analytics-demo-path-option span{
  color: #30ee79;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-analytics-demo-path-option strong{
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
}

.admin-analytics-demo-path-option small{
  color: rgba(203, 213, 225, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.admin-analytics-demo-path-safety{
  margin-top: 10px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  background: rgba(113, 63, 18, 0.18);
  border-radius: 15px;
  padding: 10px 11px;
}

.admin-analytics-demo-path-safety strong{
  display: block;
  color: #fef3c7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.admin-analytics-demo-path-safety p{
  margin: 0;
  color: rgba(254, 243, 199, 0.78);
  font-size: 11.5px;
  line-height: 1.42;
}

.admin-analytics-demo-modal-backdrop{
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.admin-analytics-demo-modal-backdrop.is-open{
  display: flex;
}

.admin-analytics-demo-modal{
  width: min(520px, 94vw);
  max-height: min(720px, 88dvh);
  overflow: auto;
  border: 1px solid rgba(48, 238, 121, 0.24);
  background:
    radial-gradient(circle at top left, rgba(48, 238, 121, 0.17), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  color: #f8fafc;
  border-radius: 26px;
  padding: 20px;
  position: relative;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-analytics-demo-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #86efac;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-analytics-demo-modal-close:hover{
  background: rgba(48, 238, 121, 0.12);
}

.admin-analytics-demo-modal-body{
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.admin-analytics-demo-modal-eyebrow{
  color: #30ee79;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 42px;
}

.admin-analytics-demo-modal-title{
  margin: 0;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 950;
  padding-right: 42px;
}

.admin-analytics-demo-modal-summary{
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.admin-analytics-demo-modal-stat{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(48, 238, 121, 0.20);
  background: rgba(22, 163, 74, 0.12);
  border-radius: 18px;
  padding: 13px;
}

.admin-analytics-demo-modal-stat span{
  color: rgba(187, 247, 208, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-analytics-demo-modal-stat strong{
  color: #bbf7d0;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 0 20px rgba(48, 238, 121, 0.22);
}

.admin-analytics-demo-modal-rows{
  display: grid;
  gap: 8px;
}

.admin-analytics-demo-modal-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.60);
  border-radius: 14px;
  padding: 10px 11px;
}

.admin-analytics-demo-modal-row span{
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
  line-height: 1.35;
}

.admin-analytics-demo-modal-row strong{
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-align: right;
}

.admin-analytics-demo-modal-script{
  border: 1px solid rgba(48, 238, 121, 0.14);
  background: rgba(2, 6, 23, 0.38);
  border-radius: 16px;
  padding: 12px;
}

.admin-analytics-demo-modal-script strong{
  display: block;
  color: #86efac;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.admin-analytics-demo-modal-script ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(226, 232, 240, 0.80);
  font-size: 12px;
  line-height: 1.5;
}

.admin-analytics-demo-modal-script li + li{
  margin-top: 6px;
}

@media (max-width: 640px){
  .admin-analytics-demo-path-panel{
    border-radius: 20px;
    padding: 12px;
  }

  .admin-analytics-demo-modal-backdrop{
    align-items: flex-end;
    padding: 12px;
  }

  .admin-analytics-demo-modal{
    width: 100%;
    max-height: 86dvh;
    border-radius: 26px 26px 20px 20px;
    padding: 18px 16px 16px;
  }

  .admin-analytics-demo-modal-stat,
  .admin-analytics-demo-modal-row{
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-analytics-demo-modal-row strong{
    text-align: left;
  }
}
/* =========================================================
   Investor/Admin Polish Closeout V1-A — Analytics Demo Path Panel (E N D)
   ========================================================= */

/* =========================================================
   Admin Analytics Activation / Retention polish
   - premium activation signal cards for investor/product review
   ========================================================= */
.admin-analytics-activation-section{
  margin-top: 2px;
}

.admin-analytics-activation-panel{
  border: 1px solid rgba(48, 238, 121, 0.18);
  background:
    radial-gradient(circle at top left, rgba(48, 238, 121, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}

.admin-analytics-activation-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.admin-analytics-activation-card{
  min-height: 118px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.74);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-analytics-activation-card.is-primary{
  border-color: rgba(48, 238, 121, 0.32);
  background:
    radial-gradient(circle at top right, rgba(48, 238, 121, 0.16), transparent 42%),
    rgba(15, 23, 42, 0.86);
}

.admin-analytics-activation-card span,
.admin-analytics-activation-insight span{
  color: #30ee79;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-analytics-activation-card strong{
  color: #f8fafc;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.admin-analytics-activation-card p{
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.admin-analytics-activation-insights{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.admin-analytics-activation-insight{
  border: 1px solid rgba(48, 238, 121, 0.14);
  background: rgba(2, 6, 23, 0.42);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-analytics-activation-insight strong{
  color: #f8fafc;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.admin-analytics-activation-insight p{
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.admin-analytics-activation-summary{
  margin-top: 10px;
  border: 1px solid rgba(48, 238, 121, 0.14);
  background: rgba(22, 163, 74, 0.10);
  border-radius: 16px;
  padding: 12px;
}

.admin-analytics-activation-summary strong{
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 4px;
}

.admin-analytics-activation-summary p{
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-activation-loop-proof{
  margin-top: 10px;
  border: 1px solid rgba(48, 238, 121, 0.16);
  background:
    radial-gradient(circle at top right, rgba(48, 238, 121, 0.12), transparent 38%),
    rgba(2, 6, 23, 0.38);
  border-radius: 18px;
  padding: 12px;
}

.admin-analytics-activation-loop-proof-head{
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.admin-analytics-activation-loop-proof-head span,
.admin-analytics-activation-loop-stage span{
  color: #30ee79;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-analytics-activation-loop-proof-head strong{
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 950;
}

.admin-analytics-activation-loop-proof-head p{
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  line-height: 1.42;
}

.admin-analytics-activation-loop-proof-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.admin-analytics-activation-loop-stage{
  position: relative;
  min-height: 105px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 15px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.admin-analytics-activation-loop-stage::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.admin-analytics-activation-loop-stage.is-active{
  border-color: rgba(48, 238, 121, 0.26);
  background:
    radial-gradient(circle at top right, rgba(48, 238, 121, 0.13), transparent 42%),
    rgba(15, 23, 42, 0.78);
}

.admin-analytics-activation-loop-stage.is-active::before{
  background: linear-gradient(to bottom, rgba(187,247,208,0.25), rgba(48,238,121,0.90), rgba(187,247,208,0.18));
}

.admin-analytics-activation-loop-stage strong{
  color: #f8fafc;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.admin-analytics-activation-loop-stage p{
  margin: 0;
  color: rgba(226, 232, 240, 0.74);
  font-size: 11.5px;
  line-height: 1.32;
}

@media (max-width: 640px){
  .admin-analytics-activation-panel{
    padding: 12px;
    border-radius: 18px;
  }

  .admin-analytics-activation-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-analytics-activation-card{
    min-height: 126px;
    padding: 11px;
  }
}
/* =========================================================
   Admin Analytics Activation / Retention polish (E N D)
   ========================================================= */

   /* =========================================================
   Admin Analytics V5 — Retention Loop Analytics V1
   - premium dark investor-ready return-signal section
   ========================================================= */
.admin-analytics-retention-loop{
  margin-top: 14px;
  border: 1px solid rgba(34,197,94,0.22);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.16), transparent 34%),
    linear-gradient(180deg, rgba(6,20,14,0.96), rgba(8,15,12,0.98));
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.26);
}

.admin-analytics-retention-loop-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-analytics-retention-loop-head span{
  display: inline-flex;
  margin-bottom: 5px;
  color: #86efac;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-analytics-retention-loop-head h4{
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.admin-analytics-retention-loop-head p{
  margin: 6px 0 0;
  max-width: 560px;
  color: rgba(226,232,240,0.78);
  font-size: 12px;
  line-height: 1.5;
}

.admin-analytics-retention-loop-head > strong{
  flex: 0 0 auto;
  min-width: 56px;
  text-align: center;
  color: #bbf7d0;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 0 22px rgba(34,197,94,0.24);
}

.admin-analytics-retention-loop-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-analytics-retention-loop-card{
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.54);
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-analytics-retention-loop-card span{
  color: #86efac;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-analytics-retention-loop-card strong{
  color: #f8fafc;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
}

.admin-analytics-retention-loop-card p{
  margin: 0;
  color: rgba(226,232,240,0.72);
  font-size: 11px;
  line-height: 1.45;
}

.admin-analytics-retention-loop-insight{
  margin-top: 12px;
  border-radius: 16px;
  padding: 13px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.58);
}

.admin-analytics-retention-loop-insight.is-strong{
  border-color: rgba(34,197,94,0.28);
  background: rgba(20,83,45,0.28);
}

.admin-analytics-retention-loop-insight.is-forming{
  border-color: rgba(250,204,21,0.24);
  background: rgba(113,63,18,0.22);
}

.admin-analytics-retention-loop-insight.is-quiet{
  border-color: rgba(248,113,113,0.22);
  background: rgba(127,29,29,0.18);
}

.admin-analytics-retention-loop-insight strong{
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
}

.admin-analytics-retention-loop-insight p{
  margin: 0;
  color: rgba(226,232,240,0.82);
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-retention-loop-insight small{
  display: block;
  margin-top: 8px;
  color: rgba(203,213,225,0.62);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 640px){
  .admin-analytics-retention-loop{
    padding: 14px;
    border-radius: 20px;
  }

  .admin-analytics-retention-loop-head{
    flex-direction: column;
  }

  .admin-analytics-retention-loop-head > strong{
    text-align: left;
  }

  .admin-analytics-retention-loop-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Admin Analytics V5 — Retention Loop Analytics V1 (E N D)
   ========================================================= */

/* =========================================================
   Admin Analytics — Investor Readiness Snapshot V1
   - one-glance product health summary for investor/admin review
   ========================================================= */
.admin-analytics-investor-readiness-section{
  margin-top: 2px;
}

.admin-analytics-investor-readiness-panel{
  border: 1px solid rgba(48, 238, 121, 0.20);
  background:
    radial-gradient(circle at top left, rgba(48, 238, 121, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.30);
}

.admin-analytics-investor-readiness-hero{
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
}

.admin-analytics-investor-readiness-hero.is-strong{
  border-color: rgba(48, 238, 121, 0.32);
  background:
    radial-gradient(circle at top right, rgba(48, 238, 121, 0.18), transparent 44%),
    rgba(15, 23, 42, 0.82);
}

.admin-analytics-investor-readiness-hero.is-forming{
  border-color: rgba(250, 204, 21, 0.28);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.13), transparent 44%),
    rgba(15, 23, 42, 0.82);
}

.admin-analytics-investor-readiness-hero.is-quiet{
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 44%),
    rgba(15, 23, 42, 0.82);
}

.admin-analytics-investor-readiness-hero span,
.admin-analytics-investor-readiness-score span,
.admin-analytics-investor-readiness-card span{
  color: #30ee79;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-analytics-investor-readiness-hero strong{
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.15;
}

.admin-analytics-investor-readiness-hero p{
  margin: 6px 0 0;
  max-width: 560px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.admin-analytics-investor-readiness-score{
  flex: 0 0 auto;
  min-width: 112px;
  border: 1px solid rgba(48, 238, 121, 0.18);
  background: rgba(2, 6, 23, 0.42);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  place-items: center;
  text-align: center;
}

.admin-analytics-investor-readiness-score strong{
  margin-top: 4px;
  color: #bbf7d0;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 0 22px rgba(48, 238, 121, 0.22);
}

.admin-analytics-investor-readiness-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.admin-analytics-investor-readiness-card{
  min-height: 116px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.68);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-analytics-investor-readiness-card strong{
  color: #f8fafc;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.admin-analytics-investor-readiness-card p{
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
  line-height: 1.35;
}

.admin-analytics-investor-readiness-note{
  margin-top: 10px;
  border: 1px solid rgba(48, 238, 121, 0.14);
  background: rgba(22, 163, 74, 0.10);
  border-radius: 16px;
  padding: 12px;
}

.admin-analytics-investor-readiness-note strong{
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 4px;
}

.admin-analytics-investor-readiness-note p{
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 640px){
  .admin-analytics-investor-readiness-panel{
    padding: 12px;
    border-radius: 20px;
  }

  .admin-analytics-investor-readiness-hero{
    flex-direction: column;
  }

  .admin-analytics-investor-readiness-score{
    width: 90%;
    min-width: 0;
  }

  .admin-analytics-investor-readiness-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-analytics-investor-readiness-card{
    min-height: 126px;
    padding: 11px;
  }
}
/* =========================================================
   Admin Analytics — Investor Readiness Snapshot V1 (E N D)
   ========================================================= */   

/* === Album Eligibility Safety Net — START ===
   Text-only posts should never show the album strip. This also hides any stale
   sibling album strip that was created by the old frontend before refresh/back.
*/
.post-item-album-disabled .album-strip,
.post-item-album-disabled .album-section,
.post-item-album-disabled + .album-strip,
.post-item-album-disabled + .album-section {
  display: none !important;
}
/* === Album Eligibility Safety Net — END === */   

/* =========================================================
   Feed / post card polish — Text-only thoughts visual treatment (START)
   Text-only reflections should feel intentional without looking monetized.
   ========================================================= */
.post-item-text-thought .post-text-thought {
  margin: 10px 0 8px;
  padding: 12px 13px 13px;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-left: 4px solid rgba(34, 197, 94, 0.72);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.035), rgba(34, 197, 94, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.post-item-text-thought .post-thought-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 9px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.post-item-text-thought .post-text-thought-body {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .post-item-text-thought .post-text-thought {
    margin-top: 9px;
    padding: 11px 12px 12px;
    border-radius: 14px;
  }

  .post-item-text-thought .post-text-thought-body {
    font-size: 14.5px;
  }
}
/* =========================================================
   Feed / post card polish — Text-only thoughts visual treatment (END)
   ========================================================= */

   /* =========================================================
   iOS Comment Input Anti-Zoom V1 (START)
   - Prevents iPhone Safari from zooming the whole app when
     the comment input receives focus.
   - Keeps the new inline send button behavior untouched.
   ========================================================= */
.feed-comment-loop-input,
.group-comment-loop-input,
.post .feed-comment-loop-input {
    font-size: 16px !important;
    line-height: 1.35;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
/* =========================================================
   iOS Comment Input Anti-Zoom V1 (END)
   ========================================================= */

/* =========================================================
   Memorial Dates V1 — modal + plaque styling (START)
   - modern premium utility modal
   - respectful plaque under main media, above bouquets
   ========================================================= */
.moh-memorial-dates-open {
  overflow: hidden;
}

.moh-memorial-dates-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.moh-memorial-dates-modal.show {
  display: flex;
}

.moh-memorial-dates-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.16), transparent 38%),
    rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.moh-memorial-dates-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(440px, calc(100dvw - 36px));
  max-width: 100%;
  padding: 22px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94)),
    rgba(17, 24, 39, 0.96);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

.moh-memorial-dates-x {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.moh-memorial-dates-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: #86efac;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.moh-memorial-dates-dialog h2 {
  margin: 0;
  padding-right: 34px;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.moh-memorial-dates-dialog h2 span {
  color: #22c55e;
}

.moh-memorial-dates-copy {
  margin: 12px 0 12px;
  color: rgba(243, 244, 246, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.moh-memorial-dates-dialog,
.moh-memorial-dates-dialog * {
  box-sizing: border-box;
}

.moh-memorial-dates-format-hint {
  margin: 0 0 16px;
  color: rgba(243, 244, 246, 0.70);
  font-size: 12.5px;
  line-height: 1.45;
}

.moh-memorial-dates-format-hint span {
  color: #86efac;
  font-weight: 850;
}

.moh-memorial-dates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.moh-memorial-date-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.moh-memorial-date-field span {
  color: #86efac;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.moh-memorial-date-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.moh-memorial-date-field input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 0 8px 0 12px;
  border: 0;
  background: transparent;
  color: #f9fafb;
  font-size: 16px;
  color-scheme: dark;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.moh-memorial-date-field input::placeholder {
  color: rgba(249, 250, 251, 0.76);
  opacity: 1;
}

.moh-memorial-date-calendar-btn {
  flex: 0 0 42px;
  width: 42px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(249, 250, 251, 0.90);
  cursor: pointer;
}

.moh-memorial-date-calendar-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moh-memorial-date-field:focus-within .moh-memorial-date-input-wrap {
  border-color: rgba(34, 197, 94, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.moh-memorial-date-field:focus-within .moh-memorial-date-calendar-btn {
  color: #86efac;
}

.moh-memorial-dates-error {
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 15px;
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.moh-memorial-dates-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.moh-memorial-dates-later,
.moh-memorial-dates-save {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.moh-memorial-dates-later {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

.moh-memorial-dates-save {
  border: 1px solid rgba(34, 197, 94, 0.58);
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #052e16;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.28);
}

.post-memorial-dates-plaque {
  margin: 12px auto 11px;
  padding: 10px 12px 11px;
  width: min(92%, 430px);
  border: 1px solid rgba(120, 53, 15, 0.18);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(254, 252, 232, 0.94), rgba(245, 245, 220, 0.90)),
    #faf7e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 22px rgba(30, 20, 10, 0.08);
  text-align: center;
}

.post-memorial-dates-title {
  margin-bottom: 5px;
  color: #166534;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-memorial-dates-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-memorial-date-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #3f2f1f;
  font-size: 13px;
}

.post-memorial-date-item span {
  color: #166534;
  font-weight: 900;
}

.post-memorial-date-item strong {
  color: #1f2937;
  font-weight: 800;
}

.post-memorial-date-divider {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.55);
}

@media (max-width: 600px) {
  .moh-memorial-dates-dialog {
    padding: 20px 17px 17px;
    border-radius: 23px;
  }

  .moh-memorial-dates-dialog h2 {
    font-size: 22px;
  }

  .moh-memorial-dates-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .moh-memorial-dates-actions {
    flex-direction: column-reverse;
  }

  .moh-memorial-dates-later,
  .moh-memorial-dates-save {
    width: 100%;
  }

  .post-memorial-dates-plaque {
    width: 94%;
    padding: 9px 10px 10px;
  }

  .post-memorial-dates-row {
    gap: 7px;
  }

  .post-memorial-date-item {
    font-size: 12.5px;
  }
}
/* =========================================================
   Memorial Dates V1 — modal + plaque styling (END)
   ========================================================= */   

/* =========================================================
   Album/Main Media Viewer Zoom V1 (START)
   Makes main post photos openable and makes full-screen
   Album/main photos pinch-zoomable + double-tap zoomable.
   ========================================================= */

.media-container.main-media-viewable:not(.media-edit-unlocked),
.media-container.main-media-viewable:not(.media-edit-unlocked) > img {
  cursor: zoom-in !important;
}

.media-container.main-media-viewable.media-edit-unlocked,
.media-container.main-media-viewable.media-edit-unlocked > img {
  cursor: grab !important;
}

.mohe-lightbox-content {
  touch-action: none;
  overflow: hidden;
}

.mohe-lightbox-media {
  transform-origin: center center;
  transition: transform 0.16s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.mohe-lightbox-media.is-zoomed {
  cursor: grab;
  transition: transform 0.04s linear;
}

.mohe-lightbox-zoomed .mohe-lightbox-content {
  cursor: grab;
}

.mohe-lightbox-hint {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 12px;
  border: 1px solid rgba(46, 204, 113, 0.28);
  border-radius: 999px;
  background: rgba(7, 12, 10, 0.68);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mohe-lightbox-hint[hidden] {
  display: none !important;
}

.mohe-lightbox-zoomed .mohe-lightbox-hint {
  opacity: 0;
}

/* =========================================================
   Album/Main Media Viewer Zoom V1 (END)
   ========================================================= */   

/* =========================================================
   Album/Main Media Viewer Close Button iOS Tap Fix (START)

   What this does:
   - Keeps the lightbox X button above the zoomable media layer.
   - Gives iPhone/Safari a real 44x44 touch target.
   - Prevents the image pan/zoom surface from stealing the close tap.
   - Respects iPhone safe-area spacing near the notch/status bar.
   - Keeps the viewer consistent with My Own Heaven's premium dark utility style.
   ========================================================= */

.mohe-lightbox-close {
  position: fixed;
  top: max(14px, calc(env(safe-area-inset-top) + 10px));
  right: max(14px, calc(env(safe-area-inset-right) + 14px));
  z-index: 3015;

  width: 44px;
  height: 44px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 12, 10, 0.68);
  color: #ffffff;

  font-size: 34px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mohe-lightbox-close:active {
  transform: scale(0.96);
}

.mohe-lightbox-close:focus-visible {
  outline: 2px solid rgba(46, 204, 113, 0.9);
  outline-offset: 3px;
}

/* =========================================================
   Album/Main Media Viewer Close Button iOS Tap Fix (END)
   ========================================================= */   

/* =========================================================
   Stripe Bouquet Return Target Highlight V1
   - gently marks the exact memory receiving a paid bouquet
   ========================================================= */
.moh-stripe-bouquet-target {
  position: relative;
  animation: mohStripeBouquetTargetPulse 1.6s ease-in-out 0s 4;
}

.moh-stripe-bouquet-target::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(44, 216, 122, 0.7);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(44, 216, 122, 0.14), 0 18px 42px rgba(44, 216, 122, 0.18);
  pointer-events: none;
  z-index: 3;
}

@keyframes mohStripeBouquetTargetPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(44, 216, 122, 0);
  }
  50% {
    box-shadow: 0 0 28px rgba(44, 216, 122, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .moh-stripe-bouquet-target {
    animation: none;
  }
}
/* =========================================================
   Stripe Bouquet Return Target Highlight V1 (E N D)
   ========================================================= */   

/* =========================================================
   Paid Bouquet Receipt / Confirmation V1
   - premium confirmation after a paid bouquet is placed
   ========================================================= */
.paid-bouquet-receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 8, 6, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.paid-bouquet-receipt-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.paid-bouquet-receipt-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 26px 22px 22px;
  border-radius: 24px;
  border: 1px solid rgba(48, 214, 128, 0.28);
  background:
    radial-gradient(circle at top, rgba(48, 214, 128, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(8, 18, 14, 0.98), rgba(3, 10, 7, 0.98));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #f5fff8;
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.paid-bouquet-receipt-modal.show .paid-bouquet-receipt-panel {
  transform: translateY(0) scale(1);
}

.paid-bouquet-receipt-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 255, 248, 0.86);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.paid-bouquet-receipt-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(48, 214, 128, 0.16);
  border: 1px solid rgba(48, 214, 128, 0.5);
  color: #30d680;
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 0 34px rgba(48, 214, 128, 0.18);
}

.paid-bouquet-receipt-kicker {
  margin: 0 0 7px;
  color: #30d680;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paid-bouquet-receipt-panel h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.2;
}

.paid-bouquet-receipt-panel h3 span {
  color: #30d680;
}

.paid-bouquet-receipt-copy {
  margin: 12px auto 18px;
  max-width: 340px;
  color: rgba(245, 255, 248, 0.78);
  font-size: 0.94rem;
  line-height: 1.45;
}

.paid-bouquet-receipt-details {
  display: grid;
  gap: 9px;
  margin: 16px 0;
  text-align: left;
}

.paid-bouquet-receipt-details div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.paid-bouquet-receipt-details span {
  color: rgba(245, 255, 248, 0.62);
  font-size: 0.82rem;
}

.paid-bouquet-receipt-details strong {
  color: #ffffff;
  font-size: 0.86rem;
  text-align: right;
}

.paid-bouquet-receipt-safety {
  margin: 14px 0 18px;
  color: rgba(245, 255, 248, 0.68);
  font-size: 0.8rem;
  line-height: 1.35;
}

.paid-bouquet-receipt-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.paid-bouquet-receipt-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.paid-bouquet-receipt-button.primary {
  border: 1px solid rgba(48, 214, 128, 0.65);
  background: #30d680;
  color: #06100b;
}

.paid-bouquet-receipt-button.secondary {
  border: 1px solid rgba(48, 214, 128, 0.35);
  background: rgba(48, 214, 128, 0.08);
  color: #dfffee;
}

@media (max-width: 420px) {
  .paid-bouquet-receipt-modal {
    padding: 16px;
  }

  .paid-bouquet-receipt-panel {
    padding: 24px 18px 20px;
  }

  .paid-bouquet-receipt-actions {
    flex-direction: column;
  }

  .paid-bouquet-receipt-button {
    width: 100%;
  }
}
/* =========================================================
   Paid Bouquet Receipt / Confirmation V1 (END)
   ========================================================= */   

   /* =========================================================
   Groups Invite Picker Button Size V1-B.2
   - hard override: keep per-group Invite buttons compact
   - preserves premium green style, fixes too-wide mobile layout
   ========================================================= */
.groups-activation-invite-picker .groups-activation-invite-picker__item{
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.groups-activation-invite-picker .groups-activation-invite-picker__item > button.groups-activation-invite-picker__button{
  width: auto !important;
  min-width: 78px !important;
  max-width: max-content !important;
  justify-self: end !important;
  grid-column: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  text-align: center !important;
}

/* Keep very narrow phones safe without making the button full-width */
@media (max-width: 380px){
  .groups-activation-invite-picker .groups-activation-invite-picker__item{
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .groups-activation-invite-picker .groups-activation-invite-picker__item > button.groups-activation-invite-picker__button{
    min-width: 72px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
/* =========================================================
   Groups Invite Picker Button Size V1-B.2 (E N D)
   ========================================================= */

   /* =========================================================
   Notification Return Loop Polish V1
   - smarter context label after notification click-through
   - keeps return banner visible during exact-post landing
   - does not change notification drawer backend behavior
   ========================================================= */
.notification-return-context-banner{
  position: sticky !important;
  top: calc(var(--header-h, 90px) + 10px) !important;
  align-items: start;
}

.group-feed-shell .notification-return-context-banner{
  top: 10px !important;
}

.notification-return-context-eyebrow{
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(134,239,172,0.22);
  color: rgba(187,247,208,0.94);
  background: rgba(34,197,94,0.10);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.notification-return-context-banner[data-notification-tone="comment"] .notification-return-context-icon,
.notification-return-context-banner[data-notification-tone="group"] .notification-return-context-icon{
  background: rgba(34,197,94,0.18);
  border-color: rgba(134,239,172,0.38);
}

.notification-return-context-banner[data-notification-tone="like"] .notification-return-context-icon{
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.18);
}

.notification-return-context-banner[data-notification-tone="bouquet"] .notification-return-context-icon{
  background: rgba(22,163,74,0.20);
  border-color: rgba(187,247,208,0.42);
}

.notification-return-context-copy strong{
  font-size: 14.5px;
}

.notification-return-context-copy p{
  max-width: 560px;
}

@media (max-width:640px){
  .notification-return-context-banner{
    top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
  }

  .group-feed-shell .notification-return-context-banner{
    top: 10px !important;
  }

  .notification-return-context-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .notification-return-context-btn{
    width: 100%;
    justify-content: center;
  }
}
/* =========================================================
   Notification Return Loop Polish V1 (E N D)
   ========================================================= */

   /* =========================================================
   Notification Return Loop Polish V1-B
   - make return banner visible immediately after notification landing
   - fixes banner being hidden at top of Group Feed / Home Feed
   ========================================================= */
.notification-return-context-banner{
  position: fixed !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: 18px !important;
  width: min(640px, calc(100vw - 28px)) !important;
  max-height: min(42vh, 260px);
  overflow: auto;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  z-index: 2600 !important;
  box-sizing: border-box;
}

.group-feed-shell .notification-return-context-banner{
  position: fixed !important;
  top: auto !important;
  bottom: 18px !important;
}

@media (max-width: 640px){
  .notification-return-context-banner,
  .group-feed-shell .notification-return-context-banner{
    bottom: calc(env(safe-area-inset-bottom, 0px) + 58px) !important;
    width: calc(100vw - 22px) !important;
    max-height: min(48vh, 300px);
  }
}
/* =========================================================
   Notification Return Loop Polish V1-B (E N D)
   ========================================================= */

/* =========================================================
   Friends Directory V1-A
   - premium Friends layer opened from the main menu
   - lists only the user's friends/following
   ========================================================= */
.friends-home-overlay {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
  box-sizing: border-box;
}

.friends-home-overlay.show {
  display: flex;
}

.friends-home-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.22), transparent 34%),
    rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.friends-home-sheet {
  position: relative;
  z-index: 1;
  width: min(94vw, 520px);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.friends-home-grabber {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  margin: 10px auto 4px;
}

.friends-home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 12px;
}

.friends-home-eyebrow {
  margin: 0 0 3px;
  color: rgba(74, 222, 128, 0.94);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.friends-home-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.friends-home-count {
  display: inline-flex;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.82rem;
  font-weight: 650;
}

.friends-home-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.78);
  color: rgba(248, 250, 252, 0.92);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.friends-home-search-wrap {
  position: relative;
  padding: 0 18px 10px;
}

.friends-home-search {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  padding: 0 44px 0 14px;
  font-size: 16px;
  outline: none;
}

.friends-home-search::placeholder {
  color: rgba(203, 213, 225, 0.58);
}

.friends-home-search:focus {
  border-color: rgba(74, 222, 128, 0.62);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.friends-home-search-clear {
  position: absolute;
  right: 28px;
  top: 6px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(15, 23, 42, 0.92);
  color: rgba(248, 250, 252, 0.88);
  font-size: 19px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.friends-home-search-clear:hover,
.friends-home-search-clear:focus-visible {
  background: rgba(34, 197, 94, 0.20);
  color: #ffffff;
  outline: none;
  border-color: rgba(74, 222, 128, 0.48);
}

.friends-home-search-clear[hidden] {
  display: none !important;
}

.friends-home-hint {
  min-height: 18px;
  padding: 0 18px 10px;
  color: rgba(226, 232, 240, 0.70);
  font-size: 0.82rem;
  line-height: 1.35;
}

.friends-home-list {
  overflow-y: auto;
  padding: 0 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.friends-home-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.72));
  color: #f8fafc;
  text-align: left;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.friends-home-card:hover,
.friends-home-card:focus-visible {
  border-color: rgba(74, 222, 128, 0.42);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.82));
  outline: none;
}

.friends-home-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.30), transparent 32%),
    linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(21, 128, 61, 0.88));
  color: #052e16;
  font-weight: 900;
  border: 1px solid rgba(187, 247, 208, 0.36);
}

.friends-home-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friends-home-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.friends-home-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
}

.friends-home-main span,
.friends-home-meta {
  color: rgba(203, 213, 225, 0.70);
  font-size: 0.78rem;
  font-weight: 650;
}

.friends-home-meta {
  white-space: nowrap;
}

.friends-home-empty,
.friends-home-loading {
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  background: rgba(15, 23, 42, 0.64);
  color: rgba(226, 232, 240, 0.82);
}

.friends-home-empty strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
}

.friends-home-empty p {
  margin: 0;
  line-height: 1.45;
}

.friends-home-empty-action {
  margin-top: 12px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.92);
  color: #052e16;
  font-weight: 850;
}

@media (max-width: 640px) {
  .friends-home-overlay {
    align-items: flex-end;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  }

  .friends-home-sheet {
    width: 100%;
    height: calc(var(--friends-visual-height, 100svh) - 34px);
    min-height: min(620px, calc(var(--friends-visual-height, 100svh) - 34px));
    max-height: calc(var(--friends-visual-height, 100svh) - 34px);
    border-radius: 26px 26px 22px 22px;
  }

  .friends-home-list {
    flex: 1 1 auto;
    min-height: 320px;
  }

  .friends-home-overlay.friends-keyboard-open {
    align-items: flex-start;
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
    padding-bottom: 8px;
  }

  .friends-home-overlay.friends-keyboard-open .friends-home-sheet {
    height: calc(var(--friends-visual-height, 100vh) - 26px);
    min-height: min(420px, calc(var(--friends-visual-height, 100vh) - 26px));
    max-height: calc(var(--friends-visual-height, 100vh) - 26px);
  }

  .friends-home-overlay.friends-keyboard-open .friends-home-list {
    min-height: 180px;
  }

  .friends-home-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .friends-home-meta {
    grid-column: 2;
    justify-self: start;
  }
}
/* =========================================================
   Friends Directory V1-A (E N D)
   ========================================================= */   