/* FARBORA - Complete Stylesheet */
/* Design System: Black theme, professional, minimalist */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
    /* Colors */
    --bg-primary: #000000;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-gold: #fbbf24;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --border-hover: rgba(255, 255, 255, 0.2);
    --success: #10b981;
    --error: #ef4444;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 28px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

/* Hide scrollbars globally */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: var(--font-size-2xl);
}

h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ============================================
   LAYOUT
   ============================================ */

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
    width: 36px;
    height: 36px;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-btn:active {
    transform: scale(0.96);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid var(--border);
}

.user-menu {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    right: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.app-main {
    margin-top: 60px;
    margin-bottom: 80px;
    min-height: calc(100vh - 140px);
    padding-bottom: var(--spacing-lg);
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 100%;
}

.tab-content.active {
    display: block;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid var(--border);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: var(--spacing-sm) var(--spacing-md);
    padding-bottom: env(safe-area-inset-bottom, var(--spacing-sm));
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition);
    min-height: 44px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item:active {
    transform: scale(0.96);
}

.nav-post-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: var(--bg-primary);
    margin: 0 var(--spacing-md);
    font-size: 24px;
    font-weight: 600;
}

.nav-post-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.nav-post-btn:hover {
    transform: scale(1.05);
}

.nav-post-btn span {
    display: none;
}

/* ============================================
   HOME TAB
   ============================================ */

.challenge-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-2xl) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.challenge-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.challenge-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.challenge-timer {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.challenge-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.challenge-prize {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--accent-gold);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.challenge-prize i {
    font-size: 20px;
}

.ad-banner-top {
    width: 100%;
    min-height: 100px;
    margin-bottom: var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.ad-container {
    width: 100%;
    position: relative;
    margin: var(--spacing-md) 0;
}

.ad-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 var(--radius-sm) 0;
}

.feed-sorting {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.sort-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 36px;
}

.sort-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.sort-btn:active {
    transform: scale(0.96);
}

/* Podium Container */
.podium-container {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.podium-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.podium-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.podium-item.first {
    order: 2;
    flex: 1;
    max-width: 140px;
}

.podium-item.second {
    order: 1;
    flex: 0.9;
    max-width: 120px;
}

.podium-item.third {
    order: 3;
    flex: 0.9;
    max-width: 120px;
}

.podium-rank {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
}

.podium-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--border);
}

.podium-item.first .podium-image {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.podium-item.second .podium-image {
    border-color: #c0c0c0;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.2);
}

.podium-item.third .podium-image {
    border-color: #cd7f32;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.2);
}

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

.podium-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.podium-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    justify-content: center;
}

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

.podium-username {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.podium-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.podium-stats i {
    color: var(--error);
}

/* Leaderboard Container */
.leaderboard-container {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.leaderboard-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.leaderboard-rank {
    font-size: var(--font-size-lg);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    color: var(--text-primary);
}

.leaderboard-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

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

.leaderboard-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 0;
}

.leaderboard-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0;
}

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

