/* OnlyCristo - Estilo Google Antigravity
   Profesional, limpio, optimizado desktop y movil */

:root {
    --text: #121317;
    --text-2: #45474d;
    --text-3: #80828a;
    --blue: #1a73e8;
    --blue-hover: #1557b0;
    --blue-bg: rgba(26,115,232,.08);
    --bg: #ffffff;
    --bg-2: #f8f9fa;
    --bg-3: #f1f3f4;
    --border: rgba(33,34,38,.07);
    --border-2: rgba(33,34,38,.12);
    --red: #fa5252;
    --green: #0d652d;
    --purple: #8C52FF;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-pill: 9999px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.10);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nav-h: 56px;
    --bottom-nav-h: 0px;
    --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-2);
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font); font-size: 14px; }
svg { flex-shrink: 0; }

/* ===== LANDING ===== */
.landing-page { background: var(--bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.landing-hero { text-align: center; padding: 2rem; }
.landing-logo { font-size: 2.8rem; font-weight: 500; color: var(--text); letter-spacing: -.02em; }
.landing-tagline { font-size: 1.1rem; color: var(--text-2); margin-top: .4rem; font-weight: 400; }
.landing-desc { color: var(--text-3); margin: 1.2rem auto 1.8rem; max-width: 380px; line-height: 1.6; }
.landing-actions { display: flex; gap: .8rem; justify-content: center; }

/* ===== AUTH ===== */
.auth-page { background: var(--bg-2); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-container { width: 100%; max-width: 420px; }
.auth-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-md); }
.auth-header { text-align: center; margin-bottom: 1.5rem; }
.logo { font-size: 1.6rem; font-weight: 500; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.auth-subtitle { color: var(--text-3); margin-top: .2rem; font-size: .85rem; }
.auth-form { display: flex; flex-direction: column; gap: .8rem; }
.auth-footer { text-align: center; margin-top: 1.2rem; color: var(--text-3); font-size: .85rem; }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; }
.form-row { display: flex; gap: .8rem; }
.form-row .form-group { flex: 1; }
label { font-size: .82rem; color: var(--text-2); font-weight: 450; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="datetime-local"], input[type="tel"], textarea, select {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(26,115,232,.08); }
textarea { resize: vertical; min-height: 56px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    padding: .5rem 1rem; border-radius: var(--radius-pill);
    font-size: .85rem; font-weight: 450; transition: var(--transition);
    white-space: nowrap; line-height: 1.4;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); text-decoration: none; }
.btn-outline { background: transparent; color: var(--blue); border: 1px solid var(--border-2); }
.btn-outline:hover { background: var(--bg-3); text-decoration: none; }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; }
.btn-xs { padding: .2rem .45rem; font-size: .72rem; border-radius: var(--radius-xs); }
.btn-lg { padding: .65rem 1.5rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ===== ALERTS ===== */
.alert { padding: .7rem .9rem; border-radius: var(--radius-sm); margin-bottom: .8rem; font-size: .85rem; }
.alert-success { background: rgba(13,101,45,.07); color: var(--green); }
.alert-error { background: rgba(250,82,82,.07); color: var(--red); }

/* ===== NAVBAR ===== */
.navbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.2rem; height: var(--nav-h);
    background: var(--bg); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.nav-left { display: flex; align-items: center; min-width: 200px; }
.nav-logo { font-size: 1.2rem; font-weight: 500; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.nav-center { flex: 1; display: flex; justify-content: center; max-width: 400px; margin: 0 auto; }
.nav-search {
    width: 100%; max-width: 360px;
    padding: .42rem .9rem; border: 1px solid var(--border-2);
    border-radius: var(--radius-pill); background: var(--bg-2);
    font-size: .85rem; transition: var(--transition);
}
.nav-search:focus { background: var(--bg); border-color: var(--blue); outline: none; box-shadow: 0 0 0 2px rgba(26,115,232,.06); }
.nav-right { display: flex; align-items: center; gap: .15rem; min-width: 200px; justify-content: flex-end; }
.nav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    color: var(--text-2); position: relative; transition: var(--transition);
}
.nav-icon:hover { background: var(--bg-3); color: var(--blue); text-decoration: none; }
.badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--red); color: #fff; font-size: .62rem;
    border-radius: var(--radius-pill); padding: 1px 5px;
    font-weight: 500; min-width: 15px; text-align: center; line-height: 1.3;
}
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.nav-avatar-link { display: flex; margin-left: .2rem; }
.nav-avatar-link img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* ===== BOTTOM NAV (movil) ===== */
.bottom-nav { display: none; }

