/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme colors inspired by Arc/MacPaw */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #242424;
    --bg-card: #1e1e1e;
    --bg-hover: #2a2a2a;
    
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8a8a8a;
    
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --border: #333333;
    --border-hover: #444444;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    --container-width: 1200px;
    --spacing: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo h1 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.language-selector select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

/* Main */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Steps */
.step {
    display: none;
    padding: 60px 0;
    min-height: calc(100vh - 80px);
}

.step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 60px;
}

.step-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Platform Search */
.platform-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.platform-search input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.platform-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.platform-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

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

.platform-card:hover::before {
    left: 100%;
}

.platform-card.selected {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
}

.platform-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
}

.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Auth Card */
.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.auth-platform {
    margin-bottom: 32px;
}

.platform-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
}

.auth-permissions {
    margin-bottom: 32px;
    text-align: left;
}

.auth-permissions h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.auth-permissions ul {
    list-style: none;
}

.auth-permissions li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.auth-permissions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

/* Playlists */
.playlists-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.playlists-search {
    flex: 1;
    max-width: 400px;
}

.playlists-search input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
}

.playlists-actions {
    display: flex;
    gap: 12px;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.playlist-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.playlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.playlist-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.playlist-card:hover::before {
    opacity: 0.1;
}

.playlist-card.selected {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
}

.playlist-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.playlist-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}

