/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 40px 20px;
}

/* ==================== CONTAINERS ==================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ==================== NAVIGATION ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-links a {
    margin-left: 2rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ==================== LANGUAGE SELECTOR ==================== */
.language-selector-section {
    margin-bottom: 2rem;
}

.language-selector-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.language-selector-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.selector-description {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.language-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.language-dropdown {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.1rem;
    border: 3px solid #667eea;
    border-radius: 12px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-dropdown:hover {
    border-color: #764ba2;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.language-dropdown:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.language-dropdown option {
    padding: 10px;
    font-size: 1rem;
}

.language-dropdown optgroup {
    font-weight: 600;
    color: #667eea;
    font-style: normal;
    padding: 10px 0;
}

.dropdown-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 0.9rem;
    pointer-events: none;
}

.language-hint {
    margin-top: 1.25rem;
    padding: 12px 18px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #5a6a7a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hint-icon {
    font-size: 1.1rem;
}

.language-hint strong {
    color: #667eea;
}

/* ==================== UPLOAD SECTION ==================== */
.upload-section {
    margin: 3rem 0;
}

.upload-box {
    background: white;
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #764ba2;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.upload-box.highlight {
    background: #f0f4ff;
    border-color: #764ba2;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-box h3 {
    margin-bottom: 1rem;
    color: #333;
}

.file-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.file-label {
    cursor: pointer;
}

/* ==================== PROGRESS ==================== */
.upload-progress {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-weight: 600;
    color: #333;
}

/* ==================== FEATURES ==================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: #667eea;
}

/* ==================== PROCESSING PAGE ==================== */
.processing-section {
    text-align: center;
    color: white;
}

.status-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 600px;
    color: #333;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.processing-steps {
    margin: 2rem 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    background: #f9f9f9;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
    background: #e8f0ff;
    border-left: 4px solid #667eea;
}

.step.completed {
    opacity: 1;
    background: #e8ffe8;
    border-left: 4px solid #4caf50;
}

.step-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.processing-note {
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.error-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 600px;
    color: #333;
    border: 3px solid #ff4444;
}

.error-card h2 {
    color: #ff4444;
    margin-bottom: 1rem;
}

/* ==================== EDITOR PAGE (SIDE-BY-SIDE WORKSPACE) ==================== */
.editor-workspace {
    display: flex;
    height: calc(100vh - 80px);
    gap: 0;
    background: #f5f5f5;
}

/* Left Panel: Video Preview */
.editor-left {
    flex: 0 0 58%;
    background: white;
    padding: 30px;
    overflow-y: auto;
}

.editor-left h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Video preview container - defines the video box */
#videoPreviewContainer {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 15px auto;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.editor-left video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.video-meta {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.video-meta p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.video-meta strong {
    color: #333;
}

#currentStyle {
    color: #4CAF50;
    font-weight: 600;
}

/* Right Panel: Tabbed Controls */
.editor-right {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
    border-left: 2px solid #e0e0e0;
}

/* Horizontal Tabs (inside right panel) */
.horizontal-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    padding: 0;
    flex-shrink: 0;
}

.htab-btn {
    flex: 0 0 auto;
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.htab-btn:hover {
    background: #f9f9f9;
    color: #333;
}

.htab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: #f9f9f9;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeInTab 0.25s ease;
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    background: #fafafa;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel h3 {
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 19px;
}

.tab-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 13px;
}

/* Preset Grid */
.preset-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.preset-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.preset-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.preset-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 14px;
}

.preset-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #333;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.preset-desc {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.3;
}

/* Control Groups */
.control-group {
    margin-bottom: 22px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.control-label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.control-value {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
    background: #e8f5e9;
    padding: 3px 10px;
    border-radius: 12px;
}

.control-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #95a5a6;
    font-style: italic;
}

/* Control Inputs */
.control-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.control-input:hover {
    border-color: #bdc3c7;
}

.control-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Range Sliders */
.control-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.control-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #45a049;
}

.control-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Preview Box */
.preview-box-compact {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px dashed #e0e0e0;
}

.preview-box-compact p {
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 13px;
}

