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

:root {
    /* Dark Theme Variables (Black & White Only) */
    --bg-color: #181818;
    --text-color: #ffffff;
    --header-bg: #0d0d0d;
    --border-color: #2a2a2a;
    --card-bg: #232323;
    --hover-bg: #232323;
    --icon-filter: invert(1);
    --btn-bg: #fff;
    --btn-text: #181818;
    --btn-border: 1px solid #bdbdbd;
}

body {
    font-family: 'Inter', 'IBM Plex Mono', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-y: scroll; /* Always show vertical scrollbar to prevent layout shifts */
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--header-bg);
    border-radius: 0px;
    box-shadow: 0 0px 0px rgba(255, 255, 255, 0.04);
    margin: 1rem 1rem 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

nav {
    display: none; /* Скрываем верхнюю навигацию на мобильной версии */
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 1rem;
    margin-bottom: 70px; /* Оставляем место для нижней навигации */
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--card-bg);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    font-family: 'IBM Plex Mono', monospace;
    appearance: none;
    background-color: var(--card-bg);
    color: var(--text-color);
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23ffffff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 10px;
}

/* Buttons */
.btn, .use-sound-btn, .submit-video-btn, .open-video-btn, .order-sound-btn, .order-submit-btn, .copy-link-btn, .order-copy-center, .settings-card-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 12px;
    background-color: var(--btn-bg) !important;
    color: var(--btn-text) !important;
    text-decoration: none;
    font-family: 'Inter', 'IBM Plex Mono', Arial, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: none;
}

.use-sound-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 12px !important;
    width: 100%;
    text-align: center;
}

.btn:hover, .use-sound-btn:hover, .submit-video-btn:hover, .open-video-btn:hover, .order-sound-btn:hover, .order-submit-btn:hover, .copy-link-btn:hover, .order-copy-center:hover, .settings-card-btn:hover {
    background-color: #fff !important;
    color: #181818 !important;
    border: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: var(--btn-bg) !important;
    color: var(--btn-text) !important;
    border: none;
    border-radius: 12px;
}

.btn-primary:hover {
    background-color: #fff !important;
    color: #181818 !important;
    border: none;
}

/* Cards */
.card, .wallet-card, .order-page-container, .order-mobile-card, .profile-section, .modal-content, .order-view-container {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-subtitle {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Stats Box */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table, th, td {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

th, td {
    text-align: left;
    padding: 0.75rem;
}

th {
    font-weight: 600;
    color: var(--text-color);
}

tr:hover {
    background: var(--hover-bg) !important;
}

/* Profile */
.profile-info {
    margin-bottom: 2rem;
}

.profile-info h2 {
    margin-bottom: 1rem;
}

.balance {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color) !important;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-link {
    color: var(--text-color) !important;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color) !important;
    border-radius: 50%;
    background: var(--card-bg) !important;
    padding: 0;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--text-color) !important;
    color: var(--bg-color) !important;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.2s ease;
    filter: var(--icon-filter);
}

.social-link:hover .social-icon {
    fill: var(--bg-color) !important;
    filter: none;
}

.social-link .material-symbols-outlined {
    font-size: 1.4rem;
    filter: var(--icon-filter);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-color) !important;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
    border-color: var(--border-color) !important;
    background: var(--card-bg) !important;
}

.footer-link:hover {
    color: var(--bg-color) !important;
    text-decoration: underline;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 2rem;
}

.empty-state p {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* nav {
        display: none; 
    } */ /* Removed rule to hide top nav on mobile */
    
    .stats-box {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link .material-symbols-outlined {
        font-size: 1.2rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.2rem;
        color: var(--text-color);
    }
}

/* Прогресс бар */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 5px;
    background-color: #000;
    width: 25%; /* Фиксированная ширина для демонстрации */
    transition: width 0.5s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.progress-value {
    text-align: center;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Cards для карточек треков/заказов - новый дизайн */
.snippet-card {
    border: none !important;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    width: 100%;
    min-width: 0;
}

.snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    min-width: 0;
}

.snippet-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.snippet-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.snippet-title {
    font-weight: 500;
    line-height: 1.2;
    font-size: 0.9rem;
    min-width: 0;
}

.snippet-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0.5rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    /* max-height: 4.2em; Примерно 3 строки текста */
    /* overflow: hidden; */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical; */
}