.playlist-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.playlist-card.selected .playlist-checkbox {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.playlist-card.selected .playlist-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.playlist-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-info {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.playlist-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Step Footer */
.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.selection-summary {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 20px 0;
    gap: 4px;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.features {
    list-style: none;
    margin-bottom: 32px;
}

.features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Transfer Progress */
.transfer-status {
    max-width: 600px;
    margin: 0 auto;
}

.transfer-progress {
    margin-bottom: 32px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.transfer-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.transfer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

/* Complete Summary */
.complete-summary {
    max-width: 600px;
    margin: 0 auto;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.summary-items {
    margin-top: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.complete-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.auth-loader {
    text-align: center;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-right {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    
    .nav {
        gap: 20px;
        margin-top: 16px;
    }
    
    .main {
        margin-top: 120px;
    }
    
    .step-header h1 {
        font-size: 2rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .playlists-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .step-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .complete-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .step {
        padding: 40px 0;
    }
    
    .step-header {
        margin-bottom: 40px;
    }
    
    .platform-card,
    .auth-card,
    .pricing-card {
        padding: 24px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border: #ffffff;
        --text-secondary: #ffffff;
    }
}

/* Platform Cards */
.platform-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

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

.platform-card:hover::before {
    left: 100%;
}

.platform-card.selected {
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
}

.google-auth-card {
    border: 2px solid #4285f4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05) 0%, rgba(234, 67, 53, 0.05) 100%);
}

.google-auth-card:hover {
    border-color: #4285f4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(234, 67, 53, 0.1) 100%);
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.2);
}

.auth-hint {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Playlist loading and error states */
.loading-playlists,
.no-playlists,
.error-playlists {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin: 20px 0;
}

.loading-playlists .loader {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid var(--border);
    border-left-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.no-playlists p,
.error-playlists p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.error-playlists button {
    margin-top: 20px;
}

/* ========== НОВЫЕ СТИЛИ ДЛЯ УЛУЧШЕНИЙ ========== */

/* Фиксированная кнопка "Продолжить" внизу экрана */
.fixed-continue-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.fixed-continue-footer.visible {
    transform: translateY(0);
}

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

.fixed-continue-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.fixed-continue-footer .selection-summary {
    color: #a0a0a0;
    font-size: 14px;
}

.fixed-continue-footer .continue-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.fixed-continue-footer .continue-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.fixed-continue-footer .continue-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Liked Songs иконка */
.liked-songs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
    border-radius: var(--radius-sm);
}

.playlist-cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Playlist card улучшения */
.playlist-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.playlist-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.playlist-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.playlist-card:hover::before {
    opacity: 0.05;
}

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

.playlist-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-tracks {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.playlist-author {
    font-size: 12px;
    color: var(--text-tertiary);
}

.playlist-actions {
    display: flex;
    align-items: center;
}

.playlist-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.playlist-checkbox:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.playlist-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Логотип улучшения */
.logo-image {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

/* YouTube auth hint */
.auth-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* Плейлисты загрузчик */
.playlists-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #a0a0a0;
}

.playlists-loader .loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.playlists-loader p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Ошибка загрузки плейлистов */
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
}

.error-message h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
}

.error-message p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
}

.empty-state p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Кнопки disabled состояние */
.btn:disabled {
    background: var(--bg-tertiary) !important;
    color: var(--text-tertiary) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled::before {
    display: none !important;
}

/* Мобильная адаптация для фиксированной кнопки */
@media (max-width: 768px) {
    .fixed-continue-footer .footer-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .fixed-continue-footer .continue-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .playlist-card {
        padding: 12px;
        gap: 12px;
    }
    
    .playlist-cover {
        width: 60px;
        height: 60px;
    }
    
    .playlist-name {
        font-size: 14px;
    }
    
    .playlist-tracks {
        font-size: 12px;
    }
    
    .playlist-author {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .fixed-continue-footer {
        padding: 16px 0;
    }
    
    .playlist-card {
        padding: 10px;
        gap: 10px;
    }
    
    .playlist-cover {
        width: 50px;
        height: 50px;
    }
}

/* ========== СТИЛИ ДЛЯ PRIVACY POLICY И TERMS OF USE ========== */

/* Контейнер страницы */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

.page-content {
    line-height: 1.8;
}

/* Секции Privacy и Terms */
.privacy-section,
.terms-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.privacy-section:last-child,
.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section h2,
.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.privacy-section h2::before,
.terms-section h2::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.privacy-section p,
.terms-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
}

.privacy-section p:last-child,
.terms-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul,
.terms-section ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.privacy-section li,
.terms-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    font-size: 16px;
}

.privacy-section li::before,
.terms-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

.privacy-section a,
.terms-section a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.privacy-section a:hover,
.terms-section a:hover {
    border-bottom-color: var(--accent-primary);
}

.privacy-section strong,
.terms-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-section em,
.terms-section em {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Footer ссылки */
.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Мобильная адаптация для страниц Privacy и Terms */
@media (max-width: 768px) {
    .page-container {
        padding: 40px 0;
    }
    
    .page-header {
        margin-bottom: 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .privacy-section,
    .terms-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .privacy-section h2,
    .terms-section h2 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .privacy-section h2::before,
    .terms-section h2::before {
        left: -16px;
        width: 3px;
        height: 20px;
    }
    
    .privacy-section p,
    .terms-section p,
    .privacy-section li,
    .terms-section li {
        font-size: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 32px 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .privacy-section h2::before,
    .terms-section h2::before {
        display: none;
    }
    
    .privacy-section li,
    .terms-section li {
        padding-left: 20px;
    }
}

/* Мобильная адаптация для фиксированной кнопки */
@media (max-width: 768px) {
    .fixed-continue-footer .footer-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .fixed-continue-footer .continue-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .playlist-card {
        padding: 12px;
        gap: 12px;
    }
    
    .playlist-cover {
        width: 60px;
        height: 60px;
    }
    
    .playlist-name {
        font-size: 14px;
    }
    
    .playlist-tracks {
        font-size: 12px;
    }
    
    .playlist-author {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .fixed-continue-footer {
        padding: 16px 0;
    }
    
    .playlist-card {
        padding: 10px;
        gap: 10px;
    }
    
    .playlist-cover {
        width: 50px;
        height: 50px;
    }
}

/* Add padding to body when fixed footer is visible */
body.fixed-footer-visible {
    padding-bottom: 100px;
}

/* Состояние загрузки для карточек платформ */
.platform-card.loading {
    position: relative;
    overflow: hidden;
}

.platform-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: loading-shimmer 1.5s infinite;
    z-index: 2;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Блокировка кнопок во время авторизации */
.platform-card[disabled] {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* Улучшенные уведомления */
.notification {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-left: 4px solid;
    font-weight: 500;
}

.notification-success {
    border-left-color: #1DB954;
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
}

.notification-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notification-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #60a5fa;
}

/* Language Select */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.support-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
}

.support-link:hover {
    color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.language-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 140px;
}

.language-select:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.language-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: var(--bg-tertiary);
}

.language-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.5s ease;
}

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

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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