@font-face {
    font-family: 'VK Sans Display';
    src: url('../fonts/VKSansDisplay-Regular_1767995018489.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VK Sans Display';
    src: url('../fonts/VKSansDisplay-Medium_1767995018488.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VK Sans Display';
    src: url('../fonts/VKSansDisplay-DemiBold_1767995018488.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VK Sans Display';
    src: url('../fonts/VKSansDisplay-Bold_1767995018488.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse {
    display: inline-block;
    animation: pulse 0.5s ease-in-out;
}

:root {
    --primary-red: #f32321;
    --primary-red-hover: #d91f1d;
    --primary-red-dark: #b81a18;
    --gradient: #f32321;
    --gradient-horizontal: #f32321;
    
    --bg-primary: #F3F4F6;
    --bg-secondary: #E5E7EB;
    --bg-surface: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6B7280;
    --border-color: #D1D5DB;
    --border-focus: #E02424;
    
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    --info: #2563EB;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --sidebar-width: 260px;
    --topbar-height: 64px;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-surface: #181818;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #2c2c2c;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .card {
    background: #181818;
    border-color: #2c2c2c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sidebar {
    background: #121212;
    border-right-color: #2c2c2c;
}

[data-theme="dark"] .topbar {
    background: rgba(24, 24, 24, 0.8);
    backdrop-filter: blur(12px);
    border-bottom-color: #2c2c2c;
}

[data-theme="dark"] .sidebar-link:hover {
    background: #2c2c2c;
}

[data-theme="dark"] .stat-card.balance-card,
[data-theme="dark"] .sidebar-link.active,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .stat-icon {
    background: linear-gradient(135deg, #f32321 0%, #b81a18 100%) !important;
    border-color: rgba(243, 35, 33, 0.3) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .stat-card {
    background: #181818 !important;
    border-color: #2c2c2c !important;
}

[data-theme="dark"] .stat-card .stat-value,
[data-theme="dark"] .stat-card .stat-label {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .stat-card.balance-card .stat-value,
[data-theme="dark"] .stat-card.balance-card .stat-label,
[data-theme="dark"] .stat-card.balance-card .stat-icon i {
    color: #ffffff !important;
}

[data-theme="dark"] .stat-card.balance-card .stat-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .table th {
    background: #1e1e1e;
    border-bottom-color: #2c2c2c;
}

[data-theme="dark"] .table td {
    border-bottom-color: #2c2c2c;
}

[data-theme="dark"] .form-input {
    background: #1e1e1e;
    border-color: #2c2c2c;
    color: #e0e0e0;
}

[data-theme="dark"] .form-input:focus {
    background: #181818;
    border-color: var(--primary-red);
}

[data-theme="dark"] .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Removed modal styles */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.copy-box {
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.copy-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.copy-btn {
    padding: 8px 16px;
    background: var(--gradient);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.modal-footer {
    text-align: right;
}

.btn-close {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close:hover {
    background: var(--border-color);
}

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

body {
    font-family: 'VK Sans Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .btn, .form-label, .nav-link, .sidebar-link {
    font-family: 'VK Sans Display', sans-serif;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-red-hover);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: rgba(243, 35, 33, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label.required::after {
    content: ' *';
    color: var(--primary-red);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(243, 35, 33, 0.1);
}

.form-input:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-input::placeholder {
    color: var(--text-muted);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-red);
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
}

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

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.badge-gray {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

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

.table tr:hover td {
    background: var(--bg-secondary);
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 32px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sidebar-logo img {
    max-width: 130px;
    height: auto;
}

.sidebar-section-title {
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 8px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    margin-bottom: 4px;
}

.sidebar-nav {
    padding: 16px 0;
}

[data-theme="dark"] .logo-light {
    display: block !important;
}

[data-theme="dark"] .logo-dark {
    display: none !important;
}

body:not([data-theme="dark"]) .logo-dark {
    display: block !important;
}

body:not([data-theme="dark"]) .logo-light {
    display: none !important;
}

.sidebar-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--gradient);
    color: white;
}

.sidebar-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-title {
    font-size: 20px;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--primary-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.user-menu-dropdown.show {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-red);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 4px;
}

/* Modal for Change Password */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-modal.show {
    display: flex;
    opacity: 1;
}

.password-modal-content {
    width: 100%;
    max-width: 400px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.password-modal.show .password-modal-content {
    transform: scale(1) translateY(0);
}

.user-menu:hover {
    background: var(--bg-secondary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Плавные переходы для контента */
.page-content {
    padding: 24px;
    flex: 1;
    animation: fadeIn 0.4s ease-out;
}

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

/* Плавное изменение состояний элементов */
.sidebar-link, .btn, .card, .stat-card, .release-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Эффект при наведении на ссылки в сайдбаре */
.sidebar-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Анимация появления для карточек */
.stat-card, .release-card {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.release-grid .release-card:nth-child(1) { animation-delay: 0.1s; }
.release-grid .release-card:nth-child(2) { animation-delay: 0.15s; }
.release-grid .release-card:nth-child(3) { animation-delay: 0.2s; }
.release-grid .release-card:nth-child(4) { animation-delay: 0.25s; }

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
        width: 280px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 0 16px;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-card {
        padding: 24px;
        margin: 16px;
    }
    
    .steps {
        padding: 16px !important;
        flex-direction: row !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        gap: 20px;
    }
    
    .step {
        min-width: 120px;
    }
    
    .step-line {
        display: none !important;
    }
}

/* Animations for step transitions */
.step-form {
    animation: fadeIn 0.4s ease-out;
}

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

.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row > .form-group {
    flex: 1;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 24px;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.section-divider span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    animation: fadeIn 0.6s ease-out;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

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

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-secondary {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.release-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.release-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-red);
}

.release-cover {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.release-card:hover .release-cover img {
    transform: scale(1.05);
}

.release-cover-placeholder {
    color: var(--text-muted);
    font-size: 48px;
}

.release-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.release-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.release-artist {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.release-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.release-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* Progress Bar Styles */
.steps-progress {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    position: relative;
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.step-item:hover {
    background: var(--bg-primary);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-item.active {
    background: var(--bg-surface);
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(224, 36, 36, 0.15);
}

.step-item.active .step-number {
    background: var(--primary-red);
    color: white;
}

.step-item.active .step-label {
    color: var(--text-primary);
}

.step-item.completed {
    background: rgba(5, 150, 105, 0.08);
}

.step-item.completed .step-number {
    background: var(--success);
    color: white;
}

.step-item.completed .step-label {
    color: var(--text-primary);
}

.step-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.steps-progress::before {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.theme-toggle {
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.card, .stat-card, .participant-card, .track-card, .upload-drop-zone, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-drop-zone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.participant-card:hover, .track-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.track-body {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
    overflow: hidden;
}

.track-version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.version-checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.version-checkbox-card:hover {
    background: var(--bg-primary);
    border-color: var(--primary-red);
}

.version-checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
    cursor: pointer;
    margin: 0;
}

.version-checkbox-card span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.version-checkbox-card.checked {
    background: rgba(224, 36, 36, 0.05);
    border-color: var(--primary-red);
}

.audio-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.audio-upload-zone:hover {
    border-color: var(--primary-red);
    background: rgba(243, 35, 33, 0.05);
}

.audio-upload-zone.active {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.audio-upload-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.audio-upload-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.audio-upload-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.audio-upload-filename {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: none;
}

.audio-upload-filename.visible {
    display: block;
}

.track-audio-player {
    display: none !important;
}

.landing-nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.landing-hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.landing-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.landing-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.landing-hero-visual {
    display: flex;
    justify-content: center;
}

.landing-visual-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 120px;
    box-shadow: var(--shadow-lg);
}

.track-list {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.track-item:last-child {
    border-bottom: none;
}

.track-number {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.track-info {
    flex: 1;
}

.track-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.track-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.document-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.document-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 24px;
}

.document-info {
    flex: 1;
}

.document-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.document-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.notification-item.unread {
    border-left: 3px solid var(--primary-red);
    background: rgba(243, 35, 33, 0.02);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .landing-hero .container {
        grid-template-columns: 1fr;
    }
    
    .landing-hero-visual {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.balance-card {
    background: var(--gradient);
    color: white;
    border: none;
}

.balance-card .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.balance-card .stat-label,
.balance-card .stat-secondary {
    color: rgba(255, 255, 255, 0.8);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-secondary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dynamic-list {
    margin-bottom: 20px;
}

.dynamic-list-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.dynamic-list-item .form-group {
    flex: 1;
    margin-bottom: 0;
}

.remove-item-btn {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--error);
    cursor: pointer;
    border-radius: var(--radius-md);
}

.remove-item-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.add-item-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.add-item-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.signature-area {
    padding: 24px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.signature-input {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    font-family: 'Brush Script MT', cursive;
    font-size: 24px;
    text-align: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.section-divider span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
