@import url('improved-buttons.css');

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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --glow-primary: rgba(102, 126, 234, 0.4);
    --glow-secondary: rgba(245, 87, 108, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 25% 25%, var(--glow-primary) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, var(--glow-secondary) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--glow-primary) 0%, transparent 100%);
    opacity: 0.1;
    pointer-events: none;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.sidebar-header i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

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

.sidebar-header h2 {
    font-size: 1.5rem;
    margin: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    width: 100%;
    padding: 15px 25px;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-primary), transparent);
    transition: left 0.5s ease;
    opacity: 0.3;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: var(--glass-bg);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--glow-primary), var(--glow-secondary));
    color: #ffffff;
    border-right: 3px solid;
    border-image: var(--accent-gradient) 1;
    transform: translateX(5px);
    box-shadow: 0 4px 20px var(--glow-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
    transition: all 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px currentColor);
}

.nav-item.active i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    transition: margin-left 0.3s ease;
}

.main-content.no-sidebar {
    margin-left: 0;
}

.content-section {
    display: none;
    padding: 20px;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: var(--glass-bg);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--glow-primary) 0%, transparent 50%, var(--glow-secondary) 100%);
    opacity: 0.1;
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.section {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--glow-primary) 0%, transparent 50%, var(--glow-secondary) 100%);
    opacity: 0.05;
    pointer-events: none;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #ffffff;
}

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

.stat-badge {
    background: var(--glass-bg);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    color: #000000;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
    border-color: rgba(79, 172, 254, 0.5);
}

.stat-badge.selected {
    background: var(--accent-gradient);
    color: #000000;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
    border-color: var(--accent-color);
}

.stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stat-badge:hover::before {
    left: 100%;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filters {
    display: flex;
    gap: 24px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    flex-wrap: wrap;
    align-items: center;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--glow-primary) 0%, transparent 50%, var(--glow-secondary) 100%);
    opacity: 0.05;
    pointer-events: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #000000 !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.filter-select {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: #ff6b6b;
    background: rgba(0, 0, 0, 0.5);
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-accent:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.4);
    filter: brightness(1.1);
}

.btn-accent:active {
    transform: translateY(-1px) scale(0.98);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.search-input:focus {
    outline: none;
    border-color: rgba(79, 172, 254, 0.6);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2), 0 4px 20px rgba(79, 172, 254, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: #d0d0d0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px var(--glow-primary);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-bg);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid #4ecdc4;
}

.btn-outline:hover {
    background: #4ecdc4;
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid #4ecdc4;
}

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

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.auto-save-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    padding: 8px 12px;
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    border-radius: 20px;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.auto-save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.auto-save-indicator i {
    font-size: 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 10;
}

.post-card {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(79, 172, 254, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(79, 172, 254, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.post-card.selected {
    border-color: var(--accent-color);
    background: rgba(79, 172, 254, 0.15);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card.selected::before {
    opacity: 1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.post-subreddit {
    background: #ff6b6b;
    color: #000000;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.post-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #ffffff;
}

.post-content {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.generation-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.form-input::placeholder {
    color: #b0b0b0;
}

.generated-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.niche-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
}

.niche-btn {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.niche-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(78, 205, 196, 0.6);
    background: rgba(78, 205, 196, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.niche-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-color: transparent;
    color: #000000 !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.niche-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.generated-content h3 {
    margin-bottom: 20px;
    color: #4ecdc4;
    font-size: 1.4rem;
}

.content-list {
    display: grid;
    gap: 15px;
}

.content-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4ecdc4;
    transition: all 0.3s ease;
}

.content-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.content-item h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.content-item p {
    color: #d0d0d0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .niche-filters {
        justify-content: center;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .rewrite-comparison {
        grid-template-columns: 1fr;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .rewrite-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(26, 26, 46, 0.6) 100%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.filter-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--glow-primary) 0%, transparent 50%, var(--glow-secondary) 100%);
    opacity: 0.1;
    pointer-events: none;
}
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #000000 !important;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 0.9rem;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select option {
    background: #2c3e50;
    color: #ffffff;
}

.filter-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.filter-select:hover {
    border-color: #ff6b6b;
    background: rgba(0, 0, 0, 0.5);
}
    
    .niche-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeIn 0.5s ease forwards;
}

.post-card:nth-child(even) {
    animation-delay: 0.1s;
}

.post-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 196, 0.7);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

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

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    /* Custom scrollbar for better visibility */
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.6);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 196, 0.8);
}