.leaderboard-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.leaderboard-username {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-caption {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.leaderboard-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.leaderboard-follow-btn {
    background: var(--accent);
    border: none;
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

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

.leaderboard-follow-btn:active {
    transform: scale(0.96);
}

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

.leaderboard-stats i {
    color: var(--error);
}

/* Highlight animation */
@keyframes highlight {
    0%, 100% {
        background: var(--bg-secondary);
    }
    50% {
        background: var(--bg-tertiary);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
}

.posts-feed {
    width: 100%;
}

/* Verified Badge - Twitter/X style */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1DA1F2; /* Twitter blue */
    margin-left: 4px;
    font-size: 14px;
    vertical-align: middle;
    line-height: 1;
}

.verified-badge i {
    color: #1DA1F2; /* Twitter blue */
    font-size: 14px;
}

/* Verified badge in different contexts */
.post-username .verified-badge,
.profile-username .verified-badge,
.podium-username .verified-badge,
.leaderboard-username .verified-badge {
    margin-left: 4px;
}

/* Admin Badge */
.admin-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-left: var(--spacing-xs);
}

/* Admin Button in Header */
.admin-btn {
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

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

/* Admin Panel Modal */
.admin-modal-content {
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-body {
    padding: var(--spacing-xl);
}

.admin-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

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

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.admin-section h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.admin-info-card {
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.admin-info-card h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.admin-info-card p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Admin Dashboard Stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.admin-stat-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-stat-info {
    flex: 1;
}

.admin-stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.admin-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Activity Feed */
.admin-activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-height: 400px;
    overflow-y: auto;
}

.admin-activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.admin-activity-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-text strong {
    font-weight: 600;
}

.activity-time {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.activity-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.activity-stats i {
    color: var(--error);
}

/* Form Row for Date Inputs */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.admin-search {
    margin-bottom: var(--spacing-lg);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.admin-list-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.admin-item-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0;
}

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

.admin-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.admin-item-title {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.admin-item-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-item-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.admin-item-meta i {
    margin-right: 2px;
}

.admin-item-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.admin-btn-small {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-xs);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.admin-btn-small:hover {
    background: var(--bg-primary);
    border-color: var(--border-hover);
}

.admin-btn-small i {
    font-size: var(--font-size-xs);
}

/* Post Admin Actions */
.post-admin-actions {
    margin-left: auto;
    display: flex;
    gap: var(--spacing-xs);
}

.admin-action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--error);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-xs);
}

.admin-action-btn:hover {
    background: var(--error);
    color: var(--text-primary);
    border-color: var(--error);
}

.post-card {
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    transition: background 0.2s ease;
}

.post-card:active {
    background: var(--bg-secondary);
}

.post-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
}

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

.post-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.post-follow-btn {
    background: var(--accent);
    border: none;
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

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

.post-follow-btn:active {
    transform: scale(0.96);
}

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

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

.verified-badge {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.post-image-container {
    width: 100%;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
}

/* Like Animation Container */
.like-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

/* Floating Voter Avatars */
.floating-voter-avatar {
    position: absolute;
    width: 32px;
    height: 32px;
    left: var(--start-x, 50%);
    top: var(--start-y, 50%);
    animation: floatAround var(--duration, 4s) var(--delay, 0s) ease-in-out forwards;
    opacity: 0;
    animation-fill-mode: both;
}

@keyframes floatAround {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translate(0, -10px) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(calc(var(--end-x, 50%) - var(--start-x, 50%)), calc(var(--end-y, 50%) - var(--start-y, 50%) - 20px)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--end-x, 50%) - var(--start-x, 50%)), calc(var(--end-y, 50%) - var(--start-y, 50%) - 40px)) scale(0.6);
    }
}

.voter-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.voter-heart {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.voter-heart i {
    font-size: 7px;
    color: white;
    animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Heart Burst Animation */
.heart-burst {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 20;
    transform: translate(-50%, -50%);
}

.heart-burst::before,
.heart-burst::after {
    content: '❤️';
    position: absolute;
    font-size: 40px;
    animation: heartBurst 1s ease-out forwards;
    opacity: 0;
}

.heart-burst::before {
    animation-delay: 0s;
}

.heart-burst::after {
    animation-delay: 0.1s;
    font-size: 35px;
}

@keyframes heartBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(-10deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(20deg) translateY(-30px);
    }
}

.post-content {
    padding: var(--spacing-md) var(--spacing-lg);
}

.post-caption {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    word-wrap: break-word;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-base);
    transition: var(--transition);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    min-height: 44px;
    min-width: 44px;
}

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

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

.action-btn.voted {
    color: #ef4444 !important;
}

.action-btn.voted i {
    color: #ef4444 !important;
    animation: heartBeat 0.3s ease;
}

/* Ensure voted state persists */
.action-btn.voted:hover {
    color: #ef4444 !important;
}

.action-btn.voted:hover i {
    color: #ef4444 !important;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.action-btn:active {
    transform: scale(0.96);
}

.vote-ripple {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: rgba(102, 126, 234, 0.3);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.post-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    border-top: 1px solid var(--border);
}

.post-stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Comments Section */
.post-comments-section {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--spacing-md);
}

