﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    /* Clean light background for non-video pages */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.0rem;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Main content default */
.main-content {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* === MODERN COMPONENTS (Migrated from Video BG) === */

/* Helper utility for top spacing on content pages */
.margin-top-4 {
    margin-top: 4rem;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Hero Card (Used for forms/intros) */
.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    /* Softer shadow for static pages */
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 11;
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto;
}

/* Hero Wrapper (For Index Page mostly, but safely reusable) */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 20px;
    padding-bottom: 15vh;
}

.hero-card h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-align: center;
}

.hero-card h1 span {
    display: block;
    width: 100%;
    font-size: 1.4rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* Content Sections & Wrapper */
.content-wrapper {
    background: #f8f9fa;
    position: relative;
    z-index: 20;
    padding-top: 4rem;
    padding-bottom: 6rem;
    /* Removed the negative margin/border-radius trick to keep pages standard */
}

.content-section {
    margin-bottom: 5rem;
}

.section-title,
.page-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a2a3a;
}

/* Input Group & Forms */
.input-group {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: center;
    max-width: 100%;
    margin: 1.5rem auto 0;
}

.url-input {
    flex-grow: 1;
    height: 56px;
    padding: 0 24px !important;
    border: 2px solid #e1e4e8 !important;
    border-radius: 14px !important;
    font-size: 1.1rem !important;
    color: #333 !important;
    transition: border-color 0.2s;
    margin-bottom: 0;
}

.url-input:focus {
    border-color: #21384a !important;
    outline: none;
}

.btn-start {
    width: auto !important;
    padding: 0 35px !important;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 14px !important;
    cursor: pointer;
    background: linear-gradient(135deg, #21384a, #2c5066) !important;
    color: white;
    border: none;
    transition: box-shadow 0.2s;
}

.btn-start:hover {
    box-shadow: 0 5px 15px rgba(33, 56, 74, 0.3);
}

/* Apps Grid System */
.apps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 640px;
    /* Forces wrap after 3 items (3*160 + 2*24 = 528px) */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.app-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* Fixed strictly */
    width: 160px;
    min-width: 160px;
    flex-shrink: 0;
}

.app-card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.app-card img {
    margin-bottom: 0.5rem;
}

.app-card h3 {
    font-size: 0.95rem;
    margin: 0.5rem 0 0.25rem;
    color: #2d3748;
}

.app-card p {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.app-actions {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d3748;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.download-btn:hover {
    background: #1a202c;
}

/* Telegram Bot Section */
.telegram-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1f0ff 100%);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(0, 136, 204, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.section-description {
    font-size: 1.1rem;
    color: #556;
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    display: inline-flex !important;
    align-items: center;
    gap: 0.8rem;
    padding: 16px 32px !important;
    border-radius: 50px !important;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(34, 158, 217, 0.3);
    border: none;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(34, 158, 217, 0.4);
}

.telegram-more {
    margin-top: 1.5rem;
}

.telegram-more a {
    color: #667;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px dashed #99a;
    transition: color 0.2s;
}

.telegram-more a:hover {
    color: #229ED9;
    border-bottom-style: solid;
}

/* Platforms Grid */
.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-item {
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 110px;
    flex: 1 1 auto;
    max-width: 150px;
}

.platform-name {
    font-weight: 600;
    color: #21384a;
}

/* Contrast Fixes */
.platform-device {
    font-size: 0.8rem;
    color: #667;
    /* Darkened from #889 */
}

.platform-icon {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Tutorials / SEO Grid */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tutorial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: block;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(33, 56, 74, 0.1);
}

.tutorial-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #21384a;
    margin-top: 0;
}

.tutorial-card p {
    color: #556;
    /* Darkened from #778 for better contrast */
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Secondary Button */
.btn-secondary {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Standard Buttons overwrite */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px;
        color: #333;
        transition: color 0.2s;
    }

    .mobile-menu-btn:hover {
        color: var(--primary-color);
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-start {
        width: 100% !important;
    }

    /* Prominent Mobile Action Button */
    .mobile-actions .btn-primary {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        animation: pulse-soft 2s infinite;
    }

    @keyframes pulse-soft {
        0% {
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        }
    }

    .footer-grid {
        gap: 2rem;
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* === FOOTER STYLES === */
.main-footer {
    background: #21384a;
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #82c4d8;
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.footer-col h4 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #dbe4ef;
    /* Lightened from #cbd5e0 for contrast on dark bg */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.9rem;
    color: #a0aec0;
    /* Lightened from #889 for contrast on dark bg */
}

/* === TOAST NOTIFICATIONS === */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allow clicking through container */
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #ddd;
    pointer-events: auto;
    /* Re-enable clicks on toasts */
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.toast-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
    padding: 0 4px;
}

.toast-close:hover {
    color: #333;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

/* === MICRO-ANIMATIONS === */
.btn:active,
.btn-secondary:active {
    transform: scale(0.98);
}

.nav a {
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.url-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 56, 74, 0.1);
}

/* Fixes for user reported issues */

/* 1. Cookie Banner Fix */
#cookieConsentBanner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(33, 56, 74, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#cookieConsentBanner h3 {
    color: white;
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

#cookieConsentBanner p {
    font-size: 0.9rem;
    color: #f1f5f9;
    /* High contrast white-ish */
    margin-bottom: 1rem;
}

#cookieConsentBanner a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    /* Increased gap */
    flex-shrink: 0;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    justify-content: flex-end;
}

/* Specific buttons adjustments */
.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
}

