/* ============================================
   VARIABLES
   ============================================ */
:root {
    --reddit-orange: #ff4500;
    --reddit-hover: #ff5722;
    --text-dark: #1a1a1a;
    --text-gray: #6c757d;
    --text-light: #9ca3af;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --sidebar-width: 260px;
}

/* ============================================
   CRITICAL FIX: SIDEBAR AND CONTENT LAYOUT
   ============================================ */

/* Sidebar must be fixed on left */
.sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    z-index: 1000 !important;
    background-color: white;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

/* Main content MUST start after sidebar */
.main-content {
    margin-left: 260px !important;
    padding: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh;
    background-color: var(--bg-light);
    width: calc(100% - 260px) !important;
    max-width: calc(100% - 260px) !important;
    box-sizing: border-box !important;
}

/* Top navbar - reduce height */
.top-navbar {
    margin: 0 !important;
    padding: 0.75rem 1.5rem !important;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

/* Content area - start at top */
.content-area {
    padding: 1.5rem 2rem !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Content sections - no top spacing */
.content-section {
    display: none;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

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

/* Container fluid - proper width */
.container-fluid {
    padding: 0 15px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Row - Bootstrap fix for proper column display */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Force all columns to be visible */
[class*="col-"] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    flex-shrink: 0 !important;
}

/* Ensure pricing cards are visible */
.col-lg-4 {
    width: 33.333333% !important;
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

@media (max-width: 991px) {
    .col-lg-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 767px) {
    .col-lg-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Remove all top spacing */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0 !important;
}

.card {
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Bootstrap spacing fixes */
.mb-4 {
    margin-bottom: 1rem !important;
}

.mt-4, .my-4, .mt-3, .my-3 {
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
}
/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

p {
    color: var(--text-gray);
}


/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-reddit {
    color: var(--reddit-orange) !important;
}

.bg-reddit {
    background-color: var(--reddit-orange) !important;
}

.bg-reddit-light {
    background-color: rgba(255, 69, 0, 0.08);
}

.bg-success-light {
    background-color: rgba(40, 167, 69, 0.08);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.08);
}

.bg-info-light {
    background-color: rgba(23, 162, 184, 0.08);
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.08);
}

.bg-purple-light {
    background-color: rgba(111, 66, 193, 0.08);
}

.text-purple {
    color: #6f42c1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.navbar-brand i {
    font-size: 1.75rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-gray);
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--reddit-orange);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-reddit {
    background-color: var(--reddit-orange);
    color: white;
}

.btn-reddit:hover {
    background-color: var(--reddit-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-reddit {
    border: 2px solid var(--reddit-orange);
    color: var(--reddit-orange);
    background-color: transparent;
}

.btn-outline-reddit:hover {
    background-color: var(--reddit-orange);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-dark {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    background-color: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-badge {
    display: inline-block;

    padding: 0.5rem 1rem;
    background-color: rgba(255, 69, 0, 0.08);
    color: var(--reddit-orange);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

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

.hero-image img {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   SECTIONS
   ============================================ */
.features-section,
.how-it-works-section,
.pricing-section {
    padding: 5rem 0;
}

.how-it-works-section {
    background-color: var(--bg-light);
}

.section-header {
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--reddit-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

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

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.feature-list i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ============================================
   STEP CARDS
   ============================================ */
.step-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--reddit-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--reddit-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(255, 69, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: 2rem;
    color: var(--reddit-orange);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-text {
    color: var(--text-gray);
}

/* ============================================
   PRICING CARDS - SHARP MODERN DESIGN
   ============================================ */
.pricing-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0;
    border: 2px solid var(--border-color);
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    border-color: var(--reddit-orange);
    box-shadow: 0 8px 16px rgba(255, 69, 0, 0.15);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--reddit-orange);
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(255, 69, 0, 0.2);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--reddit-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.price-period {
    font-size: 1rem;
    color: var(--text-gray);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--reddit-orange);
    margin-right: 0.75rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--reddit-orange) 0%, var(--reddit-hover) 100%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;

}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

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

.cta-section .btn-light {
    background-color: white;
    color: var(--reddit-orange);
    font-weight: 700;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--text-dark);
    color: white;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-brand i {
    color: var(--reddit-orange);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: var(--reddit-orange);
    transform: translateY(-2px);
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--reddit-orange);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */
.dashboard-body {
    background-color: var(--bg-light);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}
/* ============================================
   FIX: SIDEBAR AND MAIN CONTENT ALIGNMENT
   ============================================ */

/* Ensure sidebar stays fixed and on top */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width); /* 260px */
    height: 100vh;
    background-color: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto; /* Add scroll if content is too long */
}

/* Main content should account for sidebar width */
.main-content {
    margin-left: var(--sidebar-width); /* 260px */
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width)); /* Prevent overflow */
    position: relative; /* Establish positioning context */
    z-index: 1; /* Below sidebar */
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Top navbar should also account for sidebar */
.top-navbar {
    background-color: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100; /* Below sidebar but above content */
    width: 100%; /* Full width of main-content */
    margin-top: 0 !important;
}

/* Content area fixes - remove negative margins */
.content-area {
    padding: 1.5rem 2rem 2rem 2rem;
    overflow-x: hidden;
    max-width: 100%; /* Prevent horizontal overflow */
    box-sizing: border-box;
    margin-top: 0 !important;
}

/* Ensure all content sections respect boundaries */
.content-section {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

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

/* Container fluid should not have negative positioning */
.container-fluid {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Card alignment fixes */
.card {
    margin-top: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Row alignment fixes */
.row {
    margin-top: 0 !important;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 2000; /* Higher on mobile when open */
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .top-navbar {
        width: 100%;
    }
    
    .content-area {
        padding: 1rem;
    }
}

/* Add mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background-color: var(--reddit-orange);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
}


.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.sidebar-item:hover {
    background-color: var(--bg-light);
    color: var(--reddit-orange);
}

.sidebar-item.active {
    background-color: rgba(255, 69, 0, 0.08);
    color: var(--reddit-orange);
    border-left: 3px solid var(--reddit-orange);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.user-credits {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

/* DELETED DUPLICATE - using the one at top of file */

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--reddit-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* DELETED DUPLICATE - using the one at top of file */

.card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--reddit-orange);
    box-shadow: var(--shadow-md);
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--reddit-orange);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.generated-content {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    line-height: 1.7;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--reddit-orange);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .content-area {
        padding: 1rem;
    }
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background-color: var(--reddit-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--reddit-hover);
}
/* ============================================
   HERO ILLUSTRATION
   ============================================ */
.hero-illustration {
    max-width: 500px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.hero-illustration svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 69, 0, 0.15));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
/* ============================================
   AUTH MODAL
   ============================================ */
.modal-content {
    border-radius: 16px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

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

.divider:not(:empty)::before {
    margin-right: 1rem;
}

.divider:not(:empty)::after {
    margin-left: 1rem;
}

.divider-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-card {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--reddit-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
/* ============================================
   USER PROFILE DROPDOWN
   ============================================ */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 280px;
}

.dropdown-header {
    padding: 1rem !important;
    background-color: var(--bg-light);
    border-radius: 12px 12px 0 0;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--reddit-orange);
    transform: translateX(4px);
}

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

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.3;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--reddit-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
/* Sidebar Upgrade Section */
.upgrade-section {
    padding: 15px;
    margin-top: auto; /* Pushes to the bottom */
    border-top: 1px solid #e0e0e0;
}

.credits-display {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}

.credits-text {
    font-weight: bold;
    color: #333;
}

.btn-upgrade-plan {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: #cb5a5a; /* Muted red from image */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-upgrade-plan:hover {
    background-color: #b84a4a; /* Darker red on hover */
}

/* ============================================
   POPULAR CARD RESPONSIVE SCALING
   ============================================ */
.popular-card {
    transform: scale(1.05);
    transform-origin: center;
}

@media (max-width: 991px) {
    .popular-card {
        transform: scale(1.02);
    }
}

@media (max-width: 767px) {
    .popular-card {
        transform: scale(1);
    }
}

/* ============================================
   GLASSMORPHIC PRICING CARDS
   ============================================ */
.pricing-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.pricing-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.pricing-card-glass:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.1);
}

.pricing-card-glass.popular {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(255, 69, 0, 0.3);
    transform: scale(1.05);
}

.pricing-card-glass.popular:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2) 0%, rgba(255, 255, 255, 0.9) 100%);
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 30px 60px rgba(255, 69, 0, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    z-index: 10;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.pricing-price.alternate {
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-gray);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.pricing-cta {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.pricing-cta.primary {
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2);
}

.pricing-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 69, 0, 0.3);
}

.pricing-cta.secondary {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid #6366f1;
}

.pricing-cta.secondary:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

.pricing-cta.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.pricing-cta.danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.pricing-cta:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.pricing-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pricing-section-title p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.pricing-toggle-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.paywall-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.paywall-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.paywall-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.paywall-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.paywall-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.paywall-benefits {
    background: rgba(255, 69, 0, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.paywall-benefits strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.paywall-benefits ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.paywall-benefits li {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.paywall-benefits i {
    margin-right: 0.75rem;
    color: #ff4500;
    font-weight: 700;
}

