/* ==========================================================================
   CSS Design System & Styles - Minimalist Local Life
   ========================================================================== */

:root {
    --bg-main: #1a2236;
    --bg-card: rgba(38, 48, 72, 0.72);
    --bg-card-hover: rgba(48, 60, 88, 0.88);
    --bg-input: rgba(28, 36, 56, 0.88);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.15);
    
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.15);
    
    --danger: #ef4444;
    --danger-hover: #f87171;
    --danger-glow: rgba(239, 68, 68, 0.15);

    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    line-height: 1.5;
    overscroll-behavior: none; /* Prevents iOS rubber-band bounce at top and bottom */
}

/* Ambient Glow Backgrounds */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.22;
    pointer-events: none;
}

.bg-glow-1 {
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation: pulseGlow 15s infinite alternate;
}

.bg-glow-2 {
    background: var(--accent);
    bottom: -200px;
    right: -200px;
    animation: pulseGlow 12s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, 50px); }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Container Layout */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-x: clip; /* Block horizontal overflow without breaking sticky children */
}

/* Cards Design (Glassmorphism) */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-color-hover);
}

/* Headers */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.75rem;
}

@keyframes spinGently {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-area h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.badge-test {
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: var(--danger-hover) !important;
    -webkit-text-fill-color: initial !important; /* Overrides h1 gradient transparency */
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    vertical-align: middle;
    line-height: 1.1;
    letter-spacing: normal;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-hover);
}

.btn-icon-only {
    padding: 0.6rem;
}

.btn-icon-only span {
    display: none;
}

@media (min-width: 640px) {
    .btn-icon-only span {
        display: inline;
    }
}

.icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* User Badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

#btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
    margin-left: 0.25rem;
}

#btn-logout:hover {
    color: var(--danger-hover);
}

/* Search Box styling */
.search-section {
    position: sticky;
    top: 0;
    padding: 0.75rem 0;
    z-index: 90;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}

#search-input {
    width: 100%;
    background: #1e293b; /* Premium slate gray */
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.85rem 1.25rem 0.85rem 3.25rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

#search-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

#search-input:focus {
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 4px 16px rgba(0, 0, 0, 0.45);
}

.clear-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2;
}

.clear-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.tags-label {
    color: var(--text-muted);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Publish section styling */
.publish-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 3.5px solid var(--primary);
    padding-left: 0.75rem;
}

.input-area textarea {
    width: 100%;
    height: 100px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    resize: none;
    transition: var(--transition);
}

.input-area textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Image Upload Area */
.upload-zone {
    border: 1.5px dashed var(--border-color);
    border-radius: 12px;
    padding: 0.75rem; /* Shrunk padding to make container much smaller */
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.02);
}

.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.upload-icon {
    width: 1.5rem; /* Shrunk icon width and height */
    height: 1.5rem;
    color: var(--text-muted);
}

.upload-prompt p {
    font-size: 0.8rem; /* Shrunk text font size */
    font-weight: 500;
}

.upload-preview-container {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.upload-preview-container img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.btn-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-preview:hover {
    background: rgba(239, 68, 68, 0.9);
}

.publish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.info-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

/* Tabs section styling */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-hover);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary);
}

/* Feed Grid & Info Cards */
.feed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feed-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: slideUp 0.4s ease;
}

.feed-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feed-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    cursor: zoom-in;
    background: #000;
}

.feed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feed-card-image:hover img {
    transform: scale(1.05);
}

.feed-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.feed-card-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.6;
    flex-grow: 1;
}

.feed-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 0.75rem;
}

.feed-card-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-hover);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-delete:hover {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 0 8px var(--danger-glow);
}

/* Feed States */
.feed-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    gap: 1rem;
}

.empty-icon {
    font-size: 3rem;
    animation: float 4s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease;
}

