/* CSS Variables for Dark Theme */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-hover: #333333;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --accent-primary: #8b5cf6;
    --accent-secondary: #a855f7;
    --accent-tertiary: #4a9eff;
    --border-color: #404040;
    --border-light: #606060;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #7c3aed;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 15px;
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Main Content */
.main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Form Container */
.form-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.form-container h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Styles */
.video-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Button Styles */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Recent Videos */
.recent-videos {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.recent-videos h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.recent-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateX(5px);
}

.recent-thumbnail {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.recent-info {
    flex: 1;
}

.recent-title {
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Features */
.features {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
    height: fit-content;
}

.features h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 8px 0;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-loader {
    font-size: 1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.hidden { display: none !important; }
.visible { display: block !important; }

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 16px;
    margin-bottom: 40px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Auth Forms */
.auth-container {
    max-width: 450px;
    margin: 0 auto 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-tab.active {
    background: var(--accent-primary);
    color: white;
}

.auth-tab:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.auth-form {
    display: none;
}

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

.auth-form h2 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-item {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* User Interface */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.user-info h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.user-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.user-actions {
    display: flex;
    gap: 15px;
}

/* Subscription Info in Header */
.subscription-info {
    margin: 10px 0;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}

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

.subscription-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.subscription-plan {
    display: inline;
    color: var(--text-secondary);
}

.subscription-plan .plan-name {
    color: var(--accent-primary);
    font-weight: 600;
}

.subscription-expires {
    display: inline;
    margin-left: 12px;
    color: var(--text-secondary);
}

.subscription-expires .days-remaining {
    color: var(--accent-tertiary);
    font-weight: 500;
}

.subscription-expires.warning {
    color: var(--warning);
}

.subscription-expires.expired {
    color: var(--error);
}

.subscription-renew-link {
    display: inline;
    margin-left: 12px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.subscription-renew-link:hover {
    text-decoration: underline;
    color: var(--accent-secondary);
}

.user-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-item {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item.active {
    background: var(--accent-primary);
    color: white;
}

.nav-item:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.user-main {
    display: block;
}

.content-section {
    display: none;
}

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

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-heavy);
}

.project-content {
    padding: 15px;
    cursor: pointer;
}

.project-thumbnail {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 6px;
}

.project-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.project-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-views,
.project-comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.platform-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    border-radius: 2px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.platform-icon:hover {
    opacity: 1;
}

.project-access {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.project-access.private { color: #6c757d; }
.project-access.password { color: #ffc107; }
.project-access.public { color: #28a745; }

/* Project Actions */
.project-actions {
    display: flex;
    gap: 8px;
    padding: 0 15px 15px;
    justify-content: center;
}

.project-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-btn i {
    color: white;
    font-size: 0.9rem;
}

.project-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    margin-bottom: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.project-btn:hover::after {
    opacity: 1;
}

.btn-settings {
    background: var(--accent-primary);
}

.btn-settings:hover {
    background: #4a90e2;
    transform: translateY(-2px) scale(1.05);
}

.btn-delete {
    background: #dc3545;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px) scale(1.05);
}

.btn-copy {
    background: #28a745;
}

.btn-copy:hover {
    background: #218838;
    transform: translateY(-2px) scale(1.05);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Project Settings Modal */
.project-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.project-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-settings-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.settings-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.4rem;
}

.settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.settings-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.settings-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.access-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-option {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.access-option:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.access-option.selected {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

.access-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.access-option input[type="radio"] {
    margin: 0;
}

.access-option-title {
    font-weight: 600;
    color: var(--text-primary);
}

.access-option-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 25px;
}

.password-field {
    margin-top: 15px;
    display: none;
}

.password-field.show {
    display: block;
}

.password-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.link-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.link-section h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

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

.link-input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: monospace;
}

.copy-link-btn {
    padding: 8px 12px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.copy-link-btn:hover {
    background: #4a90e2;
}

.settings-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.settings-actions .btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save {
    background: var(--accent-primary);
    color: white;
    border: none;
}

.btn-save:hover {
    background: #4a90e2;
}

.btn-cancel {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 30px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* Notification alerts in top right corner */
.alert-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    margin-bottom: 0;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.alert-notification.alert-show {
    opacity: 1;
    transform: translateX(0);
}

.alert-notification.alert-success {
    background: rgba(76, 175, 80, 0.9);
    border-color: #28a745;
    color: white;
}

.alert-notification.alert-error {
    background: rgba(244, 67, 54, 0.9);
    border-color: #dc3545;
    color: white;
}

.alert-notification.alert-warning {
    background: rgba(255, 152, 0, 0.9);
    border-color: #ffc107;
    color: white;
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
    text-align: left !important;
    margin-bottom: 0 !important;
}

.landing-header .header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.video-preview {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 15px;
}

.comment-demo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: slideInComment 0.5s ease forwards;
}

.comment-item:nth-child(1) { animation-delay: 1s; }
.comment-item:nth-child(2) { animation-delay: 1.5s; }
.comment-item:nth-child(3) { animation-delay: 2s; }

@keyframes slideInComment {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections */
.features-section,
.how-it-works,
.cta-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.feature-card {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.feature-card .feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-top: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Modal Footer */
.modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-footer p {
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 5px;
    }
    
    .landing-header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-section,
    .how-it-works,
    .cta-section {
        padding: 60px 0;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-content h3 {
        font-size: 2rem;
    }
    
    .user-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        margin: 0 0 30px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }

    /* Notification alerts on mobile */
    .alert-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    /* Project buttons on mobile */
    .project-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .project-btn i {
        font-size: 1rem;
    }
}

/* Limits Section Styles */
.limits-container {
    max-width: 800px;
    margin: 0 auto;
}

.limits-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.notice-content h3 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.notice-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.limits-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.limits-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.limits-section:hover {
    border-color: var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.limits-section h3 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    color: var(--text-muted);
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.limits-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.limits-row:last-child {
    margin-bottom: 0;
}

.limits-row.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.limits-row.disabled input {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
    line-height: 1.3;
}

.limits-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.limits-actions .btn {
    min-width: 180px;
}

/* Mobile responsiveness for limits */
@media (max-width: 768px) {
    .limits-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-icon {
        margin-top: 0;
    }
    
    .limits-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .limits-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .limits-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Subscription Section */
.subscription-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.subscription-status {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.subscription-current {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subscription-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.subscription-details h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.subscription-details p {
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
}

.subscription-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: var(--bg-primary);
}

.feature-item .bi-check-circle {
    color: var(--success);
}

.feature-item .bi-x-circle {
    color: var(--text-secondary);
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.subscription-actions .btn {
    min-width: 200px;
}

.subscription-warning {
    background: var(--bg-primary);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.subscription-warning h4 {
    color: var(--warning);
    margin-bottom: 0.5rem;
}

.subscription-warning p {
    color: var(--text-secondary);
    margin: 0;
}

.subscription-expired {
    background: var(--bg-primary);
    border: 1px solid var(--error);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.subscription-expired h4 {
    color: var(--error);
    margin-bottom: 0.5rem;
}

.subscription-expired p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .subscription-current {
        flex-direction: column;
        text-align: center;
    }
    
    .subscription-features {
        grid-template-columns: 1fr;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .subscription-actions .btn {
        min-width: unset;
    }
}

/* Project Status Styles */
.project-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: inline-block;
}

/* Edit Project Button */
.btn-edit {
    background: var(--accent-primary) !important;
    color: white !important;
}

.btn-edit:hover {
    background: var(--accent-secondary) !important;
    transform: translateY(-1px);
}

/* Edit Project Modal */
.edit-project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.edit-project-modal.show {
    opacity: 1;
    visibility: visible;
}

.edit-project-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px var(--shadow-heavy);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.edit-project-modal.show .edit-project-content {
    transform: scale(1);
}

.edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.edit-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.edit-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.edit-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.edit-form {
    padding: 25px;
}

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

.edit-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.edit-form input,
.edit-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.edit-form input:focus,
.edit-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.edit-form select {
    cursor: pointer;
}

.edit-form .form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.current-info {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.current-info strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.edit-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.edit-actions .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-actions .btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.edit-actions .btn-cancel:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.edit-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.edit-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.edit-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile responsiveness for edit modal */
@media (max-width: 768px) {
    .edit-project-content {
        width: 95%;
        max-height: 90vh;
    }

    .edit-header {
        padding: 15px 20px;
    }

    .edit-form {
        padding: 20px;
    }

    .edit-actions {
        flex-direction: column;
    }

    .edit-actions .btn {
        width: 100%;
        justify-content: center;
    }
} 