/* ===== MAIN LAYOUT - DESKTOP ===== */
.main-container {
    max-width: 1120px; margin: 0 auto;
    display: grid; grid-template-columns: 240px 1fr 260px;
    gap: 1rem; padding: 1rem;
    min-height: calc(100vh - var(--nav-h));
    align-items: start;
}
.feed-main { min-width: 0; }
.center-col { grid-column: 2; max-width: 580px; margin: 0 auto; width: 100%; }

/* ===== SIDEBARS ===== */
.sidebar-left, .sidebar-right { display: flex; flex-direction: column; gap: .8rem; position: sticky; top: calc(var(--nav-h) + 1rem); }
.sidebar-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; text-align: center;
    box-shadow: var(--shadow-xs);
}
.sidebar-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto .4rem; object-fit: cover; }
.sidebar-name { font-size: .95rem; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: .2rem; }
.sidebar-meta, .sidebar-church { font-size: .8rem; color: var(--text-3); margin-top: .1rem; }
.sidebar-stats { display: flex; justify-content: center; gap: 1.2rem; margin: .6rem 0; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 1.1rem; font-weight: 500; }
.stat-label { font-size: .7rem; color: var(--text-3); }
.sidebar-title { font-size: .85rem; font-weight: 500; margin-bottom: .5rem; text-align: left; color: var(--text-2); }
.sidebar-link {
    display: flex; align-items: center; gap: .4rem;
    padding: .42rem .5rem; color: var(--text-2); text-decoration: none;
    border-radius: var(--radius-sm); font-size: .85rem; text-align: left; transition: var(--transition);
}
.sidebar-link:hover { background: var(--bg-3); text-decoration: none; color: var(--text); }
.sidebar-link svg { opacity: .7; }

/* ===== STORIES ===== */
.stories-bar { display: flex; gap: .8rem; overflow-x: auto; padding: .8rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .8rem; box-shadow: var(--shadow-xs); }
.story-item { flex-shrink: 0; text-align: center; cursor: pointer; }
.story-circle { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 2px; margin: 0 auto; }
.story-circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.add-story .add-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-3); border: 2px dashed var(--border-2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-3); }
.story-label { font-size: .7rem; color: var(--text-2); margin-top: .2rem; display: block; }

/* ===== POST BOX ===== */
.post-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem; margin-bottom: .8rem; box-shadow: var(--shadow-xs); }
.post-box-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-box-input { flex: 1; }
.post-box-input textarea { width: 100%; border: 1px solid var(--border-2); border-radius: var(--radius-pill); padding: .5rem .9rem; resize: none; min-height: 38px; font-size: .85rem; }
.post-box-form { margin-top: .5rem; width: 100%; }
.post-box-actions { display: flex; gap: .3rem; align-items: center; margin-top: .4rem; flex-wrap: wrap; }
.post-action-btn { font-size: .8rem; color: var(--text-2); cursor: pointer; padding: .3rem .5rem; border-radius: var(--radius-sm); display: inline-flex; align-items: center; transition: var(--transition); }
.post-action-btn:hover { background: var(--bg-3); }

/* ===== POST CARD ===== */
.post-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; box-shadow: var(--shadow-xs); }
.post-header { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; }
.post-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.post-user-info { flex: 1; min-width: 0; }
.post-user-name { font-weight: 450; color: var(--text); text-decoration: none; font-size: .85rem; display: inline-flex; align-items: center; gap: .15rem; }
.post-user-name:hover { text-decoration: underline; }
.post-time { font-size: .75rem; color: var(--text-3); }
.post-content { padding: 0 .9rem .8rem; font-size: .9rem; color: var(--text); white-space: pre-wrap; word-wrap: break-word; line-height: 1.55; }
.post-image { width: 100%; max-height: 480px; object-fit: cover; background: #000; }
.post-video { width: 100%; max-height: 480px; }
.post-actions-bar { display: flex; border-top: 1px solid var(--border); }
.post-action { flex: 1; padding: .55rem; text-align: center; color: var(--text-2); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; transition: var(--transition); }
.post-action:hover { background: var(--bg-3); }
.post-action.liked { color: var(--red); }
.post-action.liked svg { fill: var(--red); }

/* ===== COMMENTS ===== */
.comments-section { border-top: 1px solid var(--border); padding: .7rem .9rem; }
.comments-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .6rem; }
.comment-item { display: flex; gap: .4rem; }
.comment-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { display: flex; flex-direction: column; background: var(--bg-2); border-radius: var(--radius-sm); padding: .35rem .6rem; flex: 1; }
.comment-author { font-weight: 450; font-size: .8rem; display: inline-flex; align-items: center; gap: .15rem; }
.comment-text { font-size: .85rem; color: var(--text); }
.comment-time { font-size: .7rem; color: var(--text-3); margin-top: .1rem; }
.comment-input { display: flex; gap: .4rem; align-items: center; margin-top: .4rem; }
.comment-input input { flex: 1; border: 1px solid var(--border-2); border-radius: var(--radius-pill); padding: .38rem .7rem; font-size: .8rem; }

