:root {
    --primary-color: #d4af37; /* Antique Gold */
    --gold-light: #f5df98;
    --gold-dark: #99741c;
    --bg-dark: #0c0a08;
    --text-light: #f4ebd9; /* Parchment Ivory */
    --text-muted: #dfd2b8;
    --glass-bg: rgba(24, 19, 14, 0.72);
    --glass-border: rgba(212, 175, 55, 0.28);
    --glass-shadow: 0 10px 36px 0 rgba(0, 0, 0, 0.65);
    
    /* Social Colors */
    --yt-color: #FF0000;
    --fb-color: #1877F2;
    --tk-color: #00f2fe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Dynamic Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 20% 35%, rgba(212, 175, 55, 0.14), transparent 55%),
                radial-gradient(circle at 80% 70%, rgba(153, 116, 28, 0.1), transparent 50%);
    animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Full-screen wrapper so header spans the full width and 3 columns sit below */
.page-wrapper {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Glassmorphism + Antique Gold Frame */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--glass-shadow), inset 0 0 24px rgba(212, 175, 55, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 14px 44px 0 rgba(0, 0, 0, 0.75), inset 0 0 28px rgba(212, 175, 55, 0.08);
}

/* Header Block: Ocupa todo el ancho de la pantalla, logo a la izquierda + eslogan al lado + barra de cuenta abajo */
.top-header-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 2.25rem;
}

.profile-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2.25rem;
    text-align: left;
}

.top-account-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    padding-top: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-account-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.top-menu-btn {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.top-menu-btn:hover,
.top-menu-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(153, 116, 28, 0.28));
    border-color: var(--primary-color);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.submenu-arrow {
    font-size: 0.72rem;
    opacity: 0.85;
}

.top-user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.88rem;
    color: var(--gold-light);
    padding: 0.4rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
}

.top-submenu-dropdown {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin-left: auto;
    background: rgba(12, 10, 8, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
}

.close-submenu-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
}

.close-submenu-btn:hover {
    color: var(--primary-color);
}

.submenu-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.optional-tag {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.92rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.field-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.08rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.4rem 0;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--primary-color);
}

.chat-guest-prompt {
    background: rgba(12, 10, 8, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.12rem;
}

.guest-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.full-width-btn {
    width: 100%;
    justify-content: center;
}

.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 130px;
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.35));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.brand-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 24px rgba(212, 175, 55, 0.55));
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    flex: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ancient-divider {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 420px;
    color: var(--primary-color);
    font-size: 0.85rem;
    opacity: 0.85;
}

.ancient-divider::before {
    content: "";
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-right: 10px;
}

.ancient-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-left: 10px;
}

