:root {
    --primary: #16a34a;          /* Main vibrant green */
    --primary-hover: #15803d;    /* Darker green on hover */
    --primary-soft: #dcfce7;     /* Soft light-green background highlight */
    --primary-border: #86efac;   /* Soft green border */
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #1c1e21;
    line-height: 1.5;
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1877f2;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e8e3e;
    background: #e6f4ea;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Main Two-Column Layout */
.main-layout {
    max-width: 1020px;
    margin: 20px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.sidebar h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.sidebar h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #65676b;
}

.group-list {
    list-style: none;
}

.group-link {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #1c1e21;
    font-weight: 500;
    margin-bottom: 4px;
    transition: background 0.15s;
}

.group-link:hover {
    background: #f0f2f5;
}

.group-link.active {
    background: #e7f3ff;
    color: #1877f2;
    font-weight: 700;
}

.divider {
    border: none;
    border-top: 1px solid #e4e6eb;
    margin: 14px 0;
}

#create-group-form input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    display: inline-block;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-primary {
    background: #1877f2;
    color: #ffffff;
}

.btn-primary:hover {
    background: #166fe5;
}

.btn-outline {
    background: #e4e6eb;
    color: #050505;
}

.btn-outline:hover {
    background: #d8dadf;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Group Header & Cards */
.group-header {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #1877f2;
}

.group-header h1 {
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.group-header p {
    color: #65676b;
    font-size: 0.9rem;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Post Form & Image Upload */
.post-form-card textarea {
    width: 100%;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    resize: vertical;
    background: #f0f2f5;
}

.post-form-card textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #1877f2;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.file-label {
    background: #f0f2f5;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #4b4f56;
}

.file-label:hover {
    background: #e4e6eb;
}

.file-label input[type="file"] {
    display: none;
}

.file-name {
    font-size: 0.8rem;
    color: #1877f2;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-banner {
    text-align: center;
    background: #e7f3ff;
    border: 1px solid #bdd8f8;
}

.guest-banner a {
    color: #1877f2;
    font-weight: 600;
    text-decoration: none;
}

/* Feed Posts */
.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1877f2;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author {
    font-size: 0.95rem;
    font-weight: 600;
}

.timestamp {
    font-size: 0.8rem;
    color: #65676b;
}

.post-body p {
    font-size: 0.95rem;
    word-wrap: break-word;
    margin-bottom: 10px;
}

.post-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 6px;
    border: 1px solid #e4e6eb;
}

/* Likes & Comments */
.post-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #65676b;
    padding: 10px 0;
    border-bottom: 1px solid #e4e6eb;
}

.post-actions {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e4e6eb;
}

.action-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #65676b;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.action-btn:hover {
    background: #f0f2f5;
}

.action-btn.liked {
    color: #1877f2;
}

.comments-section {
    padding-top: 10px;
}

.comment-item {
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.comment-item strong {
    margin-right: 4px;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment-form input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 18px;
    border: 1px solid #ccd0d5;
    background: #f0f2f5;
    font-size: 0.88rem;
}

.comment-form input:focus {
    outline: none;
    background: #ffffff;
    border-color: #1877f2;
}

/* Auth Pages (login.php & register.php) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 24px;
}

.auth-card h2 {
    margin-bottom: 16px;
    text-align: center;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 0.95rem;
}

.auth-switch {
    text-align: center;
    margin-top: 14px;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #1877f2;
    text-decoration: none;
}

.error {
    color: #d93025;
    background: #fce8e6;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-align: center;
}

.success {
    color: #1e8e3e;
    background: #e6f4ea;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-align: center;
}


/* Post & Comment Deletion Buttons */
.post-meta {
    flex-grow: 1;
}

.delete-btn {
    background: transparent;
    border: 1px solid #f5c2c7;
    color: #d93025;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.delete-btn:hover {
    background: #fce8e6;
}

.comment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.comment-text {
    word-break: break-word;
}

.delete-comment-btn {
    background: transparent;
    border: none;
    color: #8a8d91;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
}

.delete-comment-btn:hover {
    color: #d93025;
    background: #e4e6eb;
}


/* Admin & Moderator Role Badges */
.role-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.4px;
}

.role-admin {
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #f5c2c7;
}

.role-moderator {
    background: #e8f0fe;
    color: #1967d2;
    border: 1px solid #d2e3fc;
}
/* Profile Page & Feed Avatars */
.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ccd0d5;
}

.profile-container {
    max-width: 520px;
    margin: 30px auto;
    padding: 0 16px;
}