.snippet-title > div:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.snippet-title > div:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--text-color);
    font-size: 0.92rem;
    margin-top: 2px;
}

.snippet-price {
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    color: #2ecc71;
}

/* Grid Layout для заказов */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0;
    justify-content: center;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1200px) {
    .orders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .orders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Добавляем стили для .orders-list на экранах до 992px, если он не грид по умолчанию */
    .orders-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .orders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0;
    }
    .snippet-card {
        padding: 0.8rem;
    }
    .snippet-title {
        font-size: 0.85rem;
    }
    .snippet-price {
        font-size: 0.9rem;
    }
    .snippet-play {
        width: 36px;
        height: 36px;
    }
    .use-sound-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    /* Убираем обрезку текста для описания на мобильных */
    .snippet-description {
        max-height: none;
        overflow: visible;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }
}

/* Стили для ПК версии (экраны от 993px) */
@media (min-width: 993px) {
    .orders-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .snippet-card {
        padding: 1.2rem; /* Немного уменьшаем внутренние отступы */
    }
}

/* Нижняя навигация — обновлённый стиль */
.bottom-nav {
    display: flex;
    position: fixed;
    top: 0.8rem;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    bottom: auto;
    width: fit-content;
    background: var(--card-bg) !important;
    border: none !important;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-direction: row;
    gap: 0.8rem;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
    padding: 0 1.5rem;
}

.nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
    min-width: 0;
    padding: 0.2rem 0.1rem 0.1rem 0.1rem;
    background: transparent !important;
    border-color: var(--border-color) !important;
}

.nav-item.active {
    color: var(--text-color) !important;
    background: var(--hover-bg) !important;
    border-color: var(--border-color) !important;
}

.nav-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.2rem;
    border-radius: 50%;
    border: 1.5px solid var(--border-color) !important;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--card-bg) !important;
}

.nav-item.active .nav-icon {
    border-color: var(--text-color) !important;
    background: var(--hover-bg) !important;
    transform: scale(1.08);
}

.nav-item span {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.1rem;
    letter-spacing: 0.01em;
}

@media (max-width: 600px) {
    .bottom-nav-container {
        padding: 0 0.5rem;
        gap: 0.2rem;
    }
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    .nav-item span {
        font-size: 0.78rem;
    }
}

/* Кошелек для страницы профиля */
.wallet-card {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wallet-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.wallet-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #6200ee;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.statistic-item {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Страница с информацией о треке */
.track-info {
    padding: 1rem 0 2rem;
}

.track-description {
    margin-bottom: 1.5rem;
}

.track-price {
    margin-bottom: 1.5rem;
}

/* Text alignment */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Show bottom nav on mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto; /* Ensure top is not set */
        width: 100%; /* Full width on mobile */
        border-radius: 30px 30px 0 0; /* Keep mobile border radius */
        padding: 0.8rem 0; /* Keep mobile padding */
        flex-direction: row; /* Ensure horizontal layout on mobile */
        gap: 0.5rem; /* Keep mobile gap */
        box-sizing: border-box; /* Ensure correct sizing */
    }
    
    main {
        padding-bottom: 70px;
    }
    
    /* header nav {
        display: none;
    } */ /* Removed duplicate rule */
}

