:root {
    --bg-color: #fafafa;
    --text-dark: #262626;
    --text-light: #8e8e8e;
    --border-color: #dbdbdb;
    --blue: #0095f6;
    --blue-hover: #1877f2;
    --red: #ff3040;
    --nav-height: 60px;
    --max-width: 935px;
    --card-bg: #fff;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}




body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

.carousel-item img {
    object-fit: contain;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.nav-wrapper {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-logo-mark,
.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.auth-brand h1 {
    margin: 0;
    font-size: 1.8rem;
}

.auth-brand p {
    margin: 0 0 4px;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (min-width: 1001px) {
    .nav-actions .nav-quick-link {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    :root {
        --max-width: 1120px;
    }
}

@media (min-width: 1536px) {
    :root {
        --max-width: 1280px;
    }
}

.search-type-toggle {
        position: absolute;
        bottom: -42px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 4px;
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }


.search-container:focus-within .search-type-toggle,
    .search-container .search-type-toggle.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

@media (min-width: 768px) {
    .search-type-toggle {
        position: absolute;
        bottom: -42px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 4px;
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    
    .search-container:focus-within .search-type-toggle,
    .search-container .search-type-toggle.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.nav-search input {
    width: 100%;
    background: #efefef;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

/* Search sizing on large screens (no wrap/overflow) */
.nav-search {
    flex: 1;
    min-width: 0;
    margin: 0 18px;
}

.search-container {
    width: min(520px, 100%);
    margin: 0 auto;
    position: relative;
}

@media (min-width: 1400px) {
    .search-container { width: min(620px, 100%); }
}

@media (max-width: 900px) {
    .nav-search { margin: 0 10px; }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-actions a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 22px;
}

.nav-actions a:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

.nav-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    display: block;
}

.nav-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-avatar span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.nav-avatar .verified-chip {
    position: absolute;
    right: -2px;
    bottom: -1px;
    color: var(--blue);
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

.global-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.global-loading-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--text-dark);
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    font-weight: 600;
}

.inline-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
}

/* MAIN WRAP */
.main-wrap {
    max-width: var(--max-width);
    margin: calc(var(--nav-height) + 30px) auto 30px;
    padding: 0 20px;
}

/* FEED LAYOUT */
.feed-layout {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.feed-column {
    flex: 1 1 470px;
    max-width: 470px;
}

.feed-header {
    position: relative;
}


@media (min-width: 1200px) {
    .feed-layout {
        gap: 46px;
    }
    .feed-column {
        max-width: 560px;
    }
}

.sidebar {
    display: none;
    flex: 0 0 320px;
    max-width: 320px;
}

@media (min-width: 1000px) {
    .sidebar {
        display: none;
    }
}

/* When sidebar is removed on large screens, keep feed centered and wider */
@media (min-width: 1000px) {
    .feed-layout {
        justify-content: center;
        gap: 0;
    }
    .feed-column {
        max-width: 720px;
    }
}

/* AD CARD */
.ad-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 14px;
}

.card-avatar span,
.card-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
}

.card-username a {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
}

.card-username a:hover {
    text-decoration: underline;
}

.card-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.card-boosted-badge {
    margin-left: auto;
    font-size: 12px;
    color: var(--blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

/* CAROUSEL STYLES - RESTORED */
.card-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #000;
}

.carousel-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-item img, 
.carousel-item video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.video-mute-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
}

/* Ensure videos are never cropped in modals/carousels */
.mc-item video,
.detail-media video {
    object-fit: contain !important;
    background: #000;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.dot.active {
    background: var(--blue);
    transform: scale(1.2);
}

.card-actions {
    padding: 10px 14px 6px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.action-btn:hover {
    color: var(--text-light);
}

.action-btn.delete-btn {
    margin-left: auto;
    color: var(--text-dark);
}

.action-btn.delete-btn:hover {
    color: var(--red);
}

.buy-now-btn,
.buy-reveal-btn {
    width: calc(100% - 28px);
    margin: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.buy-now-btn {
    background: #25D366;
    color: #fff;
    text-decoration: none;
}

.buy-now-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.buy-reveal-btn {
    background: var(--blue);
    color: #fff;
}

.buy-reveal-btn:hover {
    background: var(--blue-hover);
}

.hidden-buy {
    display: none !important;
}

.like-btn.liked .like-icon {
    color: var(--red);
}

.like-count,
.comment-count {
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    min-width: 1ch;
    line-height: 1;
}

.action-btn.like-btn,
.action-btn.comment-btn {
    align-items: center;
}

.action-btn.like-btn .like-icon,
.action-btn.comment-btn > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 22px;
    line-height: 1;
}

.card-body {
    padding: 0 14px 14px;
}

.card-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    margin-top: 4px;
}

.card-desc {
    font-size: 14px;
    line-height: 1.4;
}

.hashtag {
    color: #00376b;
    cursor: pointer;
}

.hashtag:hover {
    text-decoration: underline;
}

/* SIDEBAR STYLES */
.sidebar-profile {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.sidebar-avatar span,
.sidebar-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 16px;
}

.sidebar-username {
    font-weight: 600;
    font-size: 14px;
}

.sidebar-bio {
    font-size: 14px;
    color: var(--text-light);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.sidebar-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-link:hover,
.sidebar-link.active {
    font-weight: 700;
}

.sidebar-trending h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: #efefef;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.tag-pill:hover {
    background: #e0e0e0;
}

/* FEED HEADER & FILTERS */
.feed-header {
    margin-bottom: 20px;
}

.feed-header h2 {
    font-size: 16px;
    display: none;
}

/* Hide heading on IG */
.feed-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    padding-right: 48px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
}

/* ALERTS */
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.flash-success {
    background: #e0f7fa;
    color: #006064;
}

.flash-error {
    background: #ffebee;
    color: #c62828;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
} */

.modal-card,
.modal-detail-card {
    background: var(--card-bg);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
}

.comment-list {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.comment-input-row {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.comment-input-row input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    outline: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--blue-hover);
}

.comment-item {
    display: flex;
    margin-bottom: 16px;
}

.comment-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-av img,
.avatar-initial {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: #fff;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.comment-username {
    font-weight: 600;
    font-size: 14px;
}

.comment-text {
    font-size: 14px;
    margin-top: 2px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.hidden {
    display: none !important;
}

.load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin: 20px 0;
}

.load-more-spinner {
    color: var(--text-light);
    font-size: 16px;
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
}

.feed-end {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin: 20px 0;
}

.ad-feed {
    display: flex;
    flex-direction: column;
}

/* UTILS */
.card-no-image {
    height: 260px;
    background: #efefef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

/* COMMON STYLES FOR AUTH & OTHER PAGES */
.form-container {
    max-width: 350px;
    margin: 40px auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px 40px;
    text-align: center;
    margin-top: 100px;
}

.form-container h2 {
    font-family: "Syne", sans-serif;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.standard-form input,
.standard-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    background: #fafafa;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.standard-form input:focus,
.standard-form textarea:focus {
    border-color: #a8a8a8;
}

.standard-form button {
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    background: var(--blue);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.standard-form button:hover {
    background: var(--blue-hover);
}

.auth-link {
    font-size: 14px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch {
    max-width: 350px;
    margin: 10px auto 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* ADMIN PAGE */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.board-card {
    background: var(--card-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.board-card h3 {
    margin: 0;
    font-size: 24px;
}

.board-card p {
    margin: 5px 0 0;
    color: var(--text-light);
    font-size: 14px;
}

/* PROFILE STYLES */
.profile-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 44px;
    gap: 60px;
    padding: 0 20px;
}

.profile-avatar-wrap {
    position: relative;
}

.profile-avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-crown {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.profile-info {
    flex: 1;
}

.profile-username-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-username-row h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

.btn-outline.sm {
    padding: 5px 9px;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
}

.badge-admin {
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    font-size: 16px;
}

@media (max-width: 900px) {
    .profile-header {
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .profile-page {
        padding-top: 16px;
    }
    .profile-header {
        flex-direction: column;
        padding: 0 8px;
        margin-bottom: 24px;
        gap: 14px;
    }
    .profile-avatar-img,
    .profile-avatar-placeholder {
        width: 96px;
        height: 96px;
    }
    .profile-avatar-placeholder {
        font-size: 34px;
    }
    .profile-username-row {
        width: 100%;
        gap: 10px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .profile-stats {
        gap: 16px;
        margin-bottom: 12px;
        font-size: 14px;
        flex-wrap: wrap;
    }
}

.profile-bio {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 400;
}

.profile-joined {
    font-size: 12px;
    color: var(--text-light);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-item {
    position: relative;
    aspect-ratio: 1;
    background: #efefef;
    cursor: pointer;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-no-img {
    padding: 20px;
    text-align: center;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
}

.empty-grid {
    grid-column: span 3;
    text-align: center;
    color: var(--text-light);
    padding: 50px 0;
}

/* CREATE AD STYLES */
.create-ad-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
}

.create-ad-container h2 {
    font-weight: 400;
    font-size: 22px;
    margin-bottom: 5px;
}

.create-ad-container p {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 0;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
    position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
    background: #efefef;
    border-color: var(--text-light);
}

.upload-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.upload-icon {
    font-size: 32px;
}

.upload-hint {
    font-size: 12px;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* DETAIL MODAL */
.modal-detail-card {
    background: var(--card-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    background: #fff;
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 850px) {
    .modal-detail-card {
        flex-direction: column;
        height: 95vh;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
    .detail-content {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .detail-body {
        max-height: 30vh;
        overflow-y: auto;
    }
}

.detail-media {
    flex: 1.5;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.detail-media img,
.detail-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

@media (max-width: 768px) {
    .detail-media {
        flex: none;
        width: 100%;
        max-height: 50vh; /* Prevent media from taking too much space */
        aspect-ratio: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    min-width: 300px;
}

.detail-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.detail-body {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.detail-contact {
    margin-top: 10px;
}

.detail-contact-btn {
    background: #efefef;
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-contact-btn:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.detail-contact-btn.wa-btn {
    background: #25D366;
    color: white;
    border: none;
}

.detail-contact-btn.wa-btn:hover {
    background: #128C7E;
    color: white;
}

.detail-contact-btn.em-btn {
    background: var(--blue);
    color: white;
    border: none;
}

.detail-contact-btn.em-btn:hover {
    background: var(--blue-hover);
    color: white;
}

.detail-comments-wrap {
    flex: 1;
    overflow-y: auto;
    padding-top: 0;
    min-height: 120px;
}

.detail-footer {
    border-top: 1px solid var(--border-color);
    padding: 0;
}

.detail-actions {
    padding: 12px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
}

.price-wrap del {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.buy-now-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.buy-now-btn:hover {
    background: #333;
}

@media (max-width: 768px) {
    .modal-detail-card {
        flex-direction: column;
        height: 92vh;
        overflow: hidden;
    }

    .detail-media {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 46vh;
        min-height: 220px;
        flex-shrink: 0;
    }

    .detail-content {
        min-height: 0;
    }

    .detail-comments-wrap {
        min-height: 140px;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* SEARCH DROPDOWN */
.nav-search {
    position: relative;
}

.search-dropdown-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.search-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
}

.search-drop-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.search-drop-item:hover {
    background: #f5f5f5;
}

/* V2 ENHANCEMENTS */
.nav-notif-wrap {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.nav-notif-wrap i {
    font-size: 22px;
}

.notif-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 50%;
    font-weight: bold;
    border: 2px solid #fff;
    min-width: 14px;
    text-align: center;
}

.notif-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-header {
    padding: 12px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.notif-item {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
}

.notif-item:hover {
    background: #fafafa;
}

.notif-item.unread {
    background: #f0f8ff;
}

.notif-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.modal-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mc-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-item img,
.mc-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-btn.prev {
    left: 10px;
}

.mc-btn.next {
    right: 10px;
}

.mc-btn:hover {
    background: #fff;
}

.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    aspect-ratio: 1/1;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
    position: relative;
}

.media-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analytics-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
    margin-right: 12px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    align-items: flex-start;
}

.comment-av-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-user-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.comment-blue-tick {
    color: var(--blue);
    font-size: 12px;
}

/* BELL & INBOX ICON FIXES */
.nav-notif-wrap i, .nav-inbox-icon i {
    font-size: 22px; 
}

.nav-inbox-icon {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.nav-inbox-icon:hover {
    transform: scale(1.1);
}

/* MOBILE FIXES */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0 10px;
    }
    .nav-search {
        display: block !important;
        position: static;
        flex: 1;
        min-width: 0;
        margin: 0 8px;
        max-width: none;
    }
    .search-container {
        width: 100%;
    }
    .nav-search input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .search-type-toggle {
        margin-bottom: 0;
        top: calc(100% + 6px);
        left: 0;
        transform: none;
        max-width: calc(100vw - 110px);
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-actions {
        gap: 12px;
    }
    .feed-header {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 14px;
    }
    .feed-filters {
        gap: 8px;
        margin-bottom: 0;
        padding-right: 0;
    }
    .filter-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    .search-type-toggle {
        padding: 4px 8px;
        border-radius: 16px;
        gap: 6px;
    }
    .toggle-btn {
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 12px;
    }
    .nav-actions a {
        font-size: 19px;
    }
    .nav-actions .nav-quick-link[href="/feed"] {
        display: none !important;
    }
}

.card-buy-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.offer-btn {
    flex: 1;
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--blue);
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.ar-selector {
  display: flex;
  gap: 12px;
}

.ar-selector label {
  flex: 1;
  cursor: pointer;
}

.ar-selector input {
  display: none;
}

.ar-selector span {
  display: block;
  text-align: center;
  padding: 10px;
  background: #f8f8f8;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 600;
  color: #666;
  transition: var(--transition);
}

.ar-selector input:checked + span {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.search-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: white;
  padding: 4px 8px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  z-index: 100;
}

.search-type-toggle.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toggle-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  line-height: 1.1;
  background: #f0f0f0;
  border-radius: 15px;
  cursor: pointer;
  color: #666;
  white-space: nowrap;
  border: 1px solid transparent;
}

.toggle-btn.active {
  background: var(--blue);
  color: white;
}

/* Ads Picker in Chat */
.ads-picker {
    background: #fff;
    border-bottom: 1px solid #eee;
    max-height: 250px;
    display: flex;
    flex-direction: column;
}

.picker-header {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #f8f8f8;
}

.picker-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.picker-grid {
    display: flex;
    gap: 12px;
    padding: 12px;
    overflow-x: auto;
}

.picker-item {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.picker-item:hover {
    transform: scale(1.05);
}

.picker-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.picker-item-info {
    padding: 6px;
}

.picker-title {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-price {
    font-size: 10px;
    color: var(--blue);
}
/* 
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1000;
} */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/* ASPECT RATIO CLASSES */
.ar-1-1 { aspect-ratio: 1 / 1; }
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-9-16 { aspect-ratio: 9 / 16; }
.ar-4-5 { aspect-ratio: 4 / 5; }

.ratio-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* CARD ACTIONS FIX */
.card-actions {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.action-btn i {
    font-size: 24px;
}

.action-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.action-btn.liked {
    color: #ff3040;
}

.action-btn.saved {
    color: var(--blue);
}

.card-stat span {
    font-size: 11px;
    font-weight: 600;
}

/* Medium screen adjustments (900px) */
@media (max-width: 1000px) {
    .main-wrap {
        padding: 0 10px;
    }
    .feed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 650px) {
    .feed-grid {
        grid-template-columns: 1fr;
    }
}

.carousel-stage {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-item img, .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Upgrade Nudge */
.upgrade-nudge-box {
    background: linear-gradient(135deg, var(--blue) 0%, #1877f2 100%);
    color: white;
    padding: 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 149, 246, 0.2);
}

.unb-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.unb-content i {
    font-size: 24px;
    opacity: 0.9;
}

.unb-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.unb-content p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.upgrade-nudge-box .btn-primary {
    background: white;
    color: var(--blue);
    border: none;
    font-weight: 700;
    height: auto;
    padding: 10px 20px;
}

.upgrade-nudge-box .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.grid-overlay-stats {
    display: flex;
    gap: 15px;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}

.grid-overlay-stats i {
    margin-right: 4px;
}

@media (max-width: 1000px) {
    .sidebar {
        display: none !important;
    }

    .feed-column {
        width: 100%;
        max-width: 100%;
    }

    .main-wrap {
        padding: 0 10px;
        margin-top: 75px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0 10px;
    }

    .nav-actions {
        gap: 15px;
    }

    .nav-actions a {
        font-size: 20px;
    }

    .upgrade-nudge-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .unb-content {
        flex-direction: column;
        gap: 8px;
    }

    .upgrade-nudge-box .btn-primary {
        width: 100%;
    }

    .card-header {
        padding: 10px;
    }

    .card-actions {
        padding: 8px 10px;
    }

    .card-body {
        padding: 0 10px 10px;
    }

    .buy-now-btn {
        max-width: calc(100% - 10px);
    }
}

/* ADMIN TABLE STYLING */
.admin-table-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid #efefef;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #efefef;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #fcfcfc;
}

.admin-table .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-table .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.status-pill {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pill.premium {
    background: #e0f2fe;
    color: var(--blue);
}

.status-pill.free {
    background: #f3f4f6;
    color: var(--text-light);
}

/* ENHANCED BUY NOW BUTTON */
.buy-now-btn {
    background: #25D366;
    color: white !important;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.2);
    margin-top: 10px;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
}

.buy-now-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.hidden-buy {
    display: none !important;
}

.buy-reveal-btn {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 600;
    padding: 9px 12px;
    margin-top: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.buy-reveal-btn:hover {
    background: #f6f6f6;
}

/* Side menu trigger — visible on all breakpoints (navigation links live in drawer when quick-links hidden) */
.mobile-menu-btn,
.nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
    border-radius: 10px;
}

.mobile-menu-btn:hover,
.nav-menu-btn:hover {
    background: #f3f4f6;
}

.mobile-side-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

/* .mobile-side-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
} */

.mobile-side-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(320px, 84vw);
    height: 100%;
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: 16px;
    box-sizing: border-box;
}

.mobile-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mobile-side-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.mobile-side-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-side-links a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-side-links a:hover {
    background: #f6f6f6;
}

/* Keep action icons crisp on desktop */
.card-actions .action-btn i {
    display: inline-block;
    line-height: 1;
    font-size: 22px;
}

@media (max-width: 1000px) {
    .nav-logo {
        margin-right: 0;
    }
}

/* --- FRICTIONLESS AUTH MODAL & GUEST UI --- */
#authPromptModal {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.3);
    transition: opacity 0.3s ease;
}

.auth-prompt-card {
    background: var(--card-bg);
    animation: authModalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes authModalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.btn-login:hover {
    color: var(--blue) !important;
}

.btn-register {
    background: linear-gradient(135deg, var(--blue) 0%, #7c3aed 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 149, 246, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 149, 246, 0.35);
}

.auth-prompt-card .btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, #7c3aed 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 149, 246, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-prompt-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 149, 246, 0.35);
}

.auth-prompt-card .btn-outline {
    color: var(--text-dark) !important;
    background: transparent !important;
    border: 1.5px solid var(--border-color) !important;
    transition: background 0.2s, border-color 0.2s;
}

.auth-prompt-card .btn-outline:hover {
    background: rgba(0,0,0,0.02) !important;
    border-color: var(--text-dark) !important;
}

.sidebar-guest-card .btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, #7c3aed 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-guest-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 149, 246, 0.25);
}

#authPromptContinueBtn:hover {
    color: var(--text-dark) !important;
}

/* Guest nav action tweaks */
@media (max-width: 600px) {
    .guest-actions {
        gap: 6px !important;
    }
    .btn-register {
        padding: 5px 10px !important;
        font-size: 13px !important;
    }
    .btn-login {
        font-size: 13px !important;
    }
}

/* --- FRICTIONLESS AUTH MODAL INLINE FORMS & LOCKED ELEMENTS --- */
.modal-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.modal-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.modal-tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.modal-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
    width: 100%;
}

.modal-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
    color: var(--text-dark);
}

.modal-input:focus {
    border-color: var(--blue);
}

.modal-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 10px 0;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}

.modal-divider::before,
.modal-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin: 0 10px;
}

/* Google loader */
.google-loader-overlay {
    position: absolute;
    inset: 0;
    background: var(--card-bg);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    gap: 15px;
    animation: fadeIn 0.2s ease forwards;
}

.google-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4285F4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-alert {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
    margin-top: 5px;
    box-sizing: border-box;
}

.modal-alert.error {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.modal-alert.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

/* Locked Contact Info Buttons */
.detail-contact-locked, .profile-contact-locked {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.locked-info-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 149, 246, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px dashed var(--blue);
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.locked-info-btn:hover {
    background: linear-gradient(135deg, rgba(0, 149, 246, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    transform: translateY(-1px);
}

.locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   IN-FEED CTA CARDS
   ═══════════════════════════════════════════════════════════════════ */

.cta-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 28px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 149, 246, 0.06);
    animation: ctaFadeIn 0.4s ease;
}

@keyframes ctaFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Gradient accent top bar */
.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.cta-card--guest::before {
    background: linear-gradient(90deg, #0095f6, #7c3aed);
}

.cta-card--loggedin::before {
    background: linear-gradient(90deg, #f09433, #dc2743, #bc1888);
}

.cta-card__icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
    display: block;
}

.cta-card__body {
    margin-bottom: 20px;
}

.cta-card__title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.cta-card__text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.cta-card__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cta-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    min-width: 130px;
}

.cta-card__btn--primary {
    background: var(--blue);
    color: #fff;
}

.cta-card__btn--primary:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 149, 246, 0.3);
}

.cta-card__btn--secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}

.cta-card__btn--secondary:hover {
    background: #f5f5f5;
    border-color: #aaa;
}

.cta-card__boost-row {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   WHATSAPP PREMIUM BOOST BUTTON
   ═══════════════════════════════════════════════════════════════════ */

.whatsapp-boost-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 10px;
    background: #25D366;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-boost-btn i {
    font-size: 16px;
}

.whatsapp-boost-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   NATIVE AD CONTAINER & SPONSORED BADGE
   ═══════════════════════════════════════════════════════════════════ */

.native-ad-container {
    border-style: dashed;
    border-color: rgba(0, 149, 246, 0.25);
    position: relative;
}

.native-ad-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-left: auto;
    flex-shrink: 0;
}

.native-ad-slot {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f9f9f9;
    border-top: 1px solid var(--border-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--text-light);
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURED / PINNED POST INDICATOR
   ═══════════════════════════════════════════════════════════════════ */

.ad-card[data-featured="true"] {
    border-color: rgba(240, 148, 51, 0.4);
    box-shadow: 0 2px 12px rgba(240, 148, 51, 0.12);
}

.card-featured-badge {
    margin-left: auto;
    font-size: 12px;
    color: #f09433;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(240, 148, 51, 0.08);
    padding: 3px 9px;
    border-radius: 8px;
}