/* Inline Rewrite Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.rewrite-result-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rewrite-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.original-content,
.rewritten-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.original-content h4,
.rewritten-content h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid #4ecdc4;
}

.content-preview h5 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.content-preview p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

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

/* Responsive design for rewrite modal */
@media (max-width: 768px) {
    .rewrite-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rewrite-result-modal {
        width: 98%;
        max-height: 95vh;
    }
}

.post-content {
    color: #ffffff;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.subreddit {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-stats {
    display: flex;
    gap: 15px;
    color: #b0b0b0;
}

.post-stats i {
    color: #4ecdc4;
}

.post-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.8;
    border-left: 3px solid #4ecdc4;
    font-size: 1.1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: none;
    overflow: visible;
}

.post-main-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.8;
    border-left: 3px solid #4ecdc4;
    font-size: 1.1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #ffffff;
}

.post-no-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.6;
    border-left: 3px solid #ff6b6b;
    font-size: 1rem;
    color: #b0b0b0;
    font-style: italic;
}

.post-link-info {
    background: rgba(78, 205, 196, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.post-link-info h5 {
    color: #4ecdc4;
    margin: 0 0 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.external-link {
    color: #4ecdc4;
    text-decoration: none;
    word-break: break-all;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.external-link:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-1px);
}

.post-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.rewrite-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rewrite-section h5 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.rewrite-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.form-select {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    min-width: 150px;
}

.rewrite-result {
    margin-top: 20px;
}

.rewrite-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.original-content,
.rewritten-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.original-content h6,
.rewritten-content h6 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 1rem;
}

.rewritten-content {
    border-left: 3px solid #ff6b6b;
}

.original-content {
    border-left: 3px solid #4ecdc4;
}

/* Pulse animation for scroll indicator */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Streaming Status */
.streaming-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.streaming-status.active {
    border-color: #4ecdc4;
}

.streaming-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b6b;
    animation: pulse 2s infinite;
}

.streaming-status.active .status-dot {
    background: #4ecdc4;
}

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

/* Niche Section Styles */
.niche-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #b0b0b0;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #a0a0a0;
    font-style: italic;
}

.platform-checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-weight: normal;
    color: #ffffff;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    accent-color: #ff6b6b;
}

.checkbox-label input[type="checkbox"]:checked + i {
    color: #ff6b6b;
}

