/* ========================================
   DarkGram - Complete Unified CSS Stylesheet
   Modern Dark Theme Social Media Platform
   ======================================== */

/* ========================================
   1. GLOBAL STYLES & RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Background Colors */
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #21262D;
    --bg-card: #161B22;
    
    /* Purple Gradient Theme */
    --gradient-purple: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
    --gradient-purple-hover: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%);
    --accent-purple: #9333ea;
    --accent-purple-light: #a78bfa;
    --accent-purple-dark: #7c3aed;
    
    /* Legacy blue variables now mapped to purple */
    --accent-blue: #9333ea;
    --accent-primary: #9333ea;
    --accent-hover: #a855f7;
    --accent-light: #a78bfa;
    
    /* Text Colors */
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --text-muted: #6E7681;
    
    /* Border & Divider */
    --border-color: #30363D;
    
    /* Status Colors */
    --error-color: #F85149;
    --danger: #F85149;
    --danger-hover: #dc2626;
    --success-color: #3FB950;
    --success: #3FB950;
    --success-hover: #059669;
    --warning-color: #D29922;
    --warning: #D29922;
    --info: #9333ea;
    
    /* Shadows with purple glow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(147, 51, 234, 0.3);
    --shadow-purple: 0 4px 20px rgba(147, 51, 234, 0.4);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

img, video {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-secondary);
}

/* ========================================
   2. BUTTONS
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-hover));
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-hover), #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-hover));
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-hover), #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.4);
}

.btn-block {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-block:hover::before {
    width: 300px;
    height: 300px;
    justify-content: center;
}

/* ========================================
   3. NAVIGATION
   ======================================== */
.navbar {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.nav-container {
    max-width: 975px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

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

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

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.nav-link i {
    display: block;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: pulse 2s infinite;
}

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

/* ========================================
   4. MAIN CONTAINER & LAYOUT
   ======================================== */
.main-container {
    max-width: 630px;
    margin: 20px auto;
    padding: 0 16px;
}

.admin-container {
    max-width: 1400px;
}

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

/* ========================================
   5. WELCOME BANNER
   ======================================== */
.welcome-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.welcome-banner i {
    font-size: 48px;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.welcome-banner h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.welcome-banner p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   6. TOP USERS SECTION
   ======================================== */
.top-users {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.top-users h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-blue);
}

.top-users h3 i {
    font-size: 22px;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.top-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.top-user-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.top-user-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.3);
}

.top-user-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--accent-blue);
    object-fit: cover;
}

.top-user-info {
    color: var(--text-primary);
}

.top-user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ========================================
   7. POST CARDS
   ======================================== */
.post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
}

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

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

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

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

.username:hover {
    color: var(--accent-blue);
}

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

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

.lock-badge {
    color: var(--warning-color);
    font-size: 16px;
}

.post-flag {
    color: var(--warning-color);
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.post-flag:hover {
    background: rgba(210, 153, 34, 0.1);
    color: #fbbf24;
}

.post-delete {
    color: var(--danger);
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 6px;
}

.post-delete:hover {
    background: rgba(248, 81, 73, 0.1);
}

/* Locked Post */
.locked-post {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #0a0a0a;
    min-height: 400px;
    overflow: hidden;
}

/* Locked content preview with blur - MORE VISIBLE */
.locked-content-preview {
    position: absolute;
    inset: 0;
    filter: blur(6px);
    opacity: 0.7;
    z-index: 1;
}

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

.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    text-align: center;
    /* ✅ BEAUTIFUL TRANSPARENT GLASS EFFECT */
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.05);
    z-index: 10;
}

/* Remove the old blur effect */
.locked-post::before {
    display: none;
}

