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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-input: #22222f;
    --accent: #6c5ce7;
    --accent-hover: #7c6ff7;
    --accent-light: rgba(108, 92, 231, 0.15);
    --text-primary: #e8e8ef;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --border: #2a2a3a;
    --success: #00b894;
    --error: #e74c3c;
    --warning: #fdcb6e;
    --like-red: #e74c3c;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(ellipse at top, rgba(108, 92, 231, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at bottom, rgba(253, 203, 110, 0.04) 0%, transparent 60%),
        var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9991;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.12) 0px,
        rgba(0, 0, 0, 0.12) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.25;
    box-shadow: inset 0 0 220px rgba(0, 0, 0, 0.65);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* VERIFIED BADGE */
.verified-badge, .verified-badge-admin {
    font-size: 0.8em;
    margin-left: 4px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 5px;
    border-radius: 6px;
    display: inline-block;
    line-height: 1.2;
}

.verified-badge { color: #7EC8E3; }
.verified-badge-admin { color: #FFD700; }

/* PROFILE TABS */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.profile-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.profile-tab:hover { color: var(--text-primary); }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* NAVBAR */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 20px;
}


.nav-search {
    flex: 1;
    max-width: 400px;
}

.nav-search input {
    width: 100%;
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.nav-search input:focus {
    border-color: var(--accent);
}

.nav-search input::placeholder {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--accent-light);
}

.nav-signup {
    background: var(--accent);
    color: white !important;
}

.nav-signup:hover {
    background: var(--accent-hover);
}

.nav-logout {
    color: var(--error) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* MAIN CONTENT */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 120px;
}

/* FLASH MESSAGES */
.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 8px;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.flash-error {
    background: rgba(231, 76, 60, 0.15);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

/* FORMS */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* AUTH PAGES */
.auth-container {
    max-width: 420px;
    margin: 60px auto;
}

.auth-container h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-container .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* FEED */
.feed-container {
    max-width: 600px;
    margin: 0 auto;
}

.create-post {
    margin-bottom: 24px;
}

/* FLOATING POST BUTTON */
.fab-post-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
    z-index: 1500;
    transition: transform 0.2s, background 0.2s, opacity 0.3s;
}

.fab-post-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.06);
}

.fab-post-btn.hidden-fab {
    transform: translateY(120%);
    opacity: 0;
}

.composer-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.composer-modal {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
}

.composer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.composer-modal-header h3 { font-size: 1.1rem; }

.composer-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

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

/* SCREENSHOT TOGGLE */
.screenshot-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 4px;
}

.screenshot-toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

.screenshot-disclaimer {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: -2px;
    margin-left: 24px;
    line-height: 1.3;
}