.profile-card {
    padding: 28px;
}

.profile-header {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar-lg,
.profile-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 14px;
    object-fit: cover;
    border: 3px solid #1877f2;
}

.profile-avatar-placeholder {
    background: #1877f2;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-meta {
    color: #65676b;
    font-size: 0.9rem;
    margin-top: 4px;
}

.profile-form .form-group {
    margin-bottom: 16px;
}

.profile-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b4f56;
    margin-bottom: 6px;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 0.95rem;
}

.profile-form input:disabled {
    background: #f0f2f5;
    color: #65676b;
    cursor: not-allowed;
}
/* Clickable Author Links & Public Profile Page */
.profile-link {
    text-decoration: none;
    display: inline-flex;
}

.author-link {
    color: #1c1e21;
    text-decoration: none;
}

.author-link:hover {
    text-decoration: underline;
    color: #1877f2;
}

.public-profile-container {
    max-width: 680px;
    margin: 24px auto;
    padding: 0 16px;
}

.section-title {
    font-size: 1.1rem;
    color: #4b4f56;
    margin: 20px 0 12px;
}

.posted-in {
    font-weight: 400;
    font-size: 0.85rem;
    color: #65676b;
    margin-left: 4px;
}

.posted-in a,
.view-thread-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
}

.posted-in a:hover,
.view-thread-link:hover {
    text-decoration: underline;
}
/* Profile Form Inputs & Sections */
.form-section-title {
    font-size: 0.95rem;
    color: #1877f2;
    border-bottom: 1px solid #e4e6eb;
    padding-bottom: 6px;
    margin: 22px 0 14px;
}

.profile-form input[type="tel"],
.profile-form input[type="url"],
.profile-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

/* Public Profile Contact Box & Social Badges */
.profile-details-box {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}

.detail-label {
    font-weight: 600;
    color: #4b4f56;
    min-width: 125px;
    flex-shrink: 0;
}

.detail-value {
    color: #1c1e21;
    text-decoration: none;
    word-break: break-word;
}

.detail-link {
    color: #1877f2;
    font-weight: 600;
    text-decoration: none;
}

.detail-link:hover {
    text-decoration: underline;
}

.social-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.social-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-btn:hover {
    opacity: 0.9;
}

.social-fb {
    background-color: #1877f2;
}

.social-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-tt {
    background-color: #000000;
}
/* Navbar Member Search Bar & Icon */
.nav-container {
    max-width: 1120px;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 4px 6px 4px 14px;
    border: 1px solid transparent;
    flex: 1;
    max-width: 340px;
    transition: background 0.2s, border-color 0.2s;
}

.nav-search-form:focus-within {
    background: #ffffff;
    border-color: #1877f2;
}

.nav-search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    width: 100%;
    color: #1c1e21;
}

.nav-search-btn {
    background: #1877f2;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.nav-search-btn:hover {
    background: #166fe5;
}


/* Member Directory & Search Page */
.directory-container {
    max-width: 1020px;
    margin: 24px auto;
    padding: 0 16px;
}

.directory-header {
    border-top: 5px solid #1877f2;
    padding: 22px;
}

.directory-header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.directory-header p {
    color: #65676b;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.directory-search-form {
    display: flex;
    gap: 10px;
}

.directory-search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 0.95rem;
}

.directory-search-form input:focus {
    outline: none;
    border-color: #1877f2;
}

.results-summary {
    font-size: 0.9rem;
    color: #65676b;
    margin: 0 0 14px 4px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.member-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

.member-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.member-avatar,
.member-avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #1877f2;
}

.member-avatar-placeholder {
    background: #1877f2;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-info h3 {
    font-size: 1rem;
    line-height: 1.3;
}

.member-username {
    font-size: 0.82rem;
    color: #65676b;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.86rem;
    color: #4b4f56;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    min-height: 68px;
}

.member-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.member-detail-item a {
    color: #1877f2;
    text-decoration: none;
    word-break: break-word;
}

.member-detail-item a:hover {
    text-decoration: underline;
}

.member-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e4e6eb;
}

.mini-socials {
    display: flex;
    gap: 6px;
}

.mini-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
}

