/* ========================================
   VENARY — Page-Specific Styles
   ======================================== */

/* ========== Auth Pages ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
}

.auth-container {
    width: min(420px, 100%);
    margin-top: -8vh;
    animation: scaleIn 0.5s ease-out;
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo svg {
    margin: 0 auto var(--space-md);
}

.auth-logo h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: var(--space-xs);
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    text-align: center;
    letter-spacing: 1px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-form .btn {
    margin-top: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
}

.auth-toggle {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-toggle a {
    font-weight: 600;
}

.auth-error {
    background: rgba(255, 45, 120, 0.1);
    border: 1px solid rgba(255, 45, 120, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--neon-pink);
    font-size: 0.85rem;
    animation: fadeIn 0.2s ease-out;
}

/* ========== Feed Page ========== */
.feed-page {
    width: 100%;
    max-width: 100%;
}

.feed-page .page-header {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    overflow: hidden;
}

.feed-page .page-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.feed-page .page-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
    padding-left: 1.25rem;
}

.feed-page .page-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    padding-left: 1.25rem;
}

.feed-page .page-header::after {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 191, 36, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Post Composer */
.post-composer {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-normal);
}

.post-composer:focus-within {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
}

.composer-input {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.composer-textarea {
    flex: 1;
    background: transparent;
    border: none;
    min-height: 60px;
    resize: none;
    line-height: 1.5;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.composer-textarea:focus {
    outline: none;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.composer-tools {
    display: flex;
    gap: var(--space-sm);
}

.composer-tool-btn {
    padding: var(--space-xs);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.composer-tool-btn:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.char-count.near-limit {
    color: var(--neon-orange);
}

.char-count.at-limit {
    color: var(--neon-pink);
}

/* Post Cards */
.post-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.3s ease-out both;
}

.post-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.post-user-info .username {
    font-weight: 600;
    font-size: 0.925rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.post-user-info .username:hover {
    color: var(--neon-cyan);
}

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

.post-content {
    margin-bottom: var(--space-md);
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.post-actions {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.post-action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.post-action-btn.liked {
    color: var(--neon-pink);
}

.post-action-btn.liked svg {
    fill: var(--neon-pink);
    filter: drop-shadow(0 0 4px rgba(255, 45, 120, 0.4));
}

/* Comments */
.comments-section {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.comment {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    animation: fadeIn 0.2s ease-out;
}

.comment .avatar {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

.comment-body {
    flex: 1;
    background: var(--bg-tertiary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.comment-body .username {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.comment-body .content {
    font-size: 0.85rem;
    margin-top: 2px;
}

.comment-input-wrapper {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.comment-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

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

/* ========== Profile Page ========== */
.profile-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: var(--gradient-primary);
    opacity: 0.15;
}

.profile-info {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    position: relative;
    z-index: 1;
    padding-right: 180px;
    min-height: 230px;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-primary);
    border: 3px solid var(--bg-secondary);
    box-shadow: var(--shadow-neon);
    animation: glowPulse 3s ease-in-out infinite;
}

.profile-details {
    flex: 1;
}

.profile-details h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.profile-details .username {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

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

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-card.wide {
    grid-column: span 2;
    display: flex;
    align-items: center;
    text-align: left;
    gap: var(--space-md);
    padding: var(--space-md);
}

.mc-id-head {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    border-radius: var(--radius-sm);
}

.mc-id-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.mc-id-username {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-id-uuid {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    word-break: break-all;
    margin-top: 2px;
}

/* Minecraft Extension Styles */
.mc-badge-unlinked {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: rgba(255, 45, 120, 0.1);
    border: 1px solid rgba(255, 45, 120, 0.2);
    color: var(--neon-pink);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.mc-rank.gold { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.mc-rank.silver { color: #c0c0c0; text-shadow: 0 0 8px rgba(192, 192, 192, 0.4); }
.mc-rank.bronze { color: #cd7f32; text-shadow: 0 0 8px rgba(205, 127, 50, 0.4); }

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    width: 140px;
}
.profile-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ========== Skin3D Viewer ========== */
.skin-viewer-wrapper {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    z-index: 2;
}

.skin-viewer-box {
    width: 140px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.skin-viewer-box canvas {
    border-radius: 12px;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.skin-customize-btn {
    font-size: 0.75rem !important;
    padding: 6px 16px !important;
    border-radius: var(--radius-full) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all var(--transition-normal);
}

.skin-customize-btn:hover {
    box-shadow: var(--shadow-neon);
    transform: translateY(-1px);
}

/* Customize Modal */
.skin-customize-body {
    padding: 0 var(--space-lg) var(--space-lg);
}

.skin-customize-preview {
    display: flex;
    justify-content: center;
    padding: var(--space-md) 0;
}

.skin-customize-preview > div {
    border: 1px solid var(--border-subtle);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    border-radius: 12px;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    cursor: pointer;
}

@media (max-width: 768px) {
    .profile-header {
        min-height: auto;
    }
    .profile-info {
        padding-right: 0;
    }
    .skin-viewer-wrapper {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto var(--space-md);
    }
    .skin-viewer-box {
        width: 140px;
        height: 200px;
    }
}

/* ========== Friends Page ========== */
.friends-page {
    width: 100%;
    max-width: 100%;
}

.friends-page .page-header {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.friends-page .page-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.friends-header-content {
    position: relative;
    padding-left: 1.25rem;
}

.friends-page .page-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.friends-page .page-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.friends-page .page-header::after {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 45, 120, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.search-bar {
    position: relative;
    margin-bottom: var(--space-xl);
}

.search-bar input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-left: 48px;
    background: rgba(10, 12, 20, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
}

.search-bar svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-subtle);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-tertiary);
}

.friend-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.3s ease-out both;
}

.friend-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
    transform: translateY(-1px);
}

.friend-info {
    flex: 1;
}

.friend-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.friend-info .friend-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.friend-actions {
    display: flex;
    gap: var(--space-sm);
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

/* ========== Chat Page ========== */
.chat-page {
    display: flex;
    height: calc(100vh - 2 * var(--space-xl));
    gap: var(--space-md);
}

.conversation-list {
    width: 320px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.conversation-list-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.conversation-list-header h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 1px;
}

.conversation-items {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-subtle);
}

.conversation-item:hover {
    background: var(--bg-tertiary);
}

.conversation-item.active {
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--neon-cyan);
}

.conversation-preview {
    flex: 1;
    min-width: 0;
}

.conversation-preview h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.conversation-preview .last-message {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Chat Window */
.chat-window {
    flex: 1;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(17, 24, 39, 0.5);
}

.chat-header-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-header-info .typing-indicator {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    animation: pulse 1.5s ease-in-out infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.message-bubble {
    max-width: 70%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.2s ease-out;
    word-wrap: break-word;
}

.message-bubble.sent {
    align-self: flex-end;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border-bottom-right-radius: var(--radius-sm);
}

.message-bubble.received {
    align-self: flex-start;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: var(--radius-sm);
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-height: 120px;
    resize: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.chat-send-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    box-shadow: var(--shadow-neon);
    transform: scale(1.05);
}

/* ========== Admin Page (Modernized) ========== */
.admin-page {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
    min-height: calc(100vh - 120px);
}

/* Fullscreen admin — no main nav */
.admin-fullscreen {
    padding: 0 !important;
}

.admin-fullscreen .admin-page {
    max-width: 100%;
    min-height: 100vh;
    gap: 0;
    border-radius: 0;
}

.admin-fullscreen .admin-sidebar {
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-fullscreen .admin-main {
    border-radius: 0;
}

/* Sidebar Navigation */
.admin-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    height: sticky;
    top: 2rem;
    align-self: start;
}

.admin-sidebar-header {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-md);
}

.admin-sidebar-header h2 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.admin-sidebar-footer {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.admin-back-btn {
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
}

.admin-back-btn:hover {
    color: var(--neon-cyan) !important;
    background: var(--bg-tertiary) !important;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.admin-nav-item.active {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

.admin-nav-item i {
    font-size: 1.1rem;
    width: 20px;
}

/* Content Area */
.admin-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-xl);
}

.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-md);
}

.admin-content-header .title-info h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.admin-content-header .title-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-neon);
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    filter: blur(50px);
    opacity: 0.05;
    pointer-events: none;
}

.admin-stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.admin-stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.admin-stat-card .stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-xs);
}

/* Tables & Lists */
.admin-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* ── User management card list ── */
.admin-user-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-user-card {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr auto;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.admin-user-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.auc-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.auc-meta {
    min-width: 0;
}

.auc-email {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auc-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .admin-user-card {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .auc-meta {
        grid-column: 1;
        grid-row: 2;
    }
    .auc-controls {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}

@media (max-width: 600px) {
    .admin-user-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .auc-meta { grid-column: 1; grid-row: 2; }
    .auc-controls {
        grid-column: 1;
        grid-row: 3;
        align-items: flex-start;
    }
    .auc-email { white-space: normal; word-break: break-all; }
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

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

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-primary);
}

/* Badges */
.admin-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Bar */
.admin-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

/* Settings Panel Enhancements */
.admin-settings-section {
    display: grid;
    gap: var(--space-xl);
}

.admin-settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.admin-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.admin-settings-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Responsive Admin - Major Redesign */
@media (max-width: 1200px) {
    .admin-page,
    .admin-fullscreen .admin-page {
        grid-template-columns: 1fr;
        display: block;
    }
    
    .admin-sidebar,
    .admin-fullscreen .admin-sidebar {
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding: var(--space-sm) var(--space-md);
        height: auto !important;
        position: sticky;
        top: calc(56px + env(safe-area-inset-top));
        z-index: 50;
        background: rgba(var(--surface-color-rgb), 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        align-items: center;
        gap: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-sidebar::-webkit-scrollbar,
    .admin-fullscreen .admin-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .admin-sidebar-header {
        display: none;
    }
    
    .admin-nav {
        flex-direction: row;
        width: max-content;
        gap: var(--space-xs);
        padding-right: var(--space-md);
        height: auto;
    }
    
    .admin-nav-item {
        white-space: nowrap;
        padding: var(--space-sm) var(--space-md);
        border-radius: 50px;
        background: var(--surface-color-alt);
        font-size: 0.85rem;
        font-weight: 600;
        border: 1px solid transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        gap: 6px;
        height: auto;
        width: auto;
    }
    
    .admin-nav-item i,
    .admin-nav-item svg {
        width: 16px;
        height: 16px;
        margin: 0;
    }
    
    .admin-nav-item.active {
        background: var(--primary-color);
        color: white;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
        transform: translateY(-1px);
    }

    .admin-sidebar-footer {
        padding: 0;
        margin: 0;
        border-top: none;
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .admin-back-btn {
        background: var(--bg-color);
        border-radius: 50px;
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .admin-main {
        padding: var(--space-md);
    }
}

.admin-more-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only-tab,
    .admin-nav-item.desktop-only-tab {
        display: none !important;
    }
    
    .admin-more-btn {
        display: flex !important;
    }
}

@media (max-width: 600px) {
    .admin-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .admin-stat-card {
        padding: var(--space-md);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-radius: var(--radius-lg);
        background: linear-gradient(145deg, var(--surface-color), var(--surface-color-alt));
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    .admin-stat-card .stat-value {
        font-size: 2rem;
        margin: var(--space-xs) 0;
    }
    
    .admin-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .admin-content-header .title-info h1 {
        font-size: 1.5rem;
    }
    
    .admin-content-header .title-info p {
        font-size: 0.9rem;
    }
    
    /* Improve tables on mobile */
    .admin-table-container {
        border-radius: var(--radius-md);
        border: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        background: var(--surface-color);
        padding: 0;
        margin: 0 -var(--space-md) var(--space-md) -var(--space-md);
        width: calc(100% + (var(--space-md) * 2));
        border-left: none;
        border-right: none;
    }
    
    .admin-table th,
    .admin-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }
    
    .admin-main {
        padding: var(--space-md) var(--space-md) calc(env(safe-area-inset-bottom) + var(--space-xl));
    }
}

/* ========== Settings Panel ========== */
.settings-section {
    animation: fadeUp 0.2s ease;
}

/* ========== Responsive Chat — Mobile Messenger Layout ========== */
@media (max-width: 768px) {
    /* Full-screen chat that fills the viewport */
    .chat-page {
        position: fixed;
        inset: 0;
        top: calc(56px + env(safe-area-inset-top));
        bottom: calc(60px + env(safe-area-inset-bottom));
        flex-direction: row;
        gap: 0;
        height: auto;
        overflow: hidden;
        max-width: 100vw;
    }

    /* Conversation list — full width panel, slides out when chat is open */
    .conversation-list {
        position: absolute;
        inset: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-subtle);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2;
        background: var(--bg-primary);
    }

    .chat-page.chat-open .conversation-list {
        transform: translateX(-100%);
        pointer-events: none;
    }

    /* Chat window — full width, slides in from right */
    .chat-window {
        position: absolute;
        inset: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 3;
        background: var(--bg-primary);
    }

    .chat-page.chat-open .chat-window {
        transform: translateX(0);
    }

    /* Chat header with back button on mobile */
    .chat-header {
        padding: 10px 14px;
        background: rgba(5, 6, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .chat-back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        background: rgba(255,255,255,0.06);
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        flex-shrink: 0;
        margin-right: 4px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Conversation list header */
    .conversation-list-header {
        padding: 14px 16px;
        background: rgba(5, 6, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .conversation-list-header h2 {
        font-size: 1.1rem;
    }

    /* Conversation items larger tap targets */
    .conversation-item {
        padding: 14px 16px;
    }

    /* Messages area fills remaining space */
    .chat-messages {
        padding: 12px 14px;
    }

    /* Message bubbles wider on mobile */
    .message-bubble {
        max-width: 85%;
    }

    /* Input area safe area aware */
    .chat-input-area {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .chat-input {
        font-size: 16px; /* prevent iOS zoom */
    }
}

/* Back button hidden on desktop */
.chat-back-btn {
    display: none;
}

/* ========== Responsive Profile ========== */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ========== Mobile Feed Optimizations ========== */
@media (max-width: 768px) {
    /* Feed container — full width */
    .feed-page {
        max-width: 100%;
        padding: 0;
    }

    /* Hide desktop page header */
    .feed-page .page-header {
        display: none;
    }

    /* Post cards — edge-to-edge */
    .post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-subtle);
        padding: 14px 14px 10px;
        transform: none !important;
        box-shadow: none !important;
    }

    .post-card:hover {
        border-color: var(--border-subtle);
        box-shadow: none;
        transform: none;
    }

    .post-header { gap: 10px; margin-bottom: 10px; }
    .post-content { font-size: 0.95rem; margin-bottom: 10px; }

    /* Post actions — full width tap targets */
    .post-actions {
        gap: 0;
        padding-top: 8px;
        justify-content: space-around;
    }

    .post-action-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        min-height: 40px;
    }

    /* Comments */
    .comments-section { margin-top: 10px; padding-top: 10px; }
    .comment-input-wrapper { gap: 8px; }
    .comment-input { font-size: 16px; }

    /* Composer — clean, scrolls with content */
    .post-composer {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        margin-bottom: 0;
        padding: 10px 14px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
    }

    .post-composer:focus-within {
        box-shadow: none;
    }

    .composer-input {
        gap: 10px;
        align-items: flex-start;
    }

    /* Textarea — normal auto-resize, no height clamp */
    .composer-textarea {
        min-height: 40px;
        padding: 10px 14px;
        border-radius: var(--radius-lg);
        background: var(--bg-tertiary);
        border: 1px solid var(--border-subtle);
        font-size: 16px;
        resize: none;
    }

    .composer-textarea:focus {
        border-color: var(--border-accent);
        outline: none;
    }

    /* Composer actions always visible on mobile */
    .composer-actions {
        display: flex;
        margin-top: 8px;
        padding-top: 8px;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }

    .char-count { display: none; }

    /* Gallery */
    .post-gallery.two-imgs,
    .post-gallery.three-imgs,
    .post-gallery.four-plus-imgs {
        height: 260px;
    }

    .post-gallery.one-img img {
        max-height: 400px;
        object-fit: cover;
    }

    /* Feed posts container — no gap between cards */
    #feed-posts {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--border-subtle);
    }

    /* Empty state full width */
    .empty-state {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0;
    }

    /* Stagger animation faster on mobile */
    .stagger-children > * {
        animation-duration: 0.2s;
    }
}

/* ========== Friends Page — Contact List Layout ========== */
.friends-search-bar {
    position: relative;
    margin-bottom: var(--space-lg);
}

.friends-search-bar svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.friends-search-bar .input-field {
    width: 100%;
    padding-left: 42px;
    border-radius: var(--radius-xl);
}

/* Contact-list style rows */
.friends-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.friend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
    animation: fadeInUp 0.25s ease-out both;
}

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

.friend-row:hover {
    background: rgba(255,255,255,0.02);
}

.friend-row-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.friend-row-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-row-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.friend-row-status.online {
    color: var(--neon-green);
}

.friend-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.friend-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.friend-action-btn:hover {
    background: rgba(41,182,246,0.1);
    border-color: rgba(41,182,246,0.3);
    color: var(--neon-cyan);
}

.friend-action-btn.friend-action-remove:hover {
    background: rgba(255,45,120,0.1);
    border-color: rgba(255,45,120,0.3);
    color: var(--neon-pink);
}

.friends-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 4px 0 8px;
}

/* Mobile overrides */
@media (max-width: 768px) {
    .friends-page {
        max-width: 100%;
    }

    .friends-page .page-header {
        padding: 1rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .friends-header-status {
        width: 100%;
    }

    .friends-status-header {
        flex-direction: row;
        gap: 0.75rem;
    }

    .friends-header-status .mc-status-card {
        flex: 1;
        min-width: 0;
        padding: 0.875rem 1rem;
    }

    .friends-header-status .mc-status-icon {
        width: 36px;
        height: 36px;
    }

    .friends-header-status .mc-status-value {
        font-size: 1.25rem;
    }

    .friends-header-status .mc-status-label {
        font-size: 0.75rem;
    }

    .friends-search-bar {
        margin-bottom: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border-subtle);
        background: var(--bg-secondary);
        padding: 10px 14px;
    }

    .friends-search-bar .input-field {
        border-radius: var(--radius-full);
        font-size: 16px;
        background: var(--bg-tertiary);
    }

    .friends-search-bar svg {
        left: 28px;
    }

    .tabs {
        border-radius: 0;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .friends-list {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .friend-row {
        padding: 12px 14px;
    }

    .friend-action-btn {
        width: 40px;
        height: 40px;
    }

    .friends-section-label {
        padding: 12px 14px 4px;
    }

    /* Search results full width */
    .search-results {
        position: fixed;
        left: 0;
        right: 0;
        top: calc(56px + env(safe-area-inset-top) + 110px);
        border-radius: var(--radius-lg);
        margin: 0 8px;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 200;
    }

    .search-result-item {
        padding: 12px 16px;
    }

    /* Admin Mobile Edition (App Feel) */
    .admin-sidebar,
    .admin-fullscreen .admin-sidebar {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0;
        right: 0;
        height: calc(60px + env(safe-area-inset-bottom)) !important;
        padding: 0 0 env(safe-area-inset-bottom) 0 !important;
        background: rgba(5, 6, 10, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid var(--border-subtle) !important;
        border-bottom: none !important;
        z-index: 100 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: space-around !important;
        overflow: visible !important;
    }

    .admin-sidebar-header {
        display: none !important;
    }

    .admin-nav {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-around !important;
        padding: 0 !important;
        gap: 0 !important;
        height: 100% !important;
        overflow: visible !important;
    }

    .admin-nav-item {
        flex: 1;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        color: var(--text-muted) !important;
        font-size: 0.65rem !important;
        font-weight: 500 !important;
        padding: 8px 4px !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        white-space: normal !important;
        height: 100% !important;
        width: auto !important;
        text-align: center !important;
    }

    .admin-nav-item:hover {
        background: transparent !important;
    }

    .admin-nav-item i,
    .admin-nav-item svg {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
    }

    .admin-nav-item.active {
        color: var(--neon-cyan) !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .admin-nav-item.active svg {
        filter: drop-shadow(0 0 6px rgba(41,182,246,0.5));
    }

    .admin-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 2px;
        background: var(--gradient-primary);
        border-radius: 0 0 var(--radius-full) var(--radius-full);
    }

    .admin-sidebar-footer {
        display: none !important;
    }

    .admin-main,
    .admin-fullscreen .admin-main {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* ── Feed guest banner ── */
.feed-guest-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}
.feed-guest-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.feed-guest-text strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}
.feed-guest-text span {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.feed-guest-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Friends Status Header Cards */
.friends-status-header {
    display: flex;
    gap: 1rem;
}
