/* ============================================
   YONIX HUB - COMPLETE STYLE.CSS v2.1
   ============================================ */

/* iOS Safari Fixes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* Fix iOS input zoom */
input, textarea, select, button {
    font-size: 16px !important;
}

/* Prevent iOS appearance */
input,
textarea,
select,
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-primary: #0f1419;
    --bg-secondary: #16181c;
    --bg-tertiary: #1e2024;
    --text-primary: #e7e9ea;
    --text-secondary: #71767b;
    --accent: #1d9bf0;
    --accent-hover: #1a8cd8;
    --border: #2f3336;
    --success: #00ba7c;
    --danger: #f4212e;
    --warning: #ffd400;
    --card-shadow: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f9f9;
    --bg-tertiary: #eff3f4;
    --text-primary: #0f1419;
    --text-secondary: #536471;
    --border: #cfd9de;
    --success: #00ba7c;
    --danger: #f4212e;
    --warning: #ffd400;
    --card-shadow: rgba(0, 0, 0, 0.08);
}

/* ============================================
   BASE
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app-container {
    padding-top: 60px;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 80px;
}

/* ============================================
   LEFT SIDEBAR - Desktop Only
   ============================================ */
.left-sidebar {
    width: 280px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
}

.left-sidebar::-webkit-scrollbar {
    display: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    border-right: 1px solid var(--border);
    max-width: 900px;
    width: 100%;
}

/* ============================================
   RIGHT SIDEBAR
   ============================================ */
.right-sidebar {
    width: 340px;
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
    scrollbar-width: none;
}

.right-sidebar::-webkit-scrollbar { 
    display: none; 
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

/* ============================================
   POSTS FEED
   ============================================ */
.posts-feed {
    display: flex;
    flex-direction: column;
}

.post-card {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    transition: background 0.15s;
    cursor: pointer;
    width: 100%;
}

.post-card:hover {
    background: var(--bg-tertiary);
}

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

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

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

.post-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 13px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(29, 155, 240, 0.15);
    color: var(--accent);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.post-content {
    margin-bottom: 10px;
}

.post-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-summary {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 15px;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   MULTI-IMAGE GRID LAYOUTS
   ============================================ */
.post-image-grid {
    margin: 10px 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.post-image-grid img:hover {
    transform: scale(1.02);
}

.post-image-grid.single img {
    max-height: 460px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.post-image-grid.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.post-image-grid.two-col img {
    height: 280px;
}

.post-image-grid.three-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    height: 360px;
}

.post-image-grid.three-grid .large {
    grid-row: span 2;
    height: 100%;
}

.post-image-grid.three-grid .small-images {
    display: grid;
    gap: 2px;
}

.post-image-grid.three-grid .small-images img {
    height: 100%;
}

.post-image-grid.four-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.post-image-grid.four-grid img {
    height: 230px;
}

.post-image-grid.five-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.post-image-grid.five-grid > img {
    height: 280px;
}

.post-image-grid.five-grid .small-images {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.post-image-grid.five-grid .small-images img {
    height: 140px;
}

/* Post Footer */
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.post-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    transition: all 0.2s;
    padding: 7px 10px;
    border-radius: 20px;
}

.action-btn:hover {
    color: var(--accent);
    background: rgba(29, 155, 240, 0.1);
}

.action-btn.liked {
    color: #f91880;
}

.action-btn.liked:hover {
    background: rgba(249, 24, 128, 0.1);
    color: #f91880;
}

.action-btn.bookmarked {
    color: var(--accent);
}

.action-btn.bookmarked:hover {
    background: rgba(29, 155, 240, 0.1);
}

.action-btn i {
    font-size: 17px;
}

.action-count {
    font-weight: 600;
}

/* ============================================
   TRENDING WIDGET
   ============================================ */
.trending-widget,
.social-widget {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--accent);
}

.trending-item {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 8px;
}

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

.trending-item:hover {
    background: var(--bg-tertiary);
    padding-left: 12px;
}

.trending-category {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-stats {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 18px;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2500;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 24px 24px 0 0;
    padding: 28px 22px;
    max-width: 500px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--border);
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-right: 40px;
}

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

.form-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px !important;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px !important;
    outline: none;
    transition: border-color 0.2s;
}

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

.form-input::placeholder {
    color: var(--text-secondary);
}

select.form-input {
    cursor: pointer;
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-input {
    padding-right: 46px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
    font-size: 16px !important;
}

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

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--danger);
}

.password-strength-bar.medium {
    width: 66%;
    background: var(--warning);
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--success);
}

