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

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

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

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

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

.letitout-form .letitout-emotion-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-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-city-btn:hover {
    background-color: #e9e9e9;
    border-color: #dcdcdc;
}

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

.letitout-selected-tags,
.letitout-selected-city {
    margin-top: 0.5rem;
}

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

.letitout-form textarea {
    width: 100%;
    height: 120px;
    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 */
    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;
}

.char-counter {
    margin-top: -1.2rem; /* Pulls counter up */
    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,
.city-tag {
    background: #FFF0F0;
    color: #ca0013;
    border: 1px solid #FFE0E0;
    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: 400;
}

/* Override for solid emotion tags */
.emotion-tag {
    background: #ca0013 !important;
    color: #ffffff !important;
    border-color: #ca0013 !important;
}

.emotion-tag .remove-tag {
    color: #ffffff !important;
}

.emotion-tag .remove-tag,
.city-tag .remove-tag {
    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,
.city-tag .remove-tag:hover {
    opacity: 1;
}

.letitout-emotion-error {
    color: #ca0013;
    font-size: 14px;
    margin-top: 8px;
    font-family: 'DM Sans', sans-serif;
    margin-left: auto;
    margin-right: auto;
}

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

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

  /* Make post card emotion tags smaller on desktop */
  .post-card .emotion-tag,
  .my-post-card .emotion-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: #ca0013;
    color: #fff;
    border-color: #ca0013;
}
.emotion-tag.emotion-tag-small {
    font-size: 0.92em;
    padding: 0.13em 0.9em;
    border-radius: 999px; /* Changed for pill shape */
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #ca0013;
    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;
}

/* Post Card */
.post-card {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
    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;
    gap: 6px;
    margin-bottom: 0.8rem;
}

.emotion-tag.emotion-tag-small {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px; /* Changed for pill shape */
    background: #f5f5f5;
    border: 1px solid #eee;
    color: #ca0013;
    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);
}

.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: #ca0013;
    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: #ca0013;
    text-decoration: underline;
}

/* Emotion Section */
.emotion-section {
    margin-top: -1rem; /* Reduced space above buttons */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.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-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-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.emotion-tag,
.city-tag {
    background: #FFF0F0;
    color: #ca0013;
    border: 1px solid #FFE0E0;
    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: 400;
}

.emotion-tag .remove-tag,
.city-tag .remove-tag {
    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,
.city-tag .remove-tag:hover {
    opacity: 1;
}

.letitout-emotion-error {
    color: #ca0013;
    font-size: 14px;
    margin-top: 8px;
    font-family: 'DM Sans', sans-serif;
    margin-left: auto;
    margin-right: auto;
}

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

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

.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: #ca0013 !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;
}

.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: #FFF0F0;
    border-color: #FFE0E0;
}

.emotion-subtag.selected {
    background: #ca0013;
    color: white;
    border-color: #ca0013;
}

.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: #ca0013;
    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: 3rem;
    margin-bottom: 3rem;
    padding: 0;
}