.loading-comments,
.no-comments,
.error-comments {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.comment-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

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

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.comment-username {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.comment-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
    margin: 0;
}

.comment-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--spacing-xs);
    opacity: 0.6;
    transition: var(--transition);
    align-self: flex-start;
}

.comment-delete-btn:hover {
    opacity: 1;
    color: var(--error);
}

.comment-input-container {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.comment-input {
    flex: 1;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    transition: var(--transition);
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.comment-input::placeholder {
    color: var(--text-tertiary);
}

.comment-submit-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.comment-login-prompt {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.comment-login-prompt a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.comment-login-prompt a:hover {
    text-decoration: underline;
}

/* Category Select */
.category-select-container {
    margin: var(--spacing-lg) 0;
}

.category-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-label i {
    color: var(--accent);
}

.category-select {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    background-size: 12px;
    padding-right: 40px;
}

.category-select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-tertiary);
}

.category-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.boost-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   EXPLORE TAB
   ============================================ */

.explore-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.search-container {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.search-container i {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

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

.category-filters {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-xs);
}

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

.category-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 36px;
}

.category-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.category-btn:active {
    transform: scale(0.96);
}

/* Search Sections */
.search-users-section,
.search-posts-section {
    padding: var(--spacing-lg);
}

.search-section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.user-search-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.user-search-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.user-search-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

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

.user-search-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 4px;
}

