/* ===== Header & Footer: light mode - cream background to match page ===== */
body.page-letitout header {
    background-color: var(--letitout-background) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    min-height: 70px !important;
}
body.page-letitout .nav-links a,
body.page-letitout .nav-links a.nav-dropdown-trigger {
    color: #222 !important;
}
body.page-letitout .nav-links a:hover,
body.page-letitout .nav-links a.active {
    color: #f10000 !important;
}
body.page-letitout .logo-brand-combo,
body.page-letitout .nav-logo,
body.page-letitout .center-logo {
    color: #f10000 !important;
}
body.page-letitout .logo-brand-combo:hover .nav-logo,
body.page-letitout .logo-brand-combo:hover .center-logo {
    color: #cc0000 !important;
}
body.page-letitout .nav-hamburger,
body.page-letitout button.hamburger.nav-hamburger {
    color: #222 !important;
}
body.page-letitout .nav-hamburger svg,
body.page-letitout button.hamburger.nav-hamburger svg {
    fill: currentColor;
}
body.page-letitout .nav-hamburger svg rect,
body.page-letitout button.hamburger.nav-hamburger svg rect {
    fill: #222 !important;
}
body.page-letitout .nav-cta-button {
    background: #f10000 !important;
    color: #fffcf1 !important;
}
body.page-letitout .nav-cta-button:hover,
body.page-letitout .nav-cta-button:focus {
    background: #d40000 !important;
    color: #fffcf1 !important;
}
/* Mobile menu overlay - light */
body.page-letitout .menu-overlay nav {
    background: var(--letitout-background) !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}
body.page-letitout .menu-overlay .menu-nav-title {
    color: #222 !important;
}
body.page-letitout .menu-overlay .menu-nav-subtitle {
    color: #666 !important;
}
body.page-letitout .menu-overlay .menu-nav-link:hover .menu-nav-title,
body.page-letitout .menu-overlay .menu-nav-link:focus .menu-nav-title,
body.page-letitout .menu-overlay .menu-nav-link.active .menu-nav-title {
    color: #f10000 !important;
}
body.page-letitout .menu-overlay .menu-nav-link:hover .menu-nav-subtitle,
body.page-letitout .menu-overlay .menu-nav-link:focus .menu-nav-subtitle,
body.page-letitout .menu-overlay .menu-nav-link.active .menu-nav-subtitle {
    color: #f10000 !important;
}
body.page-letitout .menu-overlay .close-btn,
body.page-letitout .menu-overlay .close-btn.hamburger {
    color: #222 !important;
}
body.page-letitout .menu-overlay .close-btn svg,
body.page-letitout .menu-overlay .close-btn.hamburger svg {
    fill: currentColor;
}
body.page-letitout .menu-overlay .close-btn svg rect,
body.page-letitout .menu-overlay .close-btn.hamburger svg rect {
    fill: #222 !important;
}
/* Footer — Let It Out: light cream bar in default theme; global .pr-footer-std is dark for other pages */
body.page-letitout:not(.dark-mode) footer.pr-footer-std {
    background: var(--letitout-background);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.page-letitout:not(.dark-mode) footer.pr-footer-std p {
    color: rgba(0, 0, 0, 0.42);
}
body.page-letitout:not(.dark-mode) footer.pr-footer-std a {
    color: rgba(0, 0, 0, 0.55);
}
body.page-letitout:not(.dark-mode) footer.pr-footer-std a:hover,
body.page-letitout:not(.dark-mode) footer.pr-footer-std a:focus {
    color: #f10000;
}
body.page-letitout:not(.dark-mode) footer.pr-footer-std .pr-footer-dot {
    opacity: 0.35;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}
@media (min-width: 900px) {
    header .container {
        padding: 0 2.5rem;
    }
}
.nav-centered {
    min-height: 70px;
}

/* Let It Out Main Styles */
#letitout-main {
    padding: var(--letitout-spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 900px) {
    #letitout-main {
        padding: var(--letitout-spacing-lg) 1rem;
    }
}

/* Mobile: pin footer to viewport bottom when content is short (match /home + other pages) */
@media (max-width: 900px) {
    body.page-letitout {
        min-height: 100dvh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
    }
    body.page-letitout > header {
        flex-shrink: 0;
    }
    body.page-letitout > main#letitout-main {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        box-sizing: border-box;
    }
    body.page-letitout > footer.pr-footer-std {
        flex-shrink: 0;
        margin-top: auto;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    }
}

/* Post Form Styles */
.letitout-form {
    position: relative;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px);
    margin: 0 auto;
}

/* Extra top padding when MVP prompt is shown for better spacing */
.letitout-form:has(.letitout-mvp-prompt) {
    padding-top: 2rem;
}

.letitout-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* MVP: Static prompt title when prompts are hidden */
.letitout-mvp-prompt {
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.letitout-mvp-title {
    font-size: 1.52rem;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    white-space: nowrap;
    letter-spacing: -0.02em;
    max-width: 100%;
    box-sizing: border-box;
}

.letitout-mvp-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .letitout-mvp-prompt {
        margin-top: 0.25rem;
        margin-bottom: 1rem;
        padding: 0 0.25rem;
        gap: 0.35rem;
    }
    .letitout-mvp-title {
        font-size: clamp(0.98rem, 3.9vw + 0.35rem, 1.38rem);
        letter-spacing: -0.028em;
    }
    .letitout-mvp-subtitle {
        font-size: 0.8rem;
    }
}

.letitout-form-content .textarea-wrapper {
    margin-bottom: 0.5rem;
}

.emotion-btn-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0;
    align-items: flex-start;
    flex-wrap: wrap;
}

.letitout-form .letitout-emotion-btn,
.letitout-form .letitout-situation-btn,
.letitout-form .letitout-city-btn {
    flex-grow: 0 !important;
    width: auto !important;
    min-width: fit-content !important;
    display: inline-flex !important;
}

.letitout-emotion-btn:hover,
.letitout-situation-btn:hover,
.letitout-city-btn:hover {
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0.9rem 1rem !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: background-color 0.2s, border-color 0.2s !important;
    text-align: center !important;
    -webkit-appearance: none;
    appearance: none;
}

.letitout-emotion-btn:hover,
.letitout-situation-btn:hover,
.letitout-city-btn:hover {
    background-color: #e9e9e9;
    border-color: #dcdcdc;
}

.dark-mode .letitout-emotion-btn,
.dark-mode .letitout-situation-btn,
.dark-mode .letitout-city-btn {
    background-color: #3a3a3a !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

.letitout-form .letitout-selected-tags:not(:empty),
.letitout-form .letitout-selected-situation:not(:empty),
.letitout-form .letitout-selected-city:not(:empty) {
    margin-top: 0.4rem;
}

.letitout-form .letitout-selected-meta {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.6rem;
    margin-top: 0.1rem;
}

.letitout-form .letitout-selected-tags:empty,
.letitout-form .letitout-selected-situation:empty,
.letitout-form .letitout-selected-city:empty {
    display: none;
}

.textarea-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0; /* REMOVED - Reverting to original spacing */
}

.letitout-form textarea {
    width: 100%;
    min-height: 8.5rem;
    height: 8.5rem;
    padding: 1rem;
    border: 1px solid var(--letitout-border);
    border-radius: var(--letitout-radius-md);
    font-family: var(--letitout-font-family);
    font-size: 16px; /* Increased from 1rem to prevent zoom */
    line-height: 1.55;
    resize: none; /* Changed from vertical to none */
    box-sizing: border-box;
    background-color: var(--letitout-input-bg);
    color: var(--letitout-text);
}

.letitout-form textarea:focus {
    outline: none;
    border-color: #aaa;
    box-shadow: none;
}

.letitout-form textarea::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.char-counter {
    margin-top: -1.2rem; /* Pulls counter up (reply / other UIs) */
    text-align: right;
    font-size: 0.8rem;
    color: var(--letitout-text-secondary);
    width: 100%;
    padding: 0 0.25rem;
    box-sizing: border-box;
}

/* Emotion Tags */
.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--letitout-spacing-sm);
    margin-bottom: var(--letitout-spacing-md);
}