.checkbox-label i {
    font-size: 1.2rem;
    color: #b0b0b0;
    transition: color 0.3s ease;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-weight: normal;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.radio-label input[type="radio"] {
    margin: 0;
    accent-color: #ff6b6b;
}

.radio-label input[type="radio"]:checked + span {
    color: #ff6b6b;
    font-weight: 500;
}

.radio-label span {
    color: #ffffff;
    transition: color 0.3s ease;
}

.niche-preview {
    margin-top: 30px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.preview-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.preview-item strong {
    color: #4ecdc4;
    margin-right: 10px;
}

/* Billing Section Styles */
.billing-overview {
    max-width: 800px;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #b0b0b0;
    font-weight: 500;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.stat-label {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin: 0;
}

.billing-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Rewrite Button for Posts */
.post-card .post-actions,
.post-card .post-actions-preview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-rewrite {
    background: linear-gradient(45deg, #4ecdc4, #45b7aa);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-rewrite:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Rewrite Page Styles */
.rewrite-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.rewrite-source, .rewrite-settings, .rewrite-results {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rewrite-page h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #4ecdc4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rewrite-page h3:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.rewrite-source h3:before {
    content: "\f07c";
}

.rewrite-settings h3:before {
    content: "\f085";
}

.rewrite-results h3:before {
    content: "\f00c";
}

.source-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.settings-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.platform-tab {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
    color: #b0b0b0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.platform-tab.active {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border-bottom: 3px solid #4ecdc4;
}

.platform-tab i {
    font-size: 1.2rem;
}

/* Platform Content */
.platform-content {
    position: relative;
    min-height: 300px;
}

.platform-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.platform-pane.active {
    display: block;
}

.rewrite-result-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.rewrite-result-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.result-text {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    white-space: pre-wrap;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 60px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Rewrite Modal Styles */
.rewrite-modal-content {
    max-width: 800px;
    width: 90%;
}

.rewrite-result {
    margin-bottom: 2rem;
}

.result-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4ecdc4;
}

.result-section h3 {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-size: 1.1rem;
}

.result-content {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    white-space: pre-wrap;
    color: #ffffff;
}

.platform-adaptations {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-adaptation {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-adaptation:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.platform-adaptation h4 {
    margin: 0 0 0.5rem 0;
    color: #4ecdc4;
    font-size: 1rem;
    text-transform: capitalize;
}

.platform-adaptation p {
    margin: 0;
    line-height: 1.5;
    color: #ffffff;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #212529;
}

.notification.info {
    background: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Rewrite Button Styles */
.rewrite-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.rewrite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.rewrite-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* Length Selection Buttons */
.length-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.length-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #b0b0b0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.length-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.length-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.length-btn i {
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .nav-item {
        white-space: nowrap;
        min-width: auto;
    }
    
    .usage-stats {
        grid-template-columns: 1fr;
    }
    
    .rewrite-comparison {
        grid-template-columns: 1fr;
    }
    
    .platform-checkboxes {
        flex-direction: column;
        gap: 10px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .rewrite-modal-content {
        width: 95%;
        margin: 2rem auto;
    }
}

/* Enhanced Saved Posts Styles - React Bits Inspired */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(78, 205, 196, 0.6), 0 0 40px rgba(255, 107, 107, 0.3);
    }
}

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

.saved-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeInUp 0.6s ease-out;
}

.saved-posts-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4ecdc4 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.saved-posts-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.saved-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.saved-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.saved-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.saved-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.saved-filter-btn:hover::before {
    left: 100%;
}

.saved-filter-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-color: transparent;
    animation: glow 2s ease-in-out infinite;
    transform: scale(1.05);
}

.saved-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.saved-action-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.saved-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    transition: width 0.3s ease;
}

.saved-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.saved-action-btn:hover::before {
    width: 100%;
}

.saved-action-btn.clear {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.saved-action-btn.clear:hover {
    background: rgba(255, 107, 107, 0.15);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.saved-action-btn.export {
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.saved-action-btn.export:hover {
    background: rgba(78, 205, 196, 0.15);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.saved-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.saved-post-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.saved-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.saved-post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(78, 205, 196, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.saved-post-card:hover .saved-post-title {
    color: #4ecdc4;
}

.saved-post-type {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.saved-post-type.rewritten {
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation: glow 2s ease-in-out infinite;
}

.saved-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    padding-right: 80px;
    transition: color 0.3s ease;
}

.saved-post-content {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.saved-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 18px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

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

.saved-post-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.saved-post-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.saved-post-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.saved-post-btn:hover::before {
    left: 100%;
}

.saved-post-btn.view {
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.saved-post-btn.view:hover {
    background: rgba(78, 205, 196, 0.2);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

.saved-post-btn.copy {
    border-color: #ffc107;
    color: #ffc107;
}

.saved-post-btn.copy:hover {
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.saved-post-btn.remove {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.saved-post-btn.remove:hover {
    background: rgba(255, 107, 107, 0.2);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.saved-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    animation: fadeInUp 0.6s ease-out;
}

.saved-empty-state i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: #666;
    animation: float 3s ease-in-out infinite;
}

.saved-empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #777;
    font-weight: 700;
}

.saved-empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Platform Adaptations Styling */
.platform-adaptations-preview {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4ecdc4;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.platform-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

/* Enhanced Save Button */
.btn-save {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-save::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-save:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.btn-save:hover::before {
    left: 100%;
}

.btn-save:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.btn-save:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Enhanced saved posts controls styling */
.saved-posts-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #b0b0b0;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.filter-select option {
    background: #2a2a2a;
    color: #ffffff;
}

/* Post Footer Styles */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
    flex-wrap: wrap;
}

.view-post-btn {
    color: #4ecdc4;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid #4ecdc4;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-post-btn:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Authentication Styles */
.header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    margin-bottom: 0;
    border-radius: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 1.8rem;
    margin: 0;
}

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

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.user-info i.fa-user-circle {
    font-size: 1.5rem;
    color: #4ecdc4;
}

.user-info i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.open .user-info i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4ecdc4;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive adjustments for header */
/* Pricing Modal Styles */
.pricing-modal {
    max-width: 1000px;
    width: 95%;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.pricing-plan {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pricing-plan.featured {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    transform: scale(1.05);
}

.pricing-plan.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pricing-plan h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.pricing-plan .price {
    font-size: 3rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 20px;
    line-height: 1;
}

.pricing-plan .price span {
    font-size: 1rem;
    color: #b0b0b0;
    font-weight: 400;
}

.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.pricing-plan ul li {
    padding: 8px 0;
    color: #d0d0d0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-plan ul li:before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pricing-plan ul li:has-text('✓'):before {
    background: #28a745;
}

.pricing-plan ul li:has-text('✗'):before {
    background: #dc3545;
}

.pricing-plan .btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    font-weight: 600;
}

.close {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

/* Landing Page Styles */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.landing-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 150px;
}

.hero-features .feature i {
    font-size: 2rem;
    color: #ff6b6b;
}

.hero-features .feature span {
    font-weight: 500;
    color: #ffffff;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 180px;
}

.landing-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.preview-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.preview-post-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.preview-post-card:hover {
    transform: translateY(-5px);
}

.preview-post-card .post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-post-card .subreddit {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.preview-post-card .post-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.preview-post-card .post-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 500;
}

.preview-overlay i {
    color: #ff6b6b;
}

.preview-note {
    text-align: center;
    color: #b0b0b0;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.preview-note i {
    color: #4ecdc4;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-content h1 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .auth-buttons .btn {
        justify-content: center;
        width: 100%;
    }
    
    .user-dropdown {
        right: auto;
        left: 0;
        width: 100%;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .pricing-plan .price {
        font-size: 2.5rem;
    }
    
    .landing-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-container {
        padding: 20px 10px;
    }
    
    .landing-hero {
        padding: 40px 20px;
    }
    
    .landing-preview {
        padding: 30px 20px;
    }
}

/* Load More Button Styles */
.load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    min-width: 200px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.load-more-btn i {
    margin-right: 8px;
}

.load-more-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Subscription Management Styles */
.subscription-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.subscription-status-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.subscription-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.tier-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.tier-free {
    background: #95a5a6;
    color: white;
}

.tier-pro {
    background: #3498db;
    color: white;
}

.tier-premium {
    background: #9b59b6;
    color: white;
}

.usage-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.usage-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.usage-progress {
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.upgrade-plans-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.upgrade-plans-section h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 600;
}

.upgrade-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.plan-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.plan-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
}

.plan-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.plan-period {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.plan-features li {
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.plan-features i {
    color: #27ae60;
    margin-right: 8px;
}

.upgrade-btn {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.upgrade-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .usage-overview {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upgrade-options {
        grid-template-columns: 1fr;
    }
    
    .subscription-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subscription-content {
        padding: 10px;
        gap: 20px;
    }
}

/* Pricing Grid Styles */
/* Pricing Section Styles */
.pricing-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.pricing-title {
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.pricing-subtitle {
    color: #cccccc;
    font-size: 1.1em;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.pricing-card {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.5) 0%, rgba(39, 39, 42, 0.8) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.pricing-card-pro {
    border-color: #ff6b35;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.pricing-card-content {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 24px;
    margin-bottom: 36px;
}

.pricing-tier-name {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 24px;
    display: inline-block;
}

.pricing-amount {
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 500;
    margin-bottom: 12px;
    display: inline-block;
}

.pricing-best-for {
    background: linear-gradient(135deg, #e4e4e7 0%, #71717a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-size: 0.95em;
}

.pricing-benefits {
    flex: 1;
    margin-bottom: 36px;
}

.pricing-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.benefit-icon-check {
    background: #ff6b35;
    color: white;
}

.benefit-icon-cross {
    background: rgba(39, 39, 42, 1);
    color: #71717a;
}

.benefit-text {
    color: #d4d4d8;
    font-size: 0.9em;
}

.pricing-benefit-excluded .benefit-text {
    color: #71717a;
}

.pricing-cta {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.pricing-cta-current {
    background: rgba(255, 255, 255, 0.1);
    color: #71717a;
    cursor: not-allowed;
}

.pricing-cta-primary {
    background: #ff6b35;
    color: white;
}

.pricing-cta-primary:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: translateY(-1px);
}

.pricing-cta-ghost {
    background: transparent;
    color: #d4d4d8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Responsive Design for Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-title {
        font-size: 2em;
    }
    
    .pricing-subtitle {
        font-size: 1em;
    }
    
    .pricing-amount {
        font-size: 2em;
    }
    
    .pricing-card-content {
        padding: 20px;
    }
    
    .popular-badge {
        padding: 6px 16px;
        font-size: 0.7rem;
    }
}

/* Footer Styles */
.app-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding: 40px 0 20px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .app-footer {
        padding: 30px 0 15px;
    }
}