/* --- Google Font Import & CSS Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- Light Mode (By Default) --- */
:root { --bg-gradient-start: #f4f7fc; --bg-gradient-end: #e9ecf2; --primary-accent: #007bff; --secondary-accent: #6c757d; --text-primary: #212529; --text-secondary: #6c757d; --glass-bg: rgba(255, 255, 255, 0.7); --glass-border: rgba(0, 0, 0, 0.1); --shadow-color: rgba(0, 0, 0, 0.1); }

/* --- Dark Mode --- */
html[data-theme="dark"] { --bg-gradient-start: #1a237e; --bg-gradient-end: #0d124d; --primary-accent: #00e5ff; --secondary-accent: #ff4081; --text-primary: #f5f5f5; --text-secondary: #bdbdbd; --glass-bg: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.2); --shadow-color: rgba(0, 0, 0, 0.5); }

/* --- Global & Body Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--text-primary); background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end)); background-attachment: fixed; height: 100vh; overflow-x: hidden; position: relative; transition: background-color 0.3s; }
body.no-scroll { overflow: hidden; }
.auth-body { }
.landing-body { height: auto; }

/* --- LANDING PAGE STYLES --- */
.landing-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; position: sticky; top: 0; z-index: 1000; background: var(--glass-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); }
.logo-container { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--primary-accent); text-decoration: none; }
.main-nav { margin-left: auto; }
.main-nav a { color: var(--text-secondary); text-decoration: none; margin: 0 1rem; font-weight: 400; transition: color 0.3s, text-shadow 0.3s; }
.main-nav a:hover { color: var(--primary-accent); }
.auth-buttons { display: flex; gap: 1rem; margin-left: 1rem; }

/* --- Theme Switcher --- */
.theme-switch-wrapper { display: flex; align-items: center; margin-left: 20px; }
.theme-switch { display: inline-block; height: 34px; position: relative; width: 60px; }
.theme-switch input { display: none; }
.slider { background-color: var(--bg-gradient-end); border: 1px solid var(--glass-border); bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; }
.slider:before { background-color: var(--primary-accent); bottom: 4px; content: ""; height: 24px; left: 4px; position: absolute; transition: .4s; width: 24px; }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.sun-icon, .moon-icon { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1rem; color: #f1c40f; transition: opacity 0.4s; }
.sun-icon { left: 8px; }
.moon-icon { right: 8px; color: #fff; }
html[data-theme="light"] .sun-icon { opacity: 1; }
html[data-theme="light"] .moon-icon { opacity: 0; }
html[data-theme="dark"] .sun-icon { opacity: 0; }
html[data-theme="dark"] .moon-icon { opacity: 1; }

/* --- Hamburger Menu (Shared) --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 2rem; height: 2rem; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; margin-left: 1rem; }
.hamburger-menu span { width: 2rem; height: 0.25rem; background: var(--text-primary); border-radius: 10px; transition: all 0.3s linear; position: relative; transform-origin: 1px; }
.hamburger-menu.is-active span:nth-child(1) { transform: rotate(45deg); }
.hamburger-menu.is-active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-menu.is-active span:nth-child(3) { transform: rotate(-45deg); }

/* --- Landing Page Mobile Nav --- */
.mobile-nav { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; position: fixed; top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh; background: var(--bg-gradient-end); box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 999; transition: right 0.4s ease-in-out; }
.mobile-nav.is-active { right: 0; }
.mobile-nav a { color: var(--text-primary); text-decoration: none; font-size: 1.5rem; font-weight: 600; }
.mobile-nav hr { width: 80%; border-color: var(--glass-border); }
.mobile-nav .btn-primary, .mobile-nav .btn-secondary { width: 80%; text-align: center; justify-content: center; }

/* --- Hero Section & other landing styles --- */
.hero-section { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 4rem 5%; min-height: 90vh; gap: 2rem; }
.hero-content { flex: 1; text-align: center; }
.hero-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-image-container { flex: 1; text-align: center; }
.hero-image-container img { display: block; width: 100%; max-width: 450px; height: auto; margin: 0 auto; }
.features-section { padding: 5rem 5%; }
.text-center { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { text-align: center; padding: 2.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 15px; transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-color); }
.feature-card i { font-size: 3rem; color: var(--primary-accent); margin-bottom: 1.5rem; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); }
.cta-section { padding: 5rem 5%; }
.cta-card { padding: 4rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.cta-card p { max-width: 600px; }
.landing-footer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 2rem 5%; border-top: 1px solid var(--glass-border); background: var(--glass-bg); }
.social-icons { display: flex; gap: 1.5rem; }
.social-icons a { color: var(--text-secondary); font-size: 1.2rem; transition: color 0.3s; }
.social-icons a:hover { color: var(--primary-accent); }
.btn-primary { padding: 1rem 2rem; border: none; border-radius: 10px; background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent)); color: #000; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem; text-decoration: none; }
html[data-theme="dark"] .btn-primary { color: #fff; }
.btn-secondary { padding: 0.9rem 2rem; border: 1px solid var(--primary-accent); border-radius: 10px; background: transparent; color: var(--primary-accent); font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.3s; }
.btn-secondary:hover { background: var(--glass-bg); }
.btn-large { padding: 1.2rem 2.5rem; font-size: 1.2rem; }
.grow-shrink { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.grow-shrink:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); }
.text-3d { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb; }
html[data-theme="dark"] .text-3d { text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15); }