/* ===== VERIFIED ===== */
.verified-badge { color: var(--blue); font-weight: 450; font-size: .8em; display: inline-flex; align-items: center; }
.verified-badge-lg { color: var(--blue); font-weight: 450; display: inline-flex; align-items: center; }

/* ===== PROFILE ===== */
.profile-page { max-width: 660px; margin: 0 auto; }
.profile-cover { height: 180px; background: var(--bg-3); border-radius: 0 0 var(--radius) var(--radius); background-size: cover; background-position: center; position: relative; }
.profile-cover-overlay { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.1)); }
.profile-header { display: flex; align-items: flex-end; gap: 1rem; padding: 0 1rem; margin-top: -36px; position: relative; z-index: 1; flex-wrap: wrap; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--bg); object-fit: cover; }
.profile-info { flex: 1; padding-bottom: .4rem; min-width: 0; }
.profile-name { font-size: 1.25rem; font-weight: 500; display: inline-flex; align-items: center; gap: .2rem; }
.profile-church { color: var(--text-2); font-size: .85rem; }
.profile-location { color: var(--text-3); font-size: .8rem; }
.profile-stats { display: flex; gap: 1.2rem; margin-top: .3rem; }
.stat strong { font-weight: 500; }
.stat { font-size: .8rem; color: var(--text-3); }
.profile-actions { display: flex; gap: .4rem; padding-bottom: .4rem; flex-shrink: 0; }
.profile-bio-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: .8rem 1rem; box-shadow: var(--shadow-xs); }
.profile-bio-card h3 { margin-bottom: .3rem; font-weight: 500; font-size: .95rem; }
.profile-posts { padding: 0 1rem; }
.profile-posts h3 { margin-bottom: .8rem; font-weight: 500; font-size: .95rem; }