.modal {
    width: 100%;
    max-width: 440px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form inputs styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.input-with-button input {
    flex-grow: 1;
    min-width: 0; /* Allows the input box to shrink dynamically on narrow screens */
    width: 100%;
}

.input-with-button button {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.6rem 0.8rem; /* Tighter padding to save space on mobile */
    font-size: 0.85rem;
}

.w-full {
    width: 100%;
}

/* Lightbox specific styling */
.lightbox {
    background: rgba(0, 0, 0, 0.98);
    touch-action: none; /* Disable native browser touch behaviors inside lightbox */
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: visible;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: block;
    transform-origin: center center;
    transition: transform 0.05s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

/* Toast Notifications Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 110;
    width: 90%;
    max-width: 380px;
}

.toast {
    background: rgba(13, 17, 28, 0.95);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.toast-success {
    border-left-color: var(--accent);
}

.toast-error {
    border-left-color: var(--danger);
}

/* Animations declarations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.hidden {
    display: none !important;
}

/* Multiple Image Upload Preview Grid */
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: var(--shadow-sm);
    animation: zoomIn 0.2s ease;
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Cards Image Gallery System */
.feed-card-gallery {
    display: grid;
    gap: 4px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.feed-card-gallery.count-1 {
    grid-template-columns: 1fr;
    height: 200px;
}

.feed-card-gallery.count-2 {
    grid-template-columns: 1fr 1fr;
    height: 150px;
}

.feed-card-gallery.count-3 {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 75px 75px;
    height: 154px;
}

.feed-card-gallery.count-3 .gallery-img-wrapper:first-child {
    grid-row: span 2;
    height: 100%;
}

.feed-card-gallery.count-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 75px);
    height: 154px;
}

.feed-card-gallery.count-many {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 60px);
    height: 124px;
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: zoom-in;
    background: #000;
    position: relative;
    transition: var(--transition);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-img-wrapper:hover img {
    transform: scale(1.05);
}

.gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 13, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Lightbox Slide Navigation & Counter */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary-hover);
    box-shadow: 0 0 10px var(--primary-glow);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: -65px;
}

.lightbox-next {
    right: -65px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

.lightbox-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(13, 17, 28, 0.85);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
    user-select: none;
}

/* Phone & URL Text Links */
.phone-link, .text-link {
    color: var(--primary-hover);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.phone-link:hover, .text-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Search Term Highlight */
mark.highlight {
    background: rgba(245, 158, 11, 0.25); /* Warm golden tint background */
    color: #fbbf24; /* Warm golden text color */
    border-radius: 4px;
    padding: 0 3px;
    font-weight: 600;
}

/* Infinite Scroll Loading Indicators */
.infinite-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
}

.spinner-small {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(59, 130, 246, 0.15);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

/* My Feed Header Banner */
.my-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.3s ease;
}

.my-feed-header .header-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.my-feed-header .header-title::before {
    content: '👤';
}

.my-feed-header .header-buttons {
    display: flex;
    gap: 0.5rem;
}

.my-feed-header .btn-feed-action {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.my-feed-header .btn-show-all {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-hover);
}

.my-feed-header .btn-show-all:hover {
    background: var(--primary);
    color: #ffffff;
}

.my-feed-header .btn-logout {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-hover);
}

.my-feed-header .btn-logout:hover {
    background: var(--danger);
    color: #ffffff;
}

/* Custom Delete Confirm Dialog */
.delete-confirm-modal {
    max-width: 320px;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
}

.delete-confirm-msg {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.delete-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.delete-confirm-actions .btn {
    flex: 1;
    max-width: 120px;
}

.btn-danger-solid {
    background: var(--danger);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-danger-solid:hover {
    background: #dc2626;
    box-shadow: 0 0 12px var(--danger-glow);
    transform: translateY(-1px);
}

/* ===== Review / Moderation Styles ===== */

/* Status badge on cards */
.review-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Admin review action row */
.review-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.btn-review {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    white-space: nowrap;
    background: transparent;
}

.btn-approve {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

.btn-approve:hover,
.btn-approve.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
}

.btn-reject {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-reject:hover,
.btn-reject.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}
