/* pricing.css */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-main: #0a0f1c;
    --bg-secondary: #111827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.95);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 30px 60px rgba(79, 70, 229, 0.15);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        linear-gradient(to bottom right, var(--bg-main) 0%, #111827 100%);
}

/* Light Mode */
body.light-mode {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(203, 213, 225, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.95);
    
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

/* Text fixes for light mode */
body.light-mode .text-white:not(.btn-primary-glow *):not(.glass-panel.text-white) { 
    color: #0f172a !important; 
}
body.light-mode .text-gray-400 { 
    color: #64748b !important; 
}
body.light-mode .text-gray-300 { 
    color: #475569 !important; 
}
body.light-mode .text-gray-500 { 
    color: #6b7280 !important; 
}

/* Navbar */
.nav-glass {
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover:not(.no-hover) {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
}

/* Buttons */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    color: white !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    background-size: 200% 200%;
    border: none;
}

.btn-primary-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.4);
    background-position: 100% 50%;
    animation: gradient-shift 1.5s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Pricing Plan Cards */
.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card.featured {
    border: 2px solid rgba(79, 70, 229, 0.5);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Plan Badges */
.plan-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Billing Toggle */
.billing-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.25rem;
    display: inline-flex;
}

.billing-toggle-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.billing-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Savings Badge */
.savings-badge {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
}

body.light-mode .savings-badge {
    background: linear-gradient(135deg, var(--success), #10b981);
}

/* Feature List */
.feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.feature-item i.fa-check {
    color: var(--success);
    margin-right: 0.75rem;
}

.feature-item i.fa-times {
    color: var(--text-muted);
    margin-right: 0.75rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    color: var(--text-muted);
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

body.light-mode .comparison-table th,
body.light-mode .comparison-table td {
    border-color: rgba(203, 213, 225, 0.8);
}

/* FAQ Cards */
.faq-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Price Display */
.price-display {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

body.light-mode .price-display {
    color: #0f172a;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-dark), var(--secondary));
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 50%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .price-display {
        font-size: 3rem;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .faq-card {
        padding: 1.25rem;
    }
}

/* Blob Effects */
.blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    filter: blur(3rem);
    animation: pulse 4s ease-in-out infinite;
}

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

/* ========== ULTIMATE MOBILE MENU FIX ========== */

/* 1. Menu Container: Isko 100% solid white (Light) ya solid dark banayenge */
#mobileMenu {
    background-color: #ffffff !important; /* Pure Solid White */
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999 !important; /* Sabse upar */
    transition: transform 0.4s ease-in-out !important;
}

/* Dark Mode ke liye solid background */
body:not(.light-mode) #mobileMenu {
    background-color: #0f172a !important; /* Pure Solid Dark Slate */
}

/* 2. Menu khulne par piche ka content hide karne ka logic */
body.menu-open main, 
body.menu-open .max-w-7xl:not(#mobileMenu *) {
    display: none !important; /* Piche ka sab kuch temporary gayab kar dega */
}

/* 3. Light Mode Text visibility */
body.light-mode .mobile-nav-link {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* 4. Close Button visibility */
#mobileCloseBtn {
    color: #64748b !important;
    z-index: 100000 !important;
}


:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #7c3aed;
    --accent: #06b6d4;
}

/* Dark Mode Base Styles */
body {
    background: #0f172a;
    color: #f8fafc;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Light Mode */
body.light-mode {
    background: #f8fafc;
    color: #0f172a;
}

body.light-mode .text-white {
    color: #0f172a !important;
}

body.light-mode .text-gray-400 {
    color: #64748b !important;
}

body.light-mode .text-gray-300 {
    color: #475569 !important;
}

/* Glass Panels */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.8);
}

/* Template Cards */
.template-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body.light-mode .template-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.8);
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

/* Category Buttons */
.category-btn {
    transition: all 0.3s ease;
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

body.light-mode .category-btn:not(.active) {
    background: #e2e8f0;
    color: #475569;
}

/* Modal */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Badges */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Mobile Menu */
.mobile-menu {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
}

body.light-mode .mobile-menu {
    background: rgba(255, 255, 255, 0.95);
}

/* Toast */
.toast {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        backdrop-filter: blur(10px);
    }
}

body.light-mode footer {
    background: #f1f5f9 !important; /* Light gray/white background */
    border-top: 1px solid #e2e8f0 !important;
}

/* Footer Heading Fix */
body.light-mode footer h4 {
    color: #0f172a !important; /* Bold dark text */
}

/* Footer Links and Description Fix */
body.light-mode footer p,
body.light-mode footer ul li a,
body.light-mode footer .text-gray-400,
body.light-mode footer .text-gray-600 {
    color: #475569 !important; /* Darker gray for readability */
}

/* Footer Links Hover Effect */
body.light-mode footer ul li a:hover {
    color: #2563eb !important; /* Blue hover color */
}

/* Social Icons in Footer */
body.light-mode footer .glass-panel {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

/* Bottom Copyright Section Fix */
body.light-mode footer .border-t {
    border-top-color: #e2e8f0 !important;
}

body.light-mode footer .text-blue-400 {
    color: #1d4ed8 !important; /* Deep blue for 'Meraj.Dev' link */
    font-weight: 700;
}

/* Social Media Icons Hover Fix */
body.light-mode footer a.w-10:hover {
    background-color: #e2e8f0 !important;
    color: #1d4ed8 !important;
}

/* Custom Scrollbar for Table */
.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 4px;
}