/* SCREENSHOT PROTECTION */
.no-screenshot {
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.no-screenshot img,
.no-screenshot video {
    pointer-events: none;
    -webkit-user-drag: none;
}


.screenshot-blackout {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.screenshot-blackout.active { display: flex; }

.create-post-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-post-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
    min-height: 60px;
}

.create-post-form textarea:focus {
    border-color: var(--accent);
}

.create-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.file-input-wrapper:hover {
    border-color: var(--accent);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-name {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 4px;
}

/* POST CARD */
.post-card {
    margin-bottom: 24px;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.post-user-info {
    flex: 1;
}

.post-username {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-media {
    margin: 0 -24px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.post-media img,
.post-media video {
    width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.post-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-caption .caption-username {
    font-weight: 600;
    margin-right: 6px;
}

.post-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.post-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.post-action-btn:hover {
    background: var(--accent-light);
    color: var(--text-primary);
}

.post-action-btn.liked {
    color: var(--like-red);
}

.post-comments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    font-size: 0.9rem;
}

.comment-username {
    font-weight: 600;
    margin-right: 6px;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment-form input {
    flex: 1;
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}

.comment-form input:focus {
    border-color: var(--accent);
}

.comment-form button {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form button:hover {
    background: var(--accent-hover);
}

/* PROFILE */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.profile-stats {
    display: flex;
    gap: 24px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-link {
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.profile-stat-link:hover {
    opacity: 0.7;
}

.profile-stat-link .profile-stat-number,
.profile-stat-link .profile-stat-label {
    color: var(--text-primary);
}

.profile-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.profile-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.profile-posts {
    max-width: 600px;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.profile-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.profile-grid-item img,
.profile-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.profile-grid-item:hover img,
.profile-grid-item:hover video {
    transform: scale(1.05);
}

.profile-grid-item .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-weight: 600;
}

.profile-grid-item:hover .grid-overlay {
    opacity: 1;
}

/* BLOG */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.blog-header h1 { font-size: 1.8rem; }
.blog-header-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* TRENDING */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.trending-card {
    padding: 0 !important;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.trending-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.trending-cover {
    height: 120px;
    overflow: hidden;
}

.trending-cover img { width: 100%; height: 100%; object-fit: cover; }

.trending-body { padding: 14px; }
.trending-body h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }

.trending-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* BLOG CARDS */
.blog-card {
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.blog-card:hover { transform: translateY(-2px); border-color: var(--accent); }

.blog-card-layout {
    display: flex;
    gap: 20px;
}

.blog-card-text { flex: 1; min-width: 0; }

.blog-card-thumb {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.blog-meta img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-dot { color: var(--text-muted); }

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 3px 8px;
    border-radius: 10px;
}

.blog-card-stats {
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* BLOG READ VIEW */
.blog-read-container {
    max-width: 720px;
    margin: 0 auto;
}

.blog-read-cover {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    max-height: 400px;
}

.blog-read-cover img { width: 100%; object-fit: cover; }

.blog-article { padding: 32px !important; }

.blog-read-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-author-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.blog-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.blog-author-info { flex: 1; }

.blog-author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.blog-author-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.blog-read-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    white-space: pre-wrap;
    margin-bottom: 28px;
}

/* CLAP / INTERACT BAR */
.blog-interact-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.blog-interact-left, .blog-interact-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clap-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.clap-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.clap-btn.clapped { border-color: var(--accent); color: var(--accent); }

.clap-icon { font-size: 1.2rem; }

.clap-animate {
    animation: clapPop 0.4s ease;
}

@keyframes clapPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.clap-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-stat-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bookmark-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 4px;
}

.bookmark-btn:hover { transform: scale(1.2); }
.bookmark-btn.bookmarked { color: var(--accent); }

/* BLOG COMMENTS */
.blog-comments-section {
    margin-top: 20px;
    padding: 24px !important;
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.blog-comment-form {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.blog-comment-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-comment-input-wrap textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    outline: none;
}

.blog-comment-input-wrap textarea:focus { border-color: var(--accent); }

.blog-comment-input-wrap .btn { align-self: flex-end; }

.blog-comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.blog-comment:last-child { border-bottom: none; }

.blog-comment-body { flex: 1; }

.blog-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.blog-comment-header .comment-username {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-comment-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* SEARCH */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-results {
    margin-top: 20px;
}

.search-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.search-user:hover {
    background: var(--bg-input);
}

.search-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.search-user-info {
    flex: 1;
}

.search-user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.search-user-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* EDIT PROFILE */
.edit-profile-container {
    max-width: 500px;
    margin: 0 auto;
}

.current-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.current-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* MOODS */
.mood-hype { border-left: 3px solid #ff6b6b; }
.mood-chill { border-left: 3px solid #6c5ce7; }
.mood-sad { border-left: 3px solid #636e72; }
.mood-funny { border-left: 3px solid #fdcb6e; }

/* FEELING TAG */
.feeling-tag {
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
}

.feeling-hype { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.feeling-chill { background: rgba(108, 92, 231, 0.15); color: #a29bfe; }
.feeling-sad { background: rgba(99, 110, 114, 0.15); color: #b2bec3; }
.feeling-funny { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.feeling-custom { background: var(--accent-light); color: var(--accent); }

/* FEELING INPUT */
.feeling-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.feeling-input {
    padding: 8px 36px 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    width: 180px;
    transition: border-color 0.2s;
}

.feeling-input:focus { border-color: var(--accent); }
.feeling-input::placeholder { color: var(--text-muted); }

.feeling-emoji-btn {
    position: absolute;
    right: 4px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.feeling-emoji-btn:hover { background: var(--accent-light); }

.mood-select {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.mood-select:focus { border-color: var(--accent); }

/* ANONYMOUS */
.anon-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.anon-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.anon-toggle input { display: none; }
.anon-toggle input:checked + .anon-label { color: var(--accent); }

.anon-label {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.anon-toggle input:checked + .anon-label {
    border-color: var(--accent);
    background: var(--accent-light);
}

/* POST OPTIONS */
.create-post-options { margin-bottom: 8px; }

.post-options-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* REACTIONS */
.post-reactions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.reaction-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reaction-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.reaction-btn.active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--text-primary);
}

.reaction-count { font-size: 0.8rem; }

.reaction-add-wrap {
    position: relative;
    display: inline-block;
}

.reaction-add-btn {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--text-muted) !important;
    min-width: 32px;
}

/* EMOJI PICKER */
.emoji-picker {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 350px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 4500;
    display: flex;
    flex-direction: column;
}

.emoji-search {
    padding: 10px 12px;
    background: var(--bg-input);
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    flex-shrink: 0;
}

.emoji-search::placeholder { color: var(--text-muted); }

.emoji-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}

.emoji-tabs::-webkit-scrollbar { display: none; }

.emoji-tab {
    background: none;
    border: none;
    padding: 8px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
    border-bottom: 2px solid transparent;
}

.emoji-tab:hover { opacity: 0.8; }
.emoji-tab.active { opacity: 1; border-bottom-color: var(--accent); }

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

.emoji-item {
    background: none;
    border: none;
    font-size: 1.4rem;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    text-align: center;
    line-height: 1.4;
}

.emoji-item:hover {
    background: var(--accent-light);
}

/* REPOST */
.repost-embed {
    margin: 8px 0;
    padding: 12px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border);
}

.repost-embed .post-media { margin: 0; margin-top: 8px; border-radius: var(--radius-sm); overflow: hidden; }
.repost-embed .post-caption { margin-top: 8px; font-size: 0.9rem; }
.repost-comment { margin-bottom: 8px; font-size: 0.95rem; }

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-card {
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* BADGE */
.badge {
    background: var(--error);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 4px;
}

/* MESSAGING */
.messages-container {
    max-width: 700px;
    margin: 0 auto;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.messages-header h1 { font-size: 1.5rem; }

.convo-list { display: flex; flex-direction: column; gap: 8px; }

.convo-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px !important;
    cursor: pointer;
    transition: border-color 0.2s;
}

.convo-item:hover { border-color: var(--accent); }

.convo-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.group-avatar {
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.convo-info { flex: 1; min-width: 0; }
.convo-name { font-weight: 600; font-size: 0.95rem; }
.convo-preview { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }

.group-badge {
    font-size: 0.7rem;
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
}

/* AUTOCOMPLETE */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-wrap input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.autocomplete-wrap input:focus { border-color: var(--accent); }

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.autocomplete-item:hover { background: var(--accent-light); }

.autocomplete-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.selected-users {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.selected-users:empty { margin-bottom: 0; }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 600;
}

.user-chip button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.user-chip button:hover { color: var(--error); }

/* CHAT */
.chat-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px !important;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.chat-header h2 { font-size: 1.1rem; flex: 1; }
.chat-back { font-size: 1.2rem; color: var(--text-secondary); }
.chat-members { font-size: 0.8rem; color: var(--text-muted); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 75%;
    align-items: flex-end;
}

.chat-msg-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-other { align-self: flex-start; }

.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-msg-content { display: flex; flex-direction: column; }
.chat-msg-name { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }

.chat-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg-mine .chat-bubble {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg-other .chat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-msg-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.chat-msg-mine .chat-msg-time { text-align: right; }

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px !important;
    margin-top: 8px;
    flex-shrink: 0;
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

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

/* ROOMS */
.rooms-container { max-width: 800px; margin: 0 auto; }

.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.rooms-header h1 { font-size: 1.8rem; }
.rooms-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.trending-rooms {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.trending-rooms::-webkit-scrollbar { display: none; }

.trending-room-card {
    min-width: 160px;
    text-align: center;
    padding: 20px 16px !important;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.trending-room-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.room-icon-big { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.trending-room-card h3 { font-size: 0.95rem; margin-bottom: 6px; }

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.room-card {
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    padding: 16px !important;
}

.room-card:hover { transform: translateY(-2px); border-color: var(--accent); }

.room-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.room-icon { font-size: 1.8rem; flex-shrink: 0; }
.room-card-info h3 { font-size: 1rem; margin-bottom: 4px; }
.room-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

.room-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-stat { font-size: 0.8rem; color: var(--text-muted); }

.room-joined-badge {
    font-size: 0.75rem;
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

/* ROOM VIEW */
.room-view-container { max-width: 900px; margin: 0 auto; }

.room-banner { padding: 24px !important; margin-bottom: 16px; }

.room-banner-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.room-icon-hero { font-size: 3rem; flex-shrink: 0; }
.room-banner-info { flex: 1; }
.room-banner-info h1 { font-size: 1.5rem; margin-bottom: 4px; }
.room-banner-info p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }

/* DAILY PROMPT */
.room-prompt {
    padding: 18px !important;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent);
}

.prompt-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.prompt-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* STAR OF THE WEEK */
.room-star {
    padding: 20px !important;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.star-header {
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 12px;
}

.star-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.star-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffd700;
}

.star-name { font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.star-sub { font-size: 0.8rem; color: var(--text-muted); }

.star-pinned-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.star-pinned-post {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ROOM LAYOUT */
.room-content-layout {
    display: flex;
    gap: 20px;
}

.room-feed { flex: 1; min-width: 0; }
.room-sidebar { width: 260px; flex-shrink: 0; }

/* LEADERBOARD */
.leaderboard-card { padding: 18px !important; position: sticky; top: 80px; }
.leaderboard-title { font-size: 0.95rem; margin-bottom: 14px; }

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.leaderboard-row:last-child { border-bottom: none; }

.leaderboard-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--bg-input);
    color: var(--text-muted);
    flex-shrink: 0;
}

.rank-gold { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.rank-silver { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; }
.rank-bronze { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }

.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.leaderboard-name { font-size: 0.85rem; font-weight: 600; flex: 1; color: var(--text-primary); }
.leaderboard-score { font-size: 0.8rem; color: var(--text-muted); }

.pinned-post { border-color: rgba(255, 215, 0, 0.3) !important; }
.pinned-badge { font-size: 0.75rem; color: #ffd700; font-weight: 600; margin-bottom: 8px; }

/* NAV LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-logo:hover { color: var(--accent-hover); }

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    z-index: 1000;
    transition: transform 0.3s;
}

.bottom-nav.hidden {
    transform: translateY(100%);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    border-radius: var(--radius-sm);
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-icon { font-size: 1.4rem; }
.bottom-nav-label { font-size: 0.7rem; font-weight: 600; }

/* TOAST */
.toast-msg {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 6000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* SHARE MODAL */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.share-modal {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 24px !important;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    text-align: left;
}

.share-option-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* STORIES BAR */
.stories-bar {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 12px 0 16px;
    scrollbar-width: none;
}

.stories-bar::-webkit-scrollbar { display: none; }

.story-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe, #fd79a8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.story-emoji {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.story-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 64px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* STORY VIEWER */
.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.story-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 85vh;
    max-height: 700px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.story-progress {
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-bar.done { background: rgba(255, 255, 255, 0.8); }

.story-progress-bar.active {
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.story-progress-bar.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    animation: storyProgress 5s linear forwards;
}

@keyframes storyProgress {
    from { width: 0; }
    to { width: 100%; }
}

.story-close {
    position: absolute;
    top: 20px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-content {
    text-align: center;
    padding: 40px 30px;
}

.story-emoji-big { font-size: 4rem; margin-bottom: 20px; }

.story-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.story-prompt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.story-nav-areas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 1;
}

.story-nav-left, .story-nav-right { flex: 1; cursor: pointer; }

.story-action {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* SONG EMBED */
.post-song-embed {
    margin: 12px 0 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.post-song-embed iframe {
    border-radius: var(--radius-sm);
}

.song-input-row {
    margin-top: 8px;
}

.song-input {
    width: 100%;
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.song-input:focus { border-color: var(--accent); }
.song-input::placeholder { color: var(--text-muted); }

/* EXPLORE */
.explore-container { max-width: 700px; margin: 0 auto; }
.explore-title { font-size: 1.5rem; margin-bottom: 20px; }

.explore-section { margin-bottom: 28px; }

.explore-rooms-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.explore-rooms-scroll::-webkit-scrollbar { display: none; }

.explore-room-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px !important;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.explore-room-chip:hover { border-color: var(--accent); }

.explore-users-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.explore-users-scroll::-webkit-scrollbar { display: none; }

.explore-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    text-align: center;
    width: 80px;
}

.explore-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.explore-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80px;
}

/* TOPICS */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.topic-card {
    text-align: center;
    padding: 18px 12px !important;
    transition: transform 0.2s, border-color 0.2s;
}

.topic-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.topic-emoji { font-size: 2rem; margin-bottom: 8px; }
.topic-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.topic-prompt { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 10px; min-height: 36px; }
.topic-discuss-btn { width: 100%; }

/* NEWS */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.news-item {
    padding: 14px !important;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.news-item:hover { transform: translateY(-2px); border-color: var(--accent); }

.news-source {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.news-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

/* VIDEO FEED */
.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.video-section-header .section-title { margin-bottom: 0; }

.video-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.video-scroll::-webkit-scrollbar { display: none; }

.video-thumb {
    width: 130px;
    height: 200px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-card);
}

.video-thumb video,
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-thumb-user {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.video-thumb-cat {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    opacity: 0.8;
}

.video-thumb:hover .video-thumb-play { opacity: 1; }

/* FULLSCREEN VIDEO FEED */
.video-feed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-feed-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-feed-close:hover { background: rgba(255,255,255,0.3); }

.video-feed-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-fullscreen-yt {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
}

.video-slide-info {
    position: absolute;
    bottom: 80px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.video-slide-user {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.video-slide-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-slide-caption {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    line-height: 1.4;
}

.video-unmute-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s;
}

.video-unmute-btn:hover { background: rgba(255,255,255,0.25); }

.video-nav {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.video-nav-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-nav-btn:hover { background: rgba(255,255,255,0.3); }

.video-nav-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

/* NOTIFICATIONS */
.notif-container { max-width: 600px; margin: 0 auto; }

.notif-list { display: flex; flex-direction: column; gap: 8px; }

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px !important;
    transition: border-color 0.2s;
}

.notif-unread {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.05);
}

.notif-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-system-icon {
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notif-body { flex: 1; min-width: 0; }
.notif-message { font-size: 0.9rem; color: var(--text-primary); line-height: 1.4; }
.notif-time { font-size: 0.75rem; color: var(--text-muted); }

.notif-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* SETTINGS */
.settings-container { max-width: 600px; margin: 0 auto; }

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-of-type { border-bottom: none; }

.setting-info { flex: 1; }
.setting-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.setting-info p { font-size: 0.82rem; color: var(--text-muted); }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

/* ADMIN */
.admin-container { max-width: 1000px; margin: 0 auto; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 { font-size: 1.5rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    text-align: center;
    padding: 20px !important;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.admin-panels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th {
    text-align: left;
    padding: 8px 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-email { font-size: 0.8rem; }
.admin-date { font-size: 0.8rem; color: var(--text-muted); }
.admin-content-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-badge {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ABOUT PAGE */
.about-container {
    max-width: 750px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    padding: 40px 30px !important;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 92, 231, 0.1) 100%);
}

.about-hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.about-tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-section {
    margin-top: 16px;
}

.about-section h2 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.rule-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--error);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.rule-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.rule-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.encourage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.encourage-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
}

.encourage-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.encourage-item h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.encourage-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.mod-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.mod-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.mod-step-num {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    color: white;
}

.mod-step h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.mod-step p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.terms-list {
    list-style: none;
    padding: 0;
}

.terms-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.terms-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.terms-list li:last-child { border-bottom: none; }

.about-footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.about-footer p { margin-bottom: 4px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 10px;
    }

    .nav-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        padding: 10px 0;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 10px 14px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }

    .main-content {
        padding: 12px;
        padding-bottom: 110px;
    }

    .card {
        padding: 16px;
    }

    .post-media {
        margin: 0 -16px;
    }

    .post-media img,
    .post-media video {
        max-height: 60vh;
    }

    .blog-cover {
        margin: -16px -16px 12px -16px;
    }

    .auth-container {
        margin: 30px auto;
    }

    .trending-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .trending-card { display: flex; flex-direction: row; }
    .trending-cover { height: auto; width: 100px; flex-shrink: 0; }
    .trending-body { padding: 10px; }

    .blog-card-layout { flex-direction: column-reverse; gap: 12px; }
    .blog-card-thumb { width: 100%; height: 160px; }

    .blog-article { padding: 20px !important; }
    .blog-read-title { font-size: 1.5rem; }
    .blog-read-content { font-size: 1rem; }

    .blog-author-bar { flex-direction: column; text-align: center; gap: 10px; }
    .blog-author-name-row { justify-content: center; }

    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .news-list { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 1.5rem; }
    .rooms-grid { grid-template-columns: 1fr; }
    .room-content-layout { flex-direction: column; }
    .room-sidebar { width: 100%; }
    .room-banner-top { flex-direction: column; text-align: center; }
    .room-icon-hero { font-size: 2.5rem; }
    .encourage-grid { grid-template-columns: 1fr; }

    .about-hero h1 { font-size: 1.5rem; }
    .about-hero { padding: 24px 16px !important; }

    .post-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .emoji-picker {
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        width: 100%;
        height: 45vh;
        transform: none;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .emoji-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .chat-msg { max-width: 85%; }

    .chat-container { height: calc(100vh - 170px); }

    .chat-input { margin-bottom: 10px; }
}

@media (max-width: 480px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-actions {
        gap: 8px;
    }

    .post-action-btn {
        font-size: 0.8rem;
        padding: 6px 8px;
    }

    .post-reactions { gap: 4px; }
    .reaction-btn { padding: 3px 8px; font-size: 0.8rem; }
}