/* --- AUTH & DASHBOARD SHARED STYLES --- */
.main-container { display: flex; justify-content: center; align-items: center; flex-direction: column; height: 100%; padding: 2rem; }
.auth-header { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; z-index: 10; }
.back-to-home { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.back-to-home:hover { color: var(--primary-accent); }
.glass-card { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2.5rem; box-shadow: 0 15px 35px var(--shadow-color); }
.auth-card { width: 100%; max-width: 420px; text-align: center; }
.subtitle { margin-top: 0.5rem; margin-bottom: 2rem; color: var(--text-secondary); }
.input-group { position: relative; margin-bottom: 1.5rem; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.input-group input { width: 100%; padding: 1rem 1rem 1rem 3rem; background: transparent; border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-primary); font-size: 1rem; outline: none; transition: all 0.3s ease; }
.input-group input:focus { border-color: var(--primary-accent); box-shadow: 0 0 15px var(--primary-accent); }
.auth-switch { margin-top: 1.5rem; font-size: 0.9rem; }
.auth-switch a { color: var(--primary-accent); text-decoration: none; font-weight: 600; transition: text-shadow 0.3s ease; }
.auth-switch a:hover { text-shadow: 0 0 10px var(--primary-accent); }
.dashboard-body { display: flex; flex-direction: column; height: auto; min-height: 100vh; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: var(--glass-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100; }
/* FIX: Stylish Search Bar */
.search-container { position: relative; width: 100%; max-width: 500px; }
.search-container input { width: 100%; padding: 0.8rem 1rem 0.8rem 2.5rem; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-primary); outline: none; transition: all 0.3s; }
html[data-theme="light"] .search-container input { background: rgba(0,0,0,0.05); }
.search-container input::placeholder { color: var(--text-secondary); }
.search-container input:focus { border-color: var(--primary-accent); box-shadow: 0 0 10px var(--primary-accent); }
.search-container i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.desktop-header-items { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
.header-right-items { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.user-profile { display: flex; align-items: center; gap: 0.8rem; position: relative; cursor: pointer; }
.user-profile img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary-accent); }
.dropdown-menu { position: absolute; top: 120%; right: 0; background: var(--glass-bg); backdrop-filter: blur(15px); border-radius: 10px; border: 1px solid var(--glass-border); width: 180px; overflow: hidden; box-shadow: 0 10px 20px var(--shadow-color); transition: all 0.3s ease; transform: translateY(10px); opacity: 0; z-index: 101; }
.dropdown-menu.hidden { display: block; } /* To make toggle work */
.dropdown-menu.active { opacity: 1; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.8rem 1.2rem; color: var(--text-primary); text-decoration: none; transition: background-color 0.2s; display: flex; align-items: center; gap: 0.8rem; }
.dropdown-menu a:hover { background-color: var(--glass-bg); }
.dashboard-main { padding: 2rem; flex-grow: 1; }
.section-title { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-primary); text-shadow: 0 2px 5px var(--shadow-color); }
.stats-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; background: var(--glass-bg); border-radius: 15px; border: 1px solid var(--glass-border); transition: transform 0.3s, box-shadow 0.3s; }
.stat-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-color); }
.stat-card i { font-size: 2.5rem; color: var(--primary-accent); }
.stat-card h3 { color: var(--text-secondary); font-weight: 400; }
.stat-card p { font-size: 1.5rem; font-weight: 600; }
.actions-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.actions-section div { display: flex; gap: 1rem; }
.files-table { background: var(--glass-bg); border-radius: 15px; border: 1px solid var(--glass-border); overflow: hidden; }
.table-header, .table-row { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr; padding: 1rem 1.5rem; align-items: center; transition: background-color 0.3s; }
.table-header { font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--glass-border); }
.table-row { border-bottom: 1px solid var(--glass-border); }
.table-row:last-child { border-bottom: none; }
.table-row:hover { background-color: var(--glass-bg); }
.file-icon { margin-right: 1rem; font-size: 1.2rem; }
.file-icon.pdf { color: #f40f02; } .file-icon.image { color: #a55eea; } .file-icon.word { color: #2b579a; } .file-icon.zip { color: #f9ca24; }
.action-icons i { cursor: pointer; margin: 0 0.5rem; color: var(--text-secondary); transition: color 0.3s, transform 0.3s; }
.action-icons i:hover { color: var(--primary-accent); transform: scale(1.2); }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- Dashboard Mobile Nav --- */
.mobile-nav-dashboard { display: none; flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1.5rem; position: fixed; top: 73px; right: -100%; width: 90%; max-width: 400px; height: calc(100vh - 73px); background: var(--bg-gradient-end); box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 999; transition: right 0.4s ease-in-out; }
.mobile-nav-dashboard.is-active { right: 0; }
.mobile-nav-dashboard .user-profile { justify-content: center; }
.mobile-nav-dashboard .theme-switch-wrapper { justify-content: center; margin-left: 0; }
.mobile-nav-dashboard hr { width: 100%; border-color: var(--glass-border); }
.mobile-nav-dashboard .logout-link { color: var(--text-primary); text-decoration: none; font-size: 1.2rem; text-align: center; padding: 1rem; background: var(--glass-bg); border-radius: 10px; }

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .main-nav, .auth-buttons { display: none !important; }
    .landing-header .hamburger-menu { display: flex !important; }
    .dashboard-header .desktop-header-items { display: none; }
    .dashboard-header .hamburger-menu { display: flex; }
    .mobile-nav-dashboard { display: flex; }
}
@media (max-width: 768px) {
    .hero-section { flex-direction: column; text-align: center; padding: 2rem 5%; }
    .hero-title { font-size: 2.2rem; }
    .hero-content { order: 2; }
    .hero-image-container { order: 1; margin-bottom: 2rem; }
    .cta-card .text-3d { font-size: 1.8rem; line-height: 1.3; }
    .dashboard-main { padding: 1rem; }
    .actions-section { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .table-header { display: none; }
    .table-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem; }
    .table-row div:nth-child(2)::before { content: "Size: "; font-weight: 600; color: var(--text-secondary); }
    .table-row div:nth-child(3)::before { content: "Date: "; font-weight: 600; color: var(--text-secondary); }
    .action-icons { text-align: right; margin-top: 1rem; }
}
/* --- ... (Saara purana CSS code waisa hi rahega) ... --- */