.bio {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   ESTRUCTURA DE 3 HILERAS VERTICALES
   ========================================== */
.three-columns-layout {
    display: grid;
    grid-template-columns: minmax(310px, 1fr) minmax(440px, 1.35fr) minmax(320px, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.side-column {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.center-column {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    min-width: 0;
}

/* Headings in Classical Roman Engraved Serif (Cinzel) */
.social-links h2,
.video-card h3,
.chat-section h2,
.poll-section h2 {
    font-family: 'Cinzel', Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--primary-color) 55%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 12px rgba(212, 175, 55, 0.18);
}

.social-links h2 {
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.social-btn {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.18), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-btn:hover::before {
    transform: translateX(100%);
}

.social-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    transform: translateY(-2px);
}

.social-btn.youtube:hover {
    color: var(--yt-color);
    border-color: var(--yt-color);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.25);
}

.social-btn.facebook:hover {
    color: var(--fb-color);
    border-color: var(--fb-color);
    box-shadow: 0 0 18px rgba(24, 119, 242, 0.25);
}

.social-btn.tiktok:hover {
    color: var(--tk-color);
    border-color: var(--tk-color);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.25);
}

/* Video Cards */
.latest-videos {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.video-card h3 {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.video-card h3 i,
.chat-section h2 i,
.poll-section h2 i {
    -webkit-text-fill-color: var(--primary-color);
    color: var(--primary-color);
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for YouTube & Facebook */
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Adjustments for TikTok & Facebook embeds */
.tiktok-wrapper, .facebook-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: visible;
}

.tiktok-embed {
    width: 100%;
    margin: 0 auto !important;
    border-radius: 12px !important;
}

/* ==========================================
   HILERA IZQUIERDA: TEMA DEL PRÓXIMO VIDEO
   ========================================== */
.poll-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.poll-section h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.poll-stage-badge {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold-light);
}

.poll-stage-badge.voting-active {
    background: linear-gradient(135deg, #d4af37, #99741c);
    color: #0c0a08;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.topic-suggest-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.suggest-identity-label {
    font-size: 0.98rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.35rem 0.65rem;
    background: rgba(212, 175, 55, 0.07);
    border: 1px dashed rgba(212, 175, 55, 0.28);
    border-radius: 8px;
}

.suggest-identity-label strong {
    color: var(--gold-light);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.topic-suggest-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    outline: none;
}

.topic-suggest-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.suggest-btn {
    margin-top: 0;
    width: 100%;
}

.poll-topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.poll-topic-card {
    background: rgba(12, 10, 8, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: border-color 0.25s ease;
}

.poll-topic-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.poll-topic-card.voted-by-me {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.poll-topic-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.poll-topic-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.poll-topic-number {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.poll-topic-title {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.35;
}

.poll-topic-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.poll-topic-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.vote-btn {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-light);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vote-btn:hover,
.vote-btn.voted {
    background: linear-gradient(135deg, #d4af37, #99741c);
    color: #0c0a08;
}

.delete-topic-btn {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff9da6;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.delete-topic-btn:hover {
    background: rgba(220, 53, 69, 0.35);
}

.poll-progress-wrap {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    height: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.poll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #99741c, #d4af37, #f5df98);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.poll-stats-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.75rem;
    color: var(--gold-light);
    letter-spacing: 0.05em;
}

.poll-admin-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 0.85rem;
}

/* ==========================================
   HILERA DERECHA: CHAT EN VIVO Y CUENTAS
   ========================================== */
.chat-section h2 {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.08rem;
    margin-bottom: 1.25rem;
    font-style: italic;
    line-height: 1.45;
}

.hidden {
    display: none !important;
}

.auth-container {
    width: 100%;
    background: rgba(12, 10, 8, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.auth-tab {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.55rem 0.4rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(153, 116, 28, 0.25));
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.auth-feedback {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 0.85rem;
    font-size: 1rem;
    text-align: center;
}

.auth-feedback.error {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff9da6;
}

.auth-feedback.success {
    background: rgba(40, 167, 69, 0.18);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #98f5b1;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--gold-light);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.55);
    color: var(--text-light);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    padding-right: 2.6rem;
}

.toggle-pwd-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
}

.toggle-pwd-btn:hover {
    color: var(--primary-color);
}

.pwd-rules-list {
    list-style: none;
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pwd-rules-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.pwd-rules-list li i {
    font-size: 0.78rem;
}

.pwd-rules-list li.valid {
    color: #79e697;
}

.gold-submit-btn {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    background: linear-gradient(135deg, #d4af37 0%, #99741c 100%);
    color: #0c0a08;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.2rem;
}

.gold-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Chat Window (User & Admin) */
.chat-view {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.chat-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.95rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}

.status-dot.online {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
}

.admin-badge {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #d4af37, #99741c);
    color: #0c0a08;
    letter-spacing: 0.05em;
}

.logout-btn {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    border-color: #e74c3c;
    color: #ff9da6;
}

.messages-box {
    height: 330px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(8, 6, 4, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.msg-bubble {
    max-width: 86%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 1.08rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.msg-bubble.from-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(153, 116, 28, 0.22));
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--text-light);
    border-bottom-right-radius: 4px;
}

.msg-bubble.from-admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--gold-light);
    border-bottom-left-radius: 4px;
}

.msg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.04em;
}

.chat-input-form {
    display: flex;
    gap: 0.55rem;
}

.chat-input-form input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.12rem;
    outline: none;
}

.chat-input-form input:focus {
    border-color: var(--primary-color);
}

.send-msg-btn {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 1rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    background: linear-gradient(135deg, #d4af37, #99741c);
    color: #0c0a08;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.send-msg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Admin Dashboard Stack inside Right Column */
.admin-dashboard-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-users-sidebar {
    background: rgba(8, 6, 4, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: 185px;
}

.admin-users-sidebar h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.4rem;
}

.conversations-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.conv-item {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.conv-item:hover,
.conv-item.active {
    background: rgba(212, 175, 55, 0.16);
    border-color: var(--primary-color);
}

.conv-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-bottom: 0.15rem;
}

.unread-pill {
    background: #e74c3c;
    color: #fff;
    font-family: sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.conv-preview {
    font-size: 0.92rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chat-main {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.admin-active-header {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    color: var(--gold-light);
    padding: 0.55rem 0.85rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
}

footer {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
}

.build-timestamp {
    font-family: sans-serif;
    position: fixed;
    bottom: 8px;
    right: 12px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 9999;
}

/* Animations for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1180px) {
    .three-columns-layout {
        grid-template-columns: 1fr;
    }

    .side-column {
        position: static;
    }
}

@media (max-width: 650px) {
    .page-wrapper {
        padding: 1rem;
    }
    
    .glass-panel {
        padding: 1.25rem;
    }

    .profile-header {
        gap: 1rem;
        padding: 1.25rem;
    }

    .brand-logo {
        width: 90px;
        max-width: 90px;
    }

    .bio {
        font-size: 1.15rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}