@media (min-width: 1200px) {
    header nav {
        display: flex; /* Ensure top nav is visible on desktop */
    }
    
    .form-container {
        max-width: 900px; /* Increase max-width for forms on desktop */
        margin: 0 auto; /* Center the form */
    }
    
    .bottom-nav {
        display: flex; /* Keep bottom nav visible on desktop */
        position: fixed; /* Change to fixed for consistent positioning */
        top: 0.8rem; /* Position at the top - slightly higher */
        left: 0; /* Reset left positioning */
        right: 0; /* Set right positioning */
        margin-left: auto; /* Auto left margin for centering */
        margin-right: auto; /* Auto right margin for centering */
        transform: none; /* Remove transform */
        bottom: auto; /* Reset bottom positioning */
        width: fit-content; /* Allow content to define width */
        background: var(--card-bg) !important; /* Background color */
        border: none !important; /* Border */
        border-radius: 20px; /* Rounded corners */
        padding: 0.2rem 0.6rem; /* Adjusted padding - even smaller */
        z-index: 1000; /* Ensure it's on top */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Add shadow */
        flex-direction: row; /* Arrange items horizontally */
        gap: 0.8rem; /* Space between items - even smaller */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }

    .bottom-nav-container {
        width: auto; /* Allow container to shrink */
        padding: 0; /* Remove padding */
        display: flex;
        flex-direction: row; /* Arrange items horizontally */
        gap: 0.8rem; /* Space between items - even smaller */
        align-items: center; /* Vertically align items */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }

    .nav-item {
        flex: none; /* Prevent items from growing */
        min-width: auto; /* Allow items to shrink */
        padding: 0.3rem; /* Add some padding - smaller */
        display: flex;
        flex-direction: row; /* Ensure items are in a row */
        justify-content: center;
        align-items: center;
        gap: 0.3rem; /* Space between icon and text if text were visible - smaller */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }

    .nav-icon {
        width: 24px; /* Icon size - smaller */
        height: 24px; /* Icon size - smaller */
        margin: 0; /* Remove margin */
        border-radius: 50%; /* Keep rounded */
        border: 1px solid var(--border-color) !important; /* Lighter border */
        padding: 0.15rem; /* Padding - smaller */
        background: var(--card-bg) !important; /* Background */
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }

    .nav-item.active .nav-icon {
        border-color: var(--text-color) !important; /* Border color when active */
        background: var(--hover-bg) !important; /* Background when active */
    }

    .nav-item span {
        display: none; /* Hide text labels on desktop */
    }
    
    main {
        margin-bottom: 0; /* Remove bottom margin on desktop */
        margin-left: 0; /* Remove left margin since nav is positioned absolutely */
        padding-top: 5rem; /* Add padding to the top of main content - adjusted for both header and fixed nav */
    }

    .container {
        max-width: 900px; /* Make content area narrower */
        margin: 0 auto; /* Center container */
    }
}

/* --- Admin Login Page --- */
.admin-login-container {
    max-width: 400px;
    margin: 60px auto 0 auto;
    padding: 32px 24px;
    background: #fff;
    border: 2px solid #111;
    border-radius: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    font-family: 'IBM Plex Mono', monospace;
}
.admin-login-container h2 {
    font-size: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 24px;
}
.admin-login-container .form-group label {
    font-size: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 8px;
}
.admin-login-container .form-control {
    border-radius: 18px;
    border: 1.5px solid #111;
    font-size: 1.1rem;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-family: 'IBM Plex Mono', monospace;
    background: #fafbfc;
}
.admin-btn {
    width: 100%;
    padding: 16px 0;
    font-size: 1.2rem;
    border-radius: 24px;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    margin-top: 8px;
}
.admin-btn:hover, .admin-btn:focus {
    background: #fff;
    color: #111;
    border: 2px solid #111;
}
@media (max-width: 600px) {
    .admin-login-container {
        max-width: 98vw;
        padding: 18vw 4vw 10vw 4vw;
        border-radius: 24px;
    }
    .admin-login-container h2 {
        font-size: 1.4rem;
    }
    .admin-btn {
        font-size: 1rem;
        padding: 14px 0;
        border-radius: 18px;
    }
} 

/* Order page redesign */
.order-page-container {
    max-width: 540px;
    margin: 2.5rem auto 1.5rem auto;
    background: #fff;
    border: 1.5px solid #000;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    padding: 2.2rem 2rem 2rem 2rem;
}
.order-header-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.order-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.order-artist {
    color: #888;
    font-size: 1.08rem;
    margin-bottom: 0.2rem;
}
.copy-link-btn {
    background: #f5f5f5;
    border: 1.5px solid #000;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.copy-link-btn:hover {
    background: #000;
    color: #fff;
}
.order-info-block {
    margin-bottom: 1.5rem;
    background: #fafbfc;
    border-radius: 12px;
    padding: 1.2rem 1rem 1rem 1rem;
    border: 1px solid #eee;
}
.order-info-row {
    margin-bottom: 0.5rem;
    font-size: 1.08rem;
}
.order-audio-block {
    margin: 1.2rem 0 0.7rem 0;
    display: flex;
    align-items: center;
}
.custom-audio-player {
    width: 100%;
    max-width: 350px;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    outline: none;
    border: 1px solid #ddd;
    padding: 0.2rem 0.5rem;
}
.custom-audio-player::-webkit-media-controls-panel {
    background: #f5f5f5;
    border-radius: 12px;
}
.custom-audio-player:focus {
    outline: 2px solid #007bff;
}
.order-progress-block {
    margin: 0.7rem 0 0.2rem 0;
}
@media (max-width: 700px) {
    .order-page-container {
        padding: 1.1rem 0.5rem 1.5rem 0.5rem;
    }
    .order-title {
        font-size: 1.3rem;
    }
}