.locked-overlay i {
    font-size: 64px;
    color: var(--warning-color);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.locked-overlay h3 {
    font-size: 24px;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.locked-overlay p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

/* ✅ LOCKED CONTENT INFO */
.locked-content-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.content-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-item i {
    color: var(--accent-color);
    font-size: 16px;
}

.stat-item .count {
    font-weight: 700;
    color: var(--warning-color);
}

.hd-links-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hd-links-info i {
    color: var(--success-color);
    font-size: 14px;
}

/* Media Carousel */
.media-carousel {
    position: relative;
    background: var(--bg-primary);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    /* Enable hardware acceleration for smooth playback */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Ensure videos work with native controls */
.carousel-slide video {
    display: block;
    outline: none;
    /* Optimize for mobile playback */
    -webkit-playsinline: true;
    playsinline: true;
}

/* Video controls should be visible and clickable */
.carousel-slide video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
}

.carousel-slide video::-webkit-media-controls-play-button {
    display: flex !important;
    opacity: 1 !important;
}

/* General video optimization for all video elements */
video {
    /* Hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    
    /* Better mobile support */
    -webkit-playsinline: true;
    playsinline: true;
    
    /* Smooth rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Optimize video loading and buffering */
video[preload="metadata"] {
    /* Preload only metadata for faster initial load */
    preload: metadata;
}

/* Mobile-specific video optimizations */
@media (max-width: 768px) {
    video {
        /* Reduce quality slightly on mobile for faster buffering */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(139, 148, 158, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent-blue);
    width: 20px;
    border-radius: 3px;
}

/* Post Actions */
.post-actions {
    padding: 12px 16px;
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 22px;
    color: var(--text-secondary);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    /* ✅ PERFORMANCE: GPU acceleration for instant feedback */
    will-change: color, background-color;
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.action-btn:active {
    transform: scale(0.95) translateZ(0);
    transition: transform 0.1s ease;
}

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

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

.action-btn.active.dislike-btn {
    color: var(--text-secondary);
}

.like-count,
.dislike-count {
    font-size: 14px;
    font-weight: 600;
}

.action-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Post Caption */
.post-caption {
    padding: 0 16px 12px;
    line-height: 1.4;
}

.caption-username {
    font-weight: 600;
    margin-right: 6px;
    color: var(--accent-blue);
}

/* Download Links */
.download-links {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-links i {
    color: var(--accent-blue);
    font-size: 18px;
}

.download-links a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: underline;
}

.download-links a:hover {
    color: var(--accent-purple);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.no-posts i {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.no-posts p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 18px;
}

/* ========================================
   8. PROFILE PAGE
   ======================================== */
.profile-container {
    max-width: 975px;
    margin: 0 auto;
    padding: 20px 16px;
}

.profile-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

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

.avatar-edit-btn:hover {
    background: var(--accent-purple);
    transform: scale(1.1);
}

.profile-info-section {
    flex: 1;
}

.profile-username-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.profile-username {
    font-size: 24px;
    font-weight: 300;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.subscribe-btn.subscribed {
    background: var(--bg-tertiary);
    color: var(--success);
    border: 1px solid var(--success);
}

.subscribe-btn.subscribed:hover {
    background: rgba(63, 185, 80, 0.1);
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat strong {
    font-size: 20px;
    color: var(--accent-blue);
    font-weight: 700;
}

.stat span {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-wallet {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
}

.wallet-info,
.subscription-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.wallet-info i,
.subscription-price i {
    color: var(--accent-blue);
    font-size: 20px;
}

.wallet-info strong,
.subscription-price strong {
    color: var(--success);
}

.profile-bio {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Profile Posts Grid */
.profile-posts {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.posts-header {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.posts-header h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
    border-radius: 4px;
    transition: var(--transition);
}

.grid-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

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

.grid-item img.blurred,
.grid-item video.blurred {
    filter: blur(3px);
    transform: scale(1.1);
}

.grid-locked-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}

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

.grid-overlay span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

.lock-overlay i {
    font-size: 32px;
    color: var(--warning-color);
}

.lock-overlay span {
    font-size: 12px;
    font-weight: 600;
}

.video-indicator,
.multiple-indicator,
.lock-indicator,
.pending-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    font-size: 18px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pending-indicator {
    background: var(--warning-color);
    color: var(--bg-primary);
    top: auto;
    bottom: 8px;
}

.multiple-indicator {
    right: auto;
    left: 8px;
}

.no-posts-profile {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-posts-profile i {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-posts-profile p {
    font-size: 16px;
}

/* ========================================
   9. AUTH PAGES
   ======================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

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

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(147, 51, 234, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.auth-card:hover {
    box-shadow: 0 25px 70px rgba(147, 51, 234, 0.2), 
                0 0 0 1px rgba(147, 51, 234, 0.2);
    transform: translateY(-2px);
}

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

.auth-header i {
    font-size: 56px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(147, 51, 234, 0.3));
}

.auth-header h1 {
    font-size: 32px;
    margin: 16px 0 8px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    margin-top: 16px;
}

.form-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 14px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Auth divider */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.auth-divider span {
    background: var(--bg-secondary);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

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

.auth-footer a {
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.auth-switch {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

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

.auth-switch a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

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

.back-home a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.back-home a:hover {
    color: var(--accent-blue);
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* ========================================
   10. CREATE POST PAGE
   ======================================== */
.create-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.create-post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.create-post-card h2 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.create-post-card input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    cursor: pointer;
    color: var(--text-secondary);
}

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

.media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

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

.preview-label {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(13, 17, 23, 0.8);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

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

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

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
}

.search-input-group i {
    color: var(--text-secondary);
    font-size: 18px;
}

.search-input-group input {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    padding: 0;
}

.search-results h3 {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.user-result:hover {
    border-color: var(--accent-blue);
}

.user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.user-link:hover {
    background: var(--bg-tertiary);
}

.user-info {
    flex: 1;
}

.user-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

.search-empty,
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.search-empty i,
.no-results i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-empty p,
.no-results p {
    font-size: 16px;
}

/* ========================================
   12. SETTINGS PAGE
   ======================================== */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-container h1 {
    font-size: 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--accent-blue);
}

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.settings-section h2 {
    font-size: 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.wallet-balance-large {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(188, 140, 255, 0.1));
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
}

.wallet-balance-large span {
    display: block;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
}

.wallet-balance-large strong {
    font-size: 48px;
    color: var(--success);
    font-weight: 700;
}

.wallet-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.current-price {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-price strong {
    color: var(--accent-blue);
    font-size: 18px;
}

.free-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.info-row span {
    color: var(--text-secondary);
}

.info-row strong {
    color: var(--text-primary);
}

/* ========================================
   13. NOTIFICATIONS PAGE
   ======================================== */
.notifications-container {
    max-width: 800px;
    margin: 0 auto;
}

.notifications-container h1 {
    font-size: 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--accent-blue);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.notification-card:hover {
    box-shadow: var(--shadow-md);
}

.notification-card.unread {
    background: rgba(88, 166, 255, 0.05);
    border-color: var(--accent-blue);
}

.notification-card.read {
    opacity: 0.7;
}

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

.notification-icon.new_subscriber {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
}

.notification-icon.post_approved {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
}

.notification-icon.post_rejected {
    background: rgba(248, 81, 73, 0.2);
    color: var(--danger);
}

.notification-icon.post_pending {
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning);
}

.notification-icon.withdrawal_approved {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
}

.notification-icon.withdrawal_rejected {
    background: rgba(248, 81, 73, 0.2);
    color: var(--danger);
}

/* Admin notification types */
.notification-icon.info {
    background: rgba(88, 166, 255, 0.2);
    color: #58A6FF;
}

.notification-icon.success {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
}

.notification-icon.warning {
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning);
}

.notification-icon.alert {
    background: rgba(248, 81, 73, 0.2);
    color: var(--danger);
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-primary);
}

.notification-time {
    font-size: 13px;
    color: var(--text-muted);
}

.mark-read-btn {
    color: var(--accent-blue);
    font-size: 18px;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.mark-read-btn:hover {
    background: rgba(88, 166, 255, 0.1);
}

.no-notifications {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.no-notifications i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-notifications p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ========================================
   14. ADMIN PANEL
   ======================================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.users {
    background: rgba(88, 166, 255, 0.2);
    color: var(--info);
}

.stat-icon.posts {
    background: rgba(188, 140, 255, 0.2);
    color: var(--accent-purple);
}

.stat-icon.pending {
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning);
}

.stat-icon.withdrawals {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
}

.stat-details h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.admin-action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.admin-action-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.05);
    transform: translateY(-4px);
}

.admin-action-btn i {
    font-size: 32px;
    color: var(--accent-blue);
}

.admin-action-btn span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Admin Tables */
.admin-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.admin-table-container h2 {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.admin-table thead {
    background: var(--bg-tertiary);
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    object-fit: cover;
}

.table-user-info {
    display: flex;
    flex-direction: column;
}

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

.table-email {
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.admin-badge.yes {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
}

.admin-badge.no {
    background: rgba(139, 148, 158, 0.2);
    color: var(--text-muted);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.table-btn.view {
    background: rgba(88, 166, 255, 0.2);
    color: var(--info);
}

.table-btn.view:hover {
    background: rgba(88, 166, 255, 0.3);
}

.table-btn.delete {
    background: rgba(248, 81, 73, 0.2);
    color: var(--danger);
}

.table-btn.delete:hover {
    background: rgba(248, 81, 73, 0.3);
}

.table-btn.approve {
    background: rgba(63, 185, 80, 0.2);
    color: var(--success);
}

.table-btn.approve:hover {
    background: rgba(63, 185, 80, 0.3);
}

.table-btn.reject {
    background: rgba(248, 81, 73, 0.2);
    color: var(--danger);
}

.table-btn.reject:hover {
    background: rgba(248, 81, 73, 0.3);
}

/* Withdrawal Requests */
.withdrawals-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.withdrawal-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.withdrawal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.withdrawal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.withdrawal-card:hover {
    box-shadow: var(--shadow-lg);
}

.withdrawal-card.pending {
    border-color: var(--warning);
    background: rgba(210, 153, 34, 0.05);
}

.withdrawal-card.approved {
    border-color: var(--success);
    background: rgba(63, 185, 80, 0.05);
}

.withdrawal-card.rejected {
    border-color: var(--danger);
    background: rgba(248, 81, 73, 0.05);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-info i {
    color: var(--accent-blue);
}

.user-info a {
    color: var(--accent-blue);
}

.user-info a:hover {
    text-decoration: underline;
}

.amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.amount-display {
    text-align: right;
}

.amount-display .final-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
    line-height: 1.2;
}

.amount-display .requested-amount {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.text-success {
    color: var(--success) !important;
}

.withdrawal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-item i {
    color: var(--accent-blue);
}

.status-pending {
    color: var(--warning);
    font-weight: 700;
    text-transform: capitalize;
}

.status-approved {
    color: var(--success);
    font-weight: 700;
    text-transform: capitalize;
}

.status-rejected {
    color: var(--danger);
    font-weight: 700;
    text-transform: capitalize;
}

.withdrawal-actions {
    display: flex;
    gap: 12px;
}

.no-requests {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.no-requests i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.no-requests p {
    color: var(--text-secondary);
}

/* ========================================
   15. MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-content p {
    margin-bottom: 20px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--danger);
}

/* ========================================
   16. SINGLE POST PAGE
   ======================================== */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.1);
}

/* ========================================
   17. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .main-container {
        padding: 0;
        margin: 0;
    }

    .nav-container {
        padding: 0 12px;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        font-size: 20px;
        padding: 6px 8px;
    }

    .post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
    }

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

    .top-users-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .top-user-card {
        padding: 12px;
    }

    .top-user-card img {
        width: 60px;
        height: 60px;
    }

    .profile-container {
        padding: 0;
    }

    .profile-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

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

    .profile-username-row {
        flex-direction: column;
        gap: 12px;
    }

    .profile-stats {
        justify-content: center;
        gap: 24px;
    }

    .profile-wallet {
        flex-direction: column;
        gap: 12px;
    }

    .profile-posts {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .posts-grid {
        gap: 2px;
    }

    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .carousel-btn.prev {
        left: 4px;
    }

    .carousel-btn.next {
        right: 4px;
    }

    .settings-container h1 {
        font-size: 24px;
    }

    .settings-section {
        padding: 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .wallet-balance-large {
        padding: 24px;
    }

    .wallet-balance-large strong {
        font-size: 36px;
    }

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

    .admin-stats {
        grid-template-columns: 1fr;
    }

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

    .admin-table {
        font-size: 14px;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }

    .table-user {
        flex-direction: column;
        align-items: flex-start;
    }

    .withdrawal-cards {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 24px;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .welcome-banner {
        padding: 30px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .create-post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .media-preview {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        display: none;
    }

    .nav-link {
        font-size: 18px;
        padding: 4px 6px;
    }

    .post-header {
        padding: 10px 12px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .username {
        font-size: 14px;
    }

    .post-actions {
        padding: 10px 12px;
    }

    .post-caption {
        padding: 0 12px 10px;
    }

    .download-links {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
    }

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

    .profile-username {
        font-size: 20px;
    }

    .admin-actions {
        grid-template-columns: 1fr;
    }

    .top-user-card img {
        width: 50px;
        height: 50px;
    }

    .top-user-name {
        font-size: 12px;
    }
}

/* ========================================
   18. UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ========================================
   19. ANIMATIONS
   ======================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0px,
        var(--bg-tertiary) 40px,
        var(--bg-secondary) 80px
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========================================
   20. SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

/* ========================================
   21. PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .nav-menu,
    button,
    .post-actions,
    .admin-actions {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .post-card,
    .settings-section,
    .admin-table-container {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}
/* ========================================
   ADDITIONAL STYLES FOR NEW FEATURES
   Add these to your existing complete-style.css
   ======================================== */

/* Subscription Expiry Display */
.subscription-expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.subscription-expiry i {
    color: var(--warning-color);
}

/* Download Links - Multiple Links Support */
.download-links {
    padding: 16px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.download-links-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.download-links-header i {
    color: var(--accent-blue);
    font-size: 18px;
}

.download-links-header strong {
    font-size: 15px;
}

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

.download-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.download-link-item:hover {
    background: var(--bg-primary);
    border-color: var(--accent-blue);
    color: var(--accent-purple);
    transform: translateX(4px);
}

.download-link-item i {
    font-size: 16px;
}

/* Download Link Input Fields */
.download-link-field {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.download-link-field:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-secondary);
}

.download-link-input {
    margin-bottom: 8px;
}

/* Subscription Period Badge */
.subscription-period-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Enhanced Profile Wallet - Only for Owner */
.profile-wallet {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Subscription Settings Form Enhancements */
.settings-section select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.settings-section select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-secondary);
}

.settings-section select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

/* Period Display in Current Price */
.current-price span {
    color: var(--text-secondary);
    font-weight: normal;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .subscription-expiry {
        font-size: 12px;
        padding: 4px 8px;
    }

    .download-links {
        padding: 12px;
    }

    .download-links-header {
        font-size: 14px;
    }

    .download-link-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    .profile-wallet {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .download-links-list {
        gap: 6px;
    }

    .download-link-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .subscription-expiry {
        margin-top: 6px;
        font-size: 11px;
    }
}

/* Enhanced Form Styling for Multiple Inputs */
.form-group .btn-secondary {
    width: auto;
    display: inline-flex;
}

/* Trash button specific styling */
button.btn-danger {
    min-width: auto;
    padding: 12px 16px;
}

/* Loading State for Subscribe Button */
.subscribe-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.subscribe-btn.loading i {
    animation: spin 1s linear infinite;
}

/* Enhanced Username Row Spacing */
.profile-username-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.profile-username-row > * {
    margin-bottom: 8px;
}

/* Success/Error Message Styling for Download Links */
.download-link-success {
    color: var(--success);
    font-size: 12px;
    margin-top: 4px;
}

.download-link-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

/* Improved Spacing for Settings */
.settings-section .form-group + .form-group {
    margin-top: 20px;
}

/* Enhanced Button Styling */
.btn-secondary[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary[disabled]:hover {
    background: transparent;
    transform: none;
}
/* ========================================
   FINAL ADDITIONAL STYLES FOR ALL NEW FEATURES
   Add these to your existing complete-style.css
   ======================================== */

/* ========================================
   SCROLLING TOP USERS SECTION
   ======================================== */
.top-users-scrolling {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.top-users-scrolling h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-blue);
}

.top-users-scrolling h3 i {
    font-size: 22px;
    animation: flicker 2s infinite;
}

.top-users-scroll-container {
    overflow: hidden;
    position: relative;
}

.top-users-scroll-track {
    display: flex;
    gap: 16px;
    animation: scroll-horizontal 30s linear infinite;
    width: fit-content;
}

.top-users-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.top-user-card-scroll {
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    width: 140px;
}

.top-user-card-scroll:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.3);
}

.top-user-card-scroll img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--accent-blue);
    object-fit: cover;
}

.top-user-info-scroll {
    color: var(--text-primary);
}

.top-user-name-scroll {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ========================================
   DOWNLOAD LINKS - REPOSITIONED
   ======================================== */
.download-links {
    padding: 16px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.download-links-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.download-links-header i {
    color: var(--accent-blue);
    font-size: 18px;
}

.download-links-header strong {
    font-size: 15px;
}

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

.download-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.download-link-item:hover {
    background: var(--bg-primary);
    border-color: var(--accent-blue);
    color: var(--accent-purple);
    transform: translateX(4px);
}

.download-link-item i {
    font-size: 16px;
}

/* Download Link Input Fields */
.download-link-field {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.download-link-field:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-secondary);
}

.download-link-input {
    margin-bottom: 8px;
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert-warning {
    background: rgba(210, 153, 34, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    color: var(--info);
    border: 1px solid var(--info);
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* ========================================
   PRICE LOCK BADGES
   ======================================== */
.lock-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning-color);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
}

.lock-badge-inline i {
    font-size: 11px;
}

/* ========================================
   HELP TEXT VARIATIONS
   ======================================== */
.help-text-warning {
    color: var(--warning-color) !important;
    font-weight: 600;
}

.help-text-warning i {
    margin-right: 4px;
}

.help-text-warning a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.help-text-warning a:hover {
    color: var(--accent-purple);
}

/* ========================================
   SUBSCRIPTION EXPIRY DISPLAY
   ======================================== */
.subscription-expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.subscription-expiry i {
    color: var(--warning-color);
}

/* ========================================
   ENHANCED FORM CONTROLS
   ======================================== */
.settings-section select:disabled,
.settings-section input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-primary);
}

.settings-section button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings-section button:disabled:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue));
    transform: none;
}

/* ========================================
   IMPROVED CURRENT PRICE DISPLAY
   ======================================== */
.current-price {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price strong {
    color: var(--accent-blue);
    font-size: 18px;
}

.current-price span {
    color: var(--text-secondary);
    font-weight: normal;
}

.free-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .top-users-scrolling {
        padding: 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .top-user-card-scroll {
        width: 120px;
        padding: 12px;
    }

    .top-user-card-scroll img {
        width: 60px;
        height: 60px;
    }

    .top-user-name-scroll {
        font-size: 12px;
    }

    .top-user-stats-scroll {
        font-size: 11px;
    }

    @keyframes scroll-horizontal {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    .subscription-expiry {
        font-size: 12px;
        padding: 4px 8px;
    }

    .download-links {
        padding: 12px;
    }

    .download-links-header {
        font-size: 14px;
    }

    .download-link-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    .alert {
        padding: 12px;
        font-size: 13px;
    }

    .alert i {
        font-size: 16px;
    }

    .lock-badge-inline {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .top-user-card-scroll {
        width: 100px;
        padding: 10px;
    }

    .top-user-card-scroll img {
        width: 50px;
        height: 50px;
    }

    .download-links-list {
        gap: 6px;
    }

    .download-link-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .subscription-expiry {
        margin-top: 6px;
        font-size: 11px;
    }

    .alert {
        padding: 10px;
        gap: 8px;
    }

    .current-price {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   POST ACTIONS ORDER FIX
   ======================================== */
/* Ensure download links appear before post-actions in layout */
.post-card .post-caption + .download-links {
    order: 1;
}

.post-card .download-links + .post-actions {
    order: 2;
}

/* ========================================
   ENHANCED TRANSITIONS
   ======================================== */
.top-user-card-scroll,
.download-link-item,
.alert,
.lock-badge-inline {
    transition: all 0.3s ease;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.download-link-item:focus,
.top-user-card-scroll:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

button:disabled:focus {
    outline: none;
}

/* ========================================
   SCROLLBAR FOR HORIZONTAL SCROLL
   ======================================== */
.top-users-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.top-users-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.top-users-scroll-container::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.top-users-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ========================================
   PRINT STYLES UPDATE
   ======================================== */
@media print {
    .top-users-scrolling,
    .download-links,
    .alert {
        page-break-inside: avoid;
    }
    
    .top-users-scroll-track {
        animation: none;
        flex-wrap: wrap;
    }
}
/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--secondary-bg);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

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

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

.tab-content {
    display: none;
}

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

/* Save Button on Posts */
.save-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
}

.save-btn:hover {
    transform: scale(1.1);
}

.save-btn.saved {
    color: #FFD700;
}

.post-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.post-actions-left,
.post-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--secondary-bg);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

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

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

.tab-content {
    display: none;
}

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

/* Save Button */
.save-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
}

.save-btn:hover {
    transform: scale(1.1);
}

.save-btn.saved {
    color: #FFD700;
}

.post-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.post-actions-left,
.post-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ========================================
   SUBSCRIPTION STATUS STYLES
   ======================================== */

/* Subscription Status Container */
.subscription-status-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Green Subscribed Button */
.btn-subscribed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-subscribed:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

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

/* Ultra Active Button */
.btn-ultra-active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000 !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-ultra-active:hover {
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

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

/* Subscription Expiry Badge */
.subscription-expiry-badge {
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
}

.subscription-expiry-badge.ultra-expiry {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.subscription-expiry-badge.ultra-expiry i {
    color: #FFD700;
}

.subscription-expiry-badge i {
    color: var(--success-color);
    font-size: 14px;
}

/* ========================================
   ADMIN SEARCH BOX STYLES
   ======================================== */

.admin-search-box {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.search-input-container {
    position: relative;
    max-width: 500px;
}

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

.search-input-container input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input-container input:focus {
    border-color: var(--accent-blue);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

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

/* No Results Message */
#noResults {
    background: var(--bg-secondary);
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

#noResults i {
    color: var(--text-muted);
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

#noResults p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .subscription-status-container {
        width: 100%;
    }
    
    .btn-subscribed {
        width: 100%;
        justify-content: center;
    }
    
    .subscription-expiry-badge {
        width: 100%;
        justify-content: center;
    }
    
    .search-input-container {
        max-width: 100%;
    }
}

/* ========================================
   EDIT POST MODAL STYLES
   ======================================== */

.post-edit {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: all 0.3s;
}

.post-edit:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
}

.edit-modal.show {
    opacity: 1;
}

.edit-modal-content {
    background: var(--card-background);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.edit-modal.show .edit-modal-content {
    transform: scale(1);
}

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

.edit-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-modal-header i {
    color: var(--primary-color);
}

.edit-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.edit-modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

.edit-modal-body {
    padding: 24px;
}

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

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

.edit-textarea,
.edit-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.edit-textarea:focus,
.edit-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

#editLinksContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-save {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

.btn-save {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

@media (max-width: 768px) {
    .edit-modal {
        padding: 10px;
    }
    
    .edit-modal-content {
        max-height: 95vh;
    }
    
    .edit-modal-footer {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-save {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   GRID EDIT/DELETE BUTTONS
   ======================================== */

.grid-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.grid-item:hover .grid-actions {
    opacity: 1;
}

.grid-edit-btn,
.grid-delete-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.grid-edit-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.grid-delete-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* ========================================
   ULTRA MEMBERSHIP STYLES
   ======================================== */

.ultra-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ultra-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.ultra-modal {
    max-width: 600px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #FFD700;
}

.ultra-header {
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid #FFD700;
}

.ultra-crown {
    font-size: 60px;
    color: #FFD700;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

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

.ultra-header h2 {
    color: #FFD700;
    font-size: 32px;
    margin: 0;
}

.ultra-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
}

.ultra-feature {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.ultra-feature i {
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 10px;
}

.ultra-feature h3 {
    color: #FFD700;
    margin: 10px 0;
    font-size: 20px;
}

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

.ultra-pricing {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    margin: 0 20px 20px 20px;
    border-radius: 12px;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.price-currency {
    font-size: 36px;
    color: #FFD700;
    font-weight: bold;
}

.price-amount {
    font-size: 72px;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
    align-self: flex-end;
    margin-bottom: 10px;
}

.btn-ultra {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-ultra:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.ultra-active {
    text-align: center;
    padding: 20px;
    margin: 0 20px 20px 20px;
    background: rgba(63, 185, 80, 0.1);
    border: 2px solid var(--success);
    border-radius: 12px;
}

.ultra-active i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 10px;
}

.ultra-active p {
    color: var(--text-primary);
    font-size: 18px;
    margin: 10px 0;
}

.ultra-expires {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Ultra Membership Badge on Profile */
.ultra-membership-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 215, 0, 0.8);
    }
}

.ultra-membership-badge i {
    font-size: 24px;
    margin-right: 8px;
}

.ultra-membership-badge span {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.ultra-membership-badge .ultra-expiry {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.9;
}

/* Timeline Page Styles */
.timeline-header {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.timeline-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.ultra-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ultra-badge i {
    font-size: 16px;
}

/* Notification Icon for Ultra Membership */
.notification-icon.ultra_membership_activated {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

/* Mobile Responsive for Ultra Modal */
@media (max-width: 768px) {
    .ultra-features {
        grid-template-columns: 1fr;
    }
    
    .ultra-header h2 {
        font-size: 24px;
    }
    
    .price-amount {
        font-size: 56px;
    }
    
    .ultra-modal {
        max-width: 95%;
        margin: 20px auto;
    }
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Timeline Mobile Optimizations */
@media (max-width: 768px) {
    .timeline-header {
        padding: 20px 15px;
    }
    
    .timeline-header h1 {
        font-size: 24px;
    }
    
    .timeline-subtitle {
        font-size: 14px;
    }
    
    .ultra-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Timeline feed adjustments */
    .feed-container {
        padding: 0;
    }
    
    .post-card {
        margin-bottom: 15px;
        border-radius: 0;
    }
    
    .post-header {
        padding: 12px 15px;
    }
    
    .post-author {
        font-size: 14px;
    }
    
    .avatar-small {
        width: 32px;
        height: 32px;
    }
    
    .post-date {
        font-size: 11px;
    }
    
    .post-actions {
        padding: 10px 15px;
        gap: 15px;
    }
    
    .action-btn {
        font-size: 14px;
    }
    
    .post-caption {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .download-links {
        padding: 10px 15px;
    }
    
    .download-link {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Ultra Modal Mobile Improvements */
@media (max-width: 768px) {
    .ultra-modal {
        max-width: 100%;
        margin: 10px;
        border-radius: 16px;
    }
    
    .ultra-header {
        padding: 15px;
    }
    
    .ultra-crown {
        font-size: 48px;
    }
    
    .ultra-header h2 {
        font-size: 24px;
    }
    
    .ultra-features {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .ultra-feature {
        padding: 15px;
    }
    
    .ultra-feature i {
        font-size: 32px;
    }
    
    .ultra-feature h3 {
        font-size: 18px;
    }
    
    .ultra-feature p {
        font-size: 13px;
    }
    
    .ultra-pricing {
        padding: 15px;
        margin: 0 15px 15px 15px;
    }
    
    .price-currency {
        font-size: 28px;
    }
    
    .price-amount {
        font-size: 56px;
    }
    
    .price-period {
        font-size: 16px;
    }
    
    .btn-ultra {
        margin: 0 15px 15px 15px;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .ultra-active {
        padding: 15px;
        margin: 0 15px 15px 15px;
    }
    
    .ultra-active i {
        font-size: 36px;
    }
    
    .ultra-active p {
        font-size: 16px;
    }
}

/* Navigation Ultra Button Mobile */
@media (max-width: 768px) {
    .ultra-btn {
        padding: 8px 12px;
    }
    
    .ultra-btn i {
        font-size: 18px;
    }
}

/* Ultra Membership Badge Mobile */
@media (max-width: 768px) {
    .ultra-membership-badge {
        padding: 12px 16px;
        margin: 15px 0;
    }
    
    .ultra-membership-badge i {
        font-size: 20px;
    }
    
    .ultra-membership-badge span {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .ultra-membership-badge .ultra-expiry {
        font-size: 11px;
    }
}

/* Touch-friendly adjustments */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-btn.prev {
        left: 8px;
    }
    
    .carousel-btn.next {
        right: 8px;
    }
    
    .carousel-dots {
        bottom: 8px;
        gap: 6px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .lock-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Modal close button mobile */
@media (max-width: 768px) {
    .modal-content .close {
        font-size: 32px;
        top: 10px;
        right: 15px;
    }
}

/* Load more button mobile */
@media (max-width: 768px) {
    .load-more-container {
        padding: 15px;
    }
    
    #loadMoreBtn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

/* No posts message mobile */
@media (max-width: 768px) {
    .no-posts {
        padding: 40px 20px;
    }
    
    .no-posts i {
        font-size: 48px;
    }
    
    .no-posts h2 {
        font-size: 20px;
    }
    
    .no-posts p {
        font-size: 14px;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .post-edit,
    .post-delete {
        min-width: 40px;
        min-height: 40px;
        padding: 10px;
    }
}

/* Timeline specific mobile improvements */
@media (max-width: 480px) {
    .timeline-header h1 {
        font-size: 20px;
    }
    
    .ultra-badge {
        font-size: 11px;
        padding: 5px 10px;
        display: block;
        margin-top: 8px;
    }
    
    .price-amount {
        font-size: 48px;
    }
}

/* ============================================
   ULTRA MEMBERSHIP PAGE STYLES
   ============================================ */

/* Ultra Active Navigation */
.nav-link.ultra-active {
    color: #22C55E !important; /* Green color for active */
    background: none;
}

.nav-link.ultra-active:hover {
    background: var(--bg-tertiary);
}

.nav-link.ultra-btn {
    color: #FFD700 !important; /* Gold color for inactive */
}

.nav-link.ultra-btn:hover {
    background: var(--bg-tertiary);
}

/* Ensure icon size stays normal */
.nav-link.ultra-active i,
.nav-link.ultra-btn i {
    font-size: inherit;
}

/* Ultra Membership Page Layout */
.ultra-membership-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ultra-page-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    margin-bottom: 30px;
}

.ultra-crown-large {
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 16px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

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

.ultra-page-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ultra-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Active Membership Status */
.ultra-status-active {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
}

.ultra-status-badge {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(34, 197, 94, 0.3);
    margin-bottom: 30px;
}

.ultra-status-badge i {
    font-size: 48px;
    color: #22C55E;
    margin-bottom: 12px;
    display: block;
}

.ultra-status-badge h2 {
    color: #22C55E;
    margin: 0;
}

.ultra-status-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ultra-status-item {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ultra-status-item i {
    font-size: 32px;
    color: #FFD700;
    margin-top: 4px;
}

.ultra-status-item strong {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 6px;
}

.ultra-status-item p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ultra-active-benefits {
    margin-bottom: 30px;
}

.ultra-active-benefits h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.ultra-active-benefits h3 i {
    color: #FFD700;
}

.ultra-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.benefit-card.active {
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
}

.benefit-card i {
    font-size: 36px;
    color: #FFD700;
    margin-bottom: 12px;
    display: block;
}

.benefit-card h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.ultra-renewal-info {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ultra-renewal-info i {
    font-size: 24px;
    color: var(--accent-blue);
}

.ultra-renewal-info p {
    margin: 0;
    color: var(--text-secondary);
}

/* Purchase Section - Compact & Prominent */
.ultra-purchase-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Prominent Pricing Card at Top */
.ultra-pricing-section-top {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pricing-card-main {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    border: 3px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.2);
}

.pricing-header {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-header i {
    font-size: 56px;
    color: #FFD700;
    display: block;
    margin-bottom: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.pricing-header h2 {
    font-size: 32px;
    margin: 0 0 8px 0;
    color: #FFD700;
}

.pricing-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.pricing-amount {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.pricing-amount .currency {
    font-size: 28px;
    color: var(--text-secondary);
    vertical-align: top;
}

.pricing-amount .amount {
    font-size: 64px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.pricing-amount .period {
    font-size: 16px;
    color: var(--text-secondary);
}

.wallet-info {
    background: var(--bg-primary);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--bg-tertiary);
}

.wallet-info i {
    color: #FFD700;
    font-size: 20px;
}

.wallet-info span {
    font-size: 18px;
    font-weight: 600;
}

.btn-purchase-ultra-main {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-purchase-ultra-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.btn-purchase-ultra-main:active {
    transform: translateY(-1px);
}

.btn-purchase-ultra-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-purchase-ultra-main i {
    font-size: 24px;
}

.purchase-disclaimer {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--bg-tertiary);
}

.purchase-disclaimer i {
    color: var(--accent-blue);
    font-size: 16px;
}

.purchase-disclaimer p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Quick Benefits Summary - Compact */
.ultra-benefits-quick {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 16px;
}

.ultra-benefits-quick h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #FFD700;
}

.benefits-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.benefit-item-compact {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-item-compact:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.benefit-item-compact i {
    font-size: 24px;
    color: #FFD700;
}

.benefit-item-compact span {
    font-size: 15px;
    font-weight: 500;
}

/* ============================================
   TIMELINE GRID STYLES (Instagram-like)
   ============================================ */

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4px;
    padding: 0;
    margin-top: 20px;
}

.timeline-grid-item {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.timeline-grid-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.timeline-grid-image,
.timeline-grid-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-video-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    pointer-events: none;
}

.timeline-multi-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.timeline-lock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    pointer-events: none;
}

.timeline-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

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

.timeline-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: center;
    margin-top: auto;
}

.timeline-stats span {
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-stats i {
    font-size: 20px;
}

.timeline-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.timeline-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
}

/* Timeline Modal */
.timeline-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.timeline-modal-content {
    position: relative;
    margin: 2% auto;
    max-width: 900px;
    width: 90%;
}

.timeline-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.timeline-modal-close:hover {
    color: #ccc;
}

/* Mobile Responsive for Timeline Grid */
@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    
    .timeline-grid-item {
        border-radius: 0;
    }
    
    .timeline-stats span {
        font-size: 14px;
    }
    
    .timeline-video-indicator,
    .timeline-lock-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .timeline-multi-indicator {
        font-size: 16px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ultra-page-header {
        padding: 24px 15px;
    }
    
    .ultra-crown-large {
        font-size: 40px;
    }
    
    .ultra-page-header h1 {
        font-size: 28px;
    }
    
    .ultra-status-active {
        padding: 20px;
    }
    
    .ultra-status-details {
        grid-template-columns: 1fr;
    }
    
    .ultra-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-main {
        padding: 30px 20px;
    }
    
    .pricing-header i {
        font-size: 48px;
    }
    
    .pricing-header h2 {
        font-size: 26px;
    }
    
    .pricing-amount .amount {
        font-size: 52px;
    }
    
    .btn-purchase-ultra-main {
        padding: 18px;
        font-size: 18px;
    }
    
    .ultra-benefits-quick {
        padding: 20px;
    }
    
    .benefits-grid-compact {
        grid-template-columns: 1fr;
    }
    
    /* 📱 Mobile-Friendly Deposit/Withdrawal Modals */
    .modal-content {
        margin: 2% auto;
        padding: 20px;
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .close {
        right: 10px;
        top: 10px;
        font-size: 28px;
    }
    
    /* Deposit Modal Mobile Styles */
    #qrCodeImage {
        width: 200px !important;
        height: 200px !important;
    }
    
    #depositAddressDisplay {
        font-size: 11px !important;
        padding: 10px !important;
        word-break: break-all;
    }
    
    .btn-copy {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    #currentCryptoPrice {
        font-size: 20px !important;
    }
    
    /* Form inputs mobile */
    .input-field, select {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 12px !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 20px !important;
        font-size: 16px !important;
    }
    
    /* Withdrawal modal mobile */
    #withdrawCryptoType, #withdrawAmount, #withdrawAddress {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    .fee-notice {
        font-size: 13px !important;
        padding: 12px !important;
    }
    
    /* Recent deposits list mobile */
    #recentDeposits > div {
        padding: 12px !important;
    }
    
    #depositStatus {
        padding: 12px !important;
        font-size: 13px !important;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for interactive elements */
.save-btn,
.action-btn,
.like-btn,
.dislike-btn {
    will-change: transform, color !important;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Instant button feedback */
.action-btn:active,
.save-btn:active {
    transform: scale(0.95) translateZ(0) !important;
    transition: transform 0.1s ease !important;
}

/* Reduce paint on hover */
.post-card {
    contain: layout style paint;
}

/* Optimize image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* ========================================
   UPLOAD PROGRESS OVERLAY
   ======================================== */

.upload-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

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

.upload-progress-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    min-width: 320px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.upload-progress-card h3 {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 20px;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 12px 0 0 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .upload-progress-card {
        min-width: 280px;
        padding: 24px;
    }
    
    .upload-progress-card h3 {
        font-size: 18px;
    }
}


/* Smooth scrolling optimization */
* {
    scroll-behavior: smooth;
}

/* Prevent layout shifts */
.like-count,
.dislike-count {
    min-width: 20px;
    text-align: center;
}

/* ========================================
   INFINITE SCROLL LOADING SPINNER
   ======================================== */

.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(147, 51, 234, 0.2);
    border-top: 4px solid #9333ea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#infinite-scroll-loader {
    padding: 20px;
    text-align: center;
}

#scroll-sentinel {
    height: 1px;
    width: 100%;
}