.mini-badge.fb { background: #1877f2; }
.mini-badge.ig { background: #dc2743; }
.mini-badge.tt { background: #000000; }



/* Live Instant Search Dropdown */
.nav-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.nav-search-wrapper .nav-search-form {
    max-width: 100%;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e4e6eb;
    z-index: 200;
    overflow: hidden;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #1c1e21;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s;
}

.search-dropdown-item:hover {
    background: #f0f2f5;
}

.dropdown-avatar,
.dropdown-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dropdown-avatar-placeholder {
    background: #1877f2;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-user-info {
    overflow: hidden;
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-meta {
    font-size: 0.78rem;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-empty {
    padding: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: #65676b;
}

.search-dropdown-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1877f2;
    background: #f8f9fa;
    text-decoration: none;
}

.search-dropdown-footer:hover {
    background: #e7f3ff;
}



/* Admin Management Panel */
.admin-container {
    max-width: 1020px;
    margin: 24px auto;
    padding: 0 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 0;
    border-top: 4px solid #1877f2;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1877f2;
}

.stat-label {
    font-size: 0.88rem;
    color: #65676b;
    font-weight: 600;
}

.admin-section h2 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: #1c1e21;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #e4e6eb;
    vertical-align: middle;
}

.admin-table th {
    background: #f8f9fa;
    color: #4b4f56;
    font-weight: 600;
}

.table-sub {
    font-size: 0.8rem;
    color: #65676b;
}

.role-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccd0d5;
    font-size: 0.85rem;
    background: #ffffff;
    cursor: pointer;
}



/* Clickable Links inside Posts & Comments */
.post-link {
    color: #1877f2;
    text-decoration: underline;
    word-break: break-all;
}

.post-link:hover {
    color: #145dbf;
}



/* Prevent grid column and cards from expanding horizontally */
.feed-container {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.post-card,
.post-body {
    max-width: 100%;
    overflow: hidden;
}

/* Constrain Rich Link Preview Card & Image Width */
.link-preview-card {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #dadde1;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #f0f2f5;
    margin-top: 10px;
}

.link-preview-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #dadde1;
}

.link-preview-info {
    padding: 12px 14px;
    max-width: 100%;
    overflow: hidden;
}

.link-preview-title,
.link-preview-desc,
.link-preview-domain {
    overflow-wrap: break-word;
    word-break: break-word;
}


/* Blue Verification Checkmark Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    background-color: #1877f2;
    color: #ffffff;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
    flex-shrink: 0;
}

.verified-badge-lg {
    width: 22px;
    height: 22px;
    margin-right: 6px;
}

/* Admin Verification Toggle Button */
.verify-toggle-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #ccd0d5;
    background: #f0f2f5;
    color: #4b4f56;
    transition: all 0.15s;
}

.verify-toggle-btn:hover {
    background: #e4e6eb;
}

.verify-toggle-btn.verified {
    background: #e7f3ff;
    color: #1877f2;
    border-color: #1877f2;
}




/* =========================================
   GREEN PRIMARY THEME OVERRIDES
   ========================================= */
.logo,
.group-link.active,
.guest-banner a,
.file-name,
.action-btn.liked,
.auth-switch a,
.author-link:hover,
.posted-in a,
.view-thread-link,
.form-section-title,
.detail-link,
.member-detail-item a,
.search-dropdown-footer,
.stat-number,
.verify-toggle-btn.verified {
    color: #16a34a !important;
}

.btn-primary,
.avatar,
.profile-avatar-placeholder,
.member-avatar-placeholder,
.nav-search-btn,
.dropdown-avatar-placeholder,
.verified-badge {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.nav-search-btn:hover {
    background-color: #15803d !important;
}

.group-link.active,
.guest-banner,
.search-dropdown-footer:hover,
.verify-toggle-btn.verified {
    background-color: #dcfce7 !important;
}

.group-header,
.stat-card {
    border-top-color: #16a34a !important;
}

.post-form-card textarea:focus,
.comment-form input:focus,
.profile-avatar-lg,
.profile-avatar-placeholder,
.member-avatar,
.member-avatar-placeholder,
.directory-search-form input:focus,
.nav-search-form:focus-within,
.verify-toggle-btn.verified {
    border-color: #16a34a !important;
}

.guest-banner {
    border-color: #86efac !important;
}

.post-link {
    color: #16a34a !important;
}

.post-link:hover {
    color: #15803d !important;
}





/* Top Navbar Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #16a34a;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}



/* Direct Messaging on User Profile & Inbox */
.dm-box {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e4e6eb;
}

.dm-box h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #1c1e21;
}

.dm-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    resize: vertical;
    background: #f8f9fa;
}

.dm-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #16a34a;
}