.user-search-username {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.user-search-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-search-email {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.user-search-bio {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-search-follow-btn {
    background: var(--accent);
    border: none;
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.user-search-follow-btn:hover {
    background: var(--accent-hover);
}

.user-search-follow-btn:active {
    transform: scale(0.96);
}

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

.user-search-follow-btn.following:hover {
    background: var(--bg-tertiary);
}

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

.explore-post {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    overflow: hidden;
    cursor: pointer;
}

.explore-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.explore-post:active img {
    transform: scale(0.95);
}

.explore-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    opacity: 0;
    transition: var(--transition);
}

.explore-post:hover .explore-post-overlay {
    opacity: 1;
}

/* ============================================
   POST TAB
   ============================================ */

.post-form-container {
    padding: var(--spacing-lg);
    max-width: 100%;
}

.post-form-header {
    margin-bottom: var(--spacing-xl);
}

.post-form-header h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.post-requirement {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    color: var(--accent-gold);
    font-size: var(--font-size-sm);
}

.post-requirement i {
    font-size: 18px;
}

.image-upload-area {
    width: 100%;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.upload-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
}

.upload-placeholder:hover {
    background: rgba(255, 255, 255, 0.02);
}

.upload-placeholder i {
    font-size: 48px;
}

.upload-placeholder p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.image-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

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

.remove-image-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.caption-container {
    margin-bottom: var(--spacing-xl);
}

.caption-input {
    width: 100%;
    min-height: 120px;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    resize: vertical;
    transition: var(--transition);
}

.caption-input:focus {
    outline: none;
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

.caption-input::placeholder {
    color: var(--text-tertiary);
}

.char-count {
    text-align: right;
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.submit-post-btn {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    transition: var(--transition);
    min-height: 50px;
}

.submit-post-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-post-btn:not(:disabled):active {
    transform: translateY(0);
}

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

/* ============================================
   ACTIVITY TAB
   ============================================ */

.activity-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.activity-header h2 {
    font-size: var(--font-size-xl);
}

.notifications-feed {
    width: 100%;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:active {
    background: rgba(255, 255, 255, 0.02);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--accent);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.notification-time {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

/* ============================================
   PROFILE TAB
   ============================================ */

.profile-header {
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.profile-header-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--border-light);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 2px solid var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.edit-avatar-btn:active {
    transform: scale(0.96);
}

.profile-username {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.profile-bio {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    max-width: 300px;
    margin: 0 auto;
}

.profile-actions {
    margin-top: var(--spacing-md);
    width: 100%;
    max-width: 300px;
}

.profile-action-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: var(--transition);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-action-btn:active {
    transform: translateY(0);
}

.profile-action-btn.follow-btn {
    background: var(--accent);
    color: var(--text-primary);
}

.profile-action-btn.follow-btn:hover {
    background: var(--accent-hover);
}

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

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

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

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item-private {
    /* Wallet is private - only shown on own profile */
}

.profile-posts-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.profile-posts-header h3 {
    font-size: var(--font-size-lg);
}

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

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

.profile-post-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

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

.profile-post-item:active img {
    transform: scale(0.95);
}

.profile-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--spacing-sm);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

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

.post-overlay-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.post-overlay-stats i {
    font-size: 14px;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    overflow-y: auto;
    animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    display: flex;
}

#uploadModal.active {
    pointer-events: auto;
}

#uploadModal.active .modal-content {
    pointer-events: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.user-profile-modal-content {
    max-width: 600px !important;
    padding: 0;
}

.user-profile-modal-body {
    padding: var(--spacing-lg);
}

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

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-close:active {
    transform: scale(0.96);
}

.modal-header {
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.modal-header h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.modal-header p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* Login/Sign Up Forms */
.google-signin-btn {
    width: 100%;
    padding: 14px var(--spacing-lg);
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--spacing-lg);
    min-height: 52px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.google-signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-xl) 0;
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

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

.divider span {
    padding: 0 var(--spacing-md);
}

.form-input {
    width: 100%;
    padding: 14px var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--spacing-lg);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-submit-btn {
    width: 100%;
    padding: 14px var(--spacing-lg);
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 52px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.modal-footer-text {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.modal-footer-text a {
    color: var(--accent);
    font-weight: 600;
}

/* Setup Modal */
.setup-modal {
    max-width: 400px;
}

.setup-progress {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::after {
    background: var(--text-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.progress-step.active .step-number {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.step-label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active .step-label {
    color: var(--text-primary);
}

.setup-step {
    display: none;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.setup-step.active {
    display: block;
}

.setup-step h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.avatar-upload-area {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.avatar-preview-container {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-lg);
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
}

.avatar-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 48px;
}

.setup-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.form-btn-secondary {
    flex: 1;
    padding: var(--spacing-lg);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 50px;
}

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

/* Settings Modal */
.settings-modal {
    max-width: 500px;
}

.settings-menu {
    padding: var(--spacing-sm);
}

.settings-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: var(--transition);
    margin-bottom: var(--spacing-xs);
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.settings-item i:first-child {
    width: 24px;
    text-align: center;
    font-size: 20px;
    color: var(--text-secondary);
}

.settings-item span {
    flex: 1;
    font-size: var(--font-size-base);
}

.settings-item i:last-child {
    color: var(--text-tertiary);
    font-size: 14px;
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

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

.form-hint {
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.toggle-info {
    flex: 1;
}

.toggle-info h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
}

.toggle-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    margin-left: var(--spacing-lg);
}

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

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

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: var(--radius-full);
}

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

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

.wallet-balance {
    text-align: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-xl);
}

.wallet-balance h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-lg);
}

.balance-note {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: var(--spacing-md);
}

.payment-methods {
    margin-top: var(--spacing-xl);
}

.payment-methods h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.payment-method-item i {
    font-size: 24px;
    color: var(--text-secondary);
    width: 32px;
}

.payment-method-item span {
    flex: 1;
    font-size: var(--font-size-base);
}

.payment-action-btn {
    padding: var(--spacing-sm) var(--spacing-xl);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.payment-action-btn:active {
    transform: scale(0.96);
}

.boost-packages {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.boost-package {
    padding: var(--spacing-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.boost-package:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

.boost-package.active {
    border-color: var(--accent);
    background: rgba(102, 126, 234, 0.1);
}

.boost-package h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.boost-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-sm);
}

.boost-package p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.success-modal-body {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-xl);
    color: var(--accent);
    font-size: 40px;
}

.success-modal-body h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.success-modal-body p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.success-message {
    margin-bottom: var(--spacing-2xl) !important;
}

/* Share Modal Styles */
.share-modal-content {
    max-width: 520px;
}

.share-section {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.share-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border);
}

.share-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.share-icon-wrapper i {
    font-size: 28px;
    color: var(--accent);
}

.share-header h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 700;
}

.share-benefit {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--accent-gold);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-full);
}

.share-benefit i {
    font-size: 14px;
}

.share-link-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.share-instruction {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.share-link-container {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.share-link-input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-family: 'Courier New', monospace;
}

.share-link-input:focus {
    outline: none;
    border-color: var(--accent);
}

.copy-link-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.copy-link-btn:active {
    transform: translateY(0);
}

.copy-link-btn.copied {
    background: var(--success);
}

.copy-link-btn.copied i::before {
    content: "\f00c";
}

.download-image-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.download-image-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.download-image-btn:active {
    transform: translateY(0);
}

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

.social-share-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.social-share-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    position: relative;
}

.social-share-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-share-btn:active {
    transform: translateY(0);
}

.social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
}

/* Fix icon centering */
.social-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.instagram-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.tiktok-icon {
    background: #000000;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.snapchat-icon {
    background: #FFFC00;
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 252, 0, 0.3);
}

.social-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.social-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.social-share-btn i:last-child {
    color: var(--text-tertiary);
    font-size: 16px;
    margin-left: auto;
    opacity: 0.6;
}

.share-confirmation-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
}

.confirmation-prompt {
    margin-bottom: var(--spacing-lg);
}

.confirmation-prompt i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
    display: block;
}

.confirmation-prompt p {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: 600;
}

.confirmation-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.confirm-share-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-share-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.cancel-share-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-share-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.skip-share-btn {
    margin-top: var(--spacing-lg);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 100%;
}

.skip-share-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.premium-features {
    margin-bottom: var(--spacing-xl);
}

.premium-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.premium-feature:last-child {
    border-bottom: none;
}

.premium-feature i {
    font-size: 24px;
    color: var(--accent-gold);
    width: 32px;
    flex-shrink: 0;
}

.premium-feature h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
}