/* Минималистичный мобильный order card */
.order-mobile-card {
    max-width: 340px;
    margin: 2.5rem auto 1.5rem auto;
    background: #fff;
    border: 1.5px solid #000;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 1.2rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}
.order-copy-center {
    display: block;
    margin: 0 auto 1.1rem auto;
    border-radius: 16px;
    font-size: 0.95rem;
    padding: 0.3rem 1.2rem;
    background: #fff;
    border: 1.2px solid #000;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.order-main-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}
.order-audio-col {
    flex-shrink: 0;
}
.order-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #000;
    background: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.order-play-btn:hover {
    background: #000;
    color: #fff;
}
.order-title-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.order-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}
.order-title-main {
    font-size: 1.1rem;
    font-weight: 600;
}
.order-price-main {
    font-size: 1.1rem;
    font-weight: 700;
}
.order-artist-main {
    color: #888;
    font-size: 0.98rem;
    margin-top: 0.1rem;
}
.order-info-list {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    margin-bottom: 1.1rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}
.order-sound-btn {
    margin-bottom: 0.7rem;
    border-radius: 30px;
    font-size: 1.05rem;
    background: #fff;
    border: 1.2px solid #000;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    width: 100%;
}
.order-submit-btn {
    border-radius: 30px;
    font-size: 1.05rem;
    width: 100%;
    margin-top: 0.3rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
}
@media (max-width: 500px) {
    .order-mobile-card {
        max-width: 98vw;
        padding: 1.1rem 0.2rem 1.2rem 0.2rem;
    }
} 

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0;
}

@media (max-width: 600px) {
    .profile-section {
        padding: 0.5rem;
    }
    .profile-header {
        padding: 0.5rem 0;
    }
    .profile-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .table-responsive {
        font-size: 0.95rem;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    margin: auto;
    position: relative;
    width: 95vw;
    box-sizing: border-box;
}
@media (max-width: 500px) {
    .modal-content {
        padding: 1rem;
        max-width: 98vw;
    }
}

.modal-logout-link {
    display: block;
    text-align: center;
    color: #666; /* Используем цвет, похожий на неактивные элементы навигации */
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    padding: 0.5rem 1rem; /* Добавляем padding для удобства нажатия */
    transition: color 0.3s ease;
}

.modal-logout-link:hover {
    color: #000; /* Цвет при наведении */
    text-decoration: underline;
}

/* Transaction History Styles */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.transaction-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    color: var(--text-color);
    overflow: hidden;
}

.transaction-item.active {
    border-color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.transaction-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.transaction-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}

.transaction-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.transaction-item.active .transaction-details {
    display: block;
}

.transaction-details p {
    margin-bottom: 0.4rem;
}

.transaction-details p:last-child {
    margin-bottom: 0;
}