.dm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.dm-guest-box {
    margin-top: 16px;
    padding: 12px;
    background: #dcfce7;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.dm-guest-box a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}

.unread-pill {
    display: inline-block;
    background: #d93025;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Inbox Two-Column Layout */
.inbox-layout {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .inbox-layout {
        grid-template-columns: 1fr;
    }
}

.inbox-sidebar h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.conversation-list {
    list-style: none;
}

.conversation-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1c1e21;
    margin-bottom: 4px;
}

.conversation-item:hover {
    background: #f0f2f5;
}

.conversation-item.active {
    background: #dcfce7;
    color: #16a34a;
}

.conv-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 540px;
}

.chat-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e6eb;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble-row {
    display: flex;
}

.chat-bubble-row.mine {
    justify-content: flex-end;
}

.chat-bubble-row.theirs {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    word-break: break-word;
}

.mine .chat-bubble {
    background: #16a34a;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.mine .chat-bubble a {
    color: #ffffff;
}

.theirs .chat-bubble {
    background: #f0f2f5;
    color: #1c1e21;
    border-bottom-left-radius: 4px;
}

.chat-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.75;
    margin-top: 4px;
}

.chat-reply-form {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e4e6eb;
}

.chat-reply-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccd0d5;
    border-radius: 20px;
    font-size: 0.92rem;
}

.chat-reply-form input:focus {
    outline: none;
    border-color: #16a34a;
}



/* Top Navbar User Profile Pill & Avatar */
.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    border-radius: 20px;
    background: #f0f2f5;
    color: #1c1e21;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.nav-user-pill:hover {
    background: #e4e6eb;
}

.nav-user-avatar,
.nav-user-avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-user-avatar {
    border: 1.5px solid #16a34a;
}

.nav-user-avatar-placeholder {
    background: #16a34a;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Admin Block / Unblock User Controls */
.admin-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.block-toggle-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #f59e0b;
    background: #fef3c7;
    color: #b45309;
    transition: background 0.15s;
}

.block-toggle-btn:hover {
    background: #fde68a;
}

.block-toggle-btn.blocked {
    border-color: #16a34a;
    background: #dcfce7;
    color: #16a34a;
}

.block-toggle-btn.blocked:hover {
    background: #bbf7d0;
}



/* =========================================
   BIG CAPTION BACKGROUND COLORS & WALLPAPERS
   ========================================= */
.bg-picker-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.bg-picker-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #65676b;
}

.bg-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #ccd0d5;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1c1e21;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s, border-color 0.12s;
}

.bg-swatch:hover {
    transform: scale(1.08);
}

.bg-swatch.active {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px #86efac;
}

/* Composer Live Preview State */
textarea.styled-caption-box {
    min-height: 200px;
    text-align: center;
    font-size: 1.55rem !important;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff !important;
    padding: 40px 24px !important;
    border: none !important;
}

textarea.styled-caption-box::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Published Feed Big Caption Banner */
.styled-post-banner {
    min-height: 240px;
    border-radius: 10px;
    padding: 36px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-bottom: 6px;
}

.styled-post-banner p {
    font-size: 1.65rem !important;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff !important;
    margin: 0 !important;
    word-break: break-word;
}