.cookie-actions .btn:first-child {
    /* Accept all usually green or primary */
    background: #064e3b;
    /* Darkest Emerald (900) for absolute max contrast */
    /* Darker green (Emerald-700) for max contrast */
    /* Darker green (Emerald-600) for better contrast on white text */
    color: white;
}

.cookie-actions .btn:last-child {
    /* Necessary usually secondary/outline */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-actions .btn:last-child:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    #cookieConsentBanner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
        justify-content: stretch;
        gap: 10px;
    }

    .cookie-actions button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* 2. Tutorial Grid Fix - Force 1 row on Desktop */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Reduced min-width to fit 4 items */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tutorial-card {
    min-width: 0;
    /* Allow shrinking */
}

/* Platform Grid Fix - Better fit */
.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    /* Slightly tighter gap */
    max-width: 1000px;
    margin: 0 auto;
}

.platform-item {
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 110px;
    /* Slightly smaller min-width */
    flex: 1 1 auto;
    /* Allow flexible growth/shrink */
    max-width: 150px;
    /* Prevent too wide items */
}

/* New: Features Grid Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #21384a;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: #667;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* New: Stacked Form Styles */
.form-stacked .url-input {
    margin-bottom: 1rem;
    width: 100%;
}

.form-stacked button {
    width: 100%;
}

/* Cookie Button Styles */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #10b981;
    color: white;
}