.emotion-tag,
.situation-tag,
.city-tag {
    background: var(--letitout-pill-tag-bg, #e8e8e8);
    color: var(--letitout-pill-tag-text, #141414);
    border: 1px solid var(--letitout-pill-tag-border, #cfcfcf);
    padding: 4px 10px; /* Base size for mobile */
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; /* Base size for mobile */
    display: flex;
    align-items: center;
    gap: 5px; /* Base gap for mobile */
    margin: 0;
    box-shadow: none;
    font-weight: 500;
}

.emotion-tag .remove-tag,
.situation-tag .remove-tag,
.city-tag .remove-tag {
    color: var(--letitout-pill-tag-remove, #5a5a5a) !important;
    cursor: pointer;
    font-size: 15px; /* Base size for mobile */
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.emotion-tag .remove-tag:hover,
.situation-tag .remove-tag:hover,
.city-tag .remove-tag:hover {
    opacity: 1;
}

.letitout-form .letitout-emotion-error,
.letitout-form .letitout-situation-error {
    color: #c40000;
    font-size: 0.88rem;
    margin: 0.15rem 0 0;
    padding: 0 0.15rem;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.35;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Apply larger tag styles for desktop */
@media (min-width: 768px) {
  .emotion-tag,
  .situation-tag,
  .city-tag {
    padding: 6px 12px !important; /* Larger padding for desktop */
    font-size: 14px !important; /* Larger font for desktop */
  }

  .emotion-tag .remove-tag,
  .situation-tag .remove-tag,
  .city-tag .remove-tag {
    font-size: 16px !important; /* Larger remove icon for desktop */
  }

  /* Make post card emotion + situation tags same size on desktop */
  .post-card .emotion-tag,
  .post-card .situation-tag,
  .my-post-card .emotion-tag,
  .my-post-card .situation-tag,
  .original-post-card .emotion-tag,
  .original-post-card .situation-tag {
    font-size: 12px !important;
    padding: 4px 10px !important;
  }
}

/* Emotion Section */
.emotion-section {
    font-size: 0.78em;
    font-weight: 500;
    margin-bottom: 0.4em;
    cursor: default;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.emotion-tag.selected {
    background: var(--letitout-pill-tag-selected-bg, #d2d2d2);
    color: var(--letitout-pill-tag-text, #141414);
    border-color: var(--letitout-pill-tag-selected-border, #9a9a9a);
}
.emotion-tag.emotion-tag-small {
    font-size: 0.92em;
    padding: 0.13em 0.9em;
    border-radius: 999px; /* Changed for pill shape */
    background: var(--letitout-pill-tag-bg, #e8e8e8);
    border: 1px solid var(--letitout-pill-tag-border, #cfcfcf);
    color: var(--letitout-pill-tag-text, #141414);
    font-weight: 500;
    margin-right: 0.3em;
    margin-bottom: 0.3em;
    cursor: default;
}

/* Submit Button */
.letitout-submit {
    background: var(--letitout-primary);
    color: white;
    border: none;
    padding: var(--letitout-spacing-sm) var(--letitout-spacing-lg);
    border-radius: var(--letitout-radius-md);
    font-family: var(--letitout-font-family);
    font-weight: 600;
    cursor: pointer;
    transition: var(--letitout-transition-fast);
}

.letitout-submit:hover {
    background: var(--letitout-secondary);
}

/* Wall Feed */
.wall-feed {
    display: grid;
    gap: 0.1rem;
}

/* Single-Card View */
.wall-feed.wall-feed-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
}

.wall-single-card-wrapper {
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px);
    margin: 0 auto;
}

.wall-single-card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.wall-feed-single .post-card-single {
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px);
    display: flex;
    flex-direction: column;
}

/* Single-card: height follows content (same mental model as wall feed) */
.wall-feed-single .post-card-single .post-content-area {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.8rem;
    min-height: 0;
}

.wall-feed-single .post-card-single .post-content-area .post-emotion-tags {
    margin-bottom: 1rem;
}

.wall-feed-single .post-card-single .post-content-area .post-content {
    line-height: 1.6;
}

.wall-feed-single .post-card-single .post-content-area .post-card-footer-stack {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 0.75rem;
    gap: 0.5rem;
}

.wall-feed-single .post-card-single .post-content-area .post-city-line {
    margin-top: 0;
    margin-bottom: 0;
}

.wall-feed-single .post-card-single .post-content-area .post-meta {
    margin-top: 0;
    padding-top: 0;
}

/* Nav row: buttons at bottom of card */
.wall-single-card-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px);
    margin: 0 auto;
}

.wall-single-nav-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    font-size: 1rem;
}

.wall-single-nav-btn:hover:not(:disabled) {
    color: #f10000;
    background: rgba(241, 0, 0, 0.06);
}

.wall-single-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wall-single-card-progress {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

@media (max-width: 600px) {
    .wall-single-nav-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 0.95rem;
    }
}

/* Post Card */
.post-card {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
    max-width: var(--letitout-content-max-width, 600px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    border: 1px solid #f2f2f2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
}

/* Remove hover/focus effect for wall feed post cards */
.post-card:hover,
.post-card:focus {
  box-shadow: none !important;
  transform: none !important;
  background: #fff !important;
  border: 1px solid #f2f2f2 !important;
}

.post-content-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 140px;
    padding: 1.1rem 1.8rem;
    flex: 1 1 auto;
}

.post-emotion-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}
/* Reset margins so gap controls all spacing between pills */
.post-emotion-tags .situation-tag,
.post-emotion-tags .emotion-tag,
.letitout-my-posts-modal .post-emotion-tags .situation-tag,
.letitout-my-posts-modal .post-emotion-tags .emotion-tag {
    margin: 0 !important;
}

.emotion-tag.emotion-tag-small {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px; /* Changed for pill shape */
    background: var(--letitout-pill-tag-bg, #e8e8e8);
    border: 1px solid var(--letitout-pill-tag-border, #cfcfcf);
    color: var(--letitout-pill-tag-text, #141414);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    box-shadow: none;
}

.post-meta {
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--letitout-text-light);
    font-size: var(--letitout-font-size-sm);
}

/* Story meta + CTAs stay grouped (especially single-card wall view) */
.post-card-footer-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.post-card-footer-stack .post-meta {
    margin-top: 0;
}

.post-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: var(--letitout-spacing-sm);
    margin-bottom: 0.2rem;
}

.post-action {
    background: none;
    border: none;
    color: var(--letitout-text-light);
    cursor: pointer;
    transition: var(--letitout-transition-fast);
}

.post-action:hover {
    color: var(--letitout-primary);
}

/* Loading States */
.loading {
    text-align: center;
    padding: var(--letitout-spacing-xl);
    color: var(--letitout-text-light);
}

/* Error States */
.error-message {
    background: #fee;
    color: #c00;
    padding: var(--letitout-spacing-sm);
    border-radius: var(--letitout-radius-sm);
    margin-bottom: var(--letitout-spacing-md);
}

.letitout-subtitle-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 0.3rem;
}
.letitout-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem; /* Reduced from 1.35rem for testing */
    font-weight: 700;
    color: #222;
    text-align: center;
    flex-grow: 1;
    min-height: 3em; /* Adjusted height for consistency */
    display: flex;
    align-items: center; /* This is the key property for vertical alignment */
    justify-content: center;
    line-height: 1.4; /* Ensure consistent line spacing */
}
.letitout-shuffle-btn {
    background: none;
    border: none;
    color: #f10000;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    transition: color 0.2s;
}
.letitout-shuffle-btn:hover {
    color: #7a0010;
    text-decoration: underline;
}
.shuffle-icon {
    font-size: 1.1em;
}
.letitout-prompt-display {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    color: #666;
    font-style: italic;
    margin-top: 0.2rem;
    text-align: center;
    max-width: 90vw;
    line-height: 1.5;
}
.letitout-reset-btn {
    background: none;
    border: none;
    color: #888;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    transition: color 0.2s;
}
.letitout-reset-btn:hover {
    color: #f10000;
    text-decoration: underline;
}

/* Emotion Section — write form: tight vertical rhythm, full-width chip row */
.letitout-form .emotion-section {
    font-size: 1rem; /* don’t inherit 0.78em from older .emotion-section */
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    gap: 0.35rem;
    cursor: default;
}

.letitout-form .emotion-btn-row {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Mobile: keep three tag pills on one row (overrides global flex rules on .letitout-form buttons) */
@media (max-width: 600px) {
    .letitout-form .emotion-btn-row {
        flex-wrap: nowrap !important;
        gap: 0.3rem;
        justify-content: space-between;
    }

    .letitout-form .emotion-btn-row .letitout-emotion-btn,
    .letitout-form .emotion-btn-row .letitout-situation-btn,
    .letitout-form .emotion-btn-row .letitout-city-btn {
        flex: 1 1 0 !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none;
    }

    .letitout-form .emotion-btn-row .letitout-emotion-btn svg,
    .letitout-form .emotion-btn-row .letitout-situation-btn svg,
    .letitout-form .emotion-btn-row .letitout-city-btn svg {
        display: none;
    }

    /* Light theme: desktop-matching hover; layout locked (no text jump) */
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-emotion-btn,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-situation-btn,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-city-btn {
        display: inline-flex !important;
        align-items: center !important;
        align-content: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        padding: 0.5rem 0.2rem !important;
        font-weight: 500 !important;
        text-align: center;
        white-space: normal;
        color: #000 !important;
        background: #fff !important;
        border: 1.5px solid #e0e0e0 !important;
        border-radius: 6px !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-emotion-btn:hover,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-emotion-btn:focus,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-situation-btn:hover,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-situation-btn:focus,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-city-btn:hover,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-city-btn:focus {
        display: inline-flex !important;
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        padding: 0.5rem 0.2rem !important;
        flex: 1 1 0 !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
        color: #000 !important;
        background: #ffe6ea !important;
        border: 1.5px solid #e0e0e0 !important;
    }

    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-emotion-btn:active,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-situation-btn:active,
    body:not(.dark-mode) .letitout-form .emotion-btn-row .letitout-city-btn:active {
        display: inline-flex !important;
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        padding: 0.5rem 0.2rem !important;
        flex: 1 1 0 !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
        color: #000 !important;
        background: #fff !important;
        border: 1.5px solid #e0e0e0 !important;
    }
}

.emotion-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.emotion-btn-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.letitout-emotion-btn {
    background: #fff;
    color: #000;
    border: 1.5px solid #e0e0e0;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    width: auto;
    min-width: fit-content;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.letitout-form .letitout-emotion-btn .letitout-required-asterisk,
.letitout-form .letitout-situation-btn .letitout-required-asterisk {
    color: var(--letitout-primary, #f10000);
    font-weight: 700;
    margin-left: 0.06em;
    font-size: 1.08em;
    line-height: 1;
}

.letitout-emotion-btn:hover,
.letitout-emotion-btn:focus {
    background: #ffe6ea;
    color: #000;
    border-color: #e0e0e0;
    outline: none;
}

.letitout-emotion-btn:active {
    background: #fff;
    color: #000;
    border-color: #e0e0e0;
}

.letitout-form .letitout-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.letitout-form .letitout-selected-tags .emotion-tag,
.letitout-form .letitout-selected-tags .city-tag,
.letitout-form .letitout-selected-situation .situation-tag,
.letitout-form .letitout-selected-city .city-tag {
    background: var(--letitout-pill-tag-bg, #e8e8e8);
    color: var(--letitout-pill-tag-text, #141414);
    border: 1px solid var(--letitout-pill-tag-border, #cfcfcf);
    padding: 4px 10px; /* Base size for mobile */
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; /* Base size for mobile */
    display: flex;
    align-items: center;
    gap: 5px; /* Base gap for mobile */
    margin: 0;
    box-shadow: none;
    font-weight: 500;
}

/* Apply larger tag styles for desktop */
@media (min-width: 768px) {
  .emotion-tag,
  .situation-tag,
  .city-tag {
    padding: 6px 12px !important; /* Larger padding for desktop */
    font-size: 14px !important; /* Larger font for desktop */
  }

  .emotion-tag .remove-tag,
  .situation-tag .remove-tag,
  .city-tag .remove-tag {
    font-size: 16px !important; /* Larger remove icon for desktop */
  }
}

/* Emotion Modal */
.letitout-emotion-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.letitout-emotion-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.letitout-emotion-modal {
    background: white;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.letitout-emotion-modal-overlay.visible .letitout-emotion-modal {
    transform: translateY(0);
}

.letitout-emotion-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.letitout-emotion-modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700 !important;
    color: #333;
    line-height: 1.25;
    padding-right: 0.5rem;
}

.wall-filter-modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wall-filter-modal-hint {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    font-weight: 400;
}

.letitout-emotion-modal-close {
    background: none !important;
    border: none !important;
    font-size: 1.6rem !important;
    color: #888 !important;
    border-radius: 50% !important;
    width: 2.2rem !important;
    height: 2.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    margin-left: 0.5rem !important;
    outline: none !important;
}

.letitout-emotion-modal-close:hover,
.letitout-emotion-modal-close:focus {
    background: #f5f5f5 !important;
    color: #f10000 !important;
    outline: none !important;
}

.letitout-emotion-modal-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 60vh;
    min-height: 300px;
}

.emotion-category {
    margin-bottom: 24px;
}

.emotion-category:last-child {
    margin-bottom: 0;
}

.emotion-category-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.emotion-subtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Single grid of feeling pills (Select Feelings / wall filter) — no section labels */
.emotion-subtags.emotion-subtags--flat {
    gap: 8px 10px;
}

.emotion-categories-container--flat {
    margin: 0;
}

.emotion-subtag {
    background: #F8F8F8;
    border: 1px solid #eee;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emotion-subtag:hover {
    background: var(--letitout-pill-tag-selected-bg, #d2d2d2);
    border-color: var(--letitout-pill-tag-selected-border, #9a9a9a);
}

.emotion-subtag.selected {
    background: var(--letitout-pill-tag-selected-bg, #d2d2d2);
    color: var(--letitout-pill-tag-text, #141414);
    border-color: var(--letitout-pill-tag-selected-border, #9a9a9a);
}

.emotion-subtag-count {
    opacity: 0.85;
    font-size: 0.9em;
    font-weight: 400;
}
.emotion-subtag.selected .emotion-subtag-count {
    opacity: 0.95;
}

.letitout-emotion-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-left: 20px;
    padding-right: 20px;
}

.letitout-emotion-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.letitout-emotion-modal-btn.cancel {
    background: #F8F8F8;
    color: #666;
    border: 1px solid #eee;
    margin-right: 0.5rem;
}
.letitout-emotion-modal-btn.cancel:hover {
    background: #eee;
}
.letitout-emotion-modal-btn.done {
    background: #f10000;
    color: white;
    border: none;
    margin-right: 0;
}
.letitout-emotion-modal-btn.done:hover {
    background: #7a0010;
}
.letitout-emotion-modal-btn.done:disabled {
    background: #FFB3B3;
    cursor: not-allowed;
}
.letitout-emotion-modal-btn.clear {
    background: #fff;
    border: 1.5px solid #f5f5f5;
    color: #222;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    margin-left: 0;
    margin-right: 0;
    box-shadow: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.letitout-emotion-modal-btn.clear:hover,
.letitout-emotion-modal-btn.clear:focus {
    background: #f5f5f5;
    border-color: #f5f5f5;
    color: #222;
    outline: none;
}

@media (min-width: 768px) {
    .letitout-emotion-modal {
        border-radius: 20px;
        max-height: 90vh;
    }
    
    .letitout-emotion-modal-overlay {
        align-items: center;
    }
    
    .letitout-emotion-modal {
        transform: translateY(20px);
    }
    
    .letitout-emotion-modal-overlay.visible .letitout-emotion-modal {
        transform: translateY(0);
    }
    
    .letitout-submit-btn {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Main CTA Button */
.letitout-cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0;
}
@media (max-width: 480px) {
    .letitout-cta-container {
        margin-top: 0.65rem;
        margin-bottom: 1.35rem;
    }
}

.letitout-submit-btn {
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px);
    background-color: #f10000;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(193, 0, 22, 0.2);
    display: block;
    margin: 0 auto;
}

.letitout-submit-btn:hover {
    background-color: #7a0010;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(193, 0, 22, 0.3);
}

.letitout-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(193, 0, 22, 0.2);
}

.letitout-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

@media (min-width: 768px) {
    .letitout-submit-btn {
        max-width: var(--letitout-content-max-width, 600px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Add spacing below the CTA button for the info text */
.letitout-info-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    color: #555;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 480px) {
    .letitout-info-text {
        font-size: 0.85rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

/* Pattern Analysis funnel - below info text, matches tone */
.letitout-quiz-funnel {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.letitout-quiz-funnel-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.45;
}

.letitout-quiz-funnel-cta {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f10000;
    text-decoration: none;
    transition: color 0.2s;
}

.letitout-quiz-funnel-cta:hover {
    color: #cc0000;
}

@media (max-width: 480px) {
    .letitout-quiz-funnel {
        margin-top: 1.25rem;
        gap: 0.5rem;
    }
    .letitout-quiz-funnel-text {
        font-size: 1rem;
    }
    .letitout-quiz-funnel-cta {
        font-size: 1.05rem;
    }
    .support-link-btn {
        font-size: 0.78rem;
    }

    .letitout-cta-footer-note {
        font-size: 0.78rem;
    }
}

/* Form: tag chips under pills (no extra gap when empty — :empty hidden above) */
.letitout-form .letitout-selected-tags,
.letitout-form .letitout-selected-situation,
.letitout-form .letitout-selected-city {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.letitout-form .letitout-selected-meta .letitout-selected-situation,
.letitout-form .letitout-selected-meta .letitout-selected-city {
    margin-top: 0;
}

/* Tag Situation Button - match Tag feeling & City */
.letitout-situation-btn {
    background: #fff;
    color: #000;
    border: 1.5px solid #e0e0e0;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    width: auto;
    min-width: fit-content;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.letitout-situation-btn:hover,
.letitout-situation-btn:focus {
    background: #ffe6ea;
    color: #000;
    border-color: #e0e0e0;
    outline: none;
}
.letitout-situation-btn:active {
    background: #fff;
    color: #000;
    border-color: #e0e0e0;
}

/* Tag City Button - match Add Emotion */
.letitout-city-btn {
    background: #fff;
    color: #000;
    border: 1.5px solid #e0e0e0;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    width: auto;
    min-width: fit-content;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.letitout-city-btn:hover,
.letitout-city-btn:focus {
    background: #ffe6ea;
    color: #000;
    border-color: #e0e0e0;
    outline: none;
}

.letitout-city-btn:active {
    background: #fff;
    color: #000;
    border-color: #e0e0e0;
}

/* City Modal - polish for modern look */
.letitout-city-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.letitout-city-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.letitout-city-modal {
    background: white;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 12px 0 0 0; /* Reduce top padding, remove side padding */
}
.letitout-city-modal-overlay.visible .letitout-city-modal {
    transform: translateY(0);
}
.letitout-city-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.letitout-city-modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    line-height: 1.25;
    padding-right: 0.5rem;
}
.letitout-city-modal-close {
    background: none !important;
    border: none !important;
    font-size: 1.6rem !important;
    color: #888 !important;
    border-radius: 50% !important;
    width: 2.2rem !important;
    height: 2.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    margin-left: 0.5rem !important;
    outline: none !important;
}
.letitout-city-modal-close:hover,
.letitout-city-modal-close:focus {
    background: #f5f5f5 !important;
    color: #f10000 !important;
    outline: none !important;
}

.letitout-city-modal-content {
    padding: 12px 16px 0 16px; /* Reduce padding for more visible tags */
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 60vh;
    min-height: 300px;
}
.city-search-input, .emotion-search-input {
    position: sticky;
    top: 0;
    z-index: 1;
    background: white;
    margin-bottom: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px; /* Increased from 15px to prevent zoom */
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.city-suggested-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    align-items: flex-start;
}
.city-suggestion-btn {
    background: #F8F8F8;
    color: #222;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
    min-height: 40px;
    max-width: 180px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.city-suggestion-btn.selected, .city-suggestion-btn:hover {
    background: #f10000;
    color: #fff;
    border-color: #f10000;
}
.city-other-section {
    margin-top: 0;
    margin-bottom: 22px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.city-other-section label {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #222;
    margin-bottom: 0;
    margin-right: 0;
    white-space: nowrap;
    font-weight: 500;
}

.city-other-input {
    flex: 1 1 160px;
    min-width: 120px;
    max-width: 220px;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px; /* Increased from 15px to prevent zoom */
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    height: 40px;
    box-sizing: border-box;
}

.city-other-btn {
    background: #fff;
    color: #000;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 80px;
    max-width: 120px;
    width: auto;
    box-sizing: border-box;
    padding: 8px 18px;
}

.city-other-btn:hover,
.city-other-btn:focus {
    background: #f10000;
    color: #fff;
    border-color: #f10000;
    outline: none;
}

.letitout-city-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.letitout-city-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.letitout-city-modal-btn.cancel {
    background: #F8F8F8;
    color: #666;
    border: 1px solid #eee;
}
.letitout-city-modal-btn.cancel:hover {
    background: #eee;
}
.letitout-city-modal-btn.done {
    background: #f10000;
    color: white;
    border: none;
}
.letitout-city-modal-btn.done:hover {
    background: #7a0010;
}
.letitout-city-modal-btn.done:disabled {
    background: #FFB3B3;
    cursor: not-allowed;
}

/* Situation Modal - matches City modal design */
.letitout-situation-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.letitout-situation-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.letitout-situation-modal {
    background: white;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 12px 0 0 0;
}
.letitout-situation-modal-overlay.visible .letitout-situation-modal {
    transform: translateY(0);
}
.letitout-situation-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.letitout-situation-modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    line-height: 1.25;
    padding-right: 0.5rem;
}
.letitout-situation-modal-close {
    background: none !important;
    border: none !important;
    font-size: 1.6rem !important;
    color: #888 !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
}
.letitout-situation-modal-close:hover {
    color: #f10000 !important;
}
.letitout-situation-modal-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    align-content: flex-start;
}

.situation-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}
/* Match feeling pills (.emotion-subtag) in “Tag Situation” modal */
.situation-option-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: #f8f8f8;
    color: #333;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.3;
}
.situation-option-btn:hover {
    background: #fff0f0;
    border-color: #ffe0e0;
    color: #111;
}
.situation-option-btn.selected {
    background: #f10000;
    color: white;
    border-color: #f10000;
}
.letitout-situation-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.letitout-situation-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.letitout-situation-modal-btn.cancel {
    background: #F8F8F8;
    color: #666;
    border: 1px solid #eee;
}
.letitout-situation-modal-btn.done {
    background: #f10000;
    color: white;
    border: none;
}
.letitout-situation-modal-btn.done:hover:not(:disabled) {
    background: #7a0010;
}
.letitout-situation-modal-btn.done:disabled {
    background: #FFB3B3;
    cursor: not-allowed;
}
@media (min-width: 768px) {
    .letitout-situation-modal {
        border-radius: 20px;
        max-height: 90vh;
    }
    .letitout-situation-modal-overlay {
        align-items: center;
    }
    .letitout-situation-modal-overlay.visible .letitout-situation-modal {
        transform: translateY(0);
    }
}

/* Filter modal - Situation section */
.filter-situation-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
}
.filter-situation-section .emotion-category-title {
    margin-bottom: 0.5rem;
}
.filter-situation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Post card - situation tag: same pill as feelings */
.post-emotion-tags .situation-tag.situation-tag-small {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    background: var(--letitout-pill-tag-bg, #e8e8e8);
    color: var(--letitout-pill-tag-text, #141414);
    border: 1px solid var(--letitout-pill-tag-border, #cfcfcf);
    box-shadow: none;
}

@media (min-width: 768px) {
    .letitout-city-modal {
        border-radius: 20px;
        max-height: 90vh;
    }
    .letitout-city-modal-overlay {
        align-items: center;
    }
    .letitout-city-modal {
        transform: translateY(20px);
    }
    .letitout-city-modal-overlay.visible .letitout-city-modal {
        transform: translateY(0);
    }
}

.letitout-button-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    margin-bottom: 0.2rem;
    margin-top: 1rem;
}

/* Confirmation Overlay */
.letitout-confirmation-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
.letitout-confirmation-modal {
  background: #f10000; /* brand red background */
  border-radius: min(1.5rem, 4.5vmin);
  box-shadow: none;
  padding: clamp(2rem, 5.5vmin, 2.85rem) clamp(1.5rem, 3.8vmin, 2.35rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(420px, calc(100vw - 2rem));
  max-width: calc(100vw - 1.5rem);
  height: auto;
  min-height: min(52vmin, 300px, calc(100vh - 3rem));
  max-height: min(88vh, calc(100vh - 2rem));
  animation: fadeIn 0.5s;
  border: 1px solid #b30010; /* darker red border */
  box-sizing: border-box;
  flex-shrink: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .letitout-confirmation-modal {
    width: min(440px, calc(100vw - 2.5rem));
    padding: clamp(2.15rem, 4.5vmin, 3.1rem) clamp(1.65rem, 3vmin, 2.5rem);
    min-height: min(48vmin, 320px, calc(100vh - 3.5rem));
  }
}

.letitout-confirmation-heart {
  margin-bottom: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.letitout-confirmation-heart svg {
  width: 54px;
  height: 48px;
  filter: none;
  animation: heartBeat 1.8s infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.08); }
  20% { transform: scale(0.96); }
  30% { transform: scale(1.12); }
  40% { transform: scale(0.98); }
  50% { transform: scale(1.06); }
  60% { transform: scale(1); }
}
.letitout-confirmation-text {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  color: #fffcf1; /* cream text color */
  font-size: clamp(1.02rem, 2.8vmin, 1.22rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.68;
  max-width: 100%;
  width: 100%;
}
.letitout-confirmation-text .confirmation-line {
  display: block;
  margin-bottom: 0.42em;
  font-weight: 500;
}

.letitout-confirmation-text .confirmation-title {
  display: block;
  margin-bottom: 0.62em;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.22rem, 4.2vmin, 1.75rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  line-height: 1.22;
}

.letitout-confirmation-funnel {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 252, 241, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.letitout-confirmation-funnel-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fffcf1;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.letitout-confirmation-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #fffcf1;
  color: #f10000;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #fffcf1;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.letitout-confirmation-cta:hover {
  background: transparent;
  color: #fffcf1;
  border-color: #fffcf1;
}

.letitout-confirmation-note {
  font-size: 1rem;
  color: #888;
  font-style: italic;
  margin-top: 0.7rem;
}
@keyframes fadeInGlow {
  from { box-shadow: 0 0 0 0 #f1000040; }
  50% { box-shadow: 0 0 16px 8px #f1000040; }
  to { box-shadow: 0 0 0 0 #f1000000; }
}
.letitout-highlight-post {
  animation: fadeInGlow 1.5s;
}
@media (max-width: 600px) {
  .letitout-confirmation-modal {
    width: min(100%, calc(100vw - 1.5rem));
    padding: clamp(1.85rem, 5vmin, 2.5rem) clamp(1.2rem, 3.5vmin, 1.65rem);
    min-height: min(56vmin, 280px, calc(100vh - 2.5rem));
  }
  .letitout-confirmation-text .confirmation-title {
    letter-spacing: 0.5px;
  }
}

/* Inbox (header): inherits .nav-cta-button; icon + gap + badge anchor only */
.letitout-inbox-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    position: relative; /* unread badge */
}
.letitout-inbox-cta:hover,
.letitout-inbox-cta:focus {
    border-color: transparent !important;
}
.letitout-inbox-cta i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Unread Badge for Inbox CTA (in header) */
.letitout-my-posts-btn-global .unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f10000;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    animation: badgePulse 2s infinite;
    line-height: 1;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile menu Inbox link */
.letitout-mobile-inbox-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* My Posts Modal Overlay */
.letitout-my-posts-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
    width: 100vw;
    height: 100vh;
}
.letitout-my-posts-modal {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 3.2rem 3.5rem 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
}
@media (max-width: 900px), (max-width: 600px) {
    .letitout-my-posts-modal {
        padding: 1.2rem 0.2rem 1.2rem 0.2rem;
        border-radius: 0 !important;
        min-width: 0;
        max-width: 100vw;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
    }
}
.letitout-my-posts-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #111;
    cursor: pointer;
    z-index: 10;
}
.letitout-my-posts-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding-top: 0.5rem; /* Reduced from 1.2rem */
    padding-bottom: 0.7rem;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}
.letitout-my-posts-tabs button {
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f10000;
    padding: 0.7rem 2.2rem;
    cursor: pointer;
    border-bottom: 1px solid var(--letitout-border-light);
    transition: border 0.2s, color 0.2s;
}

.my-posts-tab.active {
    color: black !important; /* Changed from default */
    border-bottom: 2px solid var(--letitout-primary);
}

.inbox-tab {
    padding: 1rem;
}

.letitout-my-posts-tabs button:not(.active) {
    color: #111;
}
.letitout-my-posts-content {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.letitout-my-posts-content .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
    text-align: center;
    font-size: 1.13rem;
    color: #222;
    padding: 2rem 1rem;
}
.my-post-card {
    background: #fff;
    border: 1.5px solid #f5f5f5;
    border-radius: 1rem;
    box-shadow: none;
    padding: 1.2rem 1.3rem 1.1rem 1.3rem;
    margin-bottom: 1.1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.08rem;
    color: #222;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.my-post-timestamp {
    font-size: 0.97rem;
    color: #aaa;
    margin-top: 0.3rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.4;
}
@media (max-width: 900px) {
    .letitout-my-posts-modal {
        min-width: 0;
        width: 98vw;
        max-width: 99vw;
        padding: 2rem 0.7rem 2rem 0.7rem;
        height: 80vh;
        min-height: 260px;
        max-height: 98vh;
    }
}
@media (max-width: 600px) {
    .letitout-my-posts-modal {
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
        height: 92vh;
        min-height: 320px;
        padding: 1.2rem 0.2rem 1.2rem 0.2rem;
        border-radius: 0.7rem;
    }
}

/* My Posts reply line */
.my-post-reply-line {
    margin-top: 0.7em;
    font-size: 0.98rem;
    color: #f10000;
    background: #f5f5f5;
    border-radius: 0.7em;
    padding: 0.3em 0.9em;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color 0.3s ease;
}

.my-post-reply-line.unread {
    background-color: #ffd6da; /* Darker background for unread */
    font-weight: 700; /* Bolder font for unread */
}

.view-in-inbox {
    text-decoration: underline;
    cursor: pointer;
    color: #f10000;
    font-weight: 600;
    margin-left: 0.4em;
}
.my-post-replies {
    margin-top: 0.7em;
    background: #f9f6f7;
    border-radius: 0.7em;
    padding: 0.7em 1em;
    font-size: 0.97rem;
}
.my-post-replies ul {
    margin: 0.5em 0 0 0;
    padding-left: 1.2em;
}
.my-post-replies li {
    margin-bottom: 0.3em;
    color: #222;
}

/* Inbox Empty State */
.inbox-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
    text-align: center;
    padding: 2rem 1rem;
}
.inbox-empty-state-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}
.inbox-empty-state-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.inbox-empty-state-cta {
    background: #f10000;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.inbox-empty-state-cta:hover {
    background: #7a0010;
    transform: translateY(-1px);
}

/* Send Love Button & Reply Modal Styles — outline, distinct from solid primary CTAs */
.share-love-btn {
    background: #fff;
    color: var(--letitout-primary, #f10000);
    border: 1px solid var(--letitout-primary, #f10000);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: none;
    box-sizing: border-box;
    height: 36px;
}

.share-love-btn:hover {
    background: rgba(241, 0, 0, 0.08);
    color: var(--letitout-primary, #f10000);
    border-color: var(--letitout-primary, #f10000);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(241, 0, 0, 0.12);
}

.share-love-btn.sent {
    background: #f5f5f5 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
}

.share-love-btn.sent:hover,
.share-love-btn.sent:focus {
    background: #f5f5f5 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
}

/* Reply Modal Styles */
.reply-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reply-modal-overlay.visible {
    opacity: 1;
}

.reply-modal {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    width: 100%;
    max-width: 600px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.reply-modal-overlay.visible .reply-modal {
    transform: translateY(0);
}

.reply-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reply-modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.reply-modal-microcopy {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

.reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; /* Increased from 1rem to prevent zoom */
    resize: none;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    line-height: 1.5;
}

.reply-textarea:focus {
    outline: none;
    border-color: #f10000;
    box-shadow: 0 0 0 2px rgba(193, 0, 22, 0.1);
}

.char-counter {
    margin-top: -1.2rem; /* Pulls counter up */
    text-align: right;
    font-size: 0.8rem;
    color: var(--letitout-text-secondary);
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 1rem;
}

.char-counter.near-limit {
    color: #f10000;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.reply-actions button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-actions .cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
}

.reply-actions .cancel-btn:hover {
    background: #eee;
}

.reply-actions .send-btn {
    background: #f10000;
    color: white;
    border: none;
}

.reply-actions .send-btn:hover {
    background: #7a0010;
}

.reply-actions .send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Message */
/* Reply success message styles moved to unified section above */
.reply-success-message.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Sent Message View */
/* Sent message modal styles moved to unified section above */

.sent-message-modal.visible {
    opacity: 1;
}

.sent-message-content {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: #222;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sent-message-close {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.sent-message-close:hover {
    background: #eee;
}

@media (min-width: 768px) {
    .reply-modal {
        border-radius: 20px;
        margin: 2rem;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    
    .reply-modal-overlay {
        align-items: center;
    }
}

/* Inbox UI Styles */
.inbox-reply-card {
    background: #f8f9fa !important;
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
    color: #222;
    line-height: 1.6;
    box-shadow: none !important;
    transition: transform 0.2s ease;
}

.inbox-reply-card:hover {
    transform: translateY(-2px);
}

.inbox-reply-content {
    font-size: 1.08rem;
    margin-bottom: 0.8rem;
}

.inbox-reply-timestamp {
    font-size: 0.9rem;
    color: #666;
}

.inbox-reply-count {
    font-size: 0.95rem;
    color: #f10000;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Premium Lock UI */
.premium-lock-card {
    background: linear-gradient(135deg, #fff6f7 0%, #fff0f2 100%);
    border: 2px solid #ffd6da;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.premium-lock-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f10000;
    margin-bottom: 0.8rem;
}

.premium-lock-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.premium-lock-cta {
    background: #f10000;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(241,0,0,0.2);
}

.premium-lock-cta:hover {
    background: #7a0010;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(241,0,0,0.3);
}

.premium-lock-cta svg {
    width: 18px;
    height: 18px;
}

/* Empty State */
.inbox-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #666;
    font-family: 'DM Sans', sans-serif;
}

.inbox-empty-state-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.8rem;
}

.inbox-empty-state-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.inbox-empty-state-cta {
    color: #f10000;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

/* Premium Badge */
.premium-badge {
    background: #f10000;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.8rem;
}

.premium-badge svg {
    width: 14px;
    height: 14px;
}

/* Unread Badge */
.unread-badge {
    background: #f10000;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
}

/* Reply List */
.reply-list {
    margin-top: 1rem;
}

.reply-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f2d6da;
}

.reply-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Premium Modal */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-modal-overlay.visible {
    opacity: 1;
}

.premium-modal {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 90%;
    width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.premium-modal-overlay.visible .premium-modal {
    transform: translateY(0);
}

.premium-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.premium-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.premium-modal-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.premium-modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f10000;
    margin-bottom: 1.5rem;
}

.premium-modal-cta {
    width: 100%;
    background: #f10000;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.premium-modal-cta:hover {
    background: #7a0010;
}

.premium-modal-cancel {
    width: 100%;
    background: none;
    border: none;
    color: #666;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
}

.premium-modal-cancel:hover {
    color: #222;
}

@media (max-width: 768px) {
    .premium-modal {
        padding: 1.5rem;
    }
    
    .premium-modal-title {
        font-size: 1.2rem;
    }
    
    .premium-modal-price {
        font-size: 1.5rem;
    }
}

/* Wall Controls */
.wall-controls {
    position: static;
    background: white;
    padding: 1.5rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: var(--letitout-content-max-width, 600px);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--letitout-radius-md);
    box-shadow: var(--letitout-shadow-sm);
    border: 1px solid #f2f2f2;
}

/* Location + hybrid “About” filters (collapsed prose → expandable chips) */
.wall-location-filter-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
}

.wall-about-filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    padding-left: 0.05rem;
}

.wall-about-default {
    font-family: var(--letitout-font-family);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    padding: 0.2rem 0.25rem;
    color: var(--letitout-text);
}

/* Match location line (“Global” / city) — primary text color, normal weight */
.wall-about-brand {
    color: var(--letitout-text);
    font-weight: 400;
}

.wall-about-default-suffix {
    font-weight: 600;
    color: var(--letitout-text);
}

.wall-about-inline-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    width: 100%;
    padding: 0.15rem 0.25rem;
}

.wall-about-inline-label {
    flex-shrink: 0;
    font-family: var(--letitout-font-family);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--letitout-text-secondary);
}

.wall-about-filters .wall-filter-chip {
    padding: 0.38rem 0.65rem 0.38rem 0.6rem;
    font-size: 0.95rem;
    border-radius: 999px;
    gap: 0.25rem;
}

.wall-about-filters .wall-filter-chip-text,
.wall-about-chip-mode .wall-filter-chip-text {
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: clip;
    max-width: min(100%, 14rem);
}

.wall-about-filters .wall-filter-chip-remove {
    font-size: 1.1rem;
}

.wall-filter-chip-list.wall-filter-chip-list--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
}

.wall-about-inline-collapse {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: var(--letitout-radius-sm);
    background: transparent;
    color: var(--letitout-primary);
    cursor: pointer;
    transition: background-color 0.15s;
}

.wall-about-inline-collapse:hover,
.wall-about-inline-collapse:focus {
    background: #f7f7f7;
    outline: none;
}

.wall-about-inline-bar--collapsible {
    padding-right: 0;
}

/* 1–2 filters: single-line sentence (tap to expand chips only) */
.wall-about-sentence-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4rem 0.25rem;
    margin: 0;
    border: none;
    border-radius: var(--letitout-radius-sm);
    background: transparent;
    font-family: var(--letitout-font-family);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--letitout-text);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s;
}

.wall-about-sentence-btn:hover,
.wall-about-sentence-btn:focus {
    background: #f7f7f7;
    outline: none;
}

.wall-about-sentence-text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    word-break: break-word;
}

/* Chip-only layouts (expanded 1–2, or always when 3 filters) */
.wall-about-chip-mode {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
}

.wall-about-chip-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.15rem 0;
    border: none;
    border-radius: var(--letitout-radius-sm);
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.15s;
}

.wall-about-chip-head-row:hover,
.wall-about-chip-head-row:focus {
    background: #f7f7f7;
    outline: none;
}

.wall-about-chip-heading {
    font-family: var(--letitout-font-family);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--letitout-text-secondary);
}

.wall-about-chip-mode > .wall-about-chip-heading:first-child {
    margin: 0;
}

.wall-about-chevron {
    flex-shrink: 0;
    font-size: 0.65rem;
    color: var(--letitout-primary);
    margin-top: 0.35rem;
    transition: transform 0.2s ease;
}

.wall-about-chevron.wall-about-chevron--open {
    transform: rotate(180deg);
}

.wall-about-chips-wrap {
    padding-left: 1.65rem;
}

.wall-about-chips-wrap[hidden] {
    display: none !important;
}

.wall-filter-chip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.wall-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.25rem 0.45rem 0.25rem 0.4rem;
    border: 1px solid var(--letitout-border);
    border-radius: var(--letitout-radius-sm);
    background: #fafafa;
    color: var(--letitout-text);
    font-family: var(--letitout-font-family);
    font-size: 0.84rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.wall-filter-chip:hover,
.wall-filter-chip:focus {
    background: #f0f0f0;
    border-color: #ccc;
    outline: none;
}

.wall-filter-chip-text {
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wall-filter-chip-remove {
    margin-left: 0.1rem;
    font-size: 1rem;
    line-height: 1;
    color: var(--letitout-primary);
    opacity: 0.85;
}

.wall-filter-chip:hover .wall-filter-chip-remove,
.wall-filter-chip:focus .wall-filter-chip-remove {
    opacity: 1;
}

/* About row / chip-mode: smaller pills on narrow screens so ~3 chips can fit one line */
@media (max-width: 600px) {
    .wall-about-filters .wall-filter-chip,
    .wall-about-chip-mode .wall-filter-chip {
        padding: 0.22rem 0.36rem 0.22rem 0.32rem;
        font-size: 0.72rem;
        gap: 0.08rem;
    }

    .wall-about-filters .wall-filter-chip-text,
    .wall-about-chip-mode .wall-filter-chip-text {
        max-width: min(100%, 12.5rem);
        font-size: 0.72rem;
    }

    .wall-about-filters .wall-filter-chip-remove,
    .wall-about-chip-mode .wall-filter-chip-remove {
        font-size: 0.82rem;
        margin-left: 0.04rem;
    }

    .wall-about-filters .wall-filter-chip-list.wall-filter-chip-list--inline,
    .wall-about-chip-mode .wall-filter-chip-list {
        gap: 0.26rem;
    }

    .wall-about-chips-wrap {
        padding-left: 0.55rem;
    }

    .wall-about-inline-bar {
        gap: 0.28rem 0.38rem;
    }

    .wall-about-default,
    .wall-about-inline-label,
    .wall-about-chip-heading,
    .wall-about-sentence-btn {
        font-size: 0.92rem;
    }
}

/* Location Filter */
.wall-location-filter {
    display: flex;
    align-items: center;
    width: 100%;
}

.wall-location-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--letitout-text);
    font-family: var(--letitout-font-family);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    border-radius: var(--letitout-radius-sm);
    transition: background-color 0.2s;
    max-width: 320px;
}

.wall-location-btn:hover,
.wall-location-btn:focus {
    background-color: #f5f5f5;
    outline: none;
}

.wall-location-btn-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wall-location-btn .wall-location-btn-chevron,
.wall-location-btn i.fa-chevron-down {
    flex-shrink: 0;
    font-size: 0.7rem;
    margin-left: 0.2rem;
    color: var(--letitout-primary);
}

.wall-location-btn-text i {
    font-size: 1rem;
    color: var(--letitout-primary);
}

/* Search and Filter Row */
.wall-search-filter-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wall-search-container {
    flex: 1;
}

.wall-search-form {
    display: flex;
    gap: 0.5rem;
}

.wall-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--letitout-border);
    border-radius: var(--letitout-radius-md);
    font-family: var(--letitout-font-family);
    font-size: 16px; /* Increased from 0.95rem to prevent zoom */
    background: #f8f8f8;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 44px;
    box-sizing: border-box;
}

.wall-search-input:focus,
.wall-search-input:hover {
    border: 1px solid #bdbdbd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    outline: none;
}

.wall-search-button {
    background: none;
    border: 1px solid var(--letitout-border);
    color: var(--letitout-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--letitout-radius-md);
    cursor: pointer;
    transition: all 0.2s;
    height: 44px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.wall-search-button:hover,
.wall-search-button:focus {
    background: #f5f5f5;
    border-color: var(--letitout-border);
    color: var(--letitout-primary);
    outline: none;
}

.wall-filter-btn {
    background: none;
    border: 1px solid var(--letitout-border);
    color: var(--letitout-text);
    padding: 0.75rem 1rem;
    min-width: 48px;
    height: 44px;
    border-radius: var(--letitout-radius-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.wall-filter-btn:hover,
.wall-filter-btn:focus {
    background: #f5f5f5;
    border-color: var(--letitout-border);
    color: var(--letitout-text);
    outline: none;
}

/* Sort + View Toggle Row */
.wall-sort-view-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--letitout-content-max-width, 600px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
    gap: 1rem;
}

.wall-view-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0.25rem;
}

.wall-view-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1.1rem;
}

.wall-view-btn:hover {
    background: #eee;
    color: #333;
}

.wall-view-btn.active {
    background: #fff;
    color: #f10000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Sort Dropdown */
.wall-sort-view-row .wall-sort-container {
    margin: 0;
    flex: 1;
    max-width: none;
}

.wall-sort-container {
    display: flex;
    align-items: flex-start;
    max-width: var(--letitout-content-max-width, 600px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    gap: 0;
    position: relative;
    justify-content: flex-start;
}

.wall-sort-trigger {
    background: transparent;
    border: none;
    font-size: 1rem;
    font-family: var(--letitout-font-family);
    cursor: pointer;
    padding: 0.5rem 1.5rem 0.5rem 0.7rem;
    border-radius: 6px;
    position: relative;
    min-width: 90px;
    max-width: 140px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s, box-shadow 0.2s;
}
.wall-sort-trigger:focus,
.wall-sort-trigger:hover {
    background: #f5f5f5;
    outline: none;
    box-shadow: 0 0 0 2px #ececec;
}
.dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.65em;
    pointer-events: none;
}
.wall-sort-list {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 100;
    min-width: 200px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    margin-top: 0.5rem;
    padding: 0.5rem 0 0.5rem 0;
    list-style: none;
    border: none;
    font-family: 'DM Sans', 'Inter', Arial, sans-serif;
}

.wall-sort-label-dropdown {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    padding: 0.7rem 1.5rem 0.7rem 1.5rem;
    margin-bottom: 0.2rem;
    background: none;
    border-radius: 0;
    letter-spacing: 0.01em;
    cursor: default;
}

.wall-sort-option {
    padding: 1rem 1.5rem;
    font-size: 1.08rem;
    font-family: 'DM Sans', 'Inter', Arial, sans-serif;
    color: #222;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 8px;
    margin: 0.1rem 0;
    outline: none;
}
.wall-sort-option:hover,
.wall-sort-option:focus {
    background: #f5f5f5;
    outline: none;
    color: inherit;
}
.wall-sort-option.selected {
    font-weight: 700;
    color: #f10000;
    background: #f6f6f6;
}

@media (max-width: 768px) {
    .wall-sort-list {
        min-width: 220px;
        max-width: 90vw;
        width: auto;
        left: 0;
        right: auto;
        transform: none;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    }
    .wall-sort-trigger {
        min-width: 120px;
        max-width: 180px;
    }
    .wall-location-modal-content,
    .wall-filter-modal-content {
        padding: 1rem;
    }
    .wall-location-list,
    .wall-filter-options {
        max-height: 60vh;
    }
    .wall-sort-trigger .dropdown-arrow {
        font-size: 0.6em !important;
    }
}

/* Location Modal */
.wall-location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wall-location-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.wall-location-modal {
    background: white;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wall-location-modal-overlay.visible .wall-location-modal {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .wall-location-modal {
        border-radius: 20px;
        max-height: 90vh;
    }
    .wall-location-modal-overlay {
        align-items: center;
    }
    .wall-location-modal {
        transform: translateY(20px);
    }
    .wall-location-modal-overlay.visible .wall-location-modal {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .wall-location-modal-overlay {
        align-items: flex-end;
    }
    .wall-location-modal {
        height: 80vh;
        max-height: 90vh;
        width: 100vw;
        border-radius: 20px 20px 0 0;
        margin: 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
    }
    .wall-location-modal-content {
        border-radius: 20px 20px 0 0;
        border: none;
        box-shadow: none;
        min-width: 0;
        width: 100%;
        padding: 1.5rem 1rem 1rem 1rem;
        margin: 0;
        height: 100%;
        max-height: 100%;
        flex: 1 1 auto;
    }
}

.wall-location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.wall-location-modal-header h3 {
    font-family: var(--letitout-font-family);
    font-size: 1.15rem;
    font-weight: 700 !important;
    color: #222;
    letter-spacing: 0.01em;
    margin: 0;
    text-transform: none;
}
.wall-location-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.6rem !important;
    color: #888 !important;
    border-radius: 50% !important;
    width: 2.2rem !important;
    height: 2.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    margin-left: 0.5rem !important;
    outline: none !important;
}
.wall-location-modal-close:hover,
.wall-location-modal-close:focus {
    background: #f5f5f5 !important;
    color: #f10000 !important;
    outline: none !important;
}

.wall-location-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--letitout-border);
    border-radius: var(--letitout-radius-md);
    font-family: var(--letitout-font-family);
    font-size: 16px; /* Increased from 1rem to prevent zoom */
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wall-location-search-input:focus {
    outline: none;
    border-color: #444;
    box-shadow: none;
}

.wall-location-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    height: 60vh; /* Fixed height instead of max-height */
    flex: 1 1 auto;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--letitout-border);
    border-radius: var(--letitout-radius-md);
    background: none;
    font-family: var(--letitout-font-family);
    font-size: 1.05rem;
    color: var(--letitout-text);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
}
.location-option:hover,
.location-option:focus {
    background: #f5f5f5;
    border-color: var(--letitout-border);
    color: var(--letitout-text);
    outline: none;
}
.location-option.selected {
    background: var(--letitout-primary);
    color: white;
    border-color: var(--letitout-primary);
}

/* Filter Modal */
.wall-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    background: rgba(0,0,0,0.5);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.wall-filter-modal .letitout-emotion-modal {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 720px);
    min-height: 0;
}

/* Scrollable body + fixed footer (wall filter modal) */
.wall-filter-modal .letitout-emotion-modal-content.wall-filter-modal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.wall-filter-modal .letitout-emotion-modal-footer.wall-filter-modal-footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eee;
    background: #fff;
    gap: 10px;
    box-sizing: border-box;
}

.wall-filter-modal .letitout-emotion-modal-footer.wall-filter-modal-footer .letitout-emotion-modal-btn {
    flex: 1 1 0;
    min-height: 48px;
    margin: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.filter-unified-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.wall-filter-unified-search.emotion-search-input {
    margin-bottom: 0;
    width: 100%;
}

.wall-filter-unified-grid {
    width: 100%;
}

button.emotion-subtag.wall-unified-filter-tag--max {
    opacity: 0.48;
    cursor: not-allowed;
}

button.emotion-subtag.wall-unified-filter-tag--max:not(.selected):hover {
    opacity: 0.55;
}

/* Explore stories modal: selected = brand red */
.wall-filter-modal .emotion-subtag.selected {
    background: var(--letitout-primary, #f10000);
    color: #fff;
    border-color: var(--letitout-primary, #f10000);
}

.wall-filter-modal .emotion-subtag.selected .emotion-subtag-count {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}

.wall-filter-modal .emotion-subtag:hover:not(.selected):not(.wall-unified-filter-tag--max) {
    background: #ffe8ea;
    border-color: #f5b0b6;
    color: #141414;
}

/* Write tab — How it feels (overlay): selected = brand red (theme vars default to grey) */
.letitout-emotion-modal-overlay .emotion-subtag.selected {
    background: var(--letitout-primary, #f10000);
    color: #fff;
    border-color: var(--letitout-primary, #f10000);
}

.letitout-emotion-modal-overlay .emotion-subtag.selected .emotion-subtag-count {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}

.letitout-emotion-modal-overlay .emotion-subtag:hover:not(.selected) {
    background: #ffe8ea;
    border-color: #f5b0b6;
    color: #141414;
}

@media (max-width: 768px) {
    .wall-filter-modal {
        align-items: flex-end;
        padding: 0;
    }
    .wall-filter-modal .letitout-emotion-modal {
        border-radius: 20px 20px 0 0;
        max-height: 88vh;
        height: 88vh;
        width: 100vw;
        margin: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        min-height: 0;
    }
    .wall-filter-modal.visible .letitout-emotion-modal {
        transform: translateY(0);
    }
}

.wall-filter-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    height: 80vh; /* Fixed height instead of max-height */
    min-height: 500px; /* Increased minimum height */
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .wall-filter-modal-content {
        height: 90vh; /* Fixed height for mobile */
        min-height: 600px; /* Increased minimum height for mobile */
        padding: 1rem;
    }
}

.wall-filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wall-filter-modal-header h3 {
    font-family: var(--letitout-font-family);
    font-size: 1.15rem;
    font-weight: 700 !important;
    color: var(--letitout-text);
    margin: 0;
}

.wall-filter-search {
    position: relative;
}

.wall-filter-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--letitout-border);
    border-radius: var(--letitout-radius-md);
    font-family: var(--letitout-font-family);
    font-size: 16px; /* Increased from 0.95rem to prevent zoom */
}

.wall-filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    font-family: var(--letitout-font-family);
    font-size: 0.9rem;
    color: var(--letitout-text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}

.filter-tab.active {
    color: var(--letitout-primary);
    font-weight: 600;
}

.wall-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    height: 60vh; /* Fixed height instead of max-height */
}

.filter-options {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-options.active {
    display: flex;
}

.filter-option {
    padding: 0.75rem 1rem;
    border: 1px solid var(--letitout-border);
    border-radius: var(--letitout-radius-md);
    background: none;
    font-family: var(--letitout-font-family);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-option:hover {
    background: var(--letitout-background);
    border-color: var(--letitout-primary);
}

.filter-option.selected {
    background: var(--letitout-primary);
    color: white;
    border-color: var(--letitout-primary);
}

.wall-filter-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.clear-filter-btn {
    padding: 0.75rem 1rem;
    border: 1px solid var(--letitout-border);
    border-radius: var(--letitout-radius-md);
    background: none;
    font-family: var(--letitout-font-family);
    font-size: 0.95rem;
    color: var(--letitout-text);
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filter-btn:hover {
    background: var(--letitout-background);
    border-color: var(--letitout-primary);
    color: var(--letitout-primary);
}

.apply-filter-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--letitout-radius-md);
    background: var(--letitout-primary);
    font-family: var(--letitout-font-family);
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-filter-btn:hover {
    background: var(--letitout-secondary);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .wall-controls {
        padding: 2rem 0.7rem 2rem 0.7rem;
    }

    .wall-search-filter-row {
        gap: 0.5rem;
    }

    .wall-search-input {
        padding: 0.5rem 0.75rem;
    }

    .wall-search-button {
        padding: 0.5rem 0.75rem;
    }

    .wall-filter-btn {
        padding: 0.5rem 0.75rem;
    }

    .wall-sort-list {
        min-width: 220px;
        max-width: 90vw;
        width: auto;
        left: 0;
        right: auto;
        transform: none;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    }

    .wall-sort-trigger {
        min-width: 120px;
        max-width: 180px;
    }

    .wall-location-modal-content,
    .wall-filter-modal-content {
        padding: 1rem;
    }

    .wall-location-list,
    .wall-filter-options {
        max-height: 60vh;
    }
}

/* Felt It Button */
.felt-it-btn {
  background: none;
  border: 1px solid #e0e0e0;
  color: #000;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  height: 36px;
  box-sizing: border-box;
}
.felt-it-btn svg {
  stroke: #000;
}
.felt-it-btn:hover,
.felt-it-btn:focus {
  background: #f5f5f5;
  color: #f10000;
  border-color: #f10000;
  outline: none;
}
.felt-it-btn.felt {
  background: rgba(241, 0, 0, 0.12);
  color: var(--letitout-primary, #f10000);
  border-color: var(--letitout-primary, #f10000);
}
.felt-it-btn.felt svg {
  stroke: var(--letitout-primary, #f10000);
  fill: var(--letitout-primary, #f10000);
}

.felt-it-count {
  display: inline;
  background: none;
  border-radius: 0;
  padding: 0;
  min-width: 0;
  margin-left: 0.1em;
  font-size: 1em;
  font-weight: normal;
  color: inherit;
  box-shadow: none;
  vertical-align: baseline;
  transition: color 0.2s;
}

.felt-it-btn:hover .felt-it-count,
.felt-it-btn:focus .felt-it-count,
.felt-it-btn.felt .felt-it-count {
  background: none;
}

.post-city-line {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--letitout-text-light);
    margin-top: 1.1rem;
    margin-bottom: 0.6rem;
}

.post-emotion-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}
/* Reset margins so gap controls all spacing between pills */
.post-emotion-tags .situation-tag,
.post-emotion-tags .emotion-tag,
.letitout-my-posts-modal .post-emotion-tags .situation-tag,
.letitout-my-posts-modal .post-emotion-tags .emotion-tag {
    margin: 0 !important;
}

.emotion-tag.emotion-tag-small {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px; /* Changed for pill shape */
    background: var(--letitout-pill-tag-bg, #e8e8e8);
    border: 1px solid var(--letitout-pill-tag-border, #cfcfcf);
    color: var(--letitout-pill-tag-text, #141414);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    box-shadow: none;
}

@media (max-width: 600px) {
  .post-card {
    max-width: 100%;
    min-height: unset;
    height: auto;
    max-height: unset;
    padding: var(--letitout-spacing-md);
  }
}

@media (max-width: 768px) {
    .letitout-city-modal {
        height: 90vh;
        max-height: 90vh;
    }
    .letitout-city-modal-content {
        max-height: calc(90vh - 120px);
    }
}

.wall-city-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-bottom: 18px;
    margin-top: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
}
.wall-city-chip {
    background: #F8F8F8;
    color: #222;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 10px 22px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 110px;
    min-height: 38px;
    max-width: 200px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 400;
}
.wall-city-chip.selected, .wall-city-chip:hover, .wall-city-chip:focus {
    background: #f10000;
    color: #fff;
    border-color: #f10000;
    outline: none;
}

.wall-city-chip i {
    margin-right: 8px;
    font-size: 1.1em;
    display: inline-block;
}

@media (max-width: 600px) {
  .wall-city-chip-list {
    gap: 8px 8px;
    margin-bottom: 10px;
  }
  .wall-city-chip {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 90px;
    min-height: 34px;
    max-width: 140px;
  }
}

.wall-location-search {
    margin-bottom: 18px;
} 

.emotion-search-input {
    /* Remove sticky positioning so it scrolls with content */
    position: static;
    top: unset;
    z-index: auto;
    background: white;
    margin-bottom: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px; /* Increased from 15px to prevent zoom */
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.post-content {
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.55;
}

.post-read-more {
  display: block;
  text-align: left;
  margin-top: 0.5rem;
  color: #f10000;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.felt-it-btn:hover svg,
.felt-it-btn:focus svg {
  stroke: var(--letitout-primary, #f10000);
}

.letitout-my-posts-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 0.2rem; /* Reduced from 0.5rem */
  margin-top: 0.1rem;
  letter-spacing: 0.01em;
}
.letitout-my-posts-userid {
  text-align: center;
  font-size: 1.08rem;
  color: #f10000;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

/* Desktop / tablet: My Stories inbox uses full viewport (was a small centered card) */
@media (min-width: 601px) {
  .letitout-my-posts-modal-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }
  .letitout-my-posts-modal {
    min-width: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    padding: max(2.75rem, env(safe-area-inset-top, 0px) + 1.5rem)
      max(2.25rem, env(safe-area-inset-right, 0px) + 1rem)
      max(1.75rem, env(safe-area-inset-bottom, 0px) + 0.5rem)
      max(2.25rem, env(safe-area-inset-left, 0px) + 1rem);
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .letitout-my-posts-modal {
    width: 100vw;
    height: 100vh;
    min-width: 0;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    padding: 1.2rem 0.2rem 1.2rem 0.2rem;
  }
}

.post-emotions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.5rem;
  margin-top: 0.2rem;
}
.post-emotions .emotion-tag {
  display: inline-block;
  padding: 0.07em 0.48em;
  border-radius: 999px;
  background: var(--letitout-pill-tag-bg, #e8e8e8);
  border: 1px solid var(--letitout-pill-tag-border, #cfcfcf);
  color: var(--letitout-pill-tag-text, #141414);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78em;
  font-weight: 500;
  margin-bottom: 0.4em;
  cursor: default;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

@media (max-width: 600px) {
  .emotion-tag {
    font-size: 0.7em;
    padding: 0.05em 0.38em;
    border-radius: 999px;
    margin-bottom: 0.3em;
  }
}

@media (max-width: 600px) {
  .letitout-my-posts-modal .emotion-tag {
    font-size: 0.7em !important;
    padding: 0.05em 0.38em !important;
    border-radius: 999px !important;
    margin-bottom: 0.3em !important;
  }
}

.my-post-message {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: pre-line;
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 0.2em;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
  word-break: break-word;
}
.my-post-message[data-expanded="true"] {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.my-post-read-more {
  color: #f10000;
  font-size: 0.9rem;
  margin-left: 0.2em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  vertical-align: middle;
}
.my-post-read-more:hover {
  color: #7a0010;
  text-decoration: none;
}

/* Remove hover/focus effect for inbox reply card (soft red border) */
.post-card[style*='f8bfc4']:hover,
.post-card[style*='f8bfc4']:focus {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transform: none !important;
    border-color: #f8bfc4 !important;
}

.letitout-my-posts-content {
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px);
    margin: 0 auto;
    display: block;
}

/* My Posts Notification Dot */
.my-posts-notification-dot {
  background: #f10000;
  color: #fff;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: middle;
}

/* Back to Posts Button */
.back-to-posts-btn {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: #f10000;
  cursor: pointer;
  z-index: 10;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 0.5rem 0;
}

.back-to-posts-btn:hover {
  color: #cc0000;
}

/* Original Post Card in Replies View */
.original-post-card {
  background: #fff;
  border: 1.5px solid #f5f5f5;
  border-radius: 1rem;
  box-shadow: none;
  padding: 1.2rem 1.3rem 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.08rem;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.original-post-message {
  font-size: 1.08rem;
  color: #222;
  line-height: 1.6;
  white-space: pre-line;
}

.original-post-timestamp {
  font-size: 0.97rem;
  color: #888;
  margin-top: 0.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Replies Section */
.replies-section {
  margin-top: 1rem;
}

.replies-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Reply Card */
.reply-card {
  background: #f8f9fa;
  border: none;
  border-radius: 1rem;
  box-shadow: none;
  padding: 1.2rem 1.3rem 1.1rem 1.3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.08rem;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reply-content {
  font-size: 1.08rem;
  color: #222;
  line-height: 1.6;
  white-space: pre-line;
}

.reply-timestamp {
  font-size: 0.97rem;
  color: #888;
  margin-top: 0.3rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Update View Messages link styling */
.view-messages {
  text-decoration: underline;
  cursor: pointer;
  color: #f10000;
  font-weight: 600;
  margin-left: 0.4em;
}

.view-messages:hover {
  color: #cc0000;
}

/* Mobile adjustments for replies view */
@media (max-width: 600px) {
  .back-to-posts-btn {
    top: 1rem;
    left: 1rem;
    font-size: 0.95rem;
  }
  
  .original-post-card,
  .reply-card {
    padding: 1rem 1.1rem 0.9rem 1.1rem;
    font-size: 1rem;
  }
  
  .replies-header {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
}

/* Mobile label for already sent message */
.share-love-mobile-label {
    display: none;
    font-size: 0.97rem;
    color: #f10000;
    margin-top: 0.5em;
    font-weight: 500;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
}

@media (max-width: 700px) {
  .share-love-mobile-label {
    display: block;
  }
}

/* Hide tooltip on mobile */
@media (max-width: 700px) {
  .share-love-btn[title] {
    pointer-events: none;
  }
}

/* Premium Features UI */
.free-unlock-banner {
    background: #fff0f2;
    color: #f10000;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(241,0,0,0.06);
    position: relative;
    z-index: 10;
    animation: slideDown 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.free-unlock-banner .close-btn {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #f10000;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

/* Paywall Modal */
.paywall-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.paywall-modal-overlay.visible {
    opacity: 1;
}

.paywall-modal {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 90%;
    width: 480px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 5001;
}

.paywall-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000 !important;
    margin-bottom: 1.8rem;
}

.paywall-modal-subtitle {
    font-size: 1.08rem;
    color: #222;
    margin-bottom: 1.5rem;
}

.paywall-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f10000;
    margin-bottom: 1.8rem;
}

.paywall-unlock-btn {
    background: #f10000;
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    width: 100%;
    transition: background-color 0.2s ease;
}

.paywall-unlock-btn:hover {
    background: #d4001a;
}

.paywall-modal-info {
    font-size: 0.98rem;
    color: #666;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.paywall-cancel-btn {
    margin-top: 1.8rem;
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.paywall-cancel-btn:hover {
    color: #666;
}

/* Success message styles moved to unified section above */

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .paywall-modal {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1.5rem;
    }

    .paywall-modal-overlay {
        align-items: flex-end;
    }

    .paywall-modal-overlay.visible .paywall-modal {
        transform: translateY(0);
    }
}

/* View Messages Button */
.view-messages-btn {
    background: none;
    border: none;
    color: #f10000;
    font-family: 'DM Sans', sans-serif;
    font-size: inherit;
    font-weight: 600;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-messages-btn:hover {
    color: #d4001a;
}

.view-messages-btn:focus {
    outline: none;
    text-decoration: underline;
}

/* Success Message Styles */
.success-message,
.reply-success-message,
.sent-message-modal {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff0f2;
    color: #f10000;
    padding: 1.2rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(241,0,0,0.15);
    z-index: 9999;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    animation: slideDown 0.3s ease;
    border: none;
    width: calc(100% - 2rem);
    max-width: 400px;
    margin: 0 auto;
}

.reply-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.35;
}

.reply-success-message__title {
    display: block;
    font-weight: 600;
}

.reply-success-message__sub {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(55, 20, 26, 0.55);
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .success-message,
    .reply-success-message,
    .sent-message-modal {
        width: calc(100% - 2rem);
        max-width: none;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .reply-success-message__sub {
        font-size: 0.78rem;
    }
}

.more-options-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #888;
  padding: 4px;
  line-height: 1;
  z-index: 10;
}

.more-options-button:hover {
  color: #333;
}

.options-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 12px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 11;
  width: 150px;
  overflow: hidden;
}

.options-menu.visible {
  display: block;
}

.options-menu a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.options-menu a:hover {
  background-color: #f5f5f5;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #2c2c2c;
  color: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-size: 14px;
  font-weight: 500;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.toast-notification.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.error {
  background-color: #d93025;
}

/* Share Modal */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeInModal 0.3s ease;
}

.share-modal-content {
  position: relative;
  background-color: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.share-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #eee;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.share-modal-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}

.share-modal-download-button {
  display: inline-block;
  background-color: #f10000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: background-color 0.2s;
}

.share-modal-download-button:hover {
  background-color: #a00013;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Report Modal Styles */
.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.report-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.report-modal {
    background: #fff;
    width: 90%;
    max-width: 550px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.report-modal-overlay.visible .report-modal {
    transform: scale(1);
}

.report-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
}

.report-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.report-modal-close:hover {
    color: #222;
}

.report-modal-content {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.report-modal-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.report-reasons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-reason {
    display: block;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.report-reason:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.report-reason.selected {
    background: #fff0f2;
    border-color: #f10000;
}

.report-reason-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.report-reason-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.report-modal-footer {
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.report-submit-btn {
    background: #f10000;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.report-submit-btn:hover {
    background: #cc0000;
}

.report-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Report Modal-Specific Styles */
#report-modal .letitout-emotion-modal-header {
    align-items: center; /* Ensures vertical alignment */
}

#report-modal .letitout-emotion-modal-title {
    text-transform: none;
    font-weight: 700 !important;
    margin: 0; /* Fix alignment */
}

#report-modal .letitout-emotion-modal-content {
    padding: 1.25rem;
}

#report-modal .report-modal-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

#report-modal .report-reasons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#report-modal .report-reason {
    display: block;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

#report-modal .report-reason:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

#report-modal .report-reason.selected {
    background: #fff0f2;
    border-color: #f10000;
}

#report-modal .report-reason-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

#report-modal .report-reason-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

#report-modal .letitout-emotion-modal-footer {
    /* Add padding for the home bar on iOS */
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    #report-modal.letitout-emotion-modal {
        height: auto;
        max-height: 90vh; /* Allow it to take more vertical space */
    }
}

.support-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    margin-top: 0;
    transition: color 0.2s, text-decoration 0.2s;
}

.letitout-cta-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    margin-top: 1rem;
    max-width: var(--letitout-content-max-width, 600px);
    text-align: center;
    line-height: 1.45;
}

.letitout-cta-footer-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #777;
}

.support-link-btn:hover {
    color: var(--letitout-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* --- Support Modal --- */
.support-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}

.support-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.support-modal {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.support-modal-overlay.visible .support-modal {
    transform: translateY(0);
    opacity: 1;
}

.support-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.support-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
}

.support-modal-body {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.support-modal-footer {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.support-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #f10000;
    color: #ffffff;
}

.support-modal-btn:hover {
    background-color: #a10012;
}

.support-modal-btn svg {
    stroke: #ffffff;
}

/* --- New Prompt Controls --- */
.prompt-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--letitout-content-max-width, 600px); /* Increased from 500px for testing */
    margin: 0 auto;
    padding-top: 1rem; /* Added padding */
}

/* Increase width for mobile to allow more characters per line */
@media (max-width: 768px) {
    .prompt-controls {
        max-width: 98vw; /* Use almost full screen width on mobile */
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

@media (max-width: 480px) {
    .prompt-controls {
        max-width: 100vw; /* Use full screen width on small mobile */
        padding-left: 0.1rem;
        padding-right: 0.1rem;
    }
}

.prompt-nav-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--letitout-primary);
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.prompt-nav-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.prompt-nav-btn.back-btn {
    margin-right: 1rem;
}

.prompt-nav-btn.next-btn {
    margin-left: 1rem;
}

.letitout-subtitle {
    font-weight: 700;
    font-size: 1.25rem; /* Reduced from 1.35rem for testing */
    color: #222;
    text-align: center;
    flex-grow: 1;
    min-height: 3em; /* Adjusted height for consistency */
    display: flex;
    align-items: center; /* This is the key property for vertical alignment */
    justify-content: center;
    line-height: 1.4; /* Ensure consistent line spacing */
}

/* --- Mobile-specific prompt styles --- */
@media (max-width: 768px) {
    .letitout-subtitle {
        font-size: 1.05rem; /* Reduced from 1.15rem for testing */
    }
    
    /* Normal text wrapping for mobile */
    .letitout-subtitle {
        word-break: normal;
        white-space: normal;
    }
}

/* 1. Move Messages title up */
.letitout-my-posts-modal .messages-title {
  margin-top: 0.5rem !important; /* Move title closer to top */
  margin-bottom: 1.2rem !important; /* Slightly less space below */
}

/* 2. Make emotion/feeling tag pills in Inbox/Messages match My Posts cards */
.letitout-my-posts-modal .emotion-tag {
  font-size: 13px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-weight: 400;
  height: auto;
  min-width: 0;
  line-height: 1.2;
}

/* 3. Remove red border/outline from reply card in Inbox/Messages */
.letitout-my-posts-modal .inbox-reply-card {
  border: 1.5px solid #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 4. Light mode: set reply card background to light grey in Inbox/Messages */
.letitout-my-posts-modal .inbox-reply-card {
  background: #f5f5f5 !important;
}

/* 5. Add space above the first post card below the title */
.letitout-my-posts-modal .messages-list,
.letitout-my-posts-modal .inbox-post-preview {
  margin-top: 0.7rem !important;
}

/* Move Messages title up - try common selectors */
.letitout-my-posts-modal h2,
.letitout-my-posts-modal h3,
.letitout-my-posts-modal .letitout-my-posts-title,
.letitout-my-posts-modal .messages-title {
  margin-top: 0.5rem !important;
  margin-bottom: 1.2rem !important;
}

/* Dark mode: make (x) Message label above reply cards white */
.dark-mode .letitout-my-posts-modal .messages-count,
.dark-mode .letitout-my-posts-modal .reply-count-label,
.dark-mode .letitout-my-posts-modal .messages-label,
.dark-mode .letitout-my-posts-modal .inbox-messages-count,
.dark-mode .letitout-my-posts-modal .inbox-messages-label {
  color: #fff !important;
}

/* Also try for any h4/h5 in modal */
.dark-mode .letitout-my-posts-modal h4,
.dark-mode .letitout-my-posts-modal h5 {
  color: #fff !important;
}

.letitout-my-posts-modal .replies-header {
  margin-left: 1.2rem;
}

.letitout-my-posts-modal .my-journals-back,
.letitout-my-posts-modal .back-to-journals,
.letitout-my-posts-modal .back-link,
.letitout-my-posts-modal .back {
  margin-top: 2.2rem;
  display: inline-block;
}

.letitout-my-posts-modal .messages-header-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  /* Optionally, add justify-content: flex-start or space-between if needed */
}
.letitout-my-posts-modal .my-journals-back,
.letitout-my-posts-modal .back-to-journals,
.letitout-my-posts-modal .back-link,
.letitout-my-posts-modal .back {
  margin-top: 0 !important;
  display: inline-block;
}
.letitout-my-posts-modal .letitout-my-posts-title,
.letitout-my-posts-modal .messages-title {
  margin-top: 0 !important;
}/* Cache bust: Mon Jun 23 11:44:32 PDT 2025 */

/* Force override for inbox-reply-card border - highest specificity */
.letitout-my-posts-modal .inbox-reply-card,
.letitout-my-posts-modal .inbox-reply-card *,
.inbox-reply-card,
.inbox-reply-card * {
  border: 1.5px solid #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Dark mode override */
.dark-mode .letitout-my-posts-modal .inbox-reply-card,
.dark-mode .letitout-my-posts-modal .inbox-reply-card *,
.dark-mode .inbox-reply-card,
.dark-mode .inbox-reply-card * {
  border: 1.5px solid #555 !important;
  border-color: #555 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Light mode: light background for inbox reply cards */
.letitout-my-posts-modal .inbox-reply-card {
  background-color: #f8f9fa !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Dark mode: keep existing styling */
.dark-mode .letitout-my-posts-modal .inbox-reply-card {
  background-color: #2f2f2f !important;
  border: 1.5px solid #555 !important;
  outline: none !important;
  box-shadow: none !important;
}

.letitout-my-posts-modal .letitout-my-posts-close {
  color: #111 !important;
}

/* --- Premium Packs Styles --- */

/* Ghost Button for Premium Packs */
.premium-packs-cta {
    background: none;
    border: none;
    color: #888;
    padding: 0;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    text-decoration: underline;
    transition: color 0.2s;
    box-shadow: none;
    border-radius: 0;
    display: inline;
}
.premium-packs-cta:hover {
    color: #444;
    text-decoration: underline;
    background: none;
    border: none;
}

.dark-mode .premium-packs-cta {
    border-color: #444;
    color: #aaa;
}

.dark-mode .premium-packs-cta:hover {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

/* Pack Selector Dropdown */
.pack-selector {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
}

.pack-selector-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pack-selector-btn:hover,
.pack-selector-btn:focus {
    background: #fff0f2; /* soft red */
    color: #111;
    border-color: #f8bfc4; /* soft red border */
}

.pack-selector-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.pack-selector-btn.open svg {
    transform: rotate(180deg);
}

.dark-mode .pack-selector-btn {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

.dark-mode .pack-selector-btn:hover {
    background: #444;
    border-color: #666;
}

.pack-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.pack-dropdown.show {
    display: block;
}

.pack-dropdown-item {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.pack-dropdown-item:last-child {
    border-bottom: none;
}

.pack-dropdown-item:hover {
    background: #fff0f2; /* soft red */
}

.pack-dropdown-item.selected {
    background: #f10000;
    color: white;
}

.dark-mode .pack-dropdown {
    background: #252526;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .pack-dropdown-item {
    border-bottom-color: #333;
    color: #D4D4D4;
}

.dark-mode .pack-dropdown-item:hover {
    background: #3a3a3a;
}

.dark-mode .pack-dropdown-item.selected {
    background: #f10000;
    color: white;
}

/* Premium Packs Modal */
.premium-packs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.premium-packs-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.premium-packs-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.premium-packs-modal-overlay.visible .premium-packs-modal {
    transform: translateY(0);
}

.premium-packs-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.premium-packs-modal-close:hover {
    background: #f5f5f5;
}

.premium-packs-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
    text-align: center;
}

.premium-packs-modal-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.premium-packs-level {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Pack Cards Grid */
.premium-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.premium-pack-card {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.1rem 1.1rem 0.85rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.premium-pack-card:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-pack-card.unlocked {
    background: #fff5f5;
    border-color: #f8bfc4; /* soft red */
}

.premium-pack-card.unlocked:hover {
    background: #fff0f2; /* soft red background */
    border-color: #f10000;
}

.premium-pack-card.locked {
    opacity: 0.7;
}

.premium-pack-card.locked:hover {
    opacity: 0.9;
}

.premium-pack-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.premium-pack-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.18rem;
    flex: 1;
}

.premium-pack-subtitle {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.premium-pack-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.premium-pack-status.unlocked {
    color: #f10000;
}

.premium-pack-status.locked {
    color: #888;
}

.premium-pack-status.unlocked .premium-pack-icon {
    stroke: #f10000;
    color: #f10000;
}

.premium-pack-price {
    background: #f10000;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.premium-pack-icon {
    width: 16px;
    height: 16px;
}

/* Dark Mode Styles */
.dark-mode .premium-packs-modal {
    background: #252526;
    color: #D4D4D4;
}

.dark-mode .premium-packs-modal-title {
    color: #ffffff;
}

.dark-mode .premium-packs-modal-subtitle {
    color: #aaa;
}

.dark-mode .premium-packs-modal-close:hover {
    background: #3a3a3a;
}

.dark-mode .premium-pack-card {
    background: #2a2a2a;
    border-color: #444;
    color: #D4D4D4;
}

.dark-mode .premium-pack-card:hover {
    background: #333;
    border-color: #555;
}

.dark-mode .premium-pack-card.unlocked {
    background: #444;
    border-color: #fff;
}

.dark-mode .premium-pack-card.unlocked:hover {
    background: #555;
}

.dark-mode .premium-pack-title {
    color: #ffffff;
}

.dark-mode .premium-pack-subtitle {
    color: #aaa;
}

.dark-mode .premium-pack-status.locked {
    color: #666;
}

/* Loading State */
.premium-pack-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.premium-pack-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #f10000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .premium-packs-modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .premium-packs-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .premium-pack-card {
        padding: 1.25rem;
    }
    
    .premium-packs-modal-title {
        font-size: 1.25rem;
    }
    
    .premium-packs-modal-subtitle {
        font-size: 0.9rem;
    }
}

/* Error State */
.premium-pack-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.dark-mode .premium-pack-error {
    background: #2a1a1a;
    border-color: #4a2a2a;
    color: #f56565;
}

@media (max-width: 600px) {
    .premium-packs-modal-overlay {
        align-items: flex-start;
        padding: 0;
    }
    .premium-packs-modal {
        width: 100vw;
        max-width: 100vw;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 2.2rem 0.5rem 2rem 0.5rem;
        box-shadow: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .premium-packs-modal-close {
        top: 1.25rem;
        right: 1.25rem;
    }
    .premium-packs-modal-title {
        font-size: 1.25rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 0.7rem;
        letter-spacing: -0.01em;
    }
    .premium-packs-modal-subtitle {
        font-size: 1.05rem;
        color: #666;
        text-align: center;
        margin-bottom: 1.2rem;
        line-height: 1.5;
        font-weight: 500;
    }
    .premium-packs-level {
        font-size: 0.95rem;
        color: #888;
        text-align: center;
        margin-bottom: 1.5rem;
        font-style: italic;
    }
    .premium-packs-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
    }
    .premium-pack-card {
        padding: 1.1rem;
    }
}

.dark-mode .premium-pack-status.unlocked {
    color: #fff;
}

.dark-mode .premium-pack-status.unlocked .premium-pack-icon {
    stroke: #fff;
    color: #fff;
}

/* Highlight glow animation removed - no longer needed */

.dark-mode .inbox-empty-state-title {
  color: #b0b0b0 !important;
}

/* Hide underline/border for pack dropdown if only one pack (no dropdown items) */
.pack-dropdown:empty {
    border: none !important;
    box-shadow: none !important;
    display: none !important;
}

/* Also, if the dropdown is shown but has no items, hide border/underline */
.pack-dropdown.show:not(:has(.pack-dropdown-item)) {
    border: none !important;
    box-shadow: none !important;
    display: none !important;
}

/* Optionally, ensure the dropdown arrow still toggles, but no underline appears if no items */
.pack-selector-btn.open:only-child {
    border-bottom: none !important;
}

/* Prevent zoom on mobile for all input fields */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    touch-action: manipulation; /* Improve touch response */
}

/* Ensure modal inputs don't cause zoom */
.letitout-emotion-modal input,
.letitout-city-modal input,
.wall-location-modal input,
.wall-filter-modal input,
.reply-modal input,
.reply-modal textarea {
    font-size: 16px !important;
    touch-action: manipulation;
}

.wall-location-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    min-width: 320px;
    height: 80vh; /* Fixed height instead of max-height */
    min-height: 500px; /* Increased minimum height */
    border-radius: var(--letitout-radius-md);
    box-shadow: var(--letitout-shadow-sm);
    border: 1px solid #f2f2f2;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    flex: 1;
    overflow: hidden;
}

@media (max-width: 768px) {
    .wall-location-modal-content {
        border-radius: 0;
        min-width: 0;
        padding: 1.5rem 1rem 1rem 1rem;
        height: 100%;
        min-height: auto;
        border: none;
        box-shadow: none;
    }
}

/* Wall Sort Dropdown Fixes for Mobile and Light Mode */
.wall-sort-trigger {
    color: #222 !important;
}
.wall-sort-trigger .dropdown-arrow {
    color: #222 !important;
    font-size: 0.85em;
}
.wall-sort-list {
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    background: #fff;
    border: none;
}
.wall-sort-option.selected {
    color: #f10000 !important;
    background: #f6f6f6 !important;
    font-weight: 700;
}
.wall-sort-option {
    color: #222 !important;
    background: #fff !important;
}
.wall-sort-option:hover,
.wall-sort-option:focus {
    background: #f5f5f5 !important;
    color: #222 !important;
}
@media (max-width: 768px) {
    .wall-sort-list {
        border-radius: 16px !important;
        min-width: 220px;
        max-width: 90vw;
        left: 0;
        right: auto;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        background: #fff;
        border: none;
    }
    .wall-sort-trigger {
        color: #222 !important;
    }
    .wall-sort-trigger .dropdown-arrow {
        color: #222 !important;
    }
    .wall-sort-option.selected {
        color: #f10000 !important;
        background: #f6f6f6 !important;
    }
    .wall-sort-option {
        color: #222 !important;
        background: #fff !important;
    }
    .wall-sort-option:hover,
    .wall-sort-option:focus {
        background: #f5f5f5 !important;
        color: #222 !important;
    }
}

@media (min-width: 768px) {
  .wall-location-modal {
    width: auto;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .wall-location-modal-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 20px;
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex: unset;
  }
}

/* —— Let It Out “Why this exists” modal —— */
/* About (?) button: mirrors .theme-toggle-btn layout — left = theme, right = about */
.letitout-about-btn {
    position: absolute;
    top: 3.5rem;
    right: 2rem;
    left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000000;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0.2rem;
    line-height: 1;
    box-shadow: none;
    border-radius: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.letitout-about-btn .letitout-about-btn-icon {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

@media (max-width: 900px) {
    .letitout-about-btn {
        right: 1rem;
    }
}

@media (max-width: 600px) {
    .letitout-about-btn {
        top: auto;
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        right: calc(1.5rem + env(safe-area-inset-right, 0px));
        left: auto;
        position: fixed;
        background-color: #fffcf1;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        padding: 0.5rem;
        z-index: 100;
    }

    .letitout-about-btn .letitout-about-btn-icon {
        font-size: 1.2rem;
    }
}

.letitout-about-btn:hover,
.letitout-about-btn:focus {
    outline: none;
    opacity: 0.82;
}

.letitout-about-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    opacity: 1;
}

.letitout-about-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: max(1.25rem, env(safe-area-inset-top, 0px))
        max(1rem, env(safe-area-inset-right, 0px))
        max(1.25rem, env(safe-area-inset-bottom, 0px))
        max(1rem, env(safe-area-inset-left, 0px));
    background: rgba(20, 18, 16, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.letitout-about-overlay:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.letitout-about-overlay[hidden] {
    display: none !important;
}

/* Panel: scroll happens on .letitout-about-overlay so the card isn’t a nested scroll area */
.letitout-about-panel {
    position: relative;
    width: min(calc(100vw - 2rem), 480px);
    max-width: 480px;
    margin: auto;
    flex-shrink: 0;
    overflow: visible;
    border-radius: 1.25rem;
    background: linear-gradient(165deg, #fffcf1 0%, #fff8ee 45%, #fffcf1 100%);
    border: 1px solid rgba(241, 0, 0, 0.12);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transform: translateY(10px) scale(0.985);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 601px) {
    .letitout-about-overlay:not([hidden]) .letitout-about-panel {
        transform: translateY(0) scale(1);
    }
}

/* Tablet: slightly wider dialog, standard content max ~520px */
@media (max-width: 1024px) and (min-width: 601px) {
    .letitout-about-overlay {
        padding: max(1.25rem, env(safe-area-inset-top, 0px))
            max(1.25rem, env(safe-area-inset-right, 0px))
            max(1.25rem, env(safe-area-inset-bottom, 0px))
            max(1.25rem, env(safe-area-inset-left, 0px));
    }

    .letitout-about-panel {
        width: min(calc(100vw - 2.5rem), 520px);
        max-width: 520px;
        border-radius: 1.3rem;
    }

    .letitout-about-inner {
        padding: 1.85rem 1.75rem 1.65rem;
    }
}

.letitout-about-accent {
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, #f10000 20%, #f10000 80%, transparent);
    opacity: 0.85;
}

.letitout-about-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    color: #666;
    font-size: 1.35rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.letitout-about-close:hover,
.letitout-about-close:focus {
    background: rgba(241, 0, 0, 0.1);
    color: #f10000;
    outline: none;
}

.letitout-about-inner {
    padding: 2rem 1.5rem 1.75rem;
    font-family: 'DM Sans', sans-serif;
    color: #2a2a2a;
}

.letitout-about-inner--card {
    padding-top: 1.85rem;
}

.letitout-about-hero--brand {
    color: #f10000;
    font-size: 1.65rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.letitout-about-copy {
    font-size: 0.95rem;
    line-height: 1.52;
    color: #3a3a3a;
    margin: 0 0 0.62rem;
    font-weight: 500;
}

.letitout-about-copy strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* About (?) — prose + minimal closer (divider + one line, no tinted box) */
.letitout-about-prose {
    margin: 0 0 0.15rem;
}

.letitout-about-prose .letitout-about-copy:last-child:not(.letitout-about-copy--tagline):not(.letitout-about-copy--footnote) {
    margin-bottom: 0.35rem;
}

.letitout-about-copy--opening {
    font-weight: 600;
    color: #2a2a2a;
}

.letitout-about-copy--stack {
    margin: 0 0 0.65rem;
    line-height: 1.58;
}

.letitout-about-copy--stack-tight {
    margin-top: -0.15rem;
    margin-bottom: 0.6rem;
}

.letitout-about-copy--finale {
    margin-top: 0.35rem;
    margin-bottom: 0.4rem;
}

.letitout-about-copy--finale strong {
    color: #1a1a1a;
    font-weight: 700;
}

.letitout-about-copy--tagline {
    margin-top: 0;
    margin-bottom: 1.35rem;
    font-size: 0.94rem;
}

.letitout-about-copy--tagline strong {
    font-weight: 700;
    color: var(--letitout-primary, #f10000);
}

.letitout-about-copy--ease {
    color: #555;
    margin-bottom: 0.55rem;
}

.letitout-about-copy--brand {
    color: var(--letitout-primary, #f10000);
    font-weight: 600;
    margin-top: 0.1rem;
    margin-bottom: 0.65rem;
}

.letitout-about-copy--footnote {
    font-size: 0.88rem;
    line-height: 1.52;
    color: #666;
    margin-top: 0.1rem;
    margin-bottom: 1.35rem;
}

.letitout-about-closer {
    margin: 0 0 1rem;
    padding: 0.85rem 0 0;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: none;
    border-radius: 0;
    box-sizing: border-box;
}

.letitout-about-closer-text {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.55;
    color: #3a3a3a;
}

.letitout-about-closer-text strong {
    font-weight: 700;
    color: var(--letitout-primary, #f10000);
}

.letitout-about-kicker {
    font-family: 'Anton', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f10000;
    margin: 0 0 0.5rem;
}

.letitout-about-hero {
    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #111;
    margin: 0 0 0.85rem;
    text-transform: none;
}

.letitout-about-kicker.letitout-about-kicker-inline {
    margin: 0 0 0.85rem;
    line-height: 1.35;
}

.letitout-about-kicker-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #666;
}

.letitout-about-purpose-row {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0 0 0.5rem;
}

.letitout-about-purpose-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
}

.letitout-about-purpose-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f10000;
    font-family: 'DM Sans', sans-serif;
}

.letitout-about-you-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin: 0.35rem 0 0.4rem;
}

.letitout-about-you {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.letitout-about-you li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #444;
    line-height: 1.4;
}

.letitout-about-you li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f10000;
    opacity: 0.85;
}

.letitout-about-ritual--step1 {
    margin-bottom: 0;
}

.letitout-about-pulse {
    list-style: none;
    margin: 0 0 0.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.letitout-about-pulse li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    line-height: 1.4;
}

.letitout-about-pulse li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f10000;
    opacity: 0.85;
}

.letitout-about-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 1.1rem 0;
}

.letitout-about-lead {
    font-size: 0.98rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.65rem;
    line-height: 1.45;
}

.letitout-about-truth {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.letitout-about-truth li {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #555;
}

.letitout-about-truth li span {
    color: #c40000;
    font-weight: 600;
}

.letitout-about-ritual {
    background: rgba(241, 0, 0, 0.06);
    border: 1px solid rgba(241, 0, 0, 0.15);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.25rem;
}

.letitout-about-ritual-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f10000;
    margin-bottom: 0.35rem;
}

.letitout-about-ritual-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #3a3a3a;
}

.letitout-about-path-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 0.6rem;
}

.letitout-about-path {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.letitout-about-path li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #444;
}

.letitout-about-path strong {
    font-weight: 700;
    color: #111;
    min-width: 6.5rem;
}

.letitout-about-arrow {
    color: #f10000;
    font-weight: 600;
}

.letitout-about-foot {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #666;
    margin: 0 0 1.1rem;
    font-style: italic;
}

.letitout-about-foot.letitout-about-foot--human {
    font-style: normal;
    font-weight: 500;
    color: #777;
    margin: 0.15rem 0 1.05rem;
}

.letitout-about-dismiss {
    width: 100%;
    min-height: 48px;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 8px;
    background: #f10000;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(193, 0, 22, 0.2);
}

.letitout-about-dismiss:hover,
.letitout-about-dismiss:focus {
    background: #7a0010;
    outline: none;
    box-shadow: 0 4px 8px rgba(193, 0, 22, 0.28);
}

.letitout-about-dismiss:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(193, 0, 22, 0.2);
}

/* Mobile: overlay scrolls; card width capped with side margins */
@media (max-width: 600px) {
    .letitout-about-overlay {
        padding: max(1rem, env(safe-area-inset-top, 0px))
            max(1.1rem, env(safe-area-inset-right, 0px))
            max(1rem, env(safe-area-inset-bottom, 0px))
            max(1.1rem, env(safe-area-inset-left, 0px));
    }

    .letitout-about-panel {
        width: min(400px, calc(100vw - 2.25rem));
        max-width: 400px;
        margin: auto;
        border-radius: 1.25rem;
        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.14),
            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    }

    .letitout-about-overlay:not([hidden]) .letitout-about-panel {
        transform: translateY(0) scale(1);
    }

    .letitout-about-inner {
        padding: 1.35rem 1.25rem 1.1rem;
        padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    }

    .letitout-about-close {
        top: 0.45rem;
        right: 0.45rem;
        width: 2.5rem;
        height: 2.5rem;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.25rem;
    }

    .letitout-about-hero {
        font-size: 1.08rem;
        line-height: 1.32;
        letter-spacing: 0.01em;
        margin-bottom: 0.65rem;
        padding-right: 1.75rem;
    }

    .letitout-about-hero--brand {
        font-size: 1.42rem;
        line-height: 1.22;
        margin-bottom: 0.65rem;
    }

    .letitout-about-copy {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.55rem;
    }

    .letitout-about-closer {
        padding-top: 0.65rem;
        margin-bottom: 0.9rem;
    }

    .letitout-about-closer-text {
        font-size: 0.89rem;
    }

    .letitout-about-foot.letitout-about-foot--human {
        font-size: 0.8rem;
        margin-bottom: 0.95rem;
    }

    .letitout-about-kicker.letitout-about-kicker-inline {
        font-size: 0.8rem;
        margin-bottom: 0.65rem;
        letter-spacing: 0.1em;
    }

    .letitout-about-kicker-sub {
        font-size: 0.72rem;
        font-weight: 600;
    }

    .letitout-about-purpose-row {
        margin-bottom: 0.45rem;
    }

    .letitout-about-purpose-value {
        font-size: 0.98rem;
    }

    .letitout-about-you-label {
        margin-top: 0.2rem;
        margin-bottom: 0.35rem;
    }

    .letitout-about-you {
        margin-bottom: 0.75rem;
        gap: 0.3rem;
    }

    .letitout-about-you li {
        font-size: 0.88rem;
        line-height: 1.38;
        padding-left: 0.9rem;
    }

    .letitout-about-you li::before {
        width: 4px;
        height: 4px;
        top: 0.52em;
    }

    .letitout-about-ritual {
        padding: 0.7rem 0.85rem;
        margin-bottom: 0.15rem;
    }

    .letitout-about-ritual-label {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }

    .letitout-about-ritual-text {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .letitout-about-divider {
        margin: 0.85rem 0;
    }

    .letitout-about-path-title {
        font-size: 0.68rem;
        margin-bottom: 0.45rem;
    }

    .letitout-about-path {
        margin-bottom: 0.75rem;
        gap: 0.35rem;
    }

    .letitout-about-path strong {
        min-width: 100%;
    }

    .letitout-about-path li {
        flex-direction: column;
        gap: 0.1rem;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .letitout-about-foot {
        font-size: 0.78rem;
        line-height: 1.45;
        margin-bottom: 1rem;
    }

    .letitout-about-dismiss {
        min-height: 46px;
        font-size: 0.98rem;
        font-weight: 600;
        padding: 0.75rem 1rem;
        margin-top: 0.35rem;
    }
}

/* Large desktop: slightly wider dialog (common 480–560px range) */
@media (min-width: 1280px) {
    .letitout-about-panel {
        width: min(calc(100vw - 2rem), 500px);
        max-width: 500px;
    }
}

/* Let It Out — first-time welcome modal (matches cream + red brand, about-panel family) */
.letitout-intro-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: max(1rem, env(safe-area-inset-top, 0px))
        max(1rem, env(safe-area-inset-right, 0px))
        max(1rem, env(safe-area-inset-bottom, 0px))
        max(1rem, env(safe-area-inset-left, 0px));
    background: rgba(20, 18, 16, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: letitoutIntroFadeIn 0.35s ease;
}

.letitout-intro-modal {
    position: relative;
    width: min(calc(100vw - 2rem), 440px);
    max-width: 440px;
    margin: auto;
    flex-shrink: 0;
    border-radius: 1.25rem;
    background: linear-gradient(165deg, #fffcf1 0%, #fff8ee 45%, #fffcf1 100%);
    border: 1px solid rgba(241, 0, 0, 0.12);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 2rem 1.75rem 1.75rem;
    box-sizing: border-box;
    animation: letitoutIntroFadeIn 0.35s ease;
}

.letitout-intro-accent {
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, #f10000 20%, #f10000 80%, transparent);
    opacity: 0.9;
}

.letitout-intro-modal-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
}

.letitout-intro-title,
.letitout-intro-lede {
    text-align: center;
}

.letitout-intro-body {
    width: 100%;
    text-align: center;
    margin: 0.1rem 0 0.55rem;
    box-sizing: border-box;
}

.letitout-intro-copy--opening {
    font-weight: 600;
    color: #222;
    margin-bottom: 0.55rem;
}

.letitout-intro-copy--stack {
    margin: 0 0 0.65rem;
    line-height: 1.58;
}

.letitout-intro-copy--write {
    font-weight: 500;
    color: #2a2a2a;
}

.letitout-intro-copy--ease {
    margin-bottom: 0.5rem;
    color: #555;
}

.letitout-intro-copy--brand {
    color: #f10000;
    font-weight: 600;
    margin-bottom: 0;
}

.letitout-intro-copy--insight {
    margin-top: 0.55rem;
    margin-bottom: 0;
    color: #444;
    font-weight: 500;
}

.letitout-intro-section {
    margin: 0 0 0.9rem;
}

.letitout-intro-section:last-child {
    margin-bottom: 0.1rem;
}

.letitout-intro-section-lead {
    font-size: 0.98rem;
    font-weight: 500;
    color: #222;
    line-height: 1.42;
    margin: 0 0 0.42rem;
}

.letitout-intro-copy {
    font-size: 0.95rem;
    font-weight: 500;
    color: #3a3a3a;
    line-height: 1.58;
    margin: 0 0 0.48rem;
}

.letitout-intro-copy strong {
    font-weight: 700;
    color: #1a1a1a;
}

.letitout-intro-copy:last-child {
    margin-bottom: 0;
}

.letitout-intro-copy.letitout-intro-copy--brand {
    color: #f10000;
    font-weight: 600;
}

.letitout-intro-copy.letitout-intro-copy--brand-tight {
    margin-bottom: 0.08rem;
}

.letitout-intro-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #f10000;
    margin: 0.35rem 0 0.75rem;
    line-height: 1.15;
    text-transform: none;
}

.letitout-intro-lede {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin: 0 0 0.85rem;
}

.letitout-intro-desc {
    font-size: 0.98rem;
    font-weight: 500;
    color: #3a3a3a;
    line-height: 1.55;
    margin: 0 0 0.85rem;
}

.letitout-intro-steps {
    font-size: 0.98rem;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.letitout-intro-age {
    font-size: 0.88rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 1.25rem;
    line-height: 1.4;
}

.letitout-intro-btn {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: #f10000;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(193, 0, 22, 0.2);
}

.letitout-intro-btn:hover,
.letitout-intro-btn:focus {
    background: #7a0010;
    outline: none;
    box-shadow: 0 4px 8px rgba(193, 0, 22, 0.28);
}

.letitout-intro-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(193, 0, 22, 0.2);
}

@keyframes letitoutIntroFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .letitout-intro-modal-overlay {
        padding-left: max(1.1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.1rem, env(safe-area-inset-right, 0px));
    }

    .letitout-intro-modal {
        width: min(calc(100vw - 2.2rem), 400px);
        max-width: 400px;
        margin: auto;
        padding: 1.65rem 1.35rem 1.5rem;
    }

    .letitout-intro-title {
        font-size: 1.65rem;
    }

    .letitout-intro-lede {
        font-size: 1.02rem;
    }

    .letitout-intro-section-lead {
        font-size: 0.94rem;
    }

    .letitout-intro-copy {
        font-size: 0.91rem;
    }

    .letitout-intro-age {
        font-size: 0.84rem;
        margin-bottom: 1.1rem;
    }

    .letitout-intro-btn {
        min-height: 46px;
        font-size: 0.98rem;
    }
}

/* Desktop: wider story column typography — write + wall + inbox body in sync */
@media (min-width: 900px) {
    body.page-letitout .letitout-form textarea {
        font-size: 17px;
        line-height: 1.62;
    }

    body.page-letitout .post-card .post-content {
        font-size: 17px;
        line-height: 1.62;
    }

    body.page-letitout .wall-feed-single .post-card-single .post-content-area .post-content {
        font-size: 17px;
        line-height: 1.62;
    }

    body.page-letitout .my-post-message,
    body.page-letitout .original-post-message {
        font-size: 1.07rem;
        line-height: 1.62;
    }

    body.page-letitout .original-post-card {
        font-size: 1.07rem;
        line-height: 1.62;
    }
}