.styled-post-banner a.post-link {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Solid & Gradient Background Colors */
.bg-green {
    background: linear-gradient(135deg, #16a34a 0%, #065f46 100%) !important;
}

.bg-sunset {
    background: linear-gradient(135deg, #f97316 0%, #db2777 100%) !important;
}

.bg-ocean {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%) !important;
}

.bg-royal {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%) !important;
}

.bg-dark {
    background: linear-gradient(135deg, #1f2937 0%, #030712 100%) !important;
}

/* Patterned Wallpapers */
.wp-dots {
    background-color: #15803d !important;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2px) !important;
    background-size: 18px 18px !important;
}

.wp-stripes {
    background: repeating-linear-gradient(
        -45deg,
        #0f766e,
        #0f766e 14px,
        #115e59 14px,
        #115e59 28px
    ) !important;
}

.wp-waves {
    background-color: #1e3a8a !important;
    background-image: 
        radial-gradient(circle at 100% 150%, #1e3a8a 24%, rgba(255,255,255,0.14) 25%, rgba(255,255,255,0.14) 28%, #1e3a8a 29%, #1e3a8a 36%, rgba(255,255,255,0.14) 36%, rgba(255,255,255,0.14) 40%, transparent 40%, transparent),
        radial-gradient(circle at 0 150%, #1e3a8a 24%, rgba(255,255,255,0.14) 25%, rgba(255,255,255,0.14) 28%, #1e3a8a 29%, #1e3a8a 36%, rgba(255,255,255,0.14) 36%, rgba(255,255,255,0.14) 40%, transparent 40%, transparent) !important;
    background-size: 40px 20px !important;
}


/* Post Video Player */
.post-video {
    width: 100%;
    max-width: 100%;
    max-height: 480px;
    border-radius: 8px;
    margin-top: 6px;
    background: #000000;
    display: block;
    border: 1px solid #e4e6eb;
}



/* Post Composer Image & Video Preview Box */
.media-preview-box {
    position: relative;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccd0d5;
    background: #000000;
}

.media-preview-box img,
.media-preview-box video {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.remove-media-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.remove-media-btn:hover {
    background: #d93025;
}


/* Live Media Upload Progress Bar */
.upload-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0f2f5;
    border-radius: 8px;
}

.upload-progress-track {
    flex: 1;
    height: 10px;
    background: #dadde1;
    border-radius: 999px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    border-radius: 999px;
    transition: width 0.15s ease;
}

.upload-progress-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #16a34a;
    min-width: 110px;
    text-align: right;
}


/* Constrain Post Composer & Media Preview Box Width */
.post-form-card {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.media-preview-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccd0d5;
    background: #000000;
}

.media-preview-box img,
.media-preview-box video {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


/* =========================================
   MEDIA GALLERY & LIGHTBOX PLAYER
   ========================================= */
.gallery-container {
    max-width: 1120px;
    margin: 24px auto;
    padding: 0 16px;
}

.gallery-header {
    border-top: 5px solid #16a34a;
    padding: 20px 22px;
}

.gallery-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gallery-title-row h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.gallery-title-row p {
    color: #65676b;
    font-size: 0.92rem;
}

.gallery-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    background: #f0f2f5;
    color: #4b4f56;
    transition: all 0.15s;
}

.gallery-tab:hover {
    background: #e4e6eb;
}

.gallery-tab.active {
    background: #16a34a;
    color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.gallery-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.gallery-thumb-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: #000000;
    cursor: pointer;
    overflow: hidden;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-thumb-box:hover .gallery-thumb {
    transform: scale(1.04);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-overlay span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.92);
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.media-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.gallery-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.gallery-author-row {
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.gallery-caption {
    font-size: 0.85rem;
    color: #4b4f56;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #65676b;
    padding-top: 8px;
    border-top: 1px solid #f0f2f5;
    margin-top: auto;
}

/* Full-Screen Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: #18191a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

.lightbox-close:hover {
    background: #d93025;
}

.lightbox-stage {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 72vh;
}

.lightbox-media {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
}

.lightbox-footer {
    padding: 14px 18px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lightbox-caption-text {
    font-size: 0.88rem;
    color: #4b4f56;
    margin-top: 2px;
    max-width: 560px;
}



/* Lightbox Slideshow Arrows & Counter */
.lightbox-stage-wrapper {
    position: relative;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-stage {
    width: 100%;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-counter {
    position: absolute;
    top: 14px;
    left: 16px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 10;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
}

.lightbox-nav:hover {
    background: #16a34a;
    transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
    left: 14px;
}

.lightbox-next {
    right: 14px;
}


/* Remember Me Checkbox on Login Page */
.remember-me-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px;
    font-size: 0.9rem;
    color: #4b4f56;
    cursor: pointer;
    user-select: none;
}

.remember-me-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}



/* =========================================
   TOP & BOTTOM BANNER ADS
   ========================================= */
.banner-ad-wrapper {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 16px;
}

.banner-ad-bottom {
    margin: 24px auto 32px;
}

.banner-ad-card {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dadde1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ad-sponsored-tag {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.banner-ad-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* Admin Banner Ad Form */
.ad-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.ad-form-grid input[type="text"],
.ad-form-grid input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 0.88rem;
    background: #f8f9fa;
}

.admin-ad-thumb {
    width: 130px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dadde1;
    display: block;
}
/* =========================================
   MOBILE-FRIENDLY RESPONSIVE NAVBAR
   ========================================= */
.nav-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-inbox-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f2f5;
    text-decoration: none;
    font-size: 1.1rem;
}

.mobile-inbox-icon .unread-pill {
    position: absolute;
    top: -4px;
    right: -4px;
    margin: 0;
}

.nav-hamburger-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    background: #f0f2f5;
    color: #1c1e21;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.nav-hamburger-btn:hover {
    background: #e4e6eb;
}

.nav-collapsible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 1;
    margin-left: 16px;
}

@media (max-width: 860px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 14px;
    }

    .nav-brand-row {
        width: 100%;
    }

    .nav-mobile-actions {
        display: flex;
    }

    .nav-collapsible {
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding-top: 12px;
        margin-top: 10px;
        border-top: 1px solid #e4e6eb;
        gap: 12px;
    }

    .nav-collapsible.open {
        display: flex;
    }

    .nav-search-wrapper,
    .nav-search-form {
        width: 100%;
        max-width: 100%;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .nav-links .btn,
    .nav-links .nav-user-pill {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}


/* =========================================
   FIXED BOTTOM MOBILE NAVIGATION BAR
   ========================================= */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 860px) {
    body {
        padding-bottom: 74px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: #ffffff;
        border-top: 1px solid #dadde1;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
        z-index: 950;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #65676b;
        font-size: 0.72rem;
        font-weight: 600;
        height: 100%;
        transition: color 0.15s;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: #16a34a;
    }

    .bottom-nav-item.active svg {
        stroke: #16a34a;
        stroke-width: 2.5;
    }

    .bottom-nav-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .bottom-unread-badge {
        position: absolute;
        top: -5px;
        right: -9px;
        background: #d93025;
        color: #ffffff;
        font-size: 0.65rem;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 10px;
        line-height: 1.2;
    }

    .bottom-nav-avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        border: 1.5px solid #ccd0d5;
    }

    .bottom-nav-item.active .bottom-nav-avatar {
        border-color: #16a34a;
    }
}


/* Center "+" Post Button in Mobile Bottom Bar */
.bottom-nav-post-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.38);
    transform: translateY(-8px);
    flex-shrink: 0;
    margin: 0 4px;
    transition: transform 0.15s, background 0.15s;
}