.cookie-btn-accept:hover {
    background: #059669;
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e0e6ed;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Fix Hero Card Input Width & Global Input Fix */
.hero-card .input-group {
    max-width: 100%;
    width: 100%;
}

.hero-card .url-input {
    width: 100%;
    min-width: 0;
}

/* Force full width for inputs on secondary pages */
.url-input {
    width: 100%;
    box-sizing: border-box;
    display: block;
    /* Ensure block display to respect margins */
}

/* 3. Mobile Menu Button - Hide on Desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* РЈР»СѓС‡С€РµРЅРЅР°СЏ Р°РґР°РїС‚РёРІРЅРѕСЃС‚СЊ РґР»СЏ РјРѕР±РёР»СЊРЅС‹С… СѓСЃС‚СЂРѕР№СЃС‚РІ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-card {
        padding: 1.5rem;
        margin: 10px;
    }

    .hero-card h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .url-input {
        height: 50px;
        padding: 0 15px !important;
        font-size: 1rem !important;
    }

    .btn-start {
        height: 50px;
        padding: 0 20px !important;
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .telegram-card {
        padding: 2rem 1.5rem;
    }

    .btn-telegram {
        padding: 14px 24px !important;
        font-size: 1rem;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }

    .app-card {
        padding: 1.2rem 0.8rem;
        min-height: auto;
    }

    .tutorials-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-card {
        padding: 1.5rem;
    }

    /* РЈР»СѓС‡С€РµРЅРЅС‹Рµ РѕР±Р»Р°СЃС‚Рё РєР°СЃР°РЅРёСЏ РґР»СЏ РјРѕР±РёР»СЊРЅС‹С… */
    .btn,
    .app-card,
    .tutorial-card {
        min-height: 44px;
        /* РњРёРЅРёРјР°Р»СЊРЅС‹Р№ СЂР°Р·РјРµСЂ РґР»СЏ СѓРґРѕР±СЃС‚РІР° РєР°СЃР°РЅРёСЏ */
    }

    /* РђРґР°РїС‚РёРІРЅРѕСЃС‚СЊ РґР»СЏ СЃРµРєС†РёРё РїР»Р°С‚С„РѕСЂРј */
    .platform-item {
        min-width: 100px;
        padding: 0.6rem;
    }

    .download-btn {
        min-width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .download-btn img {
        width: 20px;
        height: 20px;
    }
}

/* Р”РѕРїРѕР»РЅРёС‚РµР»СЊРЅС‹Рµ СѓР»СѓС‡С€РµРЅРёСЏ РґР»СЏ РѕС‡РµРЅСЊ РјР°Р»РµРЅСЊРєРёС… СЌРєСЂР°РЅРѕРІ */
@media (max-width: 480px) {
    .hero-card h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platforms-grid {
        gap: 0.5rem;
    }

    .platform-item {
        min-width: 90px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .toast {
        min-width: 280px;
        padding: 12px 15px;
    }
}

/* 7. Button Hover Contrast Fix */
.btn-secondary:hover {
    background: #e9ecef;
    color: #1a2a3a;
    border-color: #cbd3da;
}

/* Steps Icons Fix */
.step-number {
    background: #ff0000;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* App cards and download buttons, moved from inline styles */
.apps-grid {
    display: grid;
    /* Adjusted minmax for better responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.app-card h3 {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1rem;
    /* Larger font size */
    font-weight: 600;
}

.app-card p {
    margin: 0 0 1rem 0;
    /* More margin bottom */
    color: #666;
    font-size: 0.85rem;
}

.app-actions {
    display: flex;
    gap: 0.5rem;
    /* More gap between buttons */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
    /* Push actions to the bottom */
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
    /* A bit more padding */
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    /* Softer radius */
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 140px;
    /* --- FIX: Set a minimum width --- */
    width: 100%;
    /* Р Р°СЃС‚СЏРіРёРІР°РµРј РєРЅРѕРїРєРё РЅР° РІСЃСЋ С€РёСЂРёРЅСѓ РєРѕРЅС‚РµР№РЅРµСЂР° */
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

.download-btn img {
    margin: 0;
    /* Override any inherited margin */
}

.download-btn span {
    line-height: 1;
    /* Ensure text aligns well */
}

/* === STATUS PAGE STYLES === */

.status-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.status-header {
    margin-bottom: 2rem;
}

.status-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Progress Bar */
.progress-container {
    background: #f1f5f9;
    height: 12px;
    border-radius: 10px;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s ease;
    position: relative;
}

.progress-bar.striped {
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
    animation: progress-stripe 1s linear infinite;
}

@keyframes progress-stripe {
    0% {
        background-position: 1rem 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Progress Text & Time */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #556;
}

.time-estimate-badge {
    background: #e0f2fe;
    color: #0284c7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Steps Visualization */
.steps-container {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
    padding: 0 10px;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.step-icon-box {
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

/* Step Active/Completed States */
.step-item.active .step-icon-box {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f9ff;
    box-shadow: 0 0 0 4px rgba(33, 56, 74, 0.1);
    transform: scale(1.1);
}

.step-item.completed .step-icon-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Success State */
.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
    display: block;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.rss-result-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.rss-link-text {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    word-break: break-all;
    color: #334;
    margin-bottom: 1rem;
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.rss-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-copy {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background: #cbd5e1;
    color: #334;
}

/* Mobile Responsiveness for Status */
@media (max-width: 600px) {
    .status-card {
        padding: 1.5rem;
    }

    .steps-container {
        margin-top: 2rem;
    }

    .steps-container::before {
        display: none;
        /* Hide connecting line on mobile */
    }

    .step-item {
        flex-direction: row;
        align-items: center;
        /* Align items horizontally */
        margin-bottom: 1rem;
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
        background: #f8fafc;
        padding: 10px;
        border-radius: 10px;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .step-label {
        text-align: left;
        font-size: 0.95rem;
    }

    /* Adjust success actions */
    .rss-actions {
        flex-direction: column;
    }

    .rss-actions .btn {
        width: 100%;
    }
}

/  form: scale(1.1);
opacity: 1;
}

100% {
    transform: scale(1);
}
}

.rss-result-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.rss-link-text {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    word-break: break-all;
    color: #334;
    margin-bottom: 1rem;
}

/* Allow hero content to sit on top of video */
.main-content-video-mode {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.video-background-overlay {
    display: none;
}

.floating-video {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.3s ease;
    will-change: transform, opacity;
    border: 8px solid #ffffff;
    background: #fff;
    pointer-events: none;
}

.floating-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Hide iOS Video Controls */
.floating-video video::-webkit-media-controls {
    display: none !important;
}

.floating-video video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.floating-video.active {
    opacity: 1;
}

/* Р Р°Р·РјРµСЂС‹ РґР»СЏ СЂР°Р·РЅС‹С… РІРёРґРµРѕ */
.floating-video.size-small {
    width: 150px;
    height: 150px;
}

.floating-video.size-medium {
    width: 200px;
    height: 200px;
}

.floating-video.size-large {
    width: 250px;
    height: 250px;
}

/* РђРЅРёРјР°С†РёРё РїР»Р°РІР°СЋС‰РёС… РІРёРґРµРѕ */
@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -15px) rotate(2deg);
    }

    50% {
        transform: translate(-15px, -30px) rotate(-1deg);
    }

    75% {
        transform: translate(-20px, -15px) rotate(1deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-15px, 20px) rotate(-2deg);
    }

    50% {
        transform: translate(25px, 15px) rotate(1deg);
    }

    75% {
        transform: translate(15px, -20px) rotate(-1deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(15px, 25px) rotate(1deg);
    }

    50% {
        transform: translate(-20px, 10px) rotate(-2deg);
    }

    75% {
        transform: translate(10px, -20px) rotate(2deg);
    }
}

@keyframes float-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-25px, -15px) rotate(-1deg);
    }

    50% {
        transform: translate(15px, -25px) rotate(1deg);
    }

    75% {
        transform: translate(-10px, 15px) rotate(-2deg);
    }
}

.floating-video.anim-1 {
    animation: float-1 20s ease-in-out infinite;
}

.floating-video.anim-2 {
    animation: float-2 25s ease-in-out infinite;
}

.floating-video.anim-3 {
    animation: float-3 22s ease-in-out infinite;
}

.floating-video.anim-4 {
    animation: float-4 28s ease-in-out infinite;
}

/* РђРґР°РїС‚РёРІ РґР»СЏ РІРёРґРµРѕ */
@media (max-width: 768px) {
    .floating-video.size-small {
        width: 100px;
        height: 100px;
    }

    .floating-video.size-medium {
        width: 130px;
        height: 130px;
    }

    .floating-video.size-large {
        width: 160px;
        height: 160px;
    }

    .video-background-overlay {
        background: rgba(248, 249, 250, 0.95);
    }
}