/* ===== BADGES ===== */
.badge-friend { background: var(--blue-bg); color: var(--blue); padding: .15rem .5rem; border-radius: var(--radius-pill); font-size: .78rem; }
.badge-pending { background: rgba(250,180,0,.1); color: #b07800; padding: .15rem .5rem; border-radius: var(--radius-pill); font-size: .78rem; }
.badge-admin { background: var(--purple); color: #fff; padding: .1rem .35rem; border-radius: var(--radius-xs); font-size: .72rem; }
.badge-unread { background: var(--red); color: #fff; padding: .1rem .35rem; border-radius: var(--radius-pill); font-size: .72rem; }
.badge-approved { background: rgba(13,101,45,.1); color: var(--green); padding: .15rem .5rem; border-radius: var(--radius-pill); font-size: .75rem; }
.badge-rejected { background: rgba(250,82,82,.1); color: var(--red); padding: .15rem .5rem; border-radius: var(--radius-pill); font-size: .75rem; }
.badge-banned { background: rgba(0,0,0,.08); color: #333; padding: .15rem .5rem; border-radius: var(--radius-pill); font-size: .75rem; }

/* ===== MODALS ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.modal { background: var(--bg); border-radius: var(--radius); max-width: 480px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 1rem; font-weight: 500; }
.modal-close { font-size: 1.4rem; color: var(--text-3); cursor: pointer; line-height: 1; padding: 0; }
.modal-form { padding: 1.2rem; }

/* ===== CARD ===== */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; box-shadow: var(--shadow-xs); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.card h2 { font-weight: 500; font-size: 1.1rem; }
.card h3 { font-weight: 500; font-size: .95rem; }
.muted { color: var(--text-3); font-size: .82rem; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 1.8rem; color: var(--text-3); font-size: .85rem; }

/* ===== SUGGESTIONS ===== */
.suggest-item { display: flex; align-items: center; gap: .4rem; padding: .35rem 0; }
.suggest-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.suggest-name { font-size: .82rem; color: var(--text-2); display: inline-flex; align-items: center; gap: .15rem; }

/* ===== GROUPS ===== */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.group-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow-xs); }
.group-card:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.group-cover { height: 90px; background-size: cover; background-position: center; }
.group-info { padding: .7rem .8rem; }
.group-info h3 { font-size: .88rem; font-weight: 500; margin-bottom: .15rem; }

/* ===== GROUP PAGE ===== */
.group-header-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: .8rem; box-shadow: var(--shadow-xs); }
.group-cover-big { height: 140px; background-size: cover; background-position: center; }
.group-header-info { padding: 1rem 1.2rem; }
.group-header-info h1 { font-size: 1.2rem; font-weight: 500; }
.group-actions { margin-top: .6rem; display: flex; gap: .4rem; }
.members-list { display: flex; flex-direction: column; gap: .4rem; }
.member-item { display: flex; align-items: center; gap: .4rem; padding: .25rem 0; }
.member-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.member-name { font-size: .82rem; color: var(--text-2); }

/* ===== MESSAGES ===== */
.messages-layout { display: grid; grid-template-columns: 280px 1fr; gap: .8rem; height: calc(100vh - var(--nav-h) - 2rem); max-width: 1000px; margin: 0 auto; }
.conv-list { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem; overflow-y: auto; box-shadow: var(--shadow-xs); }
.conv-list h3 { font-weight: 500; margin-bottom: .6rem; font-size: .9rem; }
.conv-item { display: flex; align-items: center; gap: .5rem; padding: .4rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: var(--transition); }
.conv-item:hover, .conv-item.active { background: var(--bg-3); text-decoration: none; }
.conv-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.conv-info { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.conv-name { font-size: .82rem; font-weight: 450; }
.conv-preview { font-size: .72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-window { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: var(--shadow-xs); }
.chat-header { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
.chat-header-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chat-header-name { font-weight: 450; color: var(--text); text-decoration: none; font-size: .85rem; display: inline-flex; align-items: center; gap: .15rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.msg { max-width: 65%; display: flex; flex-direction: column; gap: .15rem; }
.msg-sent { align-self: flex-end; align-items: flex-end; }
.msg-received { align-self: flex-start; }
.msg-bubble { padding: .42rem .7rem; border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.4; }
.msg-sent .msg-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 3px; }
.msg-received .msg-bubble { background: var(--bg-3); color: var(--text); border-bottom-left-radius: 3px; }
.msg-time { font-size: .68rem; color: var(--text-3); }
.msg-attachment { font-size: .78rem; color: var(--blue); }
.chat-input-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-top: 1px solid var(--border); }
.chat-input-bar input { flex: 1; border: 1px solid var(--border-2); border-radius: var(--radius-pill); padding: .42rem .7rem; font-size: .82rem; }
.chat-attach { cursor: pointer; font-size: 1.1rem; color: var(--text-3); }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-3); text-align: center; padding: 1.5rem; font-size: .85rem; }

/* ===== ROOMS ===== */
.room-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; display: block; color: var(--text); text-decoration: none; box-shadow: var(--shadow-xs); }
.room-card:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.room-live { border-left: 3px solid var(--red); }
.room-scheduled { border-left: 3px solid var(--blue); }
.room-status { font-size: .75rem; font-weight: 450; margin-bottom: .4rem; display: inline-flex; align-items: center; gap: .3rem; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.room-name { font-size: 1rem; font-weight: 500; margin-bottom: .2rem; }
.room-topic { color: var(--blue); font-size: .82rem; margin-bottom: .2rem; }
.room-desc { margin-bottom: .6rem; font-size: .85rem; }
.room-footer { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-3); }
.room-creator { display: flex; align-items: center; gap: .25rem; }
.room-creator-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* ===== ROOM PAGE ===== */
.room-live-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; box-shadow: var(--shadow-xs); }
.room-live-header { display: flex; justify-content: space-between; align-items: center; }
.room-live-name { font-size: 1.2rem; font-weight: 500; margin-top: .2rem; }
.room-stage { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .8rem; box-shadow: var(--shadow-xs); }
.room-speakers { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .8rem; }
.speaker-tile { text-align: center; }
.speaker-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto .2rem; border: 2px solid var(--blue); }
.speaker-name { font-size: .75rem; font-weight: 450; }
.speaker-role { font-size: .65rem; color: var(--text-3); }
.mic-indicator { font-size: .8rem; }
.room-listeners h4 { font-size: .8rem; margin-bottom: .3rem; }
.listeners-avatars { display: flex; flex-wrap: wrap; gap: .2rem; }
.listener-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.room-controls { display: flex; justify-content: center; gap: .8rem; padding: .8rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .8rem; box-shadow: var(--shadow-xs); }
.room-control-btn { padding: .5rem 1rem; border-radius: var(--radius-pill); background: var(--bg-3); color: var(--text); font-size: .82rem; display: inline-flex; align-items: center; gap: .3rem; }
.room-control-btn:hover { background: var(--border-2); }
.room-control-btn.active { background: var(--green); color: #fff; }
.room-control-btn.leave-btn:hover { background: var(--red); color: #fff; }
.room-chat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.room-chat-messages { max-height: 220px; overflow-y: auto; padding: .7rem; display: flex; flex-direction: column; gap: .3rem; }
.room-chat-msg { font-size: .82rem; }
.room-chat-input { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid var(--border); }
.room-chat-input input { flex: 1; border: 1px solid var(--border-2); border-radius: var(--radius-pill); padding: .38rem .7rem; font-size: .8rem; }

/* ===== STORY CREATE ===== */
.story-form { display: flex; flex-direction: column; gap: .8rem; }
.story-preview { min-height: 180px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.story-text-input { width: 100%; height: 100%; background: none; border: none; color: #fff; text-align: center; font-size: 1.1rem; resize: none; }
.story-text-input::placeholder { color: rgba(255,255,255,.7); }
.color-picker { display: flex; gap: .4rem; }
.color-picker label { cursor: pointer; }
.color-picker input[type="radio"] { display: none; }
.color-picker span { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; }
.color-picker input[type="radio"]:checked + span { border-color: var(--text); }

/* ===== NOTIFICATIONS ===== */
.notifications-list { display: flex; flex-direction: column; gap: .4rem; }
.notif-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow-xs); }
.notif-item:hover { text-decoration: none; background: var(--bg-3); }
.notif-item.unread { border-left: 3px solid var(--blue); }
.notif-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.notif-content { flex: 1; display: flex; flex-direction: column; }
.notif-text { font-size: .82rem; }
.notif-time { font-size: .72rem; color: var(--text-3); }

/* ===== WALLET ===== */
.wallet-card { background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: #fff; margin-bottom: .8rem; box-shadow: var(--shadow-md); }
.wallet-card h2 { font-weight: 500; font-size: .9rem; opacity: .9; }
.wallet-balance { margin: .4rem 0; }
.balance-num { font-size: 2.2rem; font-weight: 500; }
.balance-label { font-size: .9rem; opacity: .8; }
.wallet-stats { display: flex; justify-content: center; gap: 1.5rem; margin-top: .8rem; }
.wallet-stat { display: flex; flex-direction: column; }
.wallet-stat-num { font-size: 1.1rem; font-weight: 500; }
.wallet-stat-label { font-size: .72rem; opacity: .8; }
.transactions-list { display: flex; flex-direction: column; gap: .3rem; }
.transaction-item { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.transaction-info { flex: 1; display: flex; flex-direction: column; }
.transaction-type { font-size: .75rem; font-weight: 450; text-transform: uppercase; color: var(--text-3); }
.transaction-desc { font-size: .82rem; }
.transaction-amount { font-weight: 500; font-size: .85rem; }
.transaction-amount.positive { color: var(--green); }
.transaction-amount.negative { color: var(--red); }
.transaction-time { font-size: .72rem; color: var(--text-3); }

/* ===== REFERRALS ===== */
.referral-box { background: var(--bg-2); border-radius: var(--radius); padding: 1rem; margin-top: .6rem; }
.referral-code-box { display: flex; gap: .4rem; margin: .2rem 0 .6rem; }
.referral-code-box input { flex: 1; border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: .42rem .6rem; background: var(--bg); font-size: .82rem; }
.referral-item { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.referral-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.referral-info { flex: 1; display: flex; flex-direction: column; }
.referral-name { font-size: .82rem; font-weight: 450; display: inline-flex; align-items: center; gap: .15rem; }
.referral-date { font-size: .72rem; color: var(--text-3); }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: .8rem; width: 100%; }
.admin-sidebar { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem; display: flex; flex-direction: column; gap: .15rem; height: fit-content; position: sticky; top: calc(var(--nav-h) + 1rem); box-shadow: var(--shadow-xs); }
.admin-sidebar h3 { font-weight: 500; margin-bottom: .3rem; font-size: .85rem; padding: 0 .3rem; }
.admin-nav { padding: .38rem .5rem; border-radius: var(--radius-sm); font-size: .82rem; color: var(--text-2); text-decoration: none; display: flex; align-items: center; gap: .35rem; transition: var(--transition); }
.admin-nav:hover { background: var(--bg-3); text-decoration: none; }
.admin-nav.active { background: var(--blue); color: #fff; }
.admin-nav svg { opacity: .8; flex-shrink: 0; }
.admin-nav.active svg { opacity: 1; }
.admin-content { min-width: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin: .8rem 0; }
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; box-shadow: var(--shadow-xs); }
.stat-card-num { font-size: 1.6rem; font-weight: 500; display: block; }
.stat-card-label { font-size: .75rem; color: var(--text-3); margin-top: .15rem; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .82rem; }
.admin-table th { text-align: left; padding: .5rem .6rem; border-bottom: 2px solid var(--border); font-weight: 450; color: var(--text-2); font-size: .78rem; white-space: nowrap; }
.admin-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
.admin-table tr:hover { background: var(--bg-2); }
.admin-search-bar { display: flex; gap: .4rem; margin-bottom: .8rem; flex-wrap: wrap; }
.admin-search-bar input, .admin-search-bar select { border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: .38rem .55rem; font-size: .82rem; }
.admin-actions-cell { display: flex; gap: .2rem; flex-wrap: wrap; }
.pending-list { display: flex; flex-direction: column; gap: .6rem; }
.pending-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow-xs); }
.pending-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pending-info { flex: 1; min-width: 0; }
.pending-info h4 { font-weight: 450; margin-bottom: .15rem; font-size: .88rem; }
.pending-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.broadcast-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; box-shadow: var(--shadow-xs); }
.radio-group { display: flex; flex-direction: column; gap: .4rem; }
.radio-group label { display: flex; align-items: center; gap: .3rem; font-size: .82rem; cursor: pointer; }
.settings-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .8rem; box-shadow: var(--shadow-xs); }

