:root {
    --primary-color: #6e44ff;
    --primary-hover: #5a36db;
    --secondary-color: #50c1e9;
    --accent-color: #ff8a5b;
    --text-dark: #333;
    --text-light: #777;
    --text-lightest: #aaa;
    --bg-light: #f9f9fb;
    --bg-white: #ffffff;
    --bg-dark: #242428;
    --border-color: #e6e6e6;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-cta {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 28px;
    font-size: 18px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links ul {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

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

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 8%;
    background: linear-gradient(135deg, #f9f9fb 0%, #f0f0f5 100%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
    padding: 80px 8%;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: transform var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.limit-info {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

/* Pricing Section */
.pricing {
    padding: 80px 8%;
    background-color: var(--bg-light);
    text-align: center;
}

.pricing-card {
    background-color: var(--bg-white);
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.currency {
    font-size: 24px;
    vertical-align: top;
    position: relative;
    top: 5px;
}

.period {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 400;
}

.price-note {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.benefits {
    text-align: left;
    margin: 30px 0;
}

.benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits i {
    color: var(--success-color);
}

/* Video Creation Section */
.create-video {
    padding: 80px 8%;
    background-color: var(--bg-white);
}

.creator-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-section {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.text-prompt {
    margin-bottom: 30px;
}

.text-prompt label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.text-prompt textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    font-family: inherit;
    resize: none;
    font-size: 16px;
}

.char-counter {
    text-align: right;
    color: var(--text-lightest);
    font-size: 14px;
    margin-top: 5px;
}

.model-selection {
    margin-bottom: 30px;
}

.model-selection h3 {
    margin-bottom: 15px;
}

.model-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.model-option {
    position: relative;
}

.model-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.model-option label {
    display: block;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.model-option input:checked + label {
    border-color: var(--primary-color);
    background-color: rgba(110, 68, 255, 0.05);
}

.model-option h4 {
    margin-bottom: 5px;
}

.model-option p {
    color: var(--text-light);
    font-size: 14px;
}

.remaining {
    margin-top: 10px;
    font-weight: 600;
    color: var(--accent-color);
}

.credit-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-weight: 600;
}

.preview-section {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-lightest);
}

.preview-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(110, 68, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.estimated-time {
    color: var(--text-lightest);
    font-size: 14px;
}

.video-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Dashboard Section */
.dashboard {
    padding: 80px 8%;
    background-color: var(--bg-light);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
}

.subscription-info {
    line-height: 2;
}

.subscription-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.subscription-info .active {
    color: var(--success-color);
}

.no-videos {
    color: var(--text-lightest);
    text-align: center;
    padding: 40px 0;
}

.recent-videos {
    max-height: 300px;
    overflow-y: auto;
}

/* Gallery Section */
.gallery {
    padding: 80px 8%;
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.gallery-item-overlay h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-item-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 8% 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-group a {
    color: #aaa;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #aaa;
    font-size: 20px;
}

.social-icons a:hover {
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 16px;
}

.form-action {
    margin-top: 30px;
}

.form-action .btn {
    width: 100%;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Subscription Modal */
.subscription-details {
    text-align: center;
    margin-bottom: 30px;
}

.sub-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.sub-features {
    margin: 20px 0;
    text-align: left;
}

.card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 5%;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        margin: 0 auto 30px;
    }
    
    .creator-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: var(--bg-white);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 40px 0;
        transition: all var(--transition-speed) ease;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .model-options {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
}