.letitout-submit-btn {
    width: 100%;
    max-width: 600px;
    background-color: #ca0013;
    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: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Add spacing below the CTA button for the info text */
.letitout-info-text {
    display: block;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #222;
}

/* Make sure city tag sits inline with emotion tags */
.letitout-selected-tags, .letitout-selected-city {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* 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;
}
.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: #ca0013 !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: #ca0013;
    color: #fff;
    border-color: #ca0013;
}
.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: #ca0013;
    color: #fff;
    border-color: #ca0013;
    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: #ca0013;
    color: white;
    border: none;
}
.letitout-city-modal-btn.done:hover {
    background: #7a0010;
}
.letitout-city-modal-btn.done:disabled {
    background: #FFB3B3;
    cursor: not-allowed;
}
@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: #ca0013; /* brand red background */
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(202,0,19,0.3), 0 2px 12px rgba(202,0,19,0.2); /* red-tinted shadow */
  padding: 3rem 2.5rem; /* more padding for cleaner look */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
  max-width: 96vw;
  animation: fadeIn 0.5s;
  border: 1px solid #b30010; /* darker red border */
}
.letitout-confirmation-heart {
  margin-bottom: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.letitout-confirmation-heart svg {
  width: 54px;
  height: 48px;
  filter: drop-shadow(0 2px 8px #ca001380); /* softer, less harsh glow */
  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: 1.25rem; /* slightly larger */
  font-weight: 600;
  margin-bottom: 0; /* removed bottom margin since no heart */
  line-height: 1.6; /* better line spacing */
}
.letitout-confirmation-text .confirmation-line {
  display: block;
  margin-bottom: 0.18em;
}

.letitout-confirmation-text .confirmation-title {
  display: block;
  margin-bottom: 0.5em;
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.letitout-confirmation-note {
  font-size: 1rem;
  color: #888;
  font-style: italic;
  margin-top: 0.7rem;
}
@keyframes fadeInGlow {
  from { box-shadow: 0 0 0 0 #ca001340; }
  50% { box-shadow: 0 0 16px 8px #ca001340; }
  to { box-shadow: 0 0 0 0 #ca001300; }
}
.letitout-highlight-post {
  animation: fadeInGlow 1.5s;
}
@media (max-width: 600px) {
  .letitout-confirmation-modal {
    padding: 2.5rem 1.5rem; /* adjusted padding */
    min-width: 0;
  }
  .letitout-confirmation-text {
    font-size: 1.1rem; /* slightly larger for mobile */
  }
  .letitout-confirmation-text .confirmation-title {
    font-size: 1.3rem; /* smaller Anton title for mobile */
  }
  .letitout-confirmation-note {
    font-size: 0.92rem;
  }
}

/* My Posts Button (Global Top Right) */
.letitout-my-posts-container {
    position: absolute;
    top: 3.5rem; /* Lowered to match theme toggle */
    right: 2rem; /* Adjusted for symmetry with theme toggle */
    z-index: 1000;
}

.letitout-my-posts-btn-global {
    background: transparent;
    color: #ca0013;
    border: none;
    border-radius: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    width: auto;
    height: auto;
    position: relative;
}
.letitout-my-posts-btn-global .my-posts-icon svg {
    stroke: #000;
    transition: stroke 0.2s;
}
.letitout-my-posts-btn-global:hover {
    background: transparent;
    border: none;
    transform: scale(1.05);
}
.letitout-my-posts-btn-global:active {
    transform: scale(0.95);
}

/* Unread Badge for My Posts Button */
.letitout-my-posts-btn-global .unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ca0013;
    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);
    }
}

@media (max-width: 600px) {
    .letitout-my-posts-container {
        top: 1.2rem;
        right: 0.8rem;
    }
    
    .letitout-my-posts-btn-global {
        font-size: 0.98rem;
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.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: #ca0013;
    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: #ca0013;
    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: #ca0013;
    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: #ca0013;
    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 */
.share-love-btn {
    background: #ca0013;
    color: white;
    border: 1px solid transparent;
    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: 0 2px 4px rgba(193, 0, 22, 0.2);
    box-sizing: border-box;
    height: 36px;
}

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

.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.5rem;
    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: #ca0013;
    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: #ca0013;
}

.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: #ca0013;
    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: #ca0013;
    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: #ca0013;
    margin-bottom: 0.8rem;
}

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

.premium-lock-cta {
    background: #ca0013;
    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(193,0,22,0.2);
}

.premium-lock-cta:hover {
    background: #7a0010;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(193,0,22,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: #ca0013;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

/* Premium Badge */
.premium-badge {
    background: #ca0013;
    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: #ca0013;
    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: #ca0013;
    margin-bottom: 1.5rem;
}

.premium-modal-cta {
    width: 100%;
    background: #ca0013;
    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: 600px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--letitout-radius-md);
    box-shadow: var(--letitout-shadow-sm);
    border: 1px solid #f2f2f2;
}

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

.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;
    border-radius: var(--letitout-radius-sm);
    transition: background-color 0.2s;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.wall-location-btn 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 Dropdown */
.wall-sort-container {
    display: flex;
    align-items: flex-start;
    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: #ca0013;
    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: #ca0013 !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: 90vh;
}

@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: 80vh;
        width: 100vw;
        margin: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .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: #ca0013;
  border-color: #ca0013;
  outline: none;
}
.felt-it-btn.felt {
  background: #ffe6ea;
  color: #c4122e;
  border-color: #c4122e;
}
.felt-it-btn.felt svg {
  stroke: #c4122e;
  fill: #c4122e;
}

.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;
    gap: 6px;
    margin-bottom: 0.8rem;
}

.emotion-tag.emotion-tag-small {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px; /* Changed for pill shape */
    background: #f5f5f5;
    border: 1px solid #eee;
    color: #ca0013;
    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: #ca0013;
    color: #fff;
    border-color: #ca0013;
    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;
}

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

.felt-it-btn:hover svg,
.felt-it-btn:focus svg {
  stroke: #c4122e;
}

.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: #ca0013;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

@media (min-width: 601px) {
  .letitout-my-posts-modal-overlay {
    align-items: center;
    justify-content: center;
  }
  .letitout-my-posts-modal {
    width: 800px;
    max-width: 96vw;
    height: 500px;
    min-height: 500px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 8px rgba(0,0,0,0.06);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    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;
}
.emotion-tag {
  display: inline-block;
  padding: 0.07em 0.48em;
  border-radius: 999px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: #ca0013;
  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: #ca0013;
  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: 600px;
    margin: 0 auto;
    display: block;
}

/* My Posts Notification Dot */
.my-posts-notification-dot {
  background: #ca0013;
  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: #ca0013;
  cursor: pointer;
  z-index: 10;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 0.5rem 0;
}

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

/* 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: #ca0013;
  font-weight: 600;
  margin-left: 0.4em;
}

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

/* 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: #ca0013;
    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: #ca0013;
    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(193,0,22,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: #ca0013;
    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: #ca0013;
    margin-bottom: 1.8rem;
}

.paywall-unlock-btn {
    background: #ca0013;
    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: #ca0013;
    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: #ca0013;
    padding: 1.2rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(193,0,22,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;
}

@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;
    }
}

.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: #ca0013;
  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: #ca0013;
}

.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: #ca0013;
    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: #a00012;
}

.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: #ca0013;
}

#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 */
    }
}

.letitout-info-text {
    /* Existing styles */
    color: #222;
}

.support-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 1rem; /* Same as info text */
    color: var(--letitout-text-secondary);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 0.75rem;
}

.support-link-btn:hover {
    color: var(--letitout-primary);
}


/* --- 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-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: #ca0013;
    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: 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: #ca0013;
    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: #ca0013;
    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: #ca0013;
}

.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: #ca0013;
}

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

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

.premium-pack-price {
    background: #ca0013;
    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 #ca0013;
    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: #ca0013 !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: #ca0013 !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;
  }
}