/* Light Mode Fix for Sticky Column */
body.light-mode .sticky {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    border-right: 1px solid #e2e8f0;
}

/* Pulse effect for Popular Badge */
@keyframes glow-badge {
    0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.8); }
}

.pricing-card.featured .absolute span {
    animation: glow-badge 2s infinite;
}

.faq-card p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
}

/* =========================================
   MOBILE BOTTOM NAVIGATION STYLES
   ========================================= */

/* 1. Body Padding (Taaki content nav bar ke piche na chupe) */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px !important; /* Space for bottom bar */
    }
}

/* 2. Dark Mode Styles (Default) */
#bottomNav {
    background: rgba(15, 23, 42, 0.95); /* Slate 900 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Center Button Border color matching bg */
#bottomNav .rounded-full {
    border-color: #0f172a; 
}

/* Active Link Color (Blue) */
.bottom-nav-item.active {
    color: #60a5fa; /* Blue 400 */
}
.bottom-nav-item.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

/* 3. Light Mode Overrides */
body.light-mode #bottomNav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

body.light-mode #bottomNav .text-gray-400 {
    color: #64748b !important; /* Slate 500 */
}

body.light-mode #bottomNav .rounded-full {
    border-color: #ffffff !important; /* White border for center button */
}

body.light-mode .bottom-nav-item.active {
    color: #2563eb !important; /* Darker Blue */
}

/* 4. iPhone Safe Area Support */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* =========================================
   TOAST NOTIFICATION MOBILE FIX
   Paste at the end of home.css
   ========================================= */

.toast-notification {
    /* Desktop Default */
    bottom: 24px !important;
}

@media (max-width: 768px) {
    .toast-notification {
        /* Mobile: Lift it above Bottom Nav */
        bottom: 90px !important; 
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        display: flex;
        justify-content: center;
    }
}
/* =========================================
   USER DROPDOWN LIGHT MODE FIX
   ========================================= */

/* 1. Dropdown Container Background */
body.light-mode .group:hover .absolute {
    background-color: #ffffff !important;   /* Pure White Background */
    border-color: #e2e8f0 !important;       /* Light Grey Border */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; /* Soft Shadow */
}

/* 2. Header Section (User Name & Email) */
body.light-mode .group .absolute .border-b {
    border-bottom-color: #f1f5f9 !important; /* Light separator line */
}

body.light-mode .group .absolute p.font-bold {
    color: #1e293b !important; /* Dark Text for Name */
}

body.light-mode .group .absolute p.text-gray-400 {
    color: #64748b !important; /* Medium Grey for Email */
}

/* 3. Dropdown Links (Dashboard, Logout) */
body.light-mode .group .absolute a {
    color: #334155 !important; /* Dark Grey Text */
}

/* 4. Hover State for Links */
body.light-mode .group .absolute a:hover {
    background-color: #f8fafc !important; /* Very Light Grey on Hover */
    color: #2563eb !important; /* Blue Text on Hover */
}

/* 5. Logout Link Specific */
body.light-mode .group .absolute a.text-red-400 {
    color: #ef4444 !important; /* Red Text */
}
body.light-mode .group .absolute a.text-red-400:hover {
    background-color: #fef2f2 !important; /* Light Red Background */
    color: #dc2626 !important; /* Darker Red on Hover */
}

/* 6. Main Button (User Icon + Name) in Navbar */
body.light-mode .group > button {
    background-color: rgba(0, 0, 0, 0.05) !important; /* Light transparent bg */
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .group > button .text-white {
    color: #1e293b !important; /* Dark Name Text */
}

body.light-mode .group > button .text-gray-400 {
    color: #64748b !important; /* Dark "Welcome" Text */
}

body.light-mode .group > button:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.5) !important; /* Blue border on hover */
}

/* =========================================
   NAVBAR LIGHT MODE FIX
   (Templates, Pricing, Interview Prep)
========================================= */

/* 1. Navbar Background White karna */
body.light-mode nav.nav-glass,
body.light-mode nav {
    background-color: rgba(255, 255, 255, 0.95) !important; /* White Background */
    border-bottom: 1px solid #e2e8f0 !important; /* Light Border */
    backdrop-filter: blur(12px);
}

/* 2. Links aur Text ko Black karna */
body.light-mode nav .text-gray-300,
body.light-mode nav .nav-link {
    color: #4b5563 !important; /* Dark Gray Text */
}

/* 3. Hover Effect on Links */
body.light-mode nav .nav-link:hover {
    color: #2563eb !important; /* Blue Hover */
}

/* 4. Logo Text (ATS Pro) ko Black karna */
body.light-mode nav .text-white {
    color: #111827 !important; /* Black Text */
}

/* 5. Mobile Hamburger Menu Button */
body.light-mode #mobileMenuBtn {
    color: #111827 !important; /* Black Icon */
}

/* 6. Mobile Menu Overlay Background */
body.light-mode #mobileMenu {
    background-color: rgba(255, 255, 255, 0.98) !important;
    color: #000 !important;
}

/* 7. Mobile Menu Links */
body.light-mode #mobileMenu a {
    color: #374151 !important;
}
body.light-mode #mobileMenu a:hover {
    background-color: #f3f4f6 !important; /* Light Gray Hover */
}

/* 8. User Dropdown / Glass Panels */
body.light-mode nav .glass-panel {
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: #000 !important;
}