/* Status Colors */
.status-pending {
    background-color: var(--hover-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.status-completed {
    background-color: #2ecc71;
    color: var(--bg-color);
    border: 1px solid #2ecc71;
}

.status-cancelled,
.status-rejected {
    background-color: #e74c3c;
    color: var(--bg-color);
    border: 1px solid #e74c3c;
}

@media (max-width: 600px) {
    .transaction-item {
        padding: 0.8rem;
    }
    .transaction-amount {
        font-size: 1rem;
    }
    .transaction-status {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    .transaction-details {
        font-size: 0.85rem;
    }
}

.landing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
    border-bottom: 1px solid #000;
    margin-bottom: 3rem;
    border-radius: 12px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.primary-button {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
}

.primary-button:hover {
    background-color: #fff;
    color: #000;
}

.secondary-button {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
}

.secondary-button:hover {
    background-color: #000;
    color: #fff;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.role-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000;
}

.role-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.role-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #000;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.footer-link {
    color: var(--text-color) !important;
    text-decoration: none;
    margin: 0 0.7rem;
    transition: color 0.2s;
    border-radius: 4px;
    padding: 4px 8px;
}

.footer-link:hover {
    color: var(--bg-color) !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        color: var(--text-color);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        padding: 0.8rem;
    }
    
    .roles-grid {
        gap: 1.5rem;
    }
    
    .role-card {
        padding: 1.5rem;
    }
    
    .role-icon {
        font-size: 2.5rem;
    }
    
    .role-title {
        font-size: 1.5rem;
    }
    
    .role-description {
        font-size: 1rem;
    }
    
    .footer {
        font-size: 0.8rem;
    }
} 

/* Order View Page Styles */
.order-view-container {
    max-width: 600px;
    margin: 1.5rem auto calc(6rem + 70px) auto;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
}

.order-info-item {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.4;
}

.order-info-item b {
    font-weight: 600;
}

.order-description-block {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.order-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.minimal-audio-player {
    width: 100%;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .order-view-container {
        margin-top: 1rem;
        margin-bottom: calc(5.5rem + 70px);
        padding: 1rem;
    }
    .order-info-item, .order-description-block {
        font-size: 0.95rem;
    }
} 

.settings-card-btn {
    width: 100%;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    background: #fff;
    color: #000;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 0;
}
@media (max-width: 600px) {
    .settings-card-btn {
        padding: 1rem;
        font-size: 1rem;
    }
} 

/* Landing Page New Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.features-section {
    padding: 4rem 0;
    border-bottom: 1px solid #000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    filter: var(--icon-filter);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.instructions-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px;
}

.instruction-block {
    margin-bottom: 4rem;
    border-radius: 12px;
    overflow: hidden;
}

.instruction-block:last-child {
    margin-bottom: 0;
}

.instruction-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.instruction-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.instruction-text {
    flex-grow: 1;
    /* Optional: Set a max-width if needed, but flex-grow should handle responsiveness */
    /* max-width: 80%; */
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--text-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

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

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

.instruction-gif {
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: var(--card-bg);
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.instruction-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    /* Оптимизация рендеринга */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    /* Отключение сглаживания для производительности */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Удаляем старые стили для GIF */
.instruction-gif-img {
    display: none;
}

.stats-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
}

.cta-section {
    padding: 4rem 0;
    text-align: center;
    border-radius: 12px;
}

.cta-text {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .instruction-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .instruction-gif {
        order: -1;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .instruction-title {
        font-size: 1.8rem;
    }

    .instruction-step h4 {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-text {
        font-size: 1.1rem;
    }

    .feature-card p {
        color: var(--text-color);
        opacity: 0.9;
    }

    .instruction-step p {
        color: var(--text-color);
        opacity: 0.9;
    }

    .stat-label {
        color: var(--text-color);
        opacity: 0.9;
    }

    .cta-text {
        color: var(--text-color);
        opacity: 0.9;
    }
} 

/* Инверсия иконок */
.icon-invert, .nav-icon svg, .material-symbols-outlined.icon-invert {
    filter: var(--icon-filter);
    transition: filter 0.2s;
}

/* Навигация */
.bottom-nav, .bottom-nav-container, .nav-item, .nav-icon {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}
.nav-item.active, .nav-item.active .nav-icon {
    background: var(--hover-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}
/* Социальные иконки и футер */
.social-link, .footer-link {
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
    background: var(--card-bg) !important;
}
.social-link:hover, .footer-link:hover {
    background: var(--text-color) !important;
    color: var(--bg-color) !important;
}
footer {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}
/* Таблицы */
table, th, td {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}
tr:hover {
    background: var(--hover-bg) !important;
}
/* Для svg иконок */
svg.icon-invert {
    filter: var(--icon-filter);
}

@media (min-width: 769px) {
    .bottom-nav {
        width: fit-content;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        border-radius: 20px;
        padding: 0.2rem 0.6rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 0.8rem;
    }
    .bottom-nav-container {
        width: auto;
        padding: 0;
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
        box-sizing: border-box;
    }
    .nav-item {
        flex: none;
        min-width: auto;
        padding: 0.3rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
        box-sizing: border-box;
    }
    .nav-item span {
        display: none !important;
    }
} 

@media (max-width: 768px) {
    .landing-container {
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 0.8rem;
    }

    .features-section {
        padding: 2rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .instructions-section {
        padding: 2rem 1rem;
    }

    .instruction-content {
        flex-direction: column;
        gap: 2rem;
    }

    .instruction-steps {
        width: 100%;
    }

    .instruction-gif {
        width: 100%;
    }

    .snippet-card.sample-card {
        max-width: 100%;
    }

    .cta-section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .instruction-title {
        font-size: 1.3rem;
    }

    .instruction-step h4 {
        font-size: 1.1rem;
    }

    .instruction-step p {
        font-size: 0.9rem;
    }

    .snippet-card {
        padding: 1rem;
    }

    .snippet-title > div:first-child {
        font-size: 1rem;
    }

    .snippet-title > div:last-child {
        font-size: 0.8rem;
    }

    .snippet-price {
        font-size: 1rem;
    }

    .progress-value {
        font-size: 0.9rem;
    }

    .order-status {
        font-size: 0.9rem;
    }

    .use-sound-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
} 

/* Разделитель */
.social-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: var(--text-color);
}

.social-divider::before,
.social-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: var(--divider-color);
}

.social-divider::before {
    left: 0;
}

.social-divider::after {
    right: 0;
}

/* Кнопки соцсетей */
.social-login {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.social-btn img {
    width: 20px;
    height: 20px;
    filter: var(--icon-filter);
}

.social-btn:hover {
    background-color: var(--hover-bg);
}

/* Google кнопка (можешь поменять на другие стили по бренду) */
.google-btn {
    border-color: var(--border-color);
}

/* Карточки выбора роли */
.role-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.role-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    width: 250px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.role-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.role-card h4 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--text-color);
}

.role-card p {
    font-size: 0.95rem;
    color: var(--text-color);
}

.role-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}


.role-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.role-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    width: 250px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.role-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.role-card.selected {
    border-color: var(--accent-color);
    background-color: var(--hover-bg);
}

.role-form {
    transition: all 0.3s ease;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-section.visible {
    opacity: 1;
    transform: translateY(0);
}

textarea, input, select {
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.loading {
    margin-top: 30px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.loading.visible {
    opacity: 1;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--text-color);
    border-bottom-color: var(--bg-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

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


.role-details-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

/* Убираем светлую тему и переключение темы */
.theme-toggle {
    display: none !important;
}

:root[data-theme="light"], :root[data-theme="dark"] {
    /* Отключаем кастомные темы, всегда тёмная */
}

/* --- Модальное окно заказа --- */
.order-modal-overlay {
    display: flex;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}
.order-modal-window {
    background: var(--card-bg);
    border-radius: 18px;
    max-width: 480px;
    width: 96vw;
    box-shadow: 0 8px 32px rgba(107,77,181,0.18);
    border: 1.5px solid #ffffff;
    position: relative;
    animation: fadeIn 0.25s;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.order-modal-window header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.5rem 1.1rem 1.5rem;
    background: var(--header-bg);
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid var(--border-color);
}
.order-modal-window .logo {
    font-size: 1.1rem;
    font-weight: 600;
}
.order-modal-window .order-modal-content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
    max-height: calc(90vh - 60px);
}
.order-modal-window .order-modal-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0.2em 0.7em;
    line-height: 1;
    border-radius: 50%;
}
.order-modal-window .order-modal-close:active {
    background: #232323;
}
@media (max-width: 600px) {
    .order-modal-window {
        max-width: 100vw;
        width: 100vw;
        border-radius: 10px;
        min-height: 0;
        max-height: 96vh;
    }
    .order-modal-window header {
        padding: 0.7rem 1rem 0.7rem 1rem;
        border-radius: 10px 10px 0 0;
    }
    .order-modal-window .order-modal-content {
        padding: 1.1rem 0.5rem 1rem 0.5rem;
        max-height: calc(96vh - 54px);
    }
}

/* Скругление для use-sound-btn, info-btn, form-select, tab.active */
.use-sound-btn,
.info-btn {
    border-radius: 12px !important;
}

.form-select {
    border-radius: 12px !important;
}

.tab.active {
    border-radius: 12px !important;
}

/* Убираем обводку у order-price-pill */
.order-price-pill {
    border: none !important;
    background: #fff;
    color: #181818 !important;
}

.form-check-label a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    transition: opacity 0.2s ease;
}

.form-check-label a:hover {
    opacity: 0.7;
}

.text-right a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    transition: opacity 0.2s ease;
}

.text-right a:hover {
    opacity: 0.7;
}

.text-center a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    transition: opacity 0.2s ease;
}

.text-center a:hover {
    opacity: 0.7;
}
