/* ============================================
   iOS 26 Style - Liquid Glass Theme System
   Dark Theme Only
============================================ */

:root {
    /* Dark Theme Colors (Default) */
    --bg-primary: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --bg-secondary: rgba(30, 30, 30, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-border: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.2);
    --footer-bg: rgba(15, 15, 15, 0.9);
    --header-bg: rgba(15, 15, 15, 0.8);
    --settings-bg: rgba(20, 20, 30, 0.95); /* Улучшенный фон для настроек */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Music Preference Modal
============================================ */
.music-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.music-modal-content {
    background: var(--bg-glass);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    box-shadow:
        0 20px 50px -10px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.music-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.music-modal-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.6;
}

.music-modal-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.music-choice-button {
    flex: 1;
    padding: 16px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 8px 24px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.2);
}

.music-choice-button:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow:
        0 12px 32px var(--shadow-color),
        inset 2px 2px 6px 0 rgba(255, 255, 255, 0.3);
}

.music-choice-button:active {
    transform: translateY(-1px);
}

.music-choice-button i {
    font-size: 20px;
}

.music-modal-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

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

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

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

/* ============================================
   Header with Settings Button
============================================ */
.header {
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--shadow-color);
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

/* ============================================
   Settings Button
============================================ */
.settings-button {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.2);
}

.settings-button:hover {
    transform: scale(1.05) rotate(90deg);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow:
        0 6px 20px var(--shadow-color),
        inset 2px 2px 6px 0 rgba(255, 255, 255, 0.3);
}

.settings-button.active {
    transform: rotate(90deg);
    border-color: rgba(102, 126, 234, 0.8);
}

.settings-button:active {
    transform: scale(0.98) rotate(90deg);
}

.settings-button i {
    transition: transform 0.3s ease;
}

/* ============================================
   Settings Menu - Улучшенная читаемость
============================================ */
.settings-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: var(--settings-bg);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    box-shadow:
        0 20px 50px -10px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}
/* ============================================
   Balance Display
============================================ */
.balance-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    box-shadow: 
        0 4px 16px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.balance-display:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 
        0 6px 20px var(--shadow-color),
        inset 2px 2px 6px 0 rgba(255, 255, 255, 0.3);
}

.balance-display i {
    color: #ffd700;
    font-size: 18px;
}

/* ============================================
   Profile Button
============================================ */
.profile-button {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 16px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.2);
}

.profile-button:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 6px 20px var(--shadow-color),
        inset 2px 2px 6px 0 rgba(255, 255, 255, 0.3);
}

.profile-button.active {
    border-color: rgba(102, 126, 234, 0.8);
}

.profile-button:active {
    transform: scale(0.98);
}

/* ============================================
   Profile Menu
============================================ */
.profile-menu {
    position: fixed;
    top: 80px;
    right: 80px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--settings-bg);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px -10px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

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

.profile-menu-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.profile-close {
    width: 32px;
    height: 32px;
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-close:hover {
    background: var(--bg-glass-hover);
    transform: scale(1.1);
}

.profile-close:active {
    transform: scale(0.95);
}

.profile-menu-content {
    padding: 8px;
}

/* ============================================
   Profile Info
============================================ */
.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.profile-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.profile-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Profile Actions
============================================ */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.profile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.3);
}

.profile-link.logout {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.profile-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

.profile-link i {
    width: 20px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .balance-display {
        padding: 10px 16px;
        font-size: 14px;
    }

    .balance-display i {
        font-size: 16px;
    }

    .profile-menu {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .profile-info {
        padding: 16px;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .profile-details h4 {
        font-size: 16px;
    }

    .profile-details p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .balance-display {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .profile-button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .profile-menu {
        top: 70px;
    }
}
.settings-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

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

.settings-menu-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.settings-close {
    width: 32px;
    height: 32px;
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-close:hover {
    background: var(--bg-glass-hover);
    transform: scale(1.1);
}

.settings-close:active {
    transform: scale(0.95);
}

.settings-menu-content {
    padding: 8px;
}

/* ============================================
   Settings Item
============================================ */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.settings-item-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.settings-item-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.settings-item-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Toggle Switch (iOS Style)
============================================ */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 100px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input:checked + .toggle-slider {
    background: var(--accent-gradient);
    border-color: transparent;
}

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

.toggle-slider:hover {
    box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.1);
}

/* ============================================
   Main Content
============================================ */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 100px;
}

/* ============================================
   Liquid Glass Login Form
============================================ */
.login-form {
    background: var(--bg-glass);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 20px 50px -10px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.login-form::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.6s;
    pointer-events: none;
}

.login-form:hover::before {
    left: 100%;
}

.form-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    background: var(--bg-glass-hover);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

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

/* ============================================
   Liquid Glass Button
============================================ */
.liquid-glass-button {
    position: relative;
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 100vmax;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    box-shadow:
        0 8px 24px var(--shadow-color),
        inset 2px 2px 4px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.liquid-glass-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.liquid-glass-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px var(--shadow-color),
        inset 2px 2px 6px 0 rgba(255, 255, 255, 0.4);
}

.liquid-glass-button:hover::before {
    opacity: 1;
}

.liquid-glass-button:active {
    transform: translateY(-1px);
}

/* Button Container */
.button-container {
    position: relative;
    margin-top: 10px;
}

/* Glass Distortion SVG Filter */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
}

/* ============================================
   Error Messages
============================================ */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: center;
    animation: shake 0.5s ease-in-out;
    color: #ef4444;
    font-weight: 500;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.db-error-message {
    background: rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 16px;
    padding: 15px;
    margin: 20px;
    text-align: center;
    color: #ffd54f;
    font-weight: 500;
}

/* ============================================
   Footer
============================================ */
.footer {
    background: var(--footer-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    transition: all 0.3s ease;
}

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

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

/* ============================================
   Animations
============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes ripple {
    to {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .main-content {
        padding: 100px 20px 80px;
    }

    .login-form {
        padding: 30px 25px;
        margin: 0 10px;
    }

    .form-title {
        font-size: 26px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .music-modal-content {
        padding: 40px 30px;
    }

    .music-modal-title {
        font-size: 24px;
    }

    .music-modal-text {
        font-size: 16px;
    }

    .music-modal-buttons {
        flex-direction: column;
    }

    .music-choice-button {
        width: 100%;
    }

    .settings-menu {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .settings-button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .logo {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .settings-menu {
        top: 70px;
    }

    .settings-item {
        padding: 12px;
    }

    .settings-item-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .settings-item-text h4 {
        font-size: 15px;
    }

    .settings-item-text p {
        font-size: 12px;
    }
}
