/* Mobile First Premium Dark Theme - PixVibe */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --bg-base: #0d1117;
    --bg-panel: rgba(22, 27, 34, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #00c6ff;
    --primary-gradient: linear-gradient(135deg, #0078D4, #00c6ff);
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.5);
    --radius-lg: 20px;
    --radius-md: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* For mobile browsers */
    overflow: hidden;
}

/* Header */
header {
    padding: 15px 20px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.user-quota {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 198, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px; /* Space for bottom nav */
}

.view-section {
    display: none;
    animation: fadeScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeScaleIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Panels / Cards */
.panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}
.panel-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 25px 0;
    line-height: 1.5;
}

/* Inputs & Buttons */
.input-control {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
    font-family: inherit;
    -webkit-appearance: none;
    transition: border-color 0.3s;
}
.input-control:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.2);
    margin-bottom: 15px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:active {
    transform: scale(0.98);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.btn-danger {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    box-shadow: 0 8px 20px rgba(255, 77, 79, 0.2);
}

/* Drop Zone / Video Selection */
.drop-zone {
    border: 2px dashed rgba(0, 198, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 50px 20px;
    text-align: center;
    background-color: rgba(0, 198, 255, 0.02);
    transition: background-color 0.3s;
}
.drop-zone:active {
    background-color: rgba(0, 198, 255, 0.05);
}
.drop-zone p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0 5px 0;
    color: var(--primary);
}
.drop-zone span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Video Editor */
#canvasWrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    touch-action: none;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#sourceVideo {
    width: 100%;
    display: block;
}
#overlayCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Progress */
.track {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.bar {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.3s;
    border-radius: 5px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 15px 0 25px 0; /* Extra padding for iOS home indicator */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s;
}
.nav-btn.active {
    color: var(--primary);
}
.nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: transform 0.3s;
}
.nav-btn.active svg {
    transform: translateY(-3px);
}

/* Pricing Grid */
.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.pricing-card.popular {
    border-color: rgba(0, 198, 255, 0.4);
    background: rgba(0, 198, 255, 0.03);
}
.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--primary-gradient);
}
.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 15px 0;
}

/* Profile Section */
.profile-info {
    text-align: center;
    padding: 20px 0;
}
.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.3);
}
.profile-email {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}
.profile-plan {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Landing Page Styles */
.landing-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto !important; /* Fix for footer being cut off */
}

.landing-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2rem 1.5rem;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.landing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.4;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: #00f2fe;
    top: -50px;
    left: -50px;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: #4facfe;
    bottom: 50px;
    right: -20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 320px;
    line-height: 1.5;
}

.primary-btn {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: white;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 3rem;
    display: inline-block;
}

.primary-btn:active {
    transform: scale(0.95);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: white;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.landing-footer {
    text-align: center;
    padding-top: 2rem;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-links .divider {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Legal Pages Styles */
.legal-body {
    background: var(--bg-base);
    color: var(--text-main);
    padding: 1.5rem;
    line-height: 1.6;
    overflow-y: auto !important; /* Fix for content being cut off */
}

.legal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.back-link {
    color: #00f2fe;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content h3 {
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
