/* Кроссбраузерный сброс стилей */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    /* Единый фон для всех страниц */
    background-color: #151b3d;
    color: #e0e6ff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 60px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Кроссбраузерные утилиты */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, a {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

input, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Белый фон для основных контейнеров */
.upload-area,
.files-list,
.format-selector-overlay {
    /* Эти элементы уже имеют свои стили */
}

/* Для страниц с отдельными контейнерами */
.account-container,
.converters-container,
.compress-container,
.settings-container,
.documents-container,
.video-container,
.audio-container,
.presentations-container,
.fonts-container,
.archives-container {
    background: radial-gradient(circle at top left, rgba(15, 24, 72, 0.98), rgba(5, 8, 20, 0.98));
    border-radius: 20px;
    padding: 24px 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    max-width: 1200px;
    margin: 30px auto 24px;
    width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 30px auto 24px;
    padding: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.container:has(.compress-container) {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Навигация */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 24, 72, 0.98), rgba(15, 24, 72, 0.96));
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 60px;
    position: relative;
    min-height: 60px;
}

/* Гамбургер-меню для мобильных */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.nav-logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    height: 100%;
}

.logo-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.5em;
    font-weight: 900;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    color: white;
}

.logo-sub {
    font-size: 0.75em;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

.nav-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    border-radius: 6px;
    -webkit-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
    font-weight: 500;
    background-color: transparent;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    font-size: 0.95em;
    vertical-align: middle;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.admin-link {
    background-color: #e74c3c;
    color: white;
    font-weight: 600;
    padding: 0 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    line-height: 1;
    font-size: 0.95em;
    vertical-align: middle;
}

.nav-link.admin-link:hover {
    background-color: #c0392b;
}

.nav-auth {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
}

.nav-account {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    -webkit-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.nav-account:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.username-text {
    display: inline;
}

.user-icon {
    font-size: 1.2em;
}

.btn-nav-register,
.btn-nav-logout {
    padding: 0 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: 1;
    height: 36px;
    min-height: 36px;
    font-size: 0.95em;
    vertical-align: middle;
}

.btn-nav-register {
    background-color: #e74c3c;
    color: white;
}

.btn-nav-register:hover {
    background-color: #c0392b;
}

.btn-nav-logout {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-nav-logout:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Хлебные крошки (тёмная тема) */
.breadcrumbs {
    width: 100%;
    background-color: #151b3d;
}

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

.breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    gap: 8px;
    color: #b9c4ff;
    font-weight: 500;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.breadcrumbs-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 0.95rem;
    color: #b9c4ff;
}

.breadcrumbs-item + .breadcrumbs-item::before {
    content: "/";
    margin: 0 6px;
    color: rgba(185, 196, 255, 0.35);
    font-weight: 400;
}

.breadcrumbs-item a {
    color: #e0e6ff;
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    -o-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.breadcrumbs-item a:hover {
    color: #ff7961;
}

.breadcrumbs-item span[aria-current="page"] {
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 600px) {
    .breadcrumbs-container {
        padding: 10px 15px;
    }

    .breadcrumbs-list {
        font-size: 0.85rem;
        gap: 4px;
    }
}

/* Футер */
.main-footer {
    background: linear-gradient(180deg, #0f1533, #050814);
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

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

.footer-links {
    margin-top: 10px;
    font-size: 0.9em;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    -o-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-developer {
    margin-top: 15px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

.footer-developer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    -o-transition: color 0.2s ease;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-developer a:hover {
    color: white;
    text-decoration: underline;
}

/* Лимит конвертаций */
.conversion-limit {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.conversion-limit.info {
    background-color: #3498db;
    color: white;
}

.conversion-limit.warning {
    background-color: #e74c3c;
    color: white;
}

.limit-link {
    color: white;
    text-decoration: underline;
    margin-left: 10px;
}

header {
    text-align: center;
    margin: 0 0 30px 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-nav {
    margin-top: 20px;
    text-align: center;
}

.nav-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #3d5266;
}
a.nav-link.nav-account {
    justify-content: center;
}
header h1 {
    color: #e74c3c;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Специальные стили для контейнеров конвертации - белый заголовок */
.documents-container header h1,
.video-container header h1,
.audio-container header h1,
.presentations-container header h1,
.fonts-container header h1,
.archives-container header h1 {
    color: #ffffff;
}

.subtitle {
    color: #aab4ff;
    font-size: 1.1em;
}

/* Лендинг главной страницы */
.landing-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px 20px 24px;
    border-radius: 26px;
    background: radial-gradient(circle at top left, rgba(9, 14, 40, 0.98), rgba(4, 7, 22, 0.98));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(120, 144, 255, 0.18);
}

.landing-hero {
    display: grid;
    gap: 32px;
    align-items: stretch;
    padding: 24px 22px 22px;
    border-radius: 20px;
    background:
    radial-gradient(circle at top left, rgba(76, 110, 245, 0.35) 0%, rgba(15, 22, 70, 0.98) 40%, rgba(5, 8, 20, 1) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.landing-hero-text header h1 {
    color: #ffffff;
    font-size: 2.4em;
}

.landing-hero-text .subtitle {
    color: #c5d0ff;
}

.landing-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.landing-benefits {
    list-style: none;
    margin-top: 6px;
    text-align: left;
    color: #e0e6ff;
}

.landing-benefits li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.98em;
}

.landing-benefits li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #e74c3c;
}

.landing-hero-converter {
    display: flex;
    flex-direction: column;
}

.landing-hero-converter .upload-area {
    margin-bottom: 18px;
}

.landing-seo {
    background: linear-gradient(135deg, rgba(14, 24, 70, 0.98), rgba(7, 12, 36, 0.98));
    border-radius: 18px;
    padding: 20px 22px 22px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
    font-size: 0.98em;
    color: #dde4ff;
}

.landing-seo h2,
.landing-seo h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.landing-seo h2 {
    font-size: 1.6em;
    margin-bottom: 12px;
}

.landing-seo h3 {
    font-size: 1.18em;
    margin-top: 16px;
}

.landing-seo p {
    margin-bottom: 10px;
}

.landing-seo-list {
    margin: 6px 0 6px 18px;
    padding-left: 0;
}

.landing-seo-list li {
    margin-bottom: 4px;
}

.landing-seo-bottom {
    margin-top: 12px;
    font-weight: 500;
}

.upload-area {
    background-color: #1a237e;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    -webkit-box-shadow: 0 4px 20px rgba(26, 35, 126, 0.3);
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.3);
}

.upload-area.drag-over {
    background-color: #283593;
    border: 3px dashed #e74c3c;
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
a.btn-primary {
    text-decoration: none;
}
.btn-primary {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #c0392b;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.upload-hint {
    color: white;
    font-size: 1em;
    margin-top: 20px;
    opacity: 0.9;
}

/* Прогресс-бар загрузки видео */
.trim-upload-progress {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

.trim-progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.trim-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #ff6b5a);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.trim-progress-text {
    color: white;
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
    margin-bottom: 5px;
}

.trim-progress-speed {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85em;
    text-align: center;
}

.files-list {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* Страница обрезки видео */
.trim-video-preview {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
}

/* Контейнер редактора */
.trim-editor-container {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Верхняя панель инструментов */
.trim-top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.trim-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trim-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trim-tool-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-size: 18px;
    color: #555;
}

.trim-tool-icon-btn:hover {
    background: #e9ecef;
}

.trim-tool-icon-btn.active {
    background: #3498db;
    color: #fff;
}

.trim-tool-icon-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.trim-tool-icon-btn.disabled:hover {
    background: transparent;
}

.trim-tool-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Подсказки (tooltips) */
.trim-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s, transform 0.3s;
}

.trim-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.trim-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Сетка для видео */
.trim-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 33.33% 33.33%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.trim-tool-separator {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 4px;
}

.trim-tool-text-btn {
    padding: 6px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.trim-tool-text-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

/* Видео превью */
.trim-video-preview {
    position: relative;
    background: #000;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trim-video {
    width: 100%;
    max-width: 100%;
    max-height: 600px;
    display: block;
    transform-origin: center center;
    background: #000;
}

.trim-timeline {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}

.trim-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.trim-range-wrapper {
    position: relative;
    margin: 10px 0 15px 0;
}

.trim-range-wrapper input[type="range"] {
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
}

.trim-range-wrapper input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e74c3c;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.4);
}

.trim-range-wrapper input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e74c3c;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.4);
}

.trim-time-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.trim-time-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trim-time-field label {
    font-size: 0.9em;
    color: #7f8c8d;
}

.trim-time-field input[type="text"] {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #bdc3c7;
    font-size: 0.95em;
    min-width: 120px;
}

.trim-time-field div {
    font-weight: 600;
    color: #2c3e50;
}

.trim-video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.trim-crop-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.trim-crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: crosshair;
    z-index: 10;
    pointer-events: auto;
}

.trim-crop-selection {
    position: absolute;
    border: 2px dashed #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    cursor: move;
    box-sizing: border-box;
    min-width: 50px;
    min-height: 50px;
}

.trim-crop-selection::before,
.trim-crop-selection::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.trim-crop-selection::before {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.trim-crop-selection::after {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

/* Дополнительные углы для перетаскивания */
.trim-crop-selection {
    position: relative;
}

.trim-crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    z-index: 11;
}

.trim-crop-handle.nw { top: -6px; left: -6px; cursor: nw-resize; }
.trim-crop-handle.ne { top: -6px; right: -6px; cursor: ne-resize; }
.trim-crop-handle.sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.trim-crop-handle.se { bottom: -6px; right: -6px; cursor: se-resize; }
.trim-crop-handle.n { top: -6px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.trim-crop-handle.s { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.trim-crop-handle.w { top: 50%; left: -6px; transform: translateY(-50%); cursor: w-resize; }
.trim-crop-handle.e { top: 50%; right: -6px; transform: translateY(-50%); cursor: e-resize; }

/* Таймлайн с миниатюрами */
.trim-timeline-container {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.trim-timeline-thumbnails {
    display: flex;
    gap: 2px;
    height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 8px;
    position: relative;
    background: #2c3e50;
    border-radius: 4px;
    padding: 4px;
}

.trim-timeline-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 100%;
    background: #34495e;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.trim-timeline-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trim-timeline-range {
    position: relative;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    margin: 12px 0;
    cursor: pointer;
}

.trim-timeline-selection {
    position: absolute;
    height: 100%;
    background: rgba(52, 152, 219, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.trim-timeline-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #3498db;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.trim-timeline-handle:active {
    cursor: grabbing;
}

.trim-timeline-handle-start {
    left: 0;
}

.trim-timeline-handle-end {
    right: 0;
}

.trim-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
}

/* Нижние контролы */
.trim-bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.trim-controls-left,
.trim-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trim-controls-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.trim-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.trim-control-btn:hover {
    background: #e9ecef;
}

.trim-time-display {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.trim-save-btn {
    padding: 8px 24px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.trim-save-btn:hover:not(:disabled) {
    background: #c0392b;
}

.trim-save-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Модальное окно настроек */
.trim-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trim-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.trim-settings-content {
    position: relative;
    background: #2c3e50;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.trim-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #34495e;
}

.trim-settings-header h3 {
    margin: 0;
    color: #ecf0f1;
    font-size: 20px;
    font-weight: 600;
}

.trim-settings-close {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.trim-settings-close:hover {
    background: #34495e;
}

.trim-settings-body {
    padding: 24px;
}

.trim-settings-section {
    margin-bottom: 24px;
}

.trim-settings-section:last-child {
    margin-bottom: 0;
}

.trim-settings-label {
    display: block;
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.trim-format-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trim-format-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    background: #34495e;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.trim-format-btn:hover {
    background: #3d566e;
    border-color: #3498db;
}

.trim-format-btn.active {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}

/* Кнопки форматов для PDF */
.pdf-format-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pdf-format-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #34495e;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.pdf-format-btn:hover {
    background: #3d566e;
    border-color: #3498db;
}

.pdf-format-btn.active {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.pdf-format-icon {
    font-size: 18px;
}

.pdf-format-label {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pdf-format-buttons {
        flex-direction: column;
    }
    
    .pdf-format-btn {
        width: 100%;
        min-width: auto;
    }
}

.trim-settings-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trim-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.trim-toggle-input {
    display: none;
}

.trim-toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: #34495e;
    border-radius: 12px;
    transition: background 0.3s;
}

.trim-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: #ecf0f1;
    border-radius: 50%;
    transition: transform 0.3s;
}

.trim-toggle-input:checked + .trim-toggle-slider {
    background: #27ae60;
}

.trim-toggle-input:checked + .trim-toggle-slider::before {
    transform: translateX(24px);
}

.trim-toggle-input:disabled + .trim-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.trim-toggle-text {
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 500;
}

.trim-settings-hint {
    margin: 0;
    padding: 12px;
    background: #34495e;
    border-radius: 6px;
    color: #bdc3c7;
    font-size: 13px;
    line-height: 1.5;
}

.trim-editor-toolbar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.trim-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    color: #2c3e50;
    transition: all 0.2s;
}

.trim-tool-btn:hover {
    background: #ecf0f1;
    border-color: #95a5a6;
}

.trim-tool-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #2980b9;
}

.trim-tool-icon {
    font-size: 1.1em;
}

.trim-crop-controls {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.trim-crop-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.trim-crop-info span {
    flex: 1;
    color: #7f8c8d;
    font-size: 0.9em;
}

.trim-crop-apply,
.trim-crop-cancel {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.trim-crop-apply {
    background: #27ae60;
    color: #fff;
}

.trim-crop-apply:hover {
    background: #229954;
}

.trim-crop-cancel {
    background: #e74c3c;
    color: #fff;
}

.trim-crop-cancel:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .trim-time-fields {
        flex-direction: column;
        align-items: stretch;
    }
    
    .trim-editor-toolbar {
        flex-direction: column;
    }
    
    .trim-tool-btn {
        width: 100%;
        justify-content: center;
    }
    
    .trim-crop-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .trim-crop-apply,
    .trim-crop-cancel {
        width: 100%;
    }
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.files-header h2 {
    color: #2c3e50;
    font-size: 1.5em;
    margin: 0;
    font-weight: 600;
}

.bulk-convert-container {
    position: relative;
}

.btn-bulk-convert {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-bulk-convert:hover {
    background-color: #3d5266;
}

.btn-bulk-convert span {
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.bulk-format-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: #2c3e50;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    animation: slideDown 0.2s ease;
}

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

.bulk-format-options {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bulk-format-option {
    padding: 12px 15px;
    background-color: #34495e;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #ecf0f1;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.bulk-format-option:hover {
    background-color: #3d5266;
    border-color: #e74c3c;
    transform: translateX(-3px);
}

.files-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Прогресс-бар загрузки */
.upload-progress {
    margin-top: 10px;
    width: 100%;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.file-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-size {
    color: #7f8c8d;
    font-size: 0.9em;
}

.format-select-btn {
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s ease;
    position: relative;
}

.format-select-btn:hover {
    background-color: #d5dbdb;
    border-color: #95a5a6;
}

.format-select-btn.has-format {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    background-color: #27ae60;
    color: white;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.status-badge.success {
    background-color: #27ae60;
    color: white;
}

.status-badge.error {
    background-color: #e74c3c;
    color: white;
}

.remove-file {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s ease;
}

.remove-file:hover {
    transform: scale(1.2);
}

.download-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    margin-left: 8px;
}

.download-btn:hover {
    background-color: #229954;
}

.converted-badge {
    color: #27ae60;
    font-weight: bold;
    margin-left: 5px;
}

.btn-download-all {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    margin-left: auto;
    margin-right: 10px;
}

.btn-download-all:hover {
    background-color: #229954;
}

/* Унифицированные стили для всех конвертеров */
/* file-card использует те же стили, что и file-item */
.file-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* file-details использует те же стили, что и file-info */
.file-details {
    flex: 1;
    min-width: 0;
}

/* file-actions - контейнер для действий внутри file-item */
.file-item .file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* format-select - выпадающий список формата */
.format-select {
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s ease;
    font-size: 0.95em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.format-select:hover {
    background-color: #d5dbdb;
    border-color: #95a5a6;
}

.format-select:focus {
    outline: none;
    border-color: #e74c3c;
    background-color: #fff;
}

.format-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* btn-convert-file - кнопка конвертации файла */
.btn-convert-file {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.95em;
    white-space: nowrap;
}

.btn-convert-file:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.btn-convert-file:disabled {
    background-color: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* btn-remove - кнопка удаления */
.btn-remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.btn-remove:hover {
    transform: scale(1.2);
    background-color: rgba(231, 76, 60, 0.1);
}

/* quality-select - селектор качества (для видео) */
.quality-select {
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s ease;
    font-size: 0.95em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.quality-select:hover {
    background-color: #d5dbdb;
    border-color: #95a5a6;
}

.quality-select:focus {
    outline: none;
    border-color: #e74c3c;
    background-color: #fff;
}

.format-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

/* Кроссбраузерные анимации */
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.format-selector {
    background-color: #2c3e50;
    border-radius: 6px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    -webkit-animation: slideUp 0.3s ease;
    animation: slideUp 0.3s ease;
}

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

.format-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
    display: flex;
    gap: 10px;
    align-items: center;
}

.format-search {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #34495e;
    border-radius: 8px;
    background-color: #34495e;
    color: white;
    font-size: 1em;
}

.format-search:focus {
    outline: none;
    border-color: #e74c3c;
    background-color: #3d5266;
}

.format-search::placeholder {
    color: #95a5a6;
}

.close-btn {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #34495e;
}

.format-content {
    display: flex;
    max-height: 60vh;
    overflow: hidden;
}

.format-categories {
    width: 200px;
    padding: 20px;
    border-right: 1px solid #34495e;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.category {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    color: #ecf0f1;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.category:hover {
    background-color: #34495e;
}

.category.active {
    background-color: #e74c3c;
    color: white;
}

.format-options {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    overflow-y: auto;
    align-items: flex-start;
}

.format-option {
    padding: 15px;
    background-color: #34495e;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    color: #ecf0f1;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.format-option span {
    display: none;
}

.format-option:hover {
    background-color: #3d5266;
    border-color: #e74c3c;
    transform: translateY(-2px);
}

.format-option.selected {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.format-option.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #2c3e50;
}

.format-option.unavailable:hover {
    background-color: #2c3e50;
    border-color: transparent;
    transform: none;
}

.footer-bar {
    background-color: #2c3e50;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-add {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-add:hover {
    background-color: #3d5266;
}

.footer-hint {
    color: #95a5a6;
    font-size: 0.9em;
    flex: 1;
    text-align: center;
}

.btn-convert {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    height: 44px;
}

.btn-add {
    height: 44px;
}

.btn-convert:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateX(5px);
}

.btn-convert:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .account-container,
    .converters-container,
    .compress-container,
    .settings-container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    /* Навигация для мобильных */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #2c3e50;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        padding: 20px;
        gap: 10px;
        -webkit-transition: left 0.3s ease;
        -o-transition: left 0.3s ease;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        display: flex;
        padding: 10px;
        width: 100%;
        border-bottom: 1px solid #34495e;
        text-align: left;
        justify-content: flex-start;
    }
    
    .nav-auth {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding-top: 20px;
    }
    
    .nav-auth .nav-link,
    .nav-auth .btn-nav-register,
    .nav-auth .btn-nav-logout {
        width: 100%;
        text-align: center;
    }
    
    .landing-hero{
        padding: 15px;
    }
    /* Заголовки */
    header h1,
    .landing-hero-text header h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }
    
    .subtitle,
    .landing-hero-text .subtitle {
        font-size: 0.95em;
        line-height: 1.2;
    }
    
    /* Контейнеры */
    .container {
        padding: 10px;
    }
    
    .account-container,
    .converters-container,
    .compress-container,
    .settings-container,
    .documents-container,
    .video-container,
    .audio-container,
    .presentations-container,
    .fonts-container,
    .archives-container {
        padding: 15px;
        border-radius: 8px;
    }
    
    /* Область загрузки */
    .upload-area {
        padding: 40px 15px;
    }
    
    .upload-content {
        gap: 15px;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    /* Файлы */
    .file-item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .file-item .file-actions {
        width: 100%;
        margin-left: 0;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
    }
    
    .file-item .format-select,
    .file-item .quality-select,
    .file-item .btn-convert-file {
        width: 100%;
    }
    
    .file-item .remove-file {
        align-self: flex-end;
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .footer-bar {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .footer-hint {
        -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
        order: -1;
        width: 100%;
        font-size: 0.8em;
        text-align: center;
        margin-bottom: 5px;
        line-height: 1.4;
    }
    
    .btn-convert,
    .btn-add,
    .btn-download-all {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
    }
    
    .btn-download-all {
        order: 1;
    }
    
    .btn-add {
        order: 2;
    }
    
    .btn-convert {
        order: 3;
    }
    
    .btn-download-all {
        order: 1;
    }
    
    .btn-add {
        order: 2;
    }
    
    .btn-convert {
        order: 3;
    }
    
    /* Селектор форматов */
    .format-selector-overlay {
        padding: 10px;
    }
    
    .format-selector {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 8px;
    }
    
    .format-header {
        padding: 15px;
        gap: 8px;
    }
    
    .format-search {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5em;
        flex-shrink: 0;
    }
    
    .format-content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        max-height: calc(90vh - 100px);
    }
    
    .format-categories {
        width: 100%;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid #34495e;
        padding: 12px;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .format-categories::-webkit-scrollbar {
        height: 4px;
    }
    
    .format-categories::-webkit-scrollbar-thumb {
        background-color: #34495e;
        border-radius: 2px;
    }
    
    .category {
        padding: 10px 14px;
        font-size: 0.9em;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .format-options {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        padding: 12px;
        align-items: flex-start;
        max-height: calc(90vh - 180px);
        overflow-y: auto;
    }
    
    .format-option {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 0.9em;
    }
    
    .format-option span {
        display: none;
    }
    
    /* Файлы */
    .files-header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: 15px;
    }
    
    .files-header h2 {
        font-size: 1.2em;
        margin-bottom: 5px;
    }
    
    .bulk-convert-container {
        width: 100%;
        position: relative;
    }
    
    .btn-bulk-convert {
        width: 100%;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .bulk-format-dropdown {
        right: auto;
        left: 0;
        width: 100%;
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .bulk-format-option {
        padding: 14px 15px;
        font-size: 0.95em;
        min-height: 48px;
    }
    
    .file-item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        position: relative;
    }
    
    .file-item .file-icon {
        align-self: flex-start;
    }
    
    .file-info {
        width: 100%;
    }
    
    .file-item .file-name {
        padding-right: 30px;
    }
    
    .file-item .remove-file {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(231, 76, 60, 0.1);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .format-select-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .download-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        height: 44px;
    }
    
    /* Статистика */
    .account-stats {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-card {
        max-width: 100%;
    }
    
    .account-container {
        padding: 15px 10px;
    }
    
    .account-header {
        margin: 0 0 25px 0;
        padding: 0 10px 15px 10px;
    }
    
    .account-header h1 {
        font-size: 1.8em;
        line-height: 1.2;
        margin-bottom: 10px;
        word-break: keep-all;
        white-space: nowrap;
    }
    
    .account-subtitle {
        font-size: 1em;
        line-height: 1.4;
    }
    
    .account-stats {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
        margin: 0 0 30px 0;
        padding: 0 10px;
    }
    
    .stat-card {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        gap: 20px;
    }
    
    .stat-value {
        font-size: 2em;
    }
    
    .stat-icon {
        font-size: 2.5em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .account-section {
        margin: 30px 0 0 0;
        padding: 0 10px;
    }
    
    .account-section h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .conversion-item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .conversion-icon {
        font-size: 1.8em;
        -ms-flex-item-align: center;
        align-self: center;
    }
    
    .conversion-info {
        width: 100%;
    }
    
    .conversion-file {
        font-size: 0.95em;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .conversion-meta {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 5px;
        font-size: 0.85em;
    }
    
    .conversion-status {
        width: 100%;
        text-align: center;
    }
    
    /* Конвертеры */
    .converters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .converters-container {
        padding: 20px 15px;
    }
    
    .converters-container header h1 {
        font-size: 2em;
    }
    
    .converters-container .subtitle {
        font-size: 0.95em;
    }
    
    .converter-card {
        padding: 20px;
    }
    
    .converter-icon {
        font-size: 2.5em;
        margin-bottom: 12px;
    }
    
    .converter-card h3 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .converter-card p {
        font-size: 0.9em;
    }
    
    .coming-soon-badge {
        font-size: 0.75em;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }
    
    /* Вкладки */
    .compress-tabs {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #ecf0f1;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: #e74c3c;
    }
    
    /* Настройки */
    .settings-section {
        padding: 20px 15px;
    }
    
    .settings-actions {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
    
    /* Модальные окна */
    .limit-modal-content {
        padding: 25px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .limit-modal-actions {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .limit-modal-actions .btn-primary,
    .limit-modal-actions .btn-secondary {
        width: 100%;
    }
    
    /* Авторизация */
    .auth-box {
        padding: 25px 20px;
        margin: 20px;
    }
    
    /* Дополнительные улучшения для мобильных */
    .files-header h2 {
        font-size: 1.1em;
    }
    
    .file-item {
        padding: 12px;
        gap: 8px;
    }
    
    .file-name {
        font-size: 0.9em;
    }
    
    .file-size {
        font-size: 0.85em;
    }
    
    .format-select-btn {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    .download-btn {
        font-size: 1em;
        height: 40px;
    }
    
    .btn-bulk-convert {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    .footer-bar {
        padding: 12px;
        gap: 10px;
    }
    
    .btn-add,
    .btn-convert,
    .btn-download-all {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .footer-hint {
        font-size: 0.75em;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    header h1,
    .landing-hero-text header h1 {
        font-size: 1.5em;
    }
    
    .subtitle,
    .landing-hero-text .subtitle {
        font-size: 0.85em;
    }
    
    .container {
        padding: 8px;
    }
    
    /* Селектор форматов для маленьких экранов */
    .format-selector-overlay {
        padding: 5px;
    }
    
    .format-selector {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .format-header {
        padding: 12px;
        gap: 6px;
    }
    
    .format-search {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .close-btn {
        width: 32px;
        height: 32px;
        font-size: 1.3em;
    }
    
    .format-content {
        max-height: calc(95vh - 80px);
    }
    
    .format-categories {
        padding: 10px;
        gap: 6px;
    }
    
    .category {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .format-options {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
        padding: 10px;
        max-height: calc(95vh - 160px);
    }
    
    .format-option {
        min-height: 40px;
        padding: 8px 6px;
        font-size: 0.8em;
    }
    
    .account-container {
        padding: 12px 8px;
    }
    
    .account-header {
        padding: 0 8px 12px 8px;
        margin-bottom: 20px;
    }
    
    .account-header h1 {
        font-size: 1.5em;
        white-space: normal;
        word-break: break-word;
    }
    
    .account-subtitle {
        font-size: 0.9em;
    }
    
    .account-stats {
        gap: 12px;
        margin-bottom: 25px;
        padding: 0 8px;
    }
    
    .stat-card {
        padding: 15px;
        gap: 15px;
    }
    
    .stat-icon {
        font-size: 2em;
    }
    
    .stat-value {
        font-size: 1.75em;
    }
    
    .stat-label {
        font-size: 0.85em;
    }
    
    .account-section {
        padding: 0 8px;
        margin-top: 25px;
    }
    
    .account-section h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .conversion-item {
        padding: 12px;
        gap: 12px;
    }
    
    .conversion-icon {
        font-size: 1.5em;
    }
    
    .conversion-file {
        font-size: 0.9em;
    }
    
    .conversion-meta {
        font-size: 0.8em;
    }
    
    .empty-state {
        padding: 50px 15px;
    }
    
    .empty-state p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .empty-state .btn-primary {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    .converters-container,
    .compress-container,
    .settings-container {
        padding: 12px;
    }
    
    .converters-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-top: 20px;
    }
    
    .converters-container {
        padding: 12px 8px;
    }
    
    .converters-container header {
        padding: 0 0 15px 0;
        margin-bottom: 15px;
    }
    
    .converters-container header h1 {
        font-size: 1.75em;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .converters-container .subtitle {
        font-size: 0.85em;
        line-height: 1.4;
    }
    
    .converter-card {
        padding: 15px;
        border-radius: 8px;
        min-height: auto;
    }
    
    .converter-icon {
        font-size: 2em;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .converter-card h3 {
        font-size: 1.1em;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .converter-card p {
        font-size: 0.85em;
        line-height: 1.5;
        margin: 0;
    }
    
    .coming-soon-badge {
        font-size: 0.7em;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }
    
    .upload-area {
        padding: 30px 10px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    
    .format-options {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }
    
    .conversion-item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 10px;
    }
    
    .conversion-meta {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 5px;
    }
}

/* Портретная ориентация */
@media (max-width: 768px) and (orientation: portrait) {
    .format-selector {
        width: 95%;
        max-height: 85vh;
    }
}

/* Ландшафтная ориентация */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
    .format-selector {
        max-height: 90vh;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
    }
}

/* Стили для страницы настроек */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.settings-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 0 0 30px 0;
    width: 100%;
    box-sizing: border-box;
}

.settings-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

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

.quality-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    width: 100%;    
}

/* Кроссбраузерные стили для range input */
.quality-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.quality-slider::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    -webkit-transition: background 0.2s ease;
    -o-transition: background 0.2s ease;
    transition: background 0.2s ease;
    margin-top: -6px;
}

.quality-slider::-webkit-slider-thumb:hover,
.quality-slider::-webkit-slider-thumb:active {
    background: #c0392b;
}

.quality-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    border: none;
    -moz-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.quality-slider::-moz-range-thumb:hover,
.quality-slider::-moz-range-thumb:active {
    background: #c0392b;
}

.quality-slider::-ms-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.quality-slider::-ms-fill-lower,
.quality-slider::-ms-fill-upper {
    background: #ddd;
    border-radius: 5px;
}

.quality-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    border: none;
}

.quality-slider::-ms-thumb:hover {
    background: #c0392b;
}

.quality-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #e74c3c;
    min-width: 40px;
    text-align: center;
}

.quality-percent {
    color: #7f8c8d;
    font-weight: 600;
}

.setting-description {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 8px;
    line-height: 1.5;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 2px solid #95a5a6;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: white;
    margin-top: 3px;
    display: inline-block;
    vertical-align: middle;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

.checkbox-input:focus + .checkbox-custom {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.checkbox-input:checked + .checkbox-custom {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05em;
    line-height: 1.5;
    flex: 1;
}

.select-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    background-color: white;
    font-size: 1em;
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.select-input:focus {
    outline: none;
    border-color: #e74c3c;
}

.number-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1em;
    color: #2c3e50;
    transition: border-color 0.2s ease;
}

.number-input:focus {
    outline: none;
    border-color: #e74c3c;
}

.format-settings {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.format-setting-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #e74c3c;
    width: 100%;
    box-sizing: border-box;
}

.format-setting-item h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.settings-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}


/* Страницы авторизации */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
}

.auth-box {
    background: radial-gradient(circle at top left, rgba(15, 24, 72, 0.98), rgba(5, 8, 20, 0.98));
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.auth-subtitle {
    color: #c5d0ff;
    text-align: center;
    margin-bottom: 30px;
}

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

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

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #e74c3c;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    transition: color 0.2s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: #2c3e50;
}

.password-toggle:focus {
    outline: none;
    color: #e74c3c;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
}

.auth-footer a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

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

.auth-message {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.auth-message.success {
    background-color: #27ae60;
    color: white;
}

.auth-message.error {
    background-color: #e74c3c;
    color: white;
}

/* Личный кабинет */
.account-container {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    -webkit-box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    -moz-box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 20px auto;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.account-header {
    margin: 0 0 40px 0;
    padding: 0 20px 25px 20px;
    text-align: center;
    border-bottom: 2px solid #e1e8ed;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.account-header h1 {
    color: #fff;
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    letter-spacing: -0.5px;
}

.account-subtitle {
    color: #7f8c8d;
    font-size: 1.25em;
    margin-top: 10px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 400;
}

.account-stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 25px;
    margin: 0 0 50px 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 25px;
    color: white;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    -webkit-box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.stat-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-icon {
    font-size: 3.5em;
    -webkit-filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.stat-info {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.05em;
    opacity: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.account-section {
    margin: 40px 0 0 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.account-section h2 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
    letter-spacing: -0.3px;
}

.conversions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conversion-item {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
    -o-transition: transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.conversion-item:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.conversion-icon {
    font-size: 2em;
}

.conversion-info {
    flex: 1;
}

.conversion-file {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.05em;
    line-height: 1.4;
}

.conversion-meta {
    display: flex;
    gap: 15px;
    font-size: 0.95em;
    color: #5a6c7d;
    font-weight: 500;
}

.conversion-type {
    text-transform: uppercase;
    font-weight: 700;
    color: #34495e;
    letter-spacing: 0.5px;
}

.conversion-date {
    color: #7f8c8d;
    font-weight: 500;
}

.conversion-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 2px dashed #bdc3c7;
}

.empty-state p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #95a5a6;
}

.empty-state .btn-primary {
    padding: 15px 40px;
    font-size: 1.1em;
    -webkit-box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Стили для секции подписки */
.subscription-section {
    margin: 40px 0 0 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.subscription-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    padding: 30px;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.subscription-card.no-subscription {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    text-align: center;
    padding: 40px;
}

.subscription-card.no-subscription p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: white;
}

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

.subscription-plan-name {
    font-size: 1.8em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subscription-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.6em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscription-status-badge.active {
    background-color: rgba(46, 213, 115, 0.9);
    color: white;
}

.subscription-status-badge.cancelled {
    background-color: rgba(255, 159, 10, 0.9);
    color: white;
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-label {
    font-weight: 600;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95em;
}

.detail-value {
    font-weight: 700;
    font-size: 1.1em;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.subscription-actions {
    margin-top: 10px;
}

.subscription-actions .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subscription-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subscription-actions .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.subscription-notice {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 159, 10, 0.2);
    border-radius: 8px;
    border-left: 4px solid rgba(255, 159, 10, 0.8);
}

.subscription-notice p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: white;
    font-weight: 500;
}

.stat-sublabel {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 5px;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .subscription-card {
        padding: 20px;
    }
    
    .subscription-plan-name {
        font-size: 1.4em;
    }
    
    .subscription-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-label,
    .detail-value {
        width: 100%;
    }
}

.empty-state .btn-primary:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Страница конвертеров */
.converters-container {
    background: radial-gradient(circle at top left, rgba(15, 24, 72, 0.98), rgba(5, 8, 20, 0.98));
    border-radius: 20px;
    padding: 28px 24px;
    -webkit-box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    -moz-box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    max-width: 1200px;
    margin: 30px auto 24px;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.converters-container header,
.documents-container header,
.video-container header,
.audio-container header,
.presentations-container header,
.fonts-container header,
.archives-container header {
    margin-bottom: 30px;
    text-align: center;
}

.converters-container header h1,
.documents-container header h1,
.video-container header h1,
.audio-container header h1,
.presentations-container header h1,
.fonts-container header h1,
.archives-container header h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.converters-container .subtitle,
.documents-container .subtitle,
.video-container .subtitle,
.audio-container .subtitle,
.presentations-container .subtitle,
.fonts-container .subtitle,
.archives-container .subtitle {
    color: #dde4ff;
    font-size: 1.1em;
}

.converters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Медиа-запросы для планшетов */
@media (max-width: 1024px) {
    .converters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .converters-container,
    .documents-container,
    .video-container,
    .audio-container,
    .presentations-container,
    .fonts-container,
    .archives-container {
        padding: 25px 20px;
    }
    
    .converters-container header h1,
    .documents-container header h1,
    .video-container header h1,
    .audio-container header h1,
    .presentations-container header h1,
    .fonts-container header h1,
    .archives-container header h1 {
        font-size: 2.2em;
    }
}

/* Медиа-запросы для маленьких планшетов и больших мобильных */
@media (max-width: 900px) {
    .converters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .converters-container {
        padding: 20px 15px;
    }
    
    .converter-card {
        padding: 25px;
    }
    
    .converters-container header h1 {
        font-size: 2em;
    }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .converters-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .converters-container {
        padding: 20px 15px;
    }
    
    .converters-container header {
        margin-bottom: 25px;
    }
    
    .converters-container header h1 {
        font-size: 2em;
    }
    
    .converters-container .subtitle {
        font-size: 0.95em;
    }
}

.converter-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.converter-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    -moz-box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #e74c3c;
}

.converter-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.converter-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.converter-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.converter-card p {
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.6;
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Страница сжатия */
.compress-container {
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.compress-container header {
    margin: 0 0 30px 0;
    padding: 20px 20px 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.compress-tabs {
    display: flex;
    gap: 10px;
    margin: 0 0 30px 0;
    padding: 0 20px;
    border-bottom: 2px solid #ecf0f1;
    width: 100%;
    box-sizing: border-box;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #7f8c8d;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
}

.compress-settings {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.compress-settings h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.btn-compress {
    margin-top: 20px;
    width: 100%;
}

.info-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

/* Модальное окно лимита */
.limit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 10000;
    -webkit-animation: fadeIn 0.2s ease;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.limit-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px 25px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    box-sizing: border-box;
}

.limit-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #7f8c8d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 1;
}

.limit-modal-close:hover {
    color: #2c3e50;
}

.limit-modal-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    padding-right: 30px;
}

.limit-modal-content p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.limit-modal-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Страница тарифов */
.pricing-container {
    background: radial-gradient(circle at top left, rgba(15, 24, 72, 0.98), rgba(5, 8, 20, 0.98));
    border-radius: 20px;
    padding: 32px 30px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    max-width: 1200px;
    margin: 30px auto 24px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.pricing-subtitle {
    color: #dde4ff;
    font-size: 1.1em;
}

.pricing-alert {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #856404;
}

.pricing-alert.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.billing-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.toggle-btn {
    padding: 12px 30px;
    border: 2px solid #bdc3c7;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.toggle-hint {
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.pricing-plans {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.pricing-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 30px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    border: 2px solid transparent;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.pricing-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pricing-card.popular {
    border-color: #27ae60;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.plan-name {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin-bottom: 15px;
}

.price-amount {
    font-size: 3em;
    font-weight: 700;
    color: #2c3e50;
}

.price-currency {
    font-size: 1.5em;
    color: #7f8c8d;
}

.price-period {
    color: #7f8c8d;
    font-size: 1em;
    display: block;
    margin-top: 5px;
}

.plan-discount {
    text-align: center;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #95a5a6;
    margin-right: 10px;
}

.discount-text {
    background-color: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.plan-flexibility {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 25px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.plan-features li {
    padding: 10px 0;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
}

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

.btn-plan-select {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.btn-plan-select:hover {
    background-color: #2980b9;
}

.btn-plan-select:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.pricing-disclaimer {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin: 30px 0;
}

.pricing-disclaimer a {
    color: #3498db;
    text-decoration: none;
}

.all-plans-include {
    margin: 50px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.all-plans-include h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.included-features {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.included-feature {
    text-align: center;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 200px;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.included-feature p {
    color: #2c3e50;
    font-weight: 500;
}

.pricing-faq {
    margin-top: 50px;
}

.pricing-faq h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
}

.faq-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: radial-gradient(circle at top left, rgba(15, 24, 72, 0.96), rgba(5, 8, 20, 0.96));
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(120, 144, 255, 0.25);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    color: #e0e6ff;
    font-size: 1.05em;
    font-weight: 600;
    text-align: left;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(120, 144, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    line-height: 1;
    color: #e0e6ff;
    background-color: rgba(21, 27, 61, 0.9);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.faq-item.active .faq-icon {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.faq-answer p {
    margin-top: 10px;
    color: #dde4ff;
    line-height: 1.6;
}

.faq-answer a {
    color: #64b5ff;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

/* Модальное окно оплаты */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 10000;
    -webkit-animation: fadeIn 0.2s ease;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.payment-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.payment-modal-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.payment-modal-content p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.payment-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Адаптивность для тарифов */
@media (max-width: 768px) {
    .pricing-container {
        padding: 20px;
    }
    
    .pricing-header h1 {
        font-size: 2em;
    }
    
    .pricing-plans {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .pricing-card {
        max-width: 100%;
    }
    
    .included-features {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .payment-actions {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .payment-actions .btn-primary,
    .payment-actions .btn-secondary {
        width: 100%;
    }
    
    /* Кнопки переключения периода на всю ширину в мобильной версии */
    .billing-toggle {
        gap: 15px;
    }
    
    .toggle-btn {
        max-width: 100%;
        width: 100%;
    }
}

/* Админ-панель */
.admin-container {
    background: radial-gradient(circle at top left, rgba(15, 24, 72, 0.98), rgba(5, 8, 20, 0.98));
    border-radius: 20px;
    padding: 28px 24px;
    -webkit-box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    -moz-box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
    max-width: 1200px;
    margin: 30px auto 24px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
}

.admin-header {
    margin-bottom: 30px;
    text-align: center;
}

.admin-header h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.admin-subtitle {
    color: #dde4ff;
    font-size: 1.1em;
}

.admin-stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.admin-section {
    margin-top: 30px;
}

.admin-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
    letter-spacing: -0.3px;
}

.admin-filters {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.admin-search {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1em;
}

.admin-search:focus {
    outline: none;
    border-color: #3498db;
}

.admin-filter {
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1em;
    background-color: white;
    cursor: pointer;
}

.admin-filter:focus {
    outline: none;
    border-color: #3498db;
}

.users-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.users-table thead {
    background-color: #2c3e50;
    color: white;
}

.users-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
    color: #34495e;
    font-weight: 400;
    font-size: 0.95em;
}

.users-table td strong {
    color: #2c3e50;
    font-weight: 600;
}

.users-table tbody tr:hover {
    background-color: #f8f9fa;
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-badge {
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-badge.admin {
    background-color: #e74c3c;
    color: white;
}

.status-badge.premium {
    background-color: #27ae60;
    color: white;
}

.status-badge.regular {
    background-color: #95a5a6;
    color: white;
}

.btn-action {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s ease;
}

a.btn-action {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    -webkit-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.btn-action:hover {
    background-color: #ecf0f1;
}

/* Адаптивность админ-панели */
/* Планшеты */
@media (max-width: 1024px) {
    .admin-container {
        padding: 20px;
    }
    
    .admin-stats {
        gap: 15px;
    }
    
    .stat-card {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 calc(33.333% - 15px);
        flex: 1 1 calc(33.333% - 15px);
        min-width: 200px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px 10px;
    }
    
    .admin-header {
        margin-bottom: 20px;
    }
    
    .admin-header h1 {
        font-size: 1.75em;
        line-height: 1.2;
    }
    
    .admin-subtitle {
        font-size: 0.95em;
    }
    
    .admin-stats {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .stat-card {
        width: 100%;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
    
    .stat-value {
        font-size: 2em;
    }
    
    .admin-section {
        margin-top: 20px;
    }
    
    .admin-section h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    .admin-filters {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .admin-search,
    .admin-filter {
        width: 100%;
        min-width: 100%;
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    .users-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border-radius: 6px;
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .users-table {
        font-size: 0.85em;
        min-width: 800px;
    }
    
    .users-table th,
    .users-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .users-table th:nth-child(1),
    .users-table td:nth-child(1) {
        display: none; /* Скрываем ID на мобильных */
    }
    
    .users-table th:nth-child(7),
    .users-table td:nth-child(7) {
        display: none; /* Скрываем дату регистрации на мобильных */
    }
    
    .admin-badge {
        font-size: 0.7em;
        padding: 2px 6px;
        margin-left: 5px;
    }
    
    .status-badge {
        font-size: 0.75em;
        padding: 4px 10px;
    }
    
    .btn-action {
        font-size: 1em;
        padding: 5px 8px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .admin-container {
        padding: 12px 8px;
    }
    
    .admin-header h1 {
        font-size: 1.5em;
    }
    
    .admin-subtitle {
        font-size: 0.85em;
    }
    
    .admin-stats {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        font-size: 2em;
    }
    
    .stat-value {
        font-size: 1.75em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .admin-section h2 {
        font-size: 1.3em;
    }
    
    .admin-search,
    .admin-filter {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .users-table {
        font-size: 0.8em;
        min-width: 700px;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px 6px;
    }
    
    .users-table th:nth-child(5),
    .users-table td:nth-child(5) {
        display: none; /* Скрываем конвертации на очень маленьких экранах */
    }
    
    .users-table th:nth-child(6),
    .users-table td:nth-child(6) {
        display: none; /* Скрываем подписки на очень маленьких экранах */
    }
    
    .status-badge {
        font-size: 0.7em;
        padding: 3px 8px;
    }
}

/* Viewport meta tag для мобильных устройств */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari специфичные стили */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn-primary,
    .btn-secondary,
    .format-option,
    .bulk-format-option {
        min-height: 44px;
        min-width: 44px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .file-item {
        padding: 20px;
    }
    
    .format-select-btn {
        padding: 12px 20px;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