.bottom-nav-post-btn:active {
    transform: translateY(-6px) scale(0.95);
}


/* =========================================
   SCROLL FADE-IN ANIMATION FOR FEED POSTS
   ========================================= */
.post-card.fade-in-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
    will-change: opacity, transform;
}

.post-card.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}



/* =========================================
   COMMENTS POP-UP MODAL
   ========================================= */
.clickable-stat {
    cursor: pointer;
}

.clickable-stat:hover {
    text-decoration: underline;
    color: #16a34a;
}

.comments-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.comments-modal-box {
    width: 100%;
    max-width: 540px;
    max-height: 82vh;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    animation: modalPopIn 0.2s ease-out;
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.comments-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e4e6eb;
}

.comments-modal-header h3 {
    font-size: 1.05rem;
    margin: 0;
    color: #1c1e21;
}

.comments-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f2f5;
    color: #4b4f56;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comments-modal-close:hover {
    background: #e4e6eb;
    color: #1c1e21;
}

.comments-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-empty-comments {
    text-align: center;
    color: #65676b;
    padding: 28px 12px;
    font-size: 0.92rem;
}

.comment-time {
    font-size: 0.72rem;
    color: #65676b;
    margin-top: 2px;
}

.comments-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #e4e6eb;
    background: #f8f9fa;
}

.comments-modal-footer .comment-form {
    margin-top: 0;
}

.modal-login-prompt {
    text-align: center;
    font-size: 0.9rem;
    color: #4b4f56;
    margin: 0;
}

.modal-login-prompt a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}



/* =========================================
   EMOJI REACTION PICKER & BADGES
   ========================================= */
.reaction-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.reaction-icons-stack {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    letter-spacing: -2px;
}

.reaction-picker-wrap {
    position: relative;
    flex: 1;
    display: flex;
}

.reaction-picker-wrap > .action-btn {
    width: 100%;
}

.reaction-tray {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 6px;
    background: #ffffff;
    border: 1px solid #dadde1;
    border-radius: 30px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: all 0.18s ease;
    z-index: 50;
}

.reaction-picker-wrap:hover .reaction-tray,
.reaction-picker-wrap:focus-within .reaction-tray {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.reaction-emoji-btn {
    background: transparent;
    border: none;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    padding: 3px;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.reaction-emoji-btn:hover {
    transform: scale(1.32) translateY(-3px);
}

/* Active Reaction Button Colors */
.action-btn.reacted-like { color: #16a34a; font-weight: 700; }
.action-btn.reacted-love { color: #e11d48; font-weight: 700; }
.action-btn.reacted-laugh,
.action-btn.reacted-wow,
.action-btn.reacted-sad  { color: #d97706; font-weight: 700; }