.preview-area {
    background: #2c3e50;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-subtitle {
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Opacity Presets */
.opacity-presets {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.opacity-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin: 5px;
    padding: 0;
    transition: transform 0.2s ease;
}

.opacity-btn:hover {
    transform: scale(1.05);
}

/* OLD EDITOR LAYOUT (DEPRECATED - For backwards compatibility) */
.editor-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.video-preview {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-preview video {
    width: 100%;
    max-width: 640px;
    max-height: 480px;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.video-info {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.style-controls {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.style-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
}

.style-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.style-card:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateX(5px);
}

.style-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.style-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.style-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #333;
    border-radius: 5px;
    text-align: center;
}

.download-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
    margin-top: 2rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
}

.loading-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ==================== ABOUT PAGE ==================== */
.about-section {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: #667eea;
    margin: 2rem 0 1rem 0;
}

.about-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.about-content li {
    margin: 0.5rem 0;
}

/* ==================== ERROR PAGES ==================== */
.error-page {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 4rem 2rem;
    margin: 4rem auto;
    max-width: 600px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* ==================== CUSTOM CONTROLS ==================== */
.custom-controls {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    color: #4CAF50;
    background: #f9f9f9;
}

.tab-button.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    min-height: 200px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Range sliders */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #45a049;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Select dropdowns */
.color-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-select:hover {
    border-color: #4CAF50;
}

.color-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Preview box */
.preview-box {
    margin-top: 25px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.preview-box p {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

#subtitlePreview {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewText {
    display: inline-block;
    line-height: 1.4;
}

/* Opacity Presets */
.opacity-examples {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.opacity-preset {
    background: none;
    border: none;
    cursor: pointer;
    margin: 5px;
    padding: 0;
    transition: transform 0.2s ease;
}

.opacity-preset:hover {
    transform: scale(1.05);
}

.opacity-preset span {
    display: inline-block;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: box-shadow 0.2s ease;
}

.opacity-preset:hover span {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ==================== PRICING PAGE ==================== */
.pricing-hero {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.pricing-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card.popular {
    border: 3px solid #667eea;
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #e0e0e0;
    color: #666;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-badge.popular-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-badge.save-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.plan-name {
    text-align: center;
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.plan-price {
    text-align: center;
    margin: 1rem 0;
    color: #2c3e50;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    font-weight: 600;
}

.plan-price .amount {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.plan-price .period {
    font-size: 1rem;
    color: #7f8c8d;
}

.plan-tagline {
    text-align: center;
    color: #38ef7d;
    font-weight: 600;
    margin: -0.5rem 0 0.5rem 0;
}

.plan-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li.included {
    color: #2c3e50;
}

.plan-features li.excluded {
    color: #bdc3c7;
}

.plan-button {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.free-btn {
    background: #f0f0f0;
    color: #333;
}

.free-btn:hover {
    background: #e0e0e0;
}

.pro-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.yearly-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.yearly-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

/* Languages Section */
.languages-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.languages-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.languages-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.language-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.language-card .flag {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.language-card .lang-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.language-card .lang-tier {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.lang-tier.free-tier {
    background: #e8f5e9;
    color: #4CAF50;
}

.lang-tier.pro-tier {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: #667eea;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.faq-item {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Pricing CTA */
.pricing-cta {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.pricing-cta h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.pricing-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.modal-content > p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.plan-summary {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row .price {
    font-weight: 600;
    color: #667eea;
}

.summary-row.savings {
    color: #38ef7d;
    font-weight: 500;
}

.savings-amount {
    color: #38ef7d;
    font-weight: 600;
}

.summary-features {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.subscription-form .form-group {
    margin-bottom: 1.25rem;
}

.subscription-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.subscription-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.subscription-form input:focus {
    outline: none;
    border-color: #667eea;
}

.payment-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.lock-icon {
    font-size: 1.25rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.modal-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* Pricing Page Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 2rem;
    }
    
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .editor-layout {
        grid-template-columns: 1fr;
    }
    
    .video-preview video {
        max-width: 100%;
        max-height: 360px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .nav-links a {
        margin-left: 1rem;
    }
}