.terms-group {
    margin-bottom: 14px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px !important;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

.checkbox-label a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 18px 0;
    color: var(--text-secondary);
    font-size: 13px !important;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.forgot-password {
    text-align: right;
    margin-bottom: 14px;
}

.forgot-password a {
    color: var(--accent);
    font-size: 13px !important;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px !important;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: var(--accent-hover);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.switch-auth {
    text-align: center;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px !important;
}

.switch-auth a {
    color: var(--accent);
    font-weight: 700;
    margin-left: 4px;
    text-decoration: none;
}

.success-message {
    background: rgba(0, 186, 124, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px !important;
}

.success-message i { font-size: 22px; flex-shrink: 0; }

.error-message {
    background: rgba(244, 33, 46, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px !important;
}

.error-message i { font-size: 22px; flex-shrink: 0; }

.info-banner {
    background: rgba(29, 155, 240, 0.1);
    border: 1px solid rgba(29, 155, 240, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px !important;
    color: var(--accent);
}

.verification-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0;
}

.verification-input {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 22px !important;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.2s;
    outline: none;
}

.verification-input:focus {
    border-color: var(--accent);
    transform: scale(1.05);
}

.resend-code {
    text-align: center;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 14px !important;
}

.resend-code button {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
    font-size: 14px !important;
}

.resend-code button:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}

.google-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 13px 22px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5000;
    white-space: nowrap;
    font-size: 14px !important;
    font-weight: 600;
    pointer-events: none;
}

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

.toast i {
    font-size: 17px;
    flex-shrink: 0;
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

.skeleton-title {
    height: 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 65%;
}

.skeleton-text {
    height: 13px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-image {
    height: 280px;
    border-radius: 12px;
    margin: 12px 0;
}

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

.empty-state i {
    font-size: 56px;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    min-width: 210px;
    box-shadow: 0 8px 24px var(--card-shadow);
    display: none;
    z-index: 1010;
    animation: fadeIn 0.2s ease;
}

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

.user-dropdown.active {
    display: block;
}

.dropdown-item {
    padding: 11px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
    font-size: 15px !important;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

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

.dropdown-item i {
    font-size: 17px;
    color: var(--text-secondary);
    width: 20px;
    text-align: center;
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger i {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-btn {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    text-decoration: none;
}

.back-btn:hover {
    background: var(--border);
}

/* ============================================
   FEED FILTERS
   ============================================ */
.feed-filters {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    overflow-x: auto;
    scrollbar-width: none;
}

.feed-filters::-webkit-scrollbar { display: none; }

.feed-filter-btn {
    flex: 1;
    padding: 14px 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    white-space: nowrap;
}

.feed-filter-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.feed-filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   BOTTOM NAVIGATION BAR - FIXED
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: none;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 2000 !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom);
    padding-bottom: constant(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.bottom-nav-item i {
    font-size: 21px;
    transition: transform 0.2s;
    display: block;
}

.bottom-nav-item span {
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
}

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

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item.create-btn {
    width: 54px;
    height: 54px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    flex: 0 0 54px;
    margin-top: -22px;
    box-shadow: 0 4px 16px rgba(29, 155, 240, 0.45);
    transition: all 0.2s;
}

.bottom-nav-item.create-btn i {
    font-size: 24px;
}

.bottom-nav-item.create-btn span {
    display: none;
}

.bottom-nav-item.create-btn:hover,
.bottom-nav-item.create-btn:active {
    background: var(--accent-hover);
    transform: scale(1.06);
}

.notif-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    background: var(--danger);
    color: white;
    font-size: 10px !important;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-secondary);
    line-height: 1;
}

.bnav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    display: block;
}

.bottom-nav-item.active .bnav-avatar {
    border-color: var(--accent);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (min-width: 1280px) {
    .right-sidebar {
        display: block;
    }

    .main-content {
        margin-right: 340px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
    }

    .left-sidebar {
        display: none;
    }

    .bottom-nav {
        display: flex !important;
    }

    .app-container {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex !important;
    }

    .post-image-grid.two-col img,
    .post-image-grid.four-grid img {
        height: 180px;
    }

    .post-image-grid.three-grid {
        height: 280px;
    }

    .post-image-grid.five-grid > img {
        height: 200px;
    }

    .post-image-grid.five-grid .small-images img {
        height: 110px;
    }

    .verification-input {
        width: 44px;
        height: 50px;
    }

    .verification-inputs {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .action-btn {
        padding: 6px 8px;
        font-size: 12px !important;
    }

    .action-btn i {
        font-size: 15px;
    }

    .bottom-nav-item.create-btn {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .bottom-nav-item.create-btn i {
        font-size: 22px;
    }
}