.premium-feature p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.premium-price {
    text-align: center;
    padding: var(--spacing-xl);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: var(--spacing-xl) 0;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
}

.price-period {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.faq-section {
    margin-bottom: var(--spacing-xl);
}

.faq-section h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
}

.faq-item {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

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

.faq-item h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
}

.faq-item p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.support-section {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
}

.support-section h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
}

.support-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: var(--transition);
}

.support-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.support-link i {
    font-size: 20px;
    color: var(--accent);
}

.about-content {
    padding: var(--spacing-lg);
}

.about-content p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.about-links {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.about-link {
    color: var(--accent);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    color: var(--text-tertiary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

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

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
    color: var(--text-tertiary);
}

.loading-spinner i {
    font-size: 32px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-spinner-large {
    color: var(--text-primary);
}

.loading-spinner-large i {
    font-size: 48px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 768px) {
    .app-main {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .explore-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .profile-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-main {
        max-width: 800px;
    }
    
    .explore-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   UPLOAD MODAL
   ============================================ */

.upload-modal-content {
    max-width: 500px;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.upload-modal-body {
    padding: 0;
}

.upload-image-preview {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

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

.upload-animation-container {
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
    background: var(--bg-secondary);
}

.upload-animation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-xl);
    position: relative;
}

.upload-animation-icon i {
    font-size: 48px;
    color: var(--accent);
    animation: uploadPulse 2s ease-in-out infinite;
}

@keyframes uploadPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.upload-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    animation: fadeInUp 0.5s ease-out;
}

.upload-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

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

.upload-progress-container {
    margin-top: var(--spacing-xl);
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.upload-progress-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.upload-ad-container {
    width: 100%;
    min-height: 250px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    position: relative;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-ad-container .ad-label {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-lg);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#uploadAdSenseVideo {
    width: 100%;
    min-height: 200px;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */

.error-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    background: var(--error);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
}

.success-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    background: var(--success);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.error-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.error-content i {
    font-size: 18px;
}

.success-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.success-content i {
    font-size: 18px;
}

/* ============================================
   ONBOARDING TUTORIAL
   ============================================ */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.onboarding-overlay.active {
    pointer-events: auto;
}

body.onboarding-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.onboarding-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.onboarding-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    pointer-events: auto;
}

.onboarding-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.onboarding-highlight {
    position: fixed;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    background: transparent;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75),
                0 0 20px rgba(99, 102, 241, 0.5);
    pointer-events: none;
    z-index: 10001;
    animation: pulseHighlight 2s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: normal;
}

/* Ensure highlighted element is visible and not blurred */
.onboarding-overlay.active ~ * [id],
.onboarding-overlay.active ~ * [class] {
    position: relative;
    z-index: 10002;
}

.onboarding-highlight + * {
    position: relative;
    z-index: 10003;
    filter: none !important;
    opacity: 1 !important;
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75),
                    0 0 20px rgba(99, 102, 241, 0.5);
        border-color: var(--accent);
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75),
                    0 0 30px rgba(99, 102, 241, 0.8);
        border-color: var(--accent-hover);
    }
}