/* ===== FOOTER ===== */
.site-footer { text-align: center; padding: 1.2rem; color: var(--text-3); font-size: .75rem; }
.load-more { margin: .8rem auto; display: block; max-width: 180px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-container { grid-template-columns: 1fr; max-width: 620px; }
    .sidebar-left, .sidebar-right { display: none; }
    .messages-layout { grid-template-columns: 240px 1fr; }
}
@media (max-width: 768px) {
    :root { --bottom-nav-h: 52px; }
    .navbar { padding: 0 .5rem; }
    .nav-center { display: none; }
    .nav-search { display: none; }
    .nav-left { min-width: auto; }
    .nav-right { min-width: auto; gap: 0; }
    .bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--bg); border-top: 1px solid var(--border);
        justify-content: space-around; padding: .3rem 0; z-index: 100;
    }
    .bn-item { display: flex; align-items: center; justify-content: center; width: 48px; height: 44px; color: var(--text-2); border-radius: var(--radius-sm); }
    .bn-item:hover, .bn-item.active { color: var(--blue); text-decoration: none; }
    .main-container { padding: .5rem; padding-bottom: calc(var(--bottom-nav-h) + 1rem); }
    .messages-layout { grid-template-columns: 1fr; height: auto; }
    .conv-list { max-height: 180px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
    .admin-nav { white-space: nowrap; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; margin-top: -40px; }
    .profile-actions { justify-content: center; }
    .profile-stats { justify-content: center; }
    .form-row { flex-direction: column; }
    .auth-card { padding: 1.2rem 1rem; }
    .groups-grid { grid-template-columns: 1fr; }
    .room-speakers { justify-content: center; }
    .room-controls { flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .wallet-stats { flex-direction: column; gap: .4rem; }
    .admin-table { font-size: .72rem; }
    .admin-table th, .admin-table td { padding: .3rem; }
    .landing-logo { font-size: 2rem; }
}