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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
    .card, .faq-item, .step-card, .tool-card, .testimonial-card, .stat-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    .faq-question {
        color: #e2e8f0;
    }
    .step-title, .tool-title {
        color: #e2e8f0;
    }
}

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

/* Header Section */
.header {
    text-align: center;
    padding: 40px 20px;
    color: white;
    animation: fadeInDown 0.8s ease-out;
}

.header h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

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

/* Ad Space */
.ad-space {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    color: #999;
    font-size: 14px;
}

.ad-banner-top {
    max-width: 728px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar {
    width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 20px;
}

.ad-banner-bottom {
    max-width: 728px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Input Section */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.url-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.example-link {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
}

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

/* Status Messages */
.status-message {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
}

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

.status-message.show {
    display: block;
}

.status-loading {
    background: #e7f1ff;
    color: #245ea8;
    text-align: center;
    border-color: #245ea8;
}

.status-success {
    background: #efe;
    color: #363;
    border-color: #363;
}

.status-error {
    background: #fee;
    color: #c33;
    border-color: #c33;
}

.status-info {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.spinner {
    border: 3px solid rgba(36, 94, 168, 0.2);
    border-top: 3px solid #245ea8;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

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

/* Video Result Section */
.video-result {
    display: none;
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out;
}

.video-result.show {
    display: block;
}

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

.video-preview {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    max-height: 400px;
    background: #000;
}

/* Stats Section */
.stats-section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

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

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #555;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 1000px;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* How-To Guide */
.howto-section {
    margin-top: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    line-height: 30px;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-title {
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.step-description {
    font-size: 14px;
    color: #666;
}

/* Testimonials Section */
.testimonials-section {
    margin-top: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stars {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffc107;
}

.testimonial-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-card strong {
    color: #333;
    font-size: 12px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .ad-sidebar {
        position: static;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }

    .steps-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}