.onboarding-tooltip {
    position: fixed;
    z-index: 10002;
    pointer-events: auto;
    max-width: min(320px, calc(100vw - 40px));
    width: auto;
    min-width: 280px;
    animation: slideInTooltip 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.onboarding-tooltip-top {
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.onboarding-tooltip-right {
    top: auto;
    right: 20px;
    left: auto;
    transform: translateY(0);
}

.onboarding-tooltip-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.onboarding-tooltip-bottom {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.onboarding-tooltip-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: min(320px, calc(100vw - 40px)) !important;
    max-height: min(500px, calc(100vh - 40px)) !important;
}

@keyframes slideInTooltip {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.onboarding-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.onboarding-arrow-bottom {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px 12px 0 12px;
    border-color: var(--bg-tertiary) transparent transparent transparent;
}

.onboarding-arrow-top {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 12px 12px 12px;
    border-color: transparent transparent var(--bg-tertiary) transparent;
}

.onboarding-arrow-left {
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 12px 12px 12px 0;
    border-color: transparent var(--bg-tertiary) transparent transparent;
    position: absolute;
}

.onboarding-arrow-right {
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent var(--bg-tertiary);
}

.onboarding-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    width: 100%;
}

.onboarding-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-xl);
    font-size: 28px;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

.onboarding-icon-large {
    width: 80px;
    height: 80px;
    font-size: 36px;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
    }
}

.onboarding-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md);
    text-align: center;
    line-height: 1.3;
}

.onboarding-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-xl);
    text-align: center;
    line-height: 1.6;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.onboarding-step-indicator {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.onboarding-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.onboarding-btn {
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    min-width: 100px;
}

.onboarding-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.onboarding-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.onboarding-btn-primary:active {
    transform: translateY(0);
}

.onboarding-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.onboarding-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-hover);
}

.onboarding-btn-large {
    padding: var(--spacing-lg) var(--spacing-3xl);
    font-size: var(--font-size-md);
    min-width: 200px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .onboarding-tooltip {
        max-width: 90%;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .onboarding-tooltip-right,
    .onboarding-tooltip-left {
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
    }

    .onboarding-arrow-right,
    .onboarding-arrow-left {
        bottom: -12px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        border-width: 12px 12px 0 12px;
        border-color: var(--bg-tertiary) transparent transparent transparent;
    }

    .onboarding-content {
        padding: var(--spacing-xl);
    }

    .onboarding-title {
        font-size: var(--font-size-lg);
    }

    .onboarding-description {
        font-size: var(--font-size-sm);
    }

    .onboarding-actions {
        flex-direction: column;
    }

    .onboarding-btn {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .bottom-nav,
    .app-header,
    .modal {
        display: none !important;
    }
    
    .app-main {
        margin: 0;
    }
}