/* --- AUTH & DASHBOARD SHARED STYLES --- */
/* ... (Yahan tak sab kuch same hai) ... */

/* --- NEW: Profile Page Styles --- */
.profile-sections-wrapper { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .profile-sections-wrapper { grid-template-columns: 1fr 1fr; } }
.profile-section { padding: 2rem; }
.profile-section h3 { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: left; }
.profile-section form { display: flex; flex-direction: column; gap: 1rem; }
.profile-section .input-group { margin-bottom: 0; }
.storage-info { display: flex; flex-direction: column; gap: 0.8rem; }
.progress-bar-container { width: 100%; height: 20px; background: var(--glass-bg); border-radius: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent)); border-radius: 10px; }
.danger-zone { border-color: #ff4d4d; }
.danger-zone h3, .danger-zone p { color: #ff4d4d; }
.btn-danger { padding: 1rem 2rem; border: none; border-radius: 10px; background: #c82333; color: #fff; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.btn-danger:hover { background-color: #a51c2a; }
.back-to-dash-mobile { display: none; color: var(--text-primary); text-decoration: none; }

/* --- NEW: Forgot Password Link on Login Page --- */
.forgot-password-link { text-align: right; margin-bottom: 1.5rem; }
.forgot-password-link a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.forgot-password-link a:hover { color: var(--primary-accent); }

/* --- NEW: Error Page (404) Styles --- */
.error-page-card { text-align: center; }
.error-code { font-size: 8rem; font-weight: 700; color: var(--primary-accent); line-height: 1; text-shadow: 0 10px 20px var(--shadow-color); }
.error-title { font-size: 2.5rem; margin-top: 1rem; }
.error-message { color: var(--text-secondary); margin-top: 0.5rem; margin-bottom: 2rem; }


/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    /* ... (Yahan tak sab kuch same hai) ... */
    .dashboard-header .desktop-header-items { display: none; }
    .dashboard-header .hamburger-menu { display: flex; }
    .mobile-nav-dashboard { display: flex; }
    .profile-header .desktop-header-items { display: none; } /* Hide on profile page too */
    .back-to-dash-mobile { display: flex; align-items: center; gap: 0.5rem; }
}
/* ... (Baaki saara responsive code waisa hi rahega) ... */
/* --- NEW STYLES FOR PRICING & SUPPORT PAGES --- */

.page-section { padding: 5rem 5%; }
.section-subtitle { max-width: 600px; margin: -2rem auto 3rem auto; color: var(--text-secondary); }

/* Pricing Page Styles */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.pricing-card { text-align: center; padding: 2.5rem; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-color); }
.pricing-card h3 { font-size: 1.8rem; }
.price { font-size: 2.5rem; font-weight: 700; margin: 1rem 0; color: var(--primary-accent); }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-card ul { list-style: none; margin: 1.5rem 0; }
.pricing-card ul li { padding: 0.5rem 0; color: var(--text-secondary); }
.pricing-card ul li i { margin-right: 0.5rem; color: var(--primary-accent); }
.pricing-card ul li i.fa-times { color: var(--secondary-accent); }
.recommended-badge { position: absolute; top: 0; right: -45px; background: var(--primary-accent); color: #000; padding: 0.5rem 3rem; transform: rotate(45deg); font-weight: 600; font-size: 0.9rem; }
html[data-theme="dark"] .recommended-badge { color: #fff; }

/* Support Page Styles */
.faq-container, .contact-container { max-width: 800px; margin: 3rem auto 0 auto; }
.faq-container h3, .contact-container h3 { margin-bottom: 1.5rem; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px; margin-bottom: 1rem; }
.faq-item summary { font-weight: 600; padding: 1.5rem; cursor: pointer; list-style: none; /* remove default arrow */ position: relative; }
.faq-item summary::-webkit-details-marker { display: none; } /* remove default arrow for Chrome */
.faq-item summary::after { content: '\f078'; /* Font Awesome down arrow */ font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 1.5rem; transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-secondary); border-top: 1px solid var(--glass-border); margin-top: 1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form .input-group { margin: 0; }
.contact-form textarea { width: 100%; padding: 1rem; background: transparent; border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-primary); font-size: 1rem; font-family: 'Poppins', sans-serif; outline: none; transition: all 0.3s ease; resize: vertical; }
.contact-form textarea:focus { border-color: var(--primary-accent); box-shadow: 0 0 15px var(--primary-accent); }