/* styles.css – Professional Gold & Charcoal Theme with Fading Header/Footer */
:root {
    --gold: #FACC0F;
    --gold-dark: #d4a800;
    --gold-light: #fde68a;
    --gold-subtle: #fcf6e8;
    --charcoal: #1e1e1e;
    --charcoal-soft: #2c2c2c;
    --accent: #7D6607;
    --light: #ffffff;
    --cream: #faf8f5;
    --gray-light: #f0ede8;
    --gray-medium: #e2ddd6;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 8px 30px rgba(250, 204, 15, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 14px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--cream);
    min-height: 100vh;
}

/* ===== HEADER ===== */
.header-banner {
    background: linear-gradient(180deg, #f0ece6 0%, #ffffff 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
}

.social-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    height: 35px;
    width: auto;
    transition: var(--transition);
}

.social-links a {
    color: var(--charcoal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.02);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.social-links a:hover {
    background: rgba(250, 204, 15, 0.12);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ===== MAIN SITE (original) ===== */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3.5rem 2rem;
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(250, 204, 15, 0.15);
    position: relative;
}
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}
.header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--charcoal);
}
.header h1 span {
    color: var(--gold-dark);
    background: linear-gradient(135deg, var(--gold-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.service-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.service-buttons button {
    padding: 1.5rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--light);
    color: var(--charcoal);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-medium);
    box-shadow: var(--shadow);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}
.service-buttons button:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    background: #fffdf7;
}
.service-buttons button.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.content {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}
.content:hover {
    border-color: var(--gold-subtle);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
}
.content section {
    display: none;
    animation: fadeIn 0.4s ease;
}
.content section.active {
    display: block;
}
.content h2 {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-size: 1.9rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.8rem;
    display: inline-block;
    font-weight: 600;
}
.content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
}

.cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: var(--shadow-gold);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}
.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(250, 204, 15, 0.35);
    background: var(--gold);
}

#contact-form { display: none; animation: fadeIn 0.4s ease; }
#contact-form.active { display: block; }

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}
label {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
    display: block;
}
input, select, textarea {
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--cream);
    width: 100%;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(250, 204, 15, 0.1);
    background: var(--light);
}
button[type="submit"] {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    padding: 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-gold);
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(250, 204, 15, 0.3);
    background: var(--gold);
}

