/* style.css - Modern Dark Mobile-First UI for VideoVault */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.85rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00ff88;
}

.mobile-menu-toggle {
    font-size: 2.2rem;
    cursor: pointer;
    color: #fff;
    display: none;
}

/* Hero Section - BlackHole Style */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a0033 0%, #000000 100%);
    padding: 2rem 1rem;
}

.hero-content {
    max-width: 720px;
    width: 100%;
}

.hero h1 {
    font-size: 3.4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.45rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    font-weight: 400;
}

.download-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.download-form input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.35rem;
    padding: 18px 24px;
    border-radius: 20px;
}

.download-form button {
    width: 100%;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    color: #000;
    border: none;
    padding: 18px 32px;
    border-radius: 9999px;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    transition: transform 0.2s;
}

.download-form button:active {
    transform: scale(0.96);
}

.loader {
    width: 26px;
    height: 26px;
    border: 4px solid rgba(0,0,0,0.3);
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.download-form button.loading .loader {
    display: inline-block;
}

.download-form button.loading span:first-child {
    display: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 16px 24px;
    border-radius: 9999px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 90%;
    text-align: center;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #1a0033, #000);
}

.auth-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.auth-form input {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    color: #fff;
    font-size: 1.15rem;
}

.auth-form input::placeholder {
    color: #aaa;
}

.auth-form button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    color: #000;
    border: none;
    border-radius: 9999px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.9;
}

.auth-switch a {
    color: #00ff88;
    text-decoration: none;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: #888;
    text-decoration: none;
}

/* Dashboard */
.dashboard-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.2rem;
}

.dashboard-container h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.plan-badge {
    background: #00ff88;
    color: #000;
    padding: 6px 18px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-upgrade {
    display: inline-block;
    margin-top: 1rem;
    padding: 14px 32px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    color: #000;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.history-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.history-info small {
    color: #aaa;
    font-size: 0.95rem;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-badge.completed { background: #00ff88; color: #000; }
.status-badge.pending   { background: #ffaa00; color: #000; }
.status-badge.failed    { background: #ff3366; color: #fff; }

.download-btn {
    background: #00ff88;
    color: #000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
}

/* Pricing */
.pricing-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.2rem;
}

.pricing-container h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.current-plan {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.plan-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.plan-card.popular {
    border: 3px solid #00ff88;
    position: relative;
}

.plan-card.popular::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff88;
    color: #000;
    padding: 4px 20px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.plan-card ul {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.plan-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.btn-primary, .btn-disabled {
    width: 100%;
    padding: 16px;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, #00ff88, #00ccff);
    color: #000;
    border: none;
}

.btn-disabled {
    background: #333;
    color: #888;
    cursor: not-allowed;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.7rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.2rem;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .download-form input {
        font-size: 1.2rem;
        padding: 16px 20px;
    }
    
    .download-form button {
        font-size: 1.25rem;
        padding: 16px;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .download-form {
        flex-direction: row;
        padding: 12px 20px;
        gap: 12px;
    }
    
    .download-form input {
        margin: 0;
    }
    
    .download-form button {
        width: auto;
        margin-top: 0;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}