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

:root {
    --brand-primary: #F86D2A;
    --accent-hover: #e05a1e;
    --brand-red: #ED4956;
    --brand-blue: #0095f6;
    --brand-green: #28a745;
    --brand-warning: #ffc107;
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #1A1A1A;
    --text-primary: #F5F5F5;
    --text-secondary: #A8A8A8;
    --text-tertiary: #737373;
    --border-color: #262626;
    --border-light: #1A1A1A;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.15s;
}

#app.js-booting {
    opacity: 0.7;
    pointer-events: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    width: 100%;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-logo span {
    color: var(--brand-primary);
}

.header-actions {
    display: flex;
    gap: 16px;
}

.header-actions button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--brand-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-badge.hide {
    display: none;
}

.categories-row {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.categories-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.categories-title i {
    color: var(--brand-primary);
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

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

.category-pill {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.category-pill:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.view-container {
    flex: 1;
    background: var(--bg-primary);
}

.bottom-nav {
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 4px;
    z-index: 50;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 12px;
    flex: 1;
    max-width: 80px;
    position: relative;
}

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

.nav-item.active {
    color: var(--brand-primary);
}

.nav-profile-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 8px;
    background: var(--brand-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav-badge.hide {
    display: none;
}

.feed-view {
    background: var(--bg-primary);
}

.feed-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--brand-primary);
}

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

.posts-feed {
    display: flex;
    flex-direction: column;
}

.post-card {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.post-avatar-wrapper {
    cursor: pointer;
}

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

.post-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-name {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    color: var(--text-primary);
}

.author-name {
    cursor: pointer;
}

.author-name:hover {
    color: var(--brand-primary);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    color: var(--brand-blue);
    font-size: 10px;
}

.post-time {
    font-size: 10px;
    color: var(--text-secondary);
}

.post-menu {
    cursor: pointer;
    padding: 6px;
    color: var(--text-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.follow-btn-small {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 6px;
}

.follow-btn-small.following {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.post-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #F86D2A, #e05a1e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image-placeholder i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.6);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
}

.actions-left {
    display: flex;
    gap: 16px;
}

.actions-right {
    display: flex;
}

.action-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 50%;
}

.action-btn:hover {
    background: var(--bg-tertiary);
}

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

.save-btn.saved {
    color: var(--brand-primary);
}

.likes-count {
    padding: 0 12px;
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.post-caption {
    padding: 0 12px 8px;
    font-size: 13px;
    line-height: 1.4;
}

.caption-author {
    font-weight: 600;
    margin-right: 4px;
    cursor: pointer;
    color: var(--text-primary);
}

.caption-text {
    color: var(--text-secondary);
}

.view-comments {
    padding: 0 12px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 8px;
    color: var(--text-secondary);
}

.feed-end {
    text-align: center;
    padding: 30px 20px 50px;
}

.end-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.end-divider-line {
    width: 40px;
    height: 1px;
    background: var(--border-color);
}

.end-divider i {
    color: var(--brand-primary);
    font-size: 12px;
}

.feed-end p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.feed-end small {
    font-size: 12px;
    color: var(--text-secondary);
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--brand-primary);
}

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

.empty-state p {
    font-size: 13px;
    color: var(--text-secondary);
}

.empty-state .btn-primary {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.skeleton {
    pointer-events: none;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #262626;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1A1A1A;
}

.skeleton-line {
    height: 12px;
    background: #262626;
    border-radius: 4px;
}

.js-hydration-indicator {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.js-hydration-indicator.show {
    opacity: 1;
}

.post-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.post-menu-modal.active {
    display: flex;
}

.post-menu-container {
    background: var(--bg-primary);
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

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

.post-menu-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.post-menu-item {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.post-menu-item:hover {
    background: var(--bg-secondary);
}

.post-menu-item i {
    width: 20px;
    color: var(--text-secondary);
}

.post-menu-item.danger {
    color: #dc3545;
}

.post-menu-item.danger i {
    color: #dc3545;
}

.post-menu-cancel {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.heart-animation {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
}

.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 90%;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #262626;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hide {
    transform: translateY(-100px);
    opacity: 0;
}

.toast i {
    font-size: 18px;
}

.toast span {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.toast-close:hover {
    color: white;
}

.toast-success { background: #28a745; }
.toast-error { background: #dc3545; }
.toast-warning { background: #ffc107; color: #000; }
.toast-info { background: #0095f6; }

.auth-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F86D2A, #e05a1e);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.auth-logo i {
    color: var(--brand-primary);
    font-size: 28px;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

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

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.google-btn:hover {
    background: var(--bg-tertiary);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    margin: 0 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

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

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.strength-bar.weak { width: 33%; background: var(--brand-red); }
.strength-bar.medium { width: 66%; background: #ffc107; }
.strength-bar.strong { width: 100%; background: var(--brand-green); }

.strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: var(--text-secondary);
}

.profile-view {
    background: var(--bg-primary);
    min-height: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-title {
    font-weight: 600;
    font-size: 16px;
}

.profile-menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
}

.profile-info-section {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 16px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-primary);
}

.profile-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

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

.profile-stat-number {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-bio-section {
    padding: 0 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.profile-username {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
    white-space: pre-line;
}

.profile-website {
    font-size: 13px;
    color: var(--brand-blue);
    text-decoration: none;
}

.profile-action-buttons {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-action-btn {
    flex: 1;
    background: var(--bg-tertiary);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.profile-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.profile-tab.active {
    color: var(--brand-primary);
    border-top: 2px solid var(--brand-primary);
    margin-top: -2px;
}

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

.profile-grid-item {
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: var(--bg-secondary);
}

.profile-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-grid-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F86D2A, #e05a1e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-grid-placeholder i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.profile-grid-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-empty-state {
    grid-column: span 3;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.profile-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-action {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
}

.search-box {
    position: relative;
    padding: 12px 16px;
}

.search-box i {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 30px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

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

.explore-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--border-color);
}

.explore-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.explore-tab.active {
    color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.1);
}

.explore-content {
    padding: 16px;
}

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

.category-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.category-card.selected {
    border-color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.1);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.category-icon i {
    font-size: 24px;
}

.category-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.category-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.category-count {
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 600;
    background: rgba(248, 109, 42, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

.authors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.author-card:hover {
    border-color: var(--brand-primary);
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.author-bio {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.author-stats {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-secondary);
}

.author-stats i {
    margin-right: 4px;
}

.search-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-section-title i {
    color: var(--brand-primary);
}

.search-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.search-author-card {
    text-align: center;
    cursor: pointer;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.search-author-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.search-author-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.search-author-stats {
    font-size: 11px;
    color: var(--text-secondary);
}

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

.search-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    cursor: pointer;
}

.search-category-card i {
    font-size: 24px;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.search-category-card span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.search-category-card small {
    font-size: 11px;
    color: var(--text-secondary);
}

.settings-view {
    background: var(--bg-primary);
    min-height: 100vh;
}

.settings-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.settings-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-title {
    font-weight: 600;
    font-size: 18px;
}

.settings-content {
    padding: 20px 16px;
}

.settings-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.settings-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-primary);
}

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

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

.setting-info {
    flex: 1;
}

.setting-label {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.setting-description {
    font-size: 12px;
    color: var(--text-secondary);
}

.setting-item i.fa-chevron-right {
    color: var(--text-secondary);
    margin-left: 12px;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg-tertiary);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--brand-primary);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.setting-item input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
}

.setting-danger-btn {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.version-info {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

.create-view {
    background: var(--bg-primary);
    min-height: 100%;
}

.create-form {
    padding: 20px;
}

.image-upload-area {
    border: 2px dashed #262626;
    border-radius: 20px;
    text-align: center;
    padding: 40px 20px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.image-upload-area:hover {
    border-color: #F86D2A;
}

.image-upload-area i {
    font-size: 48px;
    color: #F86D2A;
    margin-bottom: 12px;
}

.image-preview {
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #F86D2A;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #e05a1e;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.stat-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.stat-icon {
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dashboard-section {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 16px;
}

.dashboard-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.dashboard-section h3 i {
    color: var(--brand-primary);
}

.top-quote-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 8px;
}

.top-quote-rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
    width: 30px;
}

.top-quote-content {
    flex: 1;
}

.top-quote-text {
    font-size: 13px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.top-quote-stats {
    font-size: 11px;
    color: var(--text-secondary);
}

.quotes-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
}

.quotes-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quotes-tab.active {
    color: var(--brand-primary);
    background: rgba(248, 109, 42, 0.1);
}

.about-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(248, 109, 42, 0.1), rgba(248, 109, 42, 0.05));
    border-radius: 24px;
    margin-bottom: 30px;
}

.about-hero i {
    font-size: 56px;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.about-hero h1 {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.feature-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.feature-card i {
    font-size: 32px;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.about-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.contact-hero {
    text-align: center;
    padding: 30px 20px;
}

.contact-hero i {
    font-size: 48px;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.contact-info-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.contact-info-card i {
    font-size: 32px;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.contact-info-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

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

@media (max-width: 480px) {
    .action-btn { font-size: 20px; padding: 4px; }
    .post-avatar { width: 28px; height: 28px; }
    .post-name { font-size: 12px; }
    .post-caption { font-size: 12px; }
    .categories-grid { grid-template-columns: 1fr; }
    .toast { white-space: normal; max-width: 320px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.feed-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.feed-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.feed-tab i {
    font-size: 16px;
}

.feed-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--brand-primary);
}

.feed-tab:hover {
    color: var(--text-primary);
}
.skeleton {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-tertiary);
}

.skeleton-line {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}
.post-comments-section {
    padding: 0 12px 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.comments-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 0;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

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

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.comment-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
}

.comment-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-secondary);
}

.delete-comment-btn {
    background: none;
    border: none;
    color: var(--brand-red);
    font-size: 10px;
    cursor: pointer;
    padding: 0;
}

.comment-input-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.comment-input-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    resize: none;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 36px;
    max-height: 80px;
    outline: none;
}

.comment-input-field:focus {
    border-color: var(--brand-primary);
}

.post-comment-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s;
}

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

.post-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
.edit-profile-view {
    background: #000;
    min-height: 100vh;
}

.edit-header {
    position: sticky;
    top: 0;
    background: #000;
    border-bottom: 1px solid #262626;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.edit-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #F5F5F5;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-title {
    font-weight: 600;
    font-size: 18px;
    color: #F5F5F5;
}

.edit-save {
    background: none;
    border: none;
    color: #F86D2A;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
}

.edit-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.edit-content {
    padding: 20px;
}

.avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F86D2A;
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #F86D2A;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.avatar-hint {
    font-size: 12px;
    color: #A8A8A8;
    margin-top: 8px;
}

.edit-content .form-group {
    margin-bottom: 20px;
}

.edit-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #F5F5F5;
}

.edit-content input,
.edit-content textarea,
.edit-content select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #262626;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #0A0A0A;
    color: #F5F5F5;
    transition: border 0.2s;
}

.edit-content input:focus,
.edit-content textarea:focus,
.edit-content select:focus {
    outline: none;
    border-color: #F86D2A;
}

.edit-content textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #A8A8A8;
    margin-top: 6px;
}

.social-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #262626;
}

.social-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F5F5F5;
}

.social-section h3 i {
    color: #F86D2A;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #A8A8A8;
    font-size: 16px;
}

.input-with-icon .fa-facebook { color: #1877F2; }
.input-with-icon .fa-twitter { color: #F5F5F5; }
.input-with-icon .fa-instagram { color: #E4405F; }

.input-with-icon input {
    padding-left: 42px;
}
.post-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    background: #1A1A1A;
    border: none;
    min-height: 44px;
}

.post-menu-item i {
    width: 24px;
    font-size: 18px;
    color: #F5F5F5;
    text-align: center;
    margin-right: 12px;
}

.post-menu-item span {
    font-size: 15px;
    color: #F5F5F5;
    font-weight: 400;
}

.post-menu-item:active {
    background: #262626;
}

.post-menu-item.danger {
    color: #ED4956;
}

.post-menu-item.danger i,
.post-menu-item.danger span {
    color: #ED4956;
}

.post-menu-cancel {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    background: #1A1A1A;
    color: #F5F5F5;
    border-top: 6px solid #0A0A0A;
}

.post-menu-container {
    background: #1A1A1A;
    width: 100%;
    max-width: 400px;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    animation: slideUp 0.25s ease;
}
.dashboard-view {
    background: #000;
    min-height: 100vh;
}

.dashboard-content {
    padding: 16px;
}

.dashboard-scroll {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.stat-card {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    border: 1px solid #262626;
}

.stat-icon {
    font-size: 18px;
    color: #F86D2A;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #F5F5F5;
}

.stat-label {
    font-size: 10px;
    color: #A8A8A8;
    margin-top: 4px;
}

.dashboard-section {
    background: #1A1A1A;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #262626;
}

.dashboard-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F5F5F5;
}

.dashboard-section h3 i {
    color: #F86D2A;
}

.weekly-chart {
    padding: 10px 0;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}

.chart-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 120px;
}

.chart-bar {
    width: 14px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
    min-height: 2px;
}

.likes-bar {
    background: #ED4956;
}

.comments-bar {
    background: #F86D2A;
}

.chart-label {
    font-size: 10px;
    color: #A8A8A8;
    margin-top: 8px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 11px;
    color: #A8A8A8;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 4px;
}

.top-quote-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #000;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.top-quote-item:hover {
    background: #0A0A0A;
}

.top-quote-rank {
    font-size: 16px;
    font-weight: 700;
    color: #F86D2A;
    width: 28px;
}

.top-quote-content {
    flex: 1;
}

.top-quote-text {
    font-size: 13px;
    font-style: italic;
    color: #F5F5F5;
    margin-bottom: 4px;
}

.top-quote-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #A8A8A8;
}

.top-quote-stats i {
    margin-right: 3px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #262626;
}

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

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

.activity-details {
    flex: 1;
}

.activity-user {
    font-weight: 600;
    font-size: 13px;
    color: #F5F5F5;
}

.activity-text {
    font-size: 12px;
    color: #A8A8A8;
}

.activity-time {
    font-size: 10px;
    color: #737373;
    margin-top: 2px;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #000;
    border-radius: 10px;
}

.achievement-item.locked {
    opacity: 0.4;
}

.achievement-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
    min-width: 0;
}

.achievement-name {
    font-weight: 600;
    font-size: 12px;
    color: #F5F5F5;
}

.achievement-desc {
    font-size: 10px;
    color: #A8A8A8;
    margin-top: 2px;
}

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

.nprogress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #F86D2A;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(248, 109, 42, 0.4);
}

.nprogress-bar.loading {
    animation: nprogress 0.8s ease;
}

.nprogress-bar.done {
    width: 100%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

@keyframes nprogress {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 70%; }
    100% { width: 85%; }
}
.static-login-prompt {
    background: linear-gradient(135deg, #1A1A1A, #0A0A0A);
    border-radius: 16px;
    padding: 32px 24px;
    margin: 24px 16px;
    text-align: center;
    border: 1px solid #262626;
}

.static-login-prompt h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #F5F5F5;
}

.static-login-prompt p {
    color: #A8A8A8;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.static-btn {
    background: #F86D2A;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin: 0 6px;
    transition: all 0.2s;
}

.static-btn:hover {
    background: #e05a1e;
    transform: translateY(-1px);
}

.static-btn-outline {
    background: transparent;
    color: #F86D2A;
    border: 2px solid #F86D2A;
}

.static-btn-outline:hover {
    background: rgba(248, 109, 42, 0.1);
}
/* Nova AI Panel */
.novai-panel {
    padding: 0 12px 12px;
    margin-top: 4px;
    animation: fadeIn 0.3s ease;
}

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

/* Nova AI button */
.novai-btn {
    font-family: 'Inter', sans-serif;
    padding: 6px 10px;
}

.novai-btn:hover {
    opacity: 0.8;
}

/* Highlight menu item */
.post-menu-item.highlight i,
.post-menu-item.highlight span {
    color: #F86D2A !important;
}
/* Nova AI Panel */
.novai-panel {
    padding: 0 12px 12px;
    margin-top: 4px;
    animation: fadeIn 0.3s ease;
}

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

.novai-btn {
    font-family: 'Inter', sans-serif;
    padding: 6px 10px;
}

.novai-btn:hover {
    opacity: 0.8;
}

.post-menu-item.highlight i,
.post-menu-item.highlight span {
    color: #F86D2A !important;
}

/* Engagement row */
.liked-by {
    padding: 0 12px 4px;
    font-size: 13px;
    color: #F5F5F5;
}

.liked-by strong {
    font-weight: 600;
}

.post-engagement {
    display: flex;
    gap: 14px;
    padding: 4px 12px 8px;
    font-size: 11px;
    color: #A8A8A8;
    flex-wrap: wrap;
}

.post-engagement span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 12px 8px;
    font-size: 11px;
    color: #A8A8A8;
    flex-wrap: wrap;
}

/* Repost button */
.repost-btn.reposted {
    color: #28a745 !important;
}

/* Loading spinner small */
.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid #262626;
    border-top: 2px solid #F86D2A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.action-count {
    font-size: 12px;
    font-weight: 600;
    color: #F5F5F5;
    margin-left: 4px;
    vertical-align: middle;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.liked-by {
    padding: 0 12px 4px;
    font-size: 13px;
    color: #F5F5F5;
}

.views-count {
    padding: 0 12px 4px;
    font-size: 12px;
    color: #A8A8A8;
}

.repost-btn.reposted {
    color: #28a745 !important;
}

.novai-btn {
    font-family: 'Inter', sans-serif;
    padding: 6px 10px;
}

.novai-btn:hover {
    opacity: 0.8;
}

.novai-panel {
    padding: 0 12px 12px;
    margin-top: 4px;
    animation: fadeIn 0.3s ease;
}

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

.post-menu-item.highlight i,
.post-menu-item.highlight span {
    color: #F86D2A !important;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid #262626;
    border-top: 2px solid #F86D2A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
#novai-floating-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F86D2A, #e05a1e);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 16px rgba(248,109,42,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#novai-floating-btn:hover {
    transform: scale(1.1);
}
/* Quote Detail Page */
.quote-detail-page { background: #000; min-height: 100vh; color: #F5F5F5; font-family: 'Inter', sans-serif; }
.quote-detail-content { max-width: 600px; margin: 0 auto; padding: 20px; }
.breadcrumb { font-size: 12px; color: #A8A8A8; margin-bottom: 20px; }
.breadcrumb a { color: #F86D2A; text-decoration: none; }
.quote-detail-article { background: #1A1A1A; border-radius: 16px; padding: 24px; border: 1px solid #262626; }
.quote-detail-image img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.quote-detail-text h1 { font-family: 'Playfair Display', serif; font-size: 24px; line-height: 1.4; text-align: center; margin-bottom: 20px; }
.quote-detail-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.author-detail-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-info .author-name { font-weight: 600; color: #F86D2A; text-decoration: none; }
.author-bio { font-size: 12px; color: #A8A8A8; margin-top: 4px; }
.quote-detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #A8A8A8; margin-bottom: 20px; }
.quote-detail-meta i { margin-right: 4px; }
.related-quotes-section { border-top: 1px solid #262626; padding-top: 20px; margin-top: 20px; }
.related-quotes-section h2 { font-size: 16px; color: #F86D2A; margin-bottom: 12px; }
.related-quotes-grid { display: flex; flex-direction: column; gap: 8px; }
.related-quote-card { background: #0A0A0A; padding: 12px; border-radius: 10px; text-decoration: none; display: block; border: 1px solid #262626; }
.related-quote-text { font-size: 13px; font-style: italic; color: #F5F5F5; display: block; }
.related-quote-author { font-size: 11px; color: #F86D2A; margin-top: 4px; display: block; }
.quote-detail-actions { text-align: center; margin-top: 20px; }
.open-in-app-btn { display: inline-block; background: #F86D2A; color: #fff; padding: 14px 32px; border-radius: 30px; text-decoration: none; font-weight: 600; }
.quote-detail-footer { text-align: center; padding: 20px; color: #A8A8A8; font-size: 12px; margin-top: 40px; }
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}