/* ===== FOOTER (site) ===== */
footer {
    background: linear-gradient(180deg, #f0ece6 0%, #ffffff 100%);
    color: var(--charcoal);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid var(--gold);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-logo, .realtor-logo {
    height: 50px;
    width: auto;
}
.brokerage-info {
    text-align: center;
    flex: 1;
}
.brokerage-info p {
    margin-bottom: 0.3rem;
    color: #555;
}
.brokerage-info strong {
    color: var(--gold-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ===== GLOW MENU ===== */
.glow-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}
.menu-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(250, 204, 15, 0.35);
    transition: var(--transition);
    position: relative;
    z-index: 1002;
    border: 2px solid rgba(255, 255, 255, 0.9);
}
.menu-icon:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 35px rgba(250, 204, 15, 0.5);
}
.menu-icon.active {
    transform: rotate(90deg);
}
.menu-icon i {
    color: var(--charcoal);
    font-size: 1.4rem;
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(250, 204, 15, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(250, 204, 15, 0.04) 0%, transparent 50%);
    pointer-events: none;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.menu-content {
    text-align: center;
    transform: translateY(-20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.menu-overlay.active .menu-content {
    transform: translateY(0) scale(1);
}
.menu-content a {
    display: block;
    color: #e0dcd5;
    text-decoration: none;
    font-size: 2rem;
    margin: 1.2rem 0;
    padding: 0.6rem 3rem;
    transition: var(--transition);
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}
.menu-content a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}
.menu-content a:hover {
    color: var(--gold);
    transform: translateX(6px);
    background: rgba(250, 204, 15, 0.06);
}
.menu-content a:hover::after {
    width: 40%;
}

/* ===== SCROLL-CITY LAYOUT ===== */
.sc-main-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    gap: 2rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Left Sidebar */
.sc-sidebar {
    flex: 0 0 240px;
    background: #1e1e1e;
    border-radius: 18px;
    padding: 1.8rem 1.2rem;
    color: #e0dcd5;
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(250, 204, 15, 0.15);
}
.sc-brand { text-align: center; margin-bottom: 2.2rem; }
.sc-brand-icon { font-size: 2.4rem; color: #FACC0F; }
.sc-brand-name { display: block; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; margin-top: 0.2rem; color: #fff; }
.sc-brand-name span { color: #FACC0F; }
.sc-brand-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    background: rgba(250, 204, 15, 0.12);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    margin-top: 0.3rem;
}
.sc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.sc-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    color: #c5c0b8;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    cursor: pointer;
}
.sc-nav-item i { width: 1.4rem; text-align: center; font-size: 1.1rem; }
.sc-nav-item:hover { background: rgba(250, 204, 15, 0.08); color: #fff; }
.sc-nav-item.active { background: rgba(250, 204, 15, 0.15); color: #FACC0F; }
.sc-badge {
    background: #FACC0F;
    color: #1e1e1e;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 30px;
    margin-left: auto;
}
.sc-sidebar-footer {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sc-btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.sc-btn-gold {
    background: linear-gradient(135deg, #FACC0F, #d4a800);
    color: #1e1e1e;
    box-shadow: 0 4px 15px rgba(250, 204, 15, 0.3);
}
.sc-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 204, 15, 0.4);
}
.sc-btn-outline {
    background: transparent;
    color: #e0dcd5;
    border: 1.5px solid #444;
}
.sc-btn-outline:hover {
    border-color: #FACC0F;
    color: #fff;
    background: rgba(250, 204, 15, 0.05);
}
.sc-btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.sc-btn-block { width: 100%; justify-content: center; }

/* Feed */
.sc-feed { flex: 1; min-width: 0; }
.sc-composer {
    background: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
    border: 1px solid #ede9e2;
}
.sc-composer-avatar img { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; }
.sc-composer-body { flex: 1; }
.sc-composer-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.6rem 0;
    background: transparent;
    color: #1e1e1e;
    font-family: inherit;
    resize: vertical;
}
.sc-composer-input::placeholder { color: #999; }
.sc-composer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
}
.sc-composer-actions input[type="text"] {
    flex: 1;
    min-width: 120px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    outline: none;
    background: #faf8f5;
}
.sc-composer-actions input[type="text"]:focus { border-color: #FACC0F; }

.sc-composer-guest {
    background: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    color: #555;
    border: 1px dashed #ccc;
}
.sc-composer-guest a { color: #FACC0F; font-weight: 600; text-decoration: none; }

.sc-feed-sort {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #e2ddd6;
    padding-bottom: 0.6rem;
}
.sc-feed-sort-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    padding: 0.3rem 0.2rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sc-feed-sort-label:hover { color: #1e1e1e; }
.sc-feed-sort-label.active { color: #1e1e1e; border-bottom: 3px solid #FACC0F; }

.sc-posts {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.sc-post {
    background: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #ede9e2;
    transition: border 0.2s;
}
.sc-post:hover { border-color: #d4c9b8; }

.sc-post-avatar { position: relative; flex-shrink: 0; }
.sc-post-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.sc-post-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #1e1e1e;
    color: #FACC0F;
    font-size: 0.65rem;
    border-radius: 50%;
    padding: 0.2rem;
    border: 2px solid #fff;
}
.sc-post-body { flex: 1; min-width: 0; }
.sc-post-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.6rem;
    margin-bottom: 0.3rem;
}
.sc-post-user { font-weight: 700; color: #1e1e1e; }
.sc-post-handle { color: #888; font-size: 0.85rem; }
.sc-post-time { color: #aaa; font-size: 0.8rem; margin-left: auto; }
.sc-post-community {
    background: rgba(250, 204, 15, 0.15);
    padding: 0.1rem 0.6rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #7D6607;
    font-weight: 600;
}

.sc-post-content {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #2c2c2c;
    margin-bottom: 0.6rem;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.sc-post-content a {
    display: inline !important;
    white-space: normal;
    word-break: break-word;
    padding: 0;
    margin: 0;
    color: #7D6607;
    text-decoration: underline;
    font-weight: 600;
}
.sc-post-content a:hover { text-decoration: none; }

.sc-post-media img {
    width: 100%;
    height: auto;          /* autosize: preserve the image's aspect ratio */
    object-fit: contain;   /* show the WHOLE picture — never crop */
    border-radius: 12px;
    margin: 0.4rem 0 0.6rem;
    border: 1px solid #eee;
    display: block;
}
.sc-video-link {
    display: inline-block;
    background: #faf8f5;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid #ddd;
    color: #1e1e1e;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.sc-video-link:hover {
    background: #f0ede8;
    border-color: #FACC0F;
}

.sc-post-stats {
    display: flex;
    gap: 1.5rem;
    color: #777;
    font-size: 0.9rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0ede8;
    margin-top: 0.4rem;
}
.sc-post-stats span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}
.sc-post-stats span:hover { color: #1e1e1e; }
.sc-post-stats .liked { color: #e74c3c; }

.sc-comments {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0ede8;
}
.sc-comment {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.sc-comment-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sc-comment-body {
    background: #f8f6f2;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    flex: 1;
}
.sc-comment-user { font-weight: 600; font-size: 0.85rem; color: #1e1e1e; margin-right: 0.4rem; }
.sc-comment-text { font-size: 0.9rem; color: #333; }
.sc-comment-time { font-size: 0.7rem; color: #aaa; margin-left: 0.5rem; }
.sc-comment-composer {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.sc-comment-composer input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    outline: none;
    font-size: 0.9rem;
    background: #faf8f5;
}
.sc-comment-composer input:focus { border-color: #FACC0F; }
.sc-comment-guest { font-size: 0.85rem; color: #888; margin: 0.4rem 0; }
.sc-comment-guest a { color: #FACC0F; font-weight: 600; }

.sc-bot-activity {
    background: rgba(30, 30, 30, 0.03);
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #555;
    margin-top: 1.2rem;
    border: 1px dashed #d4c9b8;
    justify-content: center;
}
.sc-bot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FACC0F;
    animation: pulse-dot 1.2s infinite;
}
.sc-bot-dot:nth-child(2) { animation-delay: 0.2s; }
.sc-bot-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse-dot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Right Sidebar */
.sc-sidebar-right {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sc-widget {
    background: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #ede9e2;
}
.sc-widget h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sc-widget h4 i { color: #FACC0F; }
.sc-trending-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f4f0eb;
}
.sc-trending-item:last-child { border-bottom: none; }
.sc-trending-hashtag { font-weight: 600; color: #1e1e1e; }
.sc-trending-count { color: #888; font-size: 0.85rem; }

.sc-community-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f4f0eb;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    margin: 0 -0.6rem;
}
.sc-community-item:hover { background: #f8f6f2; }
.sc-community-icon { color: #FACC0F; font-size: 1.1rem; width: 1.6rem; text-align: center; }
.sc-community-name { flex: 1; font-weight: 500; font-size: 0.9rem; }
.sc-community-members { font-size: 0.75rem; color: #888; }
.sc-community-join {
    font-size: 0.7rem;
    font-weight: 700;
    color: #FACC0F;
    background: rgba(250, 204, 15, 0.1);
    padding: 0.1rem 0.6rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}
.sc-community-join.joined { background: #1e1e1e; color: #fff; }
.sc-community-join:hover { transform: scale(1.05); }

.sc-bot-spotlight .sc-bot-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f4f0eb;
}
.sc-bot-spotlight .sc-bot-card:last-child { border-bottom: none; }
.sc-bot-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sc-bot-card strong { display: block; font-size: 0.9rem; color: #1e1e1e; }
.sc-bot-card p { font-size: 0.8rem; color: #555; margin: 0; }

/* ===== MODALS ===== */
.sc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}
.sc-modal.active { visibility: visible; opacity: 1; }
.sc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.sc-modal-box {
    position: relative;
    background: #fff;
    max-width: 460px;
    width: 90%;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
    max-height: 90vh;
    overflow-y: auto;
}
.sc-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
}
.sc-modal-close:hover { color: #1e1e1e; }
.sc-modal-box h2 { font-size: 1.6rem; margin-top: 0; margin-bottom: 0.2rem; color: #1e1e1e; }
.sc-modal-sub { color: #777; margin-bottom: 1.8rem; }

.sc-form-group { margin-bottom: 1.2rem; }
.sc-form-group label { display: block; font-weight: 600; font-size: 0.9rem; color: #1e1e1e; margin-bottom: 0.2rem; }
.sc-form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e2ddd6;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border 0.2s;
    background: #faf8f5;
    box-sizing: border-box;
}
.sc-form-group input:focus { border-color: #FACC0F; outline: none; background: #fff; }

.sc-password-wrapper { position: relative; }
.sc-password-wrapper input { padding-right: 2.8rem; }
.sc-password-toggle {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
}
.sc-password-toggle:hover { color: #1e1e1e; }
.sc-form-hint { font-size: 0.75rem; color: #999; margin-top: 0.2rem; display: block; }
.sc-modal-switch { margin-top: 1.2rem; text-align: center; font-size: 0.9rem; color: #555; }
.sc-modal-switch a { color: #FACC0F; font-weight: 600; text-decoration: none; }

.sc-profile-preview { text-align: center; }
.sc-profile-preview img { border-radius: 50%; margin-bottom: 0.5rem; border: 3px solid #FACC0F; }
.sc-profile-preview h3 { margin: 0.2rem 0; }
.sc-profile-preview p { color: #777; margin: 0.2rem 0; }
.sc-profile-bio {
    font-size: 0.9rem;
    background: #f8f6f2;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    display: inline-block;
    margin: 0.5rem 0;
}

/* Video Modal */
.sc-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}
.sc-video-modal.active { visibility: visible; opacity: 1; }
.sc-video-modal .sc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}
.sc-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
}
.sc-video-modal-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}
.sc-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
}
.sc-video-modal-close:hover { opacity: 1; }

/* ===== LINK MODAL (with footer) ===== */
.sc-link-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}
.sc-link-modal.active {
    visibility: visible;
    opacity: 1;
}
.sc-link-modal .sc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}
.sc-link-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
    display: flex;
    flex-direction: column;
}
.sc-link-modal-iframe-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.sc-link-modal-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.sc-link-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.sc-link-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}
.sc-link-modal-footer {
    background: #f8f6f2;
    padding: 0.8rem 1.5rem;
    border-top: 1px solid #e2ddd6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-shrink: 0;
}
.sc-link-modal-footer .sc-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
}
.sc-link-modal-disclaimer {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sc-link-modal-disclaimer i {
    color: #FACC0F;
}

/* ===== PAGE PLACEHOLDERS ===== */
.sc-page-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ede9e2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.sc-page-placeholder i {
    font-size: 4rem;
    color: #FACC0F;
    margin-bottom: 1rem;
    display: block;
}
.sc-page-placeholder h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1e1e1e;
}
.sc-page-placeholder p {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}
.sc-page-placeholder .sc-btn { margin-top: 1.5rem; }

/* ===== COOKIE BANNER ===== */
.sc-cookie-banner {
    position: fixed;
    bottom: 55px;
    left: 0;
    width: 100%;
    background: #1e1e1e;
    color: #e0dcd5;
    padding: 0.8rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    z-index: 9998;
    border-top: 3px solid #FACC0F;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    transform: translateY(0);
}
.sc-cookie-banner.hidden { transform: translateY(100%); }
.sc-cookie-banner p { margin: 0; font-size: 0.85rem; flex: 1; padding-right: 1rem; }
.sc-cookie-banner .sc-btn {
    margin-left: 0.5rem;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 30px;
    background: #FACC0F;
    color: #1e1e1e;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.sc-cookie-banner .sc-btn:hover { background: #d4a800; }
.sc-cookie-banner .sc-btn-outline-light {
    background: transparent;
    color: #e0dcd5;
    border: 1px solid #555;
}
.sc-cookie-banner .sc-btn-outline-light:hover {
    border-color: #FACC0F;
    color: #fff;
}

/* ===== FIXED FOOTER (site) ===== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #f0ece6 0%, #ffffff 100%);
    color: var(--charcoal);
    padding: 0.5rem 1.5rem;
    text-align: center;
    border-top: 2px solid var(--gold);
    z-index: 9997;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.06);
}
footer.visible { transform: translateY(0); }
footer:hover { transform: translateY(0); }
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.footer-logo, .realtor-logo {
    height: 30px;
    width: auto;
}
.brokerage-info { text-align: center; flex: 1; }
.brokerage-info p {
    margin-bottom: 0.1rem;
    color: #555;
    font-size: 0.8rem;
}
.brokerage-info strong {
    color: var(--gold-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
/* Hide mobile toggle on desktop */
@media (min-width: 769px) {
    .sc-sidebar-toggle,
    .sc-sidebar-overlay {
        display: none !important;
    }
}

/* Mobile styles (<= 768px) */
@media (max-width: 768px) {
    .sc-sidebar-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 9999;
        background: #FACC0F;
        color: #1e1e1e;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        box-shadow: 0 4px 15px rgba(250, 204, 15, 0.4);
        cursor: pointer;
        transition: transform 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sc-sidebar-toggle:hover { transform: scale(1.05); }
    .sc-sidebar-toggle .fa-times { display: none; }
    .sc-sidebar-toggle.open .fa-bars { display: none; }
    .sc-sidebar-toggle.open .fa-times { display: inline; }

    .sc-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }
    .sc-sidebar-overlay.active { display: block; }

    .sc-sidebar-right {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        padding: 1rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        overflow-y: auto;
        padding-top: 60px;
        transition: transform 0.3s ease;
    }
    .sc-sidebar-right.open {
        transform: translateX(0);
    }

    /* Link Modal – slim footer on mobile */
    .sc-link-modal-content {
        height: 95vh;
        max-height: 95vh;
        width: 95%;
    }
    .sc-link-modal-footer {
        padding: 0.4rem 0.8rem;
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .sc-link-modal-footer .sc-btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.8rem;
    }
    .sc-link-modal-disclaimer {
        font-size: 0.65rem;
        justify-content: center;
        text-align: center;
        margin: 0;
    }
    .sc-link-modal-close {
        top: 5px;
        right: 10px;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
}

/* Other responsive (unchanged) */
@media (max-width: 1024px) {
    .sc-main-wrapper { flex-wrap: wrap; gap: 1.5rem; padding: 0 1rem; }
    .sc-sidebar {
        flex: 1 1 100%;
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }
    .sc-brand { margin-bottom: 0; flex: 0 0 auto; }
    .sc-nav { flex-direction: row; flex-wrap: wrap; gap: 0.2rem; }
    .sc-nav-item { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
    .sc-sidebar-footer { flex-direction: row; margin-top: 0; gap: 0.4rem; }
    .sc-sidebar-right { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
    .sc-widget { flex: 1 1 200px; }
    .social-links { padding-left: 80px; }
    .header-logo { height: 32px; margin-right: auto; }
}

@media (max-width: 768px) {
    .container { padding: 1rem; margin: 1rem auto; }
    .header { padding: 2rem 1.5rem; }
    .header h1 { font-size: 2.2rem; }
    .header p { font-size: 1rem; }
    .service-buttons { grid-template-columns: 1fr; gap: 1rem; }
    .service-buttons button { padding: 1.2rem; font-size: 1rem; }
    .content { padding: 1.5rem; }
    .content h2 { font-size: 1.5rem; }
    .footer-content { flex-direction: column; gap: 0.8rem; }
    .menu-content a { font-size: 1.6rem; padding: 0.5rem 2rem; margin: 0.8rem 0; }
    .glow-menu { top: 15px; left: 15px; }
    .menu-icon { width: 50px; height: 50px; }
    .menu-icon i { font-size: 1.2rem; }
    .header-banner { padding: 0.8rem 1rem; }
    .social-links { flex-direction: column; gap: 0.8rem; }
    .header-logo { height: 30px; }
    .social-links a { padding: 0.4rem 1rem; font-size: 0.85rem; }
    body { padding-bottom: 45px; }
}

@media (max-width: 640px) {
    .sc-sidebar { flex-direction: column; align-items: stretch; gap: 0.8rem; }
    .sc-nav { flex-wrap: wrap; justify-content: center; }
    .sc-sidebar-footer { justify-content: center; }
    .sc-post { flex-direction: column; align-items: flex-start; }
    .sc-post-avatar { align-self: flex-start; }
    .sc-feed-sort { gap: 0.8rem; flex-wrap: wrap; }
    .sc-cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        text-align: center;
        padding: 0.6rem 1rem;
        bottom: 46px;
    }
    .sc-cookie-banner p { padding-right: 0; font-size: 0.75rem; }
    .sc-cookie-banner .sc-btn { margin: 0.2rem auto; font-size: 0.7rem; padding: 0.2rem 0.8rem; }
    footer { padding: 0.25rem 0.5rem; }
    .footer-logo, .realtor-logo { height: 18px; }
    .brokerage-info p { font-size: 0.6rem; margin-bottom: 0; }
    .brokerage-info strong { font-size: 0.7rem; }
    .footer-content { gap: 0.3rem; }
    body { padding-bottom: 38px; }
}

@media (max-width: 480px) {
    .header h1 { font-size: 1.8rem; }
    .content h2 { font-size: 1.3rem; }
    .cta { padding: 0.9rem 1.5rem; font-size: 0.95rem; width: 100%; justify-content: center; }
    footer { padding: 0.2rem 0.4rem; }
    .footer-logo, .realtor-logo { height: 16px; }
    .brokerage-info p { font-size: 0.55rem; }
    .brokerage-info strong { font-size: 0.65rem; }
    body { padding-bottom: 34px; }
}

@media (min-width: 1101px) {
    .social-links { padding-left: 90px; }
    .header-logo { margin-right: auto; }
}

@media (min-width: 1600px) {
    .container { max-width: 1400px; }
    .footer-content { max-width: 1400px; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-3 { padding: 1.5rem; }

.card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}
.card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* ── Infinite Scroll Loading ──────────────────────────────────── */
.sc-loading-more {
    text-align: center;
    padding: 2rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sc-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FACC0F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.sc-end-of-feed {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 0.9rem;
}

.sc-empty-feed {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.sc-empty-feed i {
    font-size: 3rem;
    color: #FACC0F;
    margin-bottom: 1rem;
    display: block;
}

/* ─── Loading indicator that replaces footer ──────────────────── */
.sc-loading-replace-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ede9e2;
    margin: 1.2rem 0;
    min-height: 80px;
}

.sc-loading-replace-footer .sc-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FACC0F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.sc-loading-replace-footer span {
    font-size: 0.95rem;
    color: #666;
}

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

.sc-end-of-feed {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ede9e2;
}

.sc-empty-feed {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ede9e2;
}

.sc-empty-feed i {
    font-size: 3rem;
    color: #FACC0F;
    margin-bottom: 1rem;
    display: block;
}

/* ─── Chat Widget ────────────────────────────────────────────── */
.sc-chat-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9996;
    background: #FACC0F;
    color: #1e1e1e;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(250,204,15,0.4);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sc-chat-toggle:hover { transform: scale(1.05); }
.sc-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sc-chat-widget {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 360px;
    max-width: 90vw;
    height: 480px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9995;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    overflow: hidden;
}
.sc-chat-widget.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.sc-chat-header {
    padding: 0.8rem 1.2rem;
    background: #1e1e1e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    flex-shrink: 0;
}
.sc-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.sc-chat-back {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}

.sc-chat-conversations {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}
.sc-chat-search {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #eee;
}
.sc-chat-search input {
    width: 100%;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
}
.sc-chat-search input:focus {
    border-color: #FACC0F;
}

.sc-chat-conversation {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0ede8;
}
.sc-chat-conversation:hover {
    background: #f8f6f2;
}
.sc-chat-conversation img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.sc-chat-conv-info {
    flex: 1;
    min-width: 0;
}
.sc-chat-conv-info strong {
    display: block;
    font-size: 0.9rem;
}
.sc-chat-last-msg {
    font-size: 0.8rem;
    color: #888;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-chat-unread {
    background: #FACC0F;
    color: #1e1e1e;
    border-radius: 50%;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sc-chat-time {
    font-size: 0.65rem;
    color: #aaa;
    flex-shrink: 0;
}

.sc-chat-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.sc-chat-thread-header {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    background: #faf8f5;
}
.sc-chat-thread-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sc-chat-thread-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.sc-chat-thread-user span {
    font-weight: 600;
}
.sc-chat-thread-username {
    font-weight: 400;
    color: #888;
    font-size: 0.8rem;
}

.sc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #faf8f5;
    min-height: 0;
}
.sc-chat-message {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    max-width: 85%;
}
.sc-chat-message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.sc-chat-message.received {
    align-self: flex-start;
}
.sc-chat-message img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sc-chat-bubble {
    background: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sc-chat-message.sent .sc-chat-bubble {
    background: #FACC0F;
    margin-left: auto;
}
.sc-chat-text {
    display: block;
    font-size: 0.9rem;
    word-wrap: break-word;
}
.sc-chat-time {
    font-size: 0.6rem;
    color: #888;
    opacity: 0.7;
    display: inline-block;
    margin-top: 0.2rem;
}
.sc-chat-read {
    font-size: 0.6rem;
    color: #FACC0F;
    margin-left: 0.3rem;
}
.sc-chat-empty {
    text-align: center;
    padding: 2rem;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.sc-chat-empty i {
    color: #ddd;
}
.sc-chat-empty-hint {
    font-size: 0.8rem;
    color: #aaa;
}

.sc-chat-input {
    padding: 0.6rem 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    background: #fff;
}
.sc-chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    outline: none;
    font-size: 0.9rem;
}
.sc-chat-input input:focus {
    border-color: #FACC0F;
}
.sc-chat-input button {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
}

/* ─── Avatar clickable ────────────────────────────────────────────── */
.sc-post-avatar img,
.sc-composer-avatar img,
.sc-user-profile-header img,
.sc-chat-conversation img,
.sc-chat-thread-user img {
    cursor: pointer;
}
.sc-post-avatar img:hover,
.sc-composer-avatar img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ─── Mobile responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .sc-user-profile-content {
        max-width: 95%;
        padding: 1.5rem;
    }
    .sc-user-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .sc-user-profile-actions {
        flex-direction: column;
    }
    .sc-chat-widget {
        bottom: 70px;
        right: 10px;
        width: calc(100vw - 20px);
        height: 60vh;
        max-height: 60vh;
    }
}

/* ─── Feed Tabs ────────────────────────────────────────────────── */
.sc-feed-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2ddd6;
    padding-bottom: 0.5rem;
}
.sc-feed-tab {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 30px;
    background: transparent;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.sc-feed-tab:hover {
    color: #1e1e1e;
    background: #f8f6f2;
}
.sc-feed-tab.active {
    color: #1e1e1e;
    background: #FACC0F;
}

/* ─── Follow Button ────────────────────────────────────────────── */
.sc-follow-btn {
    padding: 0.15rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: transparent;
    color: #555;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    white-space: nowrap;
}
.sc-follow-btn:hover {
    border-color: #FACC0F;
    color: #1e1e1e;
}
.sc-follow-btn.following {
    background: #FACC0F;
    border-color: #FACC0F;
    color: #1e1e1e;
}
.sc-follow-btn.following:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}
.sc-follow-btn.following:hover span {
    display: none;
}
.sc-follow-btn.following:hover::after {
    content: 'Unfollow';
}

/* ─── Profile Stats ────────────────────────────────────────────── */
.sc-profile-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
}
.sc-profile-stats strong {
    color: #1e1e1e;
    font-size: 1.1rem;
}

/* ─── User Profile Modal ────────────────────────────────────────── */
.sc-user-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}
.sc-user-profile-modal.active {
    visibility: visible;
    opacity: 1;
}
.sc-user-profile-content {
    position: relative;
    background: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10;
    overflow-y: auto;
}
.sc-user-profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.sc-user-profile-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FACC0F;
    cursor: pointer;
}
.sc-user-profile-info h2 {
    margin: 0 0 0.2rem 0;
    font-size: 1.5rem;
}
.sc-user-profile-info p {
    margin: 0.2rem 0;
    color: #555;
}
.sc-user-bio {
    font-size: 0.9rem;
    color: #777;
    margin: 0.5rem 0;
}
.sc-user-profile-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.sc-user-profile-actions .sc-btn {
    flex: 1;
}
.sc-user-profile-posts {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
.sc-user-profile-posts h4 {
    margin-bottom: 1rem;
    color: #1e1e1e;
}

/* ─── FORCE sent messages to the right ──────────────────────── */
.sc-chat-message.sent {
  align-self: flex-end !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
}
.sc-chat-message.sent .sc-chat-bubble {
  background: #FACC0F !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}
.sc-chat-message.received {
  align-self: flex-start !important;
}
.sc-chat-message.received .sc-chat-bubble {
  background: #fff !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* ─── FORCE chat alignment ────────────────────────────────── */
.sc-chat-message.sent {
  align-self: flex-end !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
}
.sc-chat-message.sent .sc-chat-bubble {
  background: #FACC0F !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}
.sc-chat-message.received {
  align-self: flex-start !important;
}
.sc-chat-message.received .sc-chat-bubble {
  background: #fff !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* ─── Avatar Generator ────────────────────────────────────── */
.sc-avatar-generator {
  text-align: center;
  margin-bottom: 1rem;
}
.sc-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FACC0F;
  margin-bottom: 0.5rem;
}
.sc-avatar-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.sc-avatar-history {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.5rem 0;
}
.sc-avatar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s;
  display: inline-block;
  overflow: hidden;
}
.sc-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-avatar-thumb.active {
  border-color: #FACC0F;
}
.sc-avatar-thumb:hover {
  border-color: #d4a800;
}

/* ─── Single Post Landing ────────────────────────────────── */
.sc-post-landing {
  max-width: 700px;
  margin: 0 auto;
}
.sc-post-landing-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: #e2ddd6;
}
.sc-post-landing-footer {
  border-color: #e2ddd6;
}
.sc-comment-empty {
  text-align: center;
  padding: 0.5rem 0;
}

/* ─── Post landing: make room for fixed footer & cookie banner ── */
.sc-post-landing {
  padding-bottom: 120px;
}

/* ─── Post landing: make room for fixed footer & cookie banner ── */
.sc-post-landing {
  padding-bottom: 120px;
}

/* ─── FIX: Move chat modal above footer ────────────────── */
.sc-chat-widget {
  bottom: 150px; /* default desktop */
}

@media (max-width: 640px) {
  .sc-chat-widget {
    bottom: 110px; /* increased to clear footer (footer ~50px) */
    max-height: 55vh; /* reduce height slightly to avoid overlap */
  }
  /* also ensure chat toggle (if any) is above footer, but we removed it? */
}

/* ─── FIX: Messages tab – add bottom padding for footer ── */
.sc-chat-tab {
  padding-bottom: 80px; /* make room for footer on all devices */
}

@media (max-width: 640px) {
  .sc-chat-tab {
    padding-bottom: 70px; /* slightly less on mobile, footer is smaller */
  }
  /* Ensure chat-thread and input are not cut off */
  .sc-chat-thread {
    max-height: calc(100% - 80px); /* allow scrolling within */
  }
}

/* ─── Also adjust the embedded chat inside the tab ────── */
.sc-chat-embedded {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px; /* give it a decent height */
}

.sc-chat-embedded .sc-chat-thread {
  flex: 1;
  min-height: 0; /* prevent overflow */
}

/* ─── Ensure footer doesn't cover the send button ────── */
footer {
  /* footer is already fixed, but we want it to not block content */
  pointer-events: none; /* allow clicks to pass through? No, we want it to be clickable but not covering content */
  /* Better: keep it as is, but we've added padding above */
}

/* On mobile, reduce footer height if needed */
@media (max-width: 640px) {
  footer {
    padding: 0.25rem 0.5rem;
  }
  .footer-logo, .realtor-logo {
    height: 18px;
  }
  .brokerage-info p {
    font-size: 0.6rem;
  }
  .brokerage-info strong {
    font-size: 0.7rem;
  }
}

/* ─── Admin Panel ────────────────────────────────────────────── */
.sc-admin-panel {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid #ede9e2;
}
.sc-admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.sc-admin-tabs .sc-tab-btn {
  padding: 0.3rem 1rem;
  border: none;
  border-radius: 30px;
  background: #f0ede8;
  cursor: pointer;
}
.sc-admin-tabs .sc-tab-btn.active {
  background: #FACC0F;
}
.sc-admin-section {
  margin-bottom: 2rem;
}
.sc-admin-section h3 {
  margin-bottom: 0.8rem;
}
.sc-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
.sc-form-row input, .sc-form-row textarea, .sc-form-row select {
  flex: 1;
  min-width: 120px;
  padding: 0.4rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #faf8f5;
}
.sc-form-row textarea {
  flex-basis: 100%;
  height: 60px;
  font-family: inherit;
}
.sc-bot-item {
  border-bottom: 1px solid #eee;
  padding: 0.8rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.sc-bot-item .sc-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 30px;
  background: #ddd;
}
.sc-bot-item .sc-badge.active {
  background: #27ae60;
  color: #fff;
}
.sc-bot-actions {
  margin-left: auto;
  display: flex;
  gap: 0.3rem;
}
.sc-btn-danger {
  background: #e74c3c;
  color: #fff;
}
.sc-btn-danger:hover {
  background: #c0392b;
}
.sc-mod-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0ede8;
  align-items: center;
}
.sc-mod-actions {
  display: flex;
  gap: 0.3rem;
}
.sc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.sc-stat-card {
  background: #f8f6f2;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}
.sc-stat-card h3 {
  font-size: 2rem;
  margin: 0;
}
.sc-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.sc-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}
.sc-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  transition: 0.3s;
  border-radius: 50%;
}
.sc-toggle-switch input:checked + .sc-toggle-slider {
  background: #FACC0F;
}
.sc-toggle-switch input:checked + .sc-toggle-slider:before {
  transform: translateX(22px);
}
/* ===== New admin features (AI bots, Appearance, gamification) =====
   Additive styles only — the look & feel of the app is unchanged. */
.sc-badge.gold {
  background: #FACC0F;
  color: #1e1e1e;
  font-weight: 700;
}
.sc-behavior-badge {
  background: #fcf6e8;
  color: #7D6607;
  border: 1px solid #ede9e2;
}
.sc-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.sc-user-badges .sc-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 30px;
}

/* ===== Engagement sliders (bot frequencies & chances) ===== */
input[type="range"] {
  accent-color: #FACC0F;
  cursor: pointer;
  height: 4px;
}
.sc-slider-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}
.sc-slider-row label {
  min-width: 96px;
  font-size: 0.85rem;
  margin: 0;
}
.sc-slider-row input[type="range"] { flex: 1; padding: 0; border: 0; background: transparent; }
.sc-slider-val {
  min-width: 56px;
  font-weight: 700;
  color: #7D6607;
  font-size: 0.85rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
