/* ============================================
   MusicGym - Dashboard & App Styles
   Dark theme, compact mobile, consistent radius
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

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

:root {
    --primary-color: #3B444B;
    --primary-dark: #2a3138;
    --accent-color: #4f1330;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(13, 13, 18, 0.8);
    --text-primary: #f7f4ef;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(59, 68, 75, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

html {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    min-height: 100vh;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.4;
    animation: morph 25s ease-in-out infinite;
}

.blob:nth-child(1) {
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob:nth-child(2) {
    top: 50%;
    right: -10%;
    animation-delay: 8s;
}

.blob:nth-child(3) {
    bottom: -10%;
    left: 40%;
    animation-delay: 16s;
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(80px, 80px) rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
        transform: translate(-80px, 120px) rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 60% 40% 60% 40% / 70% 30% 50% 60%;
        transform: translate(120px, -80px) rotate(270deg) scale(1.05);
    }
}

/* ============================================
   HEADER
   ============================================ */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(20px);
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

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

.app-logo i {
    color: var(--accent-color);
}

.app-logo-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.header-icon-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* PWA Install button – wider when label visible */
.pwa-install-btn {
    width: auto;
    padding: 0 1rem;
    gap: 0.5rem;
    border-radius: 50px;
}
.pwa-install-btn .pwa-install-label {
    font-size: 0.9rem;
    font-weight: 600;
}
.pwa-install-sidebar {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

.pwa-install-hidden {
    display: none !important;
}

.pwa-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 2.5rem 1rem 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
.pwa-toast.hidden {
    display: none !important;
}
.pwa-toast-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.pwa-toast-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    opacity: 0.9;
}
.pwa-toast-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.pwa-toast-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}
.pwa-toast-close:hover {
    color: var(--text-primary);
}

.lang-select {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-select:hover {
    background: rgba(59, 68, 75, 0.3);
    border-color: var(--primary-color);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.user-profile-btn:hover {
    background: rgba(59, 68, 75, 0.3);
    border-color: var(--primary-color);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.user-dropdown.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(59, 68, 75, 0.3);
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-form {
    margin: 0;
}

.dropdown-item.logout {
    color: var(--error);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item.logout i {
    color: var(--error);
}

/* Auth Buttons */
.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.login-btn {
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.login-btn:hover {
    background: rgba(59, 68, 75, 0.3);
    border-color: var(--primary-color);
}

.register-btn {
    background: linear-gradient(135deg, var(--primary-color), #4a5562);
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(59, 68, 75, 0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 68, 75, 0.5);
}

/* Mobile Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MOBILE SIDEBAR
   ============================================ */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-color);
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(59, 68, 75, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.sidebar-user-info i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.sidebar-username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.sidebar-useremail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(59, 68, 75, 0.3);
}

.sidebar-link i {
    width: 24px;
    color: var(--primary-color);
}

.sidebar-settings {
    margin-top: 1.5rem;
}

.sidebar-setting-item {
    margin-bottom: 1rem;
}

.sidebar-setting-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-setting-item i {
    color: var(--primary-color);
}

.sidebar-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.sidebar-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.sidebar-toggle-btn:hover {
    background: rgba(59, 68, 75, 0.3);
}

.sidebar-toggle-btn i {
    color: var(--primary-color);
}

.toggle-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 700;
}

.sidebar-logout-form {
    margin-top: 1.5rem;
}

.logout-link {
    color: var(--error) !important;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.2);
}

.logout-link i {
    color: var(--error) !important;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.sidebar-btn.login {
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.sidebar-btn.login:hover {
    background: rgba(59, 68, 75, 0.3);
}

.sidebar-btn.register {
    background: linear-gradient(135deg, var(--primary-color), #4a5562);
    color: white;
    border: none;
}

.sidebar-btn.register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 68, 75, 0.5);
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 1.5rem 3rem;
    min-height: 100vh;
    overflow: visible;
}

/* ============================================
   SCREENS
   ============================================ */
.selection-screen,
.recording-screen,
.loading-screen,
.feedback-screen {
    animation: fadeInUp 0.6s ease;
}

.hidden {
    display: none !important;
}

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

/* ============================================
   SCREEN HEADERS
   ============================================ */
.screen-header {
    text-align: center;
    margin-bottom: 2rem;
}

.screen-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 6vw, 3rem);
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.screen-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    letter-spacing: 0.3px;
}

.selected-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.selected-info i {
    color: var(--accent-color);
}

/* ============================================
   SELECTION CARDS
   ============================================ */
.selection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.picker-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
}

.picker-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 68, 75, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.picker-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.label-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(79, 19, 48, 0.35);
    border: 1px solid rgba(79, 19, 48, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.mobile-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(59, 68, 75, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 68, 75, 0.2);
}

.mobile-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.primary-action-btn,
.secondary-action-btn,
.tertiary-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1rem;
    padding: 1rem 1.75rem;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.primary-action-btn {
    background: rgba(79, 19, 48, 0.85);
    border: 1px solid rgba(79, 19, 48, 0.5);
    color: white;
    box-shadow: 0 4px 16px rgba(79, 19, 48, 0.25);
}

.primary-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 19, 48, 0.35);
}

.secondary-action-btn {
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.secondary-action-btn:hover {
    border-color: rgba(59, 68, 75, 0.5);
    background: rgba(59, 68, 75, 0.3);
    transform: translateY(-1px);
}

.tertiary-action-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.tertiary-action-btn:hover {
    background: rgba(59, 68, 75, 0.2);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.3rem;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: var(--bg-dark);
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ============================================
   UPLOAD BUTTON
   ============================================ */
.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 1rem 1.75rem;
    border-radius: 14px;
    background: rgba(59, 68, 75, 0.12);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.upload-btn:hover {
    border-color: rgba(59, 68, 75, 0.5);
    background: rgba(59, 68, 75, 0.2);
    border-style: solid;
    transform: translateY(-1px);
    color: var(--text-primary);
}

/* ============================================
   PROFESSOR BUBBLE
   ============================================ */
.professor-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    animation: fadeInUp 0.8s ease;
}

.bubble-avatar {
    position: relative;
}

.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(79, 19, 48, 0.4);
    border: 1px solid rgba(79, 19, 48, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--text-primary);
    position: relative;
}

.avatar-circle::before {
    display: none;
}

.avatar-emoji {
    position: relative;
    z-index: 1;
}

.speech-bubble {
    max-width: 420px;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--border-color);
}

.speech-bubble p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.speech-bubble.talking {
    animation: bubblePulse 2s ease-in-out infinite;
}

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

/* ============================================
   RECORDING SCREEN
   ============================================ */
.waveform-display {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#waveformCanvas {
    width: 100%;
    height: 160px;
    border-radius: 15px;
}

.timer-display {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin: 2rem 0;
    text-shadow: 0 0 30px rgba(79, 19, 48, 0.5);
}

.recording-controls {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.record-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(59, 68, 75, 0.2);
    border: 3px solid var(--border-color);
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-btn:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.record-btn.active {
    border-color: var(--error);
    animation: recordPulse 1.5s ease-in-out infinite;
}

.record-btn.active .btn-icon {
    color: var(--error);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--error);
    opacity: 0;
}

.record-btn.active .pulse-ring {
    animation: pulseRing 1.5s ease-out infinite;
}

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

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-animation {
    text-align: center;
    margin-bottom: 4rem;
}

.loading-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.spinner {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(59, 68, 75, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--accent-color);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.loading-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* .progress-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
} */

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 68, 75, 0.2);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background: linear-gradient(135deg, var(--accent-color), #6b1f42);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 10px 30px rgba(79, 19, 48, 0.5);
}

.step-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

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

/* ============================================
   FEEDBACK SCREEN (rezultati) – usklađeno s dashboardom
   ============================================ */
.feedback-screen {
    padding: 0 0 2rem;
}

.rating-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.rating-card-main {
    flex: 1;
    min-width: 160px;
}

.rating-card-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.rating-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(79, 19, 48, 0.4);
    border: 1px solid rgba(79, 19, 48, 0.5);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rating-circle::before {
    display: none;
}

.rating-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.rating-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.rating-card-sublabel {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin: 0 0 0.15rem 0;
}

.rating-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.rating-card-skill-level {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-left: 1px solid var(--border-color);
}

@media (max-width: 520px) {
    .rating-card-skill-level { border-left: none; border-top: 1px solid var(--border-color); padding-top: 1rem; }
}

.skill-level-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.skill-level-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-level-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.35rem 0 0 0;
}

.rating-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.feedback-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
}

.feedback-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 68, 75, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.feedback-text {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
    white-space: pre-line; /* prikaži novi red iz AI teksta */
}

/* Metrics Visualization */
.metrics-viz {
    margin-top: 1.5rem;
}

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

.visual-metric-card {
    background: rgba(59, 68, 75, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.25s ease;
}

.visual-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 68, 75, 0.5);
}

.metric-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(79, 19, 48, 0.35);
    border: 1px solid rgba(79, 19, 48, 0.4);
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.metric-label-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.metric-value-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.metric-unit {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.metric-quality-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.metric-quality-badge.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.metric-quality-badge.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.metric-quality-badge.orange {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.metric-quality-badge.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.metric-progress-visual {
    width: 100%;
    height: 6px;
    background: rgba(59, 68, 75, 0.2);
    border-radius: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill-visual {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #6b1f42);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Technical Analysis */
.tech-grid {
    display: grid;
    gap: 1.5rem;
}

.tech-item h5 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.tech-item h5 i {
    color: var(--accent-color);
}

.tech-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Suggestions List */
.suggestion-list {
    list-style: none;
    padding: 0;
}

.suggestion-list li {
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 1rem;
    background: rgba(59, 68, 75, 0.15);
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
}

.suggestion-list li::before {
    content: '💡';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
}

/* Exercises */
.exercise-list {
    display: grid;
    gap: 1.5rem;
}

.exercise-item {
    padding: 1.5rem;
    background: rgba(59, 68, 75, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.exercise-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.exercise-item h5 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.exercise-item h5 i {
    color: var(--accent-color);
}

.exercise-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.exercise-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.exercise-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 19, 48, 0.2);
    border: 1px solid rgba(79, 19, 48, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.exercise-tag i {
    color: var(--accent-color);
}

/* Reference Tracks (audio examples) */
.reference-tracks-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -0.25rem 0 0.75rem 0;
}
.reference-tracks-empty {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 1rem;
    background: rgba(59, 68, 75, 0.1);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}
.reference-tracks-empty a {
    color: var(--accent-color);
    text-decoration: underline;
}
.reference-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.reference-track-item {
    padding: 1rem 1.25rem;
    background: rgba(59, 68, 75, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.reference-track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.reference-track-header strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}
.reference-track-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}
.reference-track-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.reference-track-audio {
    width: 100%;
    max-width: 400px;
    height: 40px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ============================================
   PROBLEM TIMELINE
   ============================================ */
.timeline-container {
    padding: 0.75rem 0;
}

.timeline-marker {
    padding: 0.85rem 1rem 0.85rem 1.5rem;
    margin-bottom: 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid var(--error);
    border-radius: 0 10px 10px 0;
    border-radius: 12px;
    position: relative;
}

.timeline-marker::before {
    content: '⚠️';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
}

.marker-issue {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.marker-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-problems {
    text-align: center;
    padding: 2rem;
    color: var(--success);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    margin: 3rem 0 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    color: var(--accent-color);
}

.section-desc {
    margin: -0.5rem 0 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255,255,255,0.7));
}

.note-name, .note-range {
    font-family: var(--font-mono, 'SF Mono', Monaco, monospace);
    letter-spacing: 0.5px;
}

.intonation-band {
    font-size: 1rem !important;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.detail-card-body .big-value.intonation-band {
    font-family: inherit;
}

.metrics-explainer {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: normal;
    line-height: 1.3;
}

/* Detail Cards Grid */
.detail-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.detail-card {
    background: rgba(59, 68, 75, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 68, 75, 0.5);
}

.detail-card:hover::before {
    opacity: 0.6;
}

.detail-card.green::before {
    background: var(--success);
}

.detail-card.orange::before {
    background: var(--warning);
}

.detail-card.red::before {
    background: var(--error);
}

.detail-card.purple::before {
    background: #a855f7;
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-card-header i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.detail-card-header h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.detail-card-body {
    color: var(--text-secondary);
}

.big-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.big-value .raw-value {
    font-size: 1.1rem;
    font-weight: normal;
    opacity: 0.9;
    color: var(--text-muted);
}
.big-value .unit {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.quality-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
}

.quality-badge.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.quality-badge.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.quality-badge.orange {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.quality-badge.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.detail-description {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.detail-note {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.detail-note i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.detail-tip {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(79, 19, 48, 0.1);
    border: 1px solid rgba(79, 19, 48, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Chord Notes Display */
.chord-notes-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.chord-note-pill {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), #6b1f42);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.clarity-bar {
    width: 100%;
    height: 8px;
    background: rgba(59, 68, 75, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.clarity-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.clarity-fill.green {
    background: linear-gradient(90deg, var(--success), #34d399);
}

.clarity-fill.blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.clarity-fill.orange {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

/* Vibrato Display */
.vibrato-indicator {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vibrato-wave {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.vibrato-quality-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

/* Articulation Style */
.articulation-style-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.style-badge {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.style-badge.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.style-badge.orange {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.style-badge.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 2px solid rgba(16, 185, 129, 0.4);
}

/* Brightness Display */
.brightness-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brightness-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.brightness-icon.dark {
    color: #fb923c;
}

.brightness-icon.balanced {
    color: #fbbf24;
}

.brightness-icon.bright {
    color: #fcd34d;
}

.brightness-icon.very-bright {
    color: #fde047;
}

.brightness-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.brightness-bar-container {
    margin-top: 1rem;
}

.brightness-bar {
    width: 100%;
    height: 8px;
    background: rgba(59, 68, 75, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.brightness-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.brightness-fill.orange {
    background: linear-gradient(90deg, #fb923c, #fdba74);
}

.brightness-fill.blue {
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
}

.brightness-fill.green {
    background: linear-gradient(90deg, #fcd34d, #fde047);
}

.brightness-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.brightness-tip {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.brightness-tip i {
    margin-right: 0.25rem;
}

/* ============================================
   JAZZ QUALITY SECTION
   ============================================ */
.jazz-quality-section {
    margin-top: 2rem;
}

.jazz-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.jazz-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.jazz-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(79, 19, 48, 0.4);
    border: 1px solid rgba(79, 19, 48, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.jazz-score-circle::before {
    display: none;
}

.jazz-score-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.jazz-score-max {
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.jazz-score-info {
    text-align: left;
}

.jazz-level-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 19, 48, 0.2);
    border: 1px solid rgba(79, 19, 48, 0.4);
    border-radius: 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.jazz-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 400px;
}

.modern-jazz-note {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.modern-jazz-note i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.jazz-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.jazz-metric-card {
    background: rgba(59, 68, 75, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
}

.jazz-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 68, 75, 0.5);
}

.jazz-metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.jazz-metric-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.jazz-metric-header h4 {
    flex: 1;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.quality-badge-inline {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-badge-inline.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.quality-badge-inline.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.quality-badge-inline.purple {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.quality-badge-inline.orange {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.quality-badge-inline.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.jazz-metric-message {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.jazz-swing-tip {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.jazz-swing-tip i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.jazz-swing-tip p {
    margin: 0;
    font-size: 0.95rem;
}

.jazz-swing-tip strong {
    color: var(--text-primary);
}

.jazz-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.comparison-box {
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.comparison-box.highlight {
    border-color: var(--accent-color);
    background: rgba(79, 19, 48, 0.1);
}

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

.comparison-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.comparison-value {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.comparison-value.small {
    font-size: 1.1rem;
}

.jazz-reference-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    margin-top: 1rem;
}

.jazz-reference-box i {
    color: #3b82f6;
    font-size: 1.25rem;
}

.jazz-reference-box span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   KID-FRIENDLY RESULT SUMMARY (clear progress)
   ============================================ */
.kid-result-summary {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    text-align: center;
}

.kid-result-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.kid-result-pct {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.kid-result-sep {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.kid-result-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.kid-result-stars {
    font-size: 2rem;
    letter-spacing: 0.25rem;
    margin-bottom: 1rem;
}

.kid-result-stars .star.filled {
    color: #fbbf24;
}

.kid-result-stars .star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.kid-progress-tip {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.kid-progress-tip i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.perf-summary-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 68, 75, 0.12);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.perf-summary-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.perf-summary-item strong {
    color: var(--text-primary);
}

/* ============================================
   PERFORMANCE EVALUATION
   ============================================ */
.performance-section {
    margin-top: 1.5rem;
}

.performance-section--categories {
    margin-top: 0.5rem;
}

.performance-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.grade-display-large {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.grade-display-large.green {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.grade-display-large.blue {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
}

.grade-display-large.orange {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.grade-display-large.orange-red {
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(251, 146, 60, 0.08);
}

.grade-display-large.red {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.grade-letter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    line-height: 1;
}

.grade-percentage {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

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

.category-grade-card {
    background: rgba(59, 68, 75, 0.12);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-align: center;
    transition: all 0.25s ease;
}

.category-grade-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 68, 75, 0.5);
}

.category-grade-card.green {
    border-color: var(--success);
}

.category-grade-card.blue {
    border-color: #3b82f6;
}

.category-grade-card.orange {
    border-color: var(--warning);
}

.category-grade-card.orange-red {
    border-color: #fb923c;
}

.category-grade-card.red {
    border-color: var(--error);
}

.category-grade-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.category-name {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.category-grade-badge {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.eval-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.eval-column {
    background: rgba(59, 68, 75, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 2rem;
}

.eval-column.strengths {
    border-color: rgba(16, 185, 129, 0.3);
}

.eval-column.weaknesses {
    border-color: rgba(245, 158, 11, 0.3);
}

.eval-column-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.eval-column.strengths .eval-column-title i {
    color: var(--success);
}

.eval-column.weaknesses .eval-column-title i {
    color: var(--warning);
}

.eval-list {
    list-style: none;
    padding: 0;
}

.eval-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(59, 68, 75, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.eval-item.strength i {
    color: var(--success);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.eval-item.weakness i {
    color: var(--warning);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.calibration-metrics-box {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.25s ease;
}
.calibration-metrics-box:hover {
    border-color: rgba(59, 68, 75, 0.5);
}

.calibration-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.calibration-title i {
    color: var(--text-secondary);
}

.calibration-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

.calibration-grid .cal-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.calibration-grid .cal-value {
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .detail-cards-grid,
    .jazz-metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        padding: 0.75rem 1rem;
    }
    
    .app-logo {
        font-size: 1.35rem;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .app-container {
        padding: 5.5rem 1rem 2rem;
    }
    
    .screen-header {
        margin-bottom: 1.5rem;
    }
    
    .screen-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .selection-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .picker-card {
        padding: 1rem 1.25rem;
    }
    
    .primary-action-btn,
    .secondary-action-btn,
    .tertiary-action-btn,
    .upload-btn {
        max-width: 100%;
        padding: 0.9rem 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .divider {
        margin: 1.5rem 0;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .jazz-score-display {
        flex-direction: column;
    }
    
    .jazz-score-info {
        text-align: center;
    }
    
    .eval-columns {
        grid-template-columns: 1fr;
    }
    
    .professor-bubble {
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    .avatar-circle {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    
    .speech-bubble {
        padding: 1rem 1.25rem;
        max-width: 100%;
    }
    
    .speech-bubble p {
        font-size: 0.9rem;
    }
    
    .feedback-screen {
        padding: 0 0 1.5rem;
    }
    
    .metrics-grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 0.6rem 0.75rem;
    }
    
    .app-logo {
        font-size: 1.2rem;
    }
    
    .app-container {
        padding: 5rem 0.75rem 1.5rem;
    }
    
    .screen-title {
        font-size: 1.35rem;
        letter-spacing: 1px;
    }
    
    .picker-card {
        padding: 0.9rem 1rem;
    }
    
    .picker-label {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .label-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .mobile-select {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .primary-action-btn,
    .secondary-action-btn,
    .tertiary-action-btn,
    .upload-btn {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }
    
    .timer-display {
        font-size: 2.75rem;
    }
    
    .rating-circle {
        width: 110px;
        height: 110px;
    }
    
    .rating-number {
        font-size: 2.75rem;
    }
    
    .feedback-card {
        padding: 1rem 1.25rem;
    }
    
    .rating-card {
        padding: 1rem 1.25rem;
    }
    
    .rating-circle {
        width: 80px;
        height: 80px;
    }
    
    .rating-number {
        font-size: 2rem;
    }
    
    .detail-card {
        padding: 1rem 1.25rem;
    }
    
    .big-value {
        font-size: 2.25rem;
    }
    
    .jazz-score-circle {
        width: 80px;
        height: 80px;
    }
    
    .jazz-score-number {
        font-size: 2rem;
    }
    
    .grade-display-large {
        padding: 1rem 1.5rem;
    }
    
    .grade-letter {
        font-size: 3rem;
    }
    
    .grade-percentage {
        font-size: 1.5rem;
    }
    
    .category-grade-card {
        padding: 0.85rem 1rem;
    }
    
    .category-grade-badge {
        font-size: 2rem;
    }
    
    .professor-bubble {
        margin-top: 1.25rem;
        gap: 0.75rem;
    }
    
    .avatar-circle {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .speech-bubble {
        padding: 0.85rem 1rem;
    }
    
    .speech-bubble p {
        font-size: 0.85rem;
    }
    
    .divider span {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }


/* ═══════════════════════════════════════════════════════════════
   🌟 PRO VS AMATEUR ASSESSMENT
   ═══════════════════════════════════════════════════════════════ */

.pro-amateur-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 20px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.pro-amateur-hero.gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.3);
}

.pro-amateur-hero.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.pro-amateur-hero.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

.pro-amateur-hero.orange {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(249, 115, 22, 0.1));
    border-color: rgba(251, 146, 60, 0.3);
}

.pro-amateur-hero.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
}

.pro-amateur-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.pro-amateur-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid;
    position: relative;
}

.pro-amateur-score-circle.gold { border-color: #fbbf24; color: #fbbf24; }
.pro-amateur-score-circle.green { border-color: #10b981; color: #10b981; }
.pro-amateur-score-circle.blue { border-color: #3b82f6; color: #3b82f6; }
.pro-amateur-score-circle.orange { border-color: #fb923c; color: #fb923c; }
.pro-amateur-score-circle.red { border-color: #ef4444; color: #ef4444; }

.score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    opacity: 0.7;
}

.pro-amateur-info {
    flex: 1;
}

.level-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.level-badge.gold { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.level-badge.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.level-badge.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.level-badge.orange { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.level-badge.red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.grade-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.grade-badge.gold { background: rgba(251, 191, 36, 0.3); color: #fbbf24; }
.grade-badge.green { background: rgba(16, 185, 129, 0.3); color: #10b981; }
.grade-badge.blue { background: rgba(59, 130, 246, 0.3); color: #3b82f6; }
.grade-badge.orange { background: rgba(251, 146, 60, 0.3); color: #fb923c; }
.grade-badge.red { background: rgba(239, 68, 68, 0.3); color: #ef4444; }

.description-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress-bar-fill {
    height: 100%;
    transition: width 1s ease-out;
    border-radius: 50px;
}

.progress-bar-fill.gold { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.progress-bar-fill.green { background: linear-gradient(90deg, #10b981, #059669); }
.progress-bar-fill.blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.progress-bar-fill.orange { background: linear-gradient(90deg, #fb923c, #f97316); }
.progress-bar-fill.red { background: linear-gradient(90deg, #ef4444, #dc2626); }

.bonuses-penalties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.bonuses-section,
.penalties-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.bonuses-section h4,
.penalties-section h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bonus-list,
.penalty-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bonus-item,
.penalty-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bonus-item i { color: #10b981; }
.penalty-item i { color: #ef4444; }

.penalty-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #ef4444;
}

.style-notes-section {
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.style-notes-section h4 { margin-bottom: 0.75rem; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; color: #60a5fa; }
.style-notes-list { list-style: none; padding: 0; margin: 0; }
.style-note-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-muted);
}
.style-note-item i { color: #60a5fa; }

/* ═══════════════════════════════════════════════════════════════
   🎯 WARNING & SUCCESS BOXES
   ═══════════════════════════════════════════════════════════════ */

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-weight: 600;
}

.success-badge,
.pro-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 600;
}

.tip-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.beginner-focus-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(59, 68, 75, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-primary);
}

.beginner-focus-note i {
    color: var(--success);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.practice-advice-box,
.practice-advice-card {
    background: rgba(59, 130, 246, 0.08);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.practice-advice-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.practice-advice-label:first-child {
    margin-top: 0;
}

.practice-advice-problem {
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 0.25rem;
}

.practice-advice-text,
.practice-advice-exercise {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
}

.practice-advice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.viz-chart-wrap {
    background: rgba(59, 68, 75, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.viz-chart-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.viz-chart-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.viz-chart-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   🎯 QUALITY BARS
   ═══════════════════════════════════════════════════════════════ */

.quality-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quality-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    min-width: 80px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 0.8s ease-out;
}

.bar-fill.green { background: #10b981; }
.bar-fill.orange { background: #fb923c; }
.bar-fill.red { background: #ef4444; }

.bar-threshold {
    min-width: 100px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   🎯 VIBRATO TIMING RANGE VISUAL
   ═══════════════════════════════════════════════════════════════ */

.timing-range-visual {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.range-bar {
    position: relative;
    height: 60px;
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.3) 0%, 
        rgba(239, 68, 68, 0.3) 27%, 
        rgba(16, 185, 129, 0.3) 27%, 
        rgba(16, 185, 129, 0.3) 83%, 
        rgba(239, 68, 68, 0.3) 83%, 
        rgba(239, 68, 68, 0.3) 100%
    );
    border-radius: 8px;
}

.range-marker {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.range-marker span {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    white-space: nowrap;
    text-align: center;
}

.current-position {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.position-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.position-indicator.green { background: #10b981; }
.position-indicator.orange { background: #fb923c; }
.position-indicator.red { background: #ef4444; }

/* ═══════════════════════════════════════════════════════════════
   🎯 SILENCE SEGMENTS VISUAL
   ═══════════════════════════════════════════════════════════════ */

.silence-bar-visual {
    margin-top: 1.5rem;
}

.silence-segments {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: width 0.8s ease-out;
}

.segment.sound {
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
}

.segment.silence {
    background: linear-gradient(90deg, #6b7280, #4b5563);
    color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════
   🎯 SCOOP LOCATIONS
   ═══════════════════════════════════════════════════════════════ */

.scoop-locations {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
}

.scoop-locations strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   🎯 CLARITY & JITTER VISUALIZATIONS
   ═══════════════════════════════════════════════════════════════ */

.clarity-visualization,
.jitter-shimmer-display {
    margin-top: 1.5rem;
}

.clarity-bar,
.clarity-visualization .clarity-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.clarity-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s ease-out;
}

.clarity-fill.green { background: linear-gradient(90deg, #10b981, #059669); }
.clarity-fill.blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.clarity-fill.orange { background: linear-gradient(90deg, #fb923c, #f97316); }
.clarity-fill.red { background: linear-gradient(90deg, #ef4444, #dc2626); }

.clarity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   🎯 RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .pro-amateur-main {
        flex-direction: column;
        text-align: center;
    }
    
    .bonuses-penalties-grid {
        grid-template-columns: 1fr;
    }
    
    .quality-bar-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bar-label,
    .bar-threshold {
        text-align: center;
    }
}


/* ═══════════════════════════════════════════════════════════════
   AI ADVICE BUTTON & STATUS
   ═══════════════════════════════════════════════════════════════ */

.python-analysis-ready {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 16px;
    margin: 2rem 0;
}

.python-analysis-ready h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #10b981;
}

.python-analysis-ready p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.ai-plan-hint {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.85;
    color: var(--text-secondary, #94a3b8);
}

.ai-plan-hint a {
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
}

.ai-plan-hint a:hover {
    text-decoration: underline;
}

.ai-advice-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.ai-advice-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.ai-advice-button:active {
    transform: translateY(0);
}

.ai-advice-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-advice-button i {
    font-size: 1.2rem;
}

/* AI Generating Status */
.ai-generating {
    text-align: center;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    margin: 2rem 0;
}

.ai-generating .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-generating p {
    font-size: 1.1rem;
    color: #3b82f6;
}

/* AI Error Status */
.ai-error {
    text-align: center;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 16px;
    margin: 2rem 0;
}

.ai-error p {
    color: #ef4444;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   AI ADVICE BLOCK – Technical Analysis, Suggestions, Exercises
   Mobile-first, scroll-friendly, immediately visible
   ═══════════════════════════════════════════════════════════════ */

.ai-advice-block {
    display: none;
    margin: 1.25rem 0;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    scroll-margin-top: 1rem;
}

.ai-advice-block .ai-advice-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.ai-advice-block .ai-advice-header .card-icon {
    color: var(--text-secondary);
}

.ai-advice-block .ai-advice-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ai-content-section.ai-subsection {
    display: none;
}

.ai-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-subsection-title i {
    color: #10b981;
    font-size: 1rem;
}

.ai-overall-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    white-space: pre-wrap;
}

/* Technical Analysis grid */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border-left: 3px solid #10b981;
}

.tech-item h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tech-item h5 i {
    color: #10b981;
    font-size: 0.85rem;
}

.tech-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Suggestions list */
.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.suggestions-list li {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    border-left: 3px solid #f59e0b;
    position: relative;
    padding-left: 1.25rem;
}

.suggestions-list li::before {
    content: "→";
    position: absolute;
    left: 0.6rem;
    color: #f59e0b;
    font-weight: 700;
}

/* Exercises grid */
.exercises-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.exercise-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 3px solid #3b82f6;
}

.exercise-item h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.exercise-item h5 i {
    color: #3b82f6;
}

.exercise-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.exercise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exercise-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.exercise-tag i {
    font-size: 0.75rem;
    color: #3b82f6;
}

/* Desktop: 2 columns for tech/exercises where space allows */
@media (min-width: 640px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .exercises-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .exercises-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .ai-advice-block .ai-advice-body {
        padding: 1.5rem;
        gap: 1.75rem;
    }
}

/* Mobile: ensure AI block is readable and scrollable */
@media (max-width: 768px) {
    .ai-advice-block .ai-advice-body {
        padding: 1rem;
        gap: 1.25rem;
    }
    .ai-advice-block .ai-advice-header {
        padding: 0.875rem 1rem;
    }
    .tech-item,
    .exercise-item {
        padding: 0.875rem 1rem;
    }
    .suggestions-list li {
        padding: 0.65rem 1rem;
        padding-left: 1.2rem;
        font-size: 0.9rem;
    }
}

/* Hide AI sections until completed (legacy) */
.ai-content-section:not(.ai-subsection) {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════
   SWING RATIO VISUAL BAR - DODATAK ZA DETAIL CARD
   ═══════════════════════════════════════════════════════════════ */

.swing-ratio-visual {
    margin-top: 1.5rem;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.swing-scale {
    position: relative;
    height: 50px;
    background: linear-gradient(to right, 
        rgba(239, 68, 68, 0.3) 0%,      /* Too straight (red) */
        rgba(245, 158, 11, 0.3) 30%,    /* Moderate (orange) */
        rgba(16, 185, 129, 0.3) 45%,    /* Perfect start (green) */
        rgba(16, 185, 129, 0.3) 55%,    /* Perfect end (green) */
        rgba(245, 158, 11, 0.3) 70%,    /* Moderate (orange) */
        rgba(239, 68, 68, 0.3) 100%     /* Too extreme (red) */
    );
    border-radius: 25px;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    overflow: visible;
}

.swing-marker {
    position: absolute;
    top: -35px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: var(--text-muted);
}

.swing-marker.straight { 
    left: 0%; 
    color: var(--error);
}

.swing-marker.ideal { 
    left: 50%; 
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 700;
}

.swing-marker.extreme { 
    left: 100%; 
    color: var(--error);
}

.swing-indicator {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.indicator-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.indicator-dot.green { background: var(--success); }
.indicator-dot.blue { background: #3b82f6; }
.indicator-dot.orange { background: var(--warning); }
.indicator-dot.red { background: var(--error); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .swing-scale {
        height: 40px;
        margin: 1rem 0;
    }
    
    .swing-marker {
        font-size: 0.65rem;
        top: -30px;
    }
    
    .indicator-dot {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
}

/* ============================================
   AUTH PAGES (Login / Register) – same look as app
   ============================================ */
.auth-page-main {
    min-height: 100vh;
    padding: 6rem 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.auth-card label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(59, 68, 75, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 19, 48, 0.25);
}

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

.auth-card .auth-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.auth-card .auth-link:hover {
    color: var(--text-primary);
}

.auth-card button[type="submit"],
.auth-card .auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #6b1f42);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-card button[type="submit"]:hover,
.auth-card .auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 19, 48, 0.4);
}

.auth-card .auth-remember label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-card .auth-remember input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent-color);
}

.auth-card .auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-card .auth-errors {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.auth-card .auth-status {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-card .auth-status.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.auth-card .auth-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-card .auth-field {
    margin-top: 1.25rem;
}

.auth-card .auth-field:first-child {
    margin-top: 0;
}

.auth-card .auth-field + .auth-actions {
    margin-top: 1.5rem;
}

.auth-google-row {
    margin-bottom: 1.25rem;
}

.auth-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: #fff;
    color: #3c4043;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.auth-google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-google-icon {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* ============================================
   ADMIN – isti dizajn kao glavna app
   ============================================ */
body.admin-page {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

.admin-wrap {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.admin-sidebar {
    width: 260px;
    min-height: calc(100vh - 80px);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.admin-sidebar h2 {
    padding: 0 1.25rem 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-color);
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.admin-header a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-header a:hover {
    color: var(--accent-color);
}

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

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.admin-stat-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.admin-stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-stat-card a {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
}

.admin-stat-card a:hover {
    text-decoration: underline;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.admin-card h2 i { margin-right: 0.5rem; color: var(--accent-color); }
.admin-status-section h2 { margin: 0; }
.admin-status-section p { padding: 0 1.25rem 0; margin-top: 0.5rem; }
.admin-details { margin: 0 1.25rem 1rem; color: var(--text-muted); font-size: 0.9rem; }
.admin-details summary { cursor: pointer; padding: 0.25rem 0; }
.status-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 50px; font-weight: 600; margin: 0 1.25rem 1rem; }
.status-badge.status-ok { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-badge.status-problem { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; padding: 0 1.25rem 1rem; }
.status-item { display: flex; flex-direction: column; gap: 0.25rem; }
.status-label { font-size: 0.85rem; color: var(--text-muted); }
.status-value { font-weight: 700; color: var(--text-primary); }
.status-value.status-warn { color: #f59e0b; }
.status-subsection { padding: 1rem 1.25rem; border-top: 1px solid var(--border-color); }
.status-subsection h4 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--text-secondary); }
.admin-table-small { font-size: 0.85rem; }
.admin-table-small th, .admin-table-small td { padding: 0.5rem 0.75rem; }
/* Log preview – dizajn kao Record dugme: moderna crvena, obrub, tamna pozadina */
.log-preview {
    --log-red: #E53935;
    --log-red-soft: rgba(229, 57, 53, 0.12);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, var(--log-red-soft) 100%);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    border: 2px solid var(--log-red);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}
.log-preview::-webkit-scrollbar { width: 8px; height: 8px; }
.log-preview::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.log-preview::-webkit-scrollbar-thumb { background: var(--log-red); border-radius: 4px; }
.log-preview::-webkit-scrollbar-thumb:hover { background: #C62828; }

.log-subsection .log-subsection-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.95);
}
/* Crveni krug – prepoznatljivo Record dugme */
.log-record-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    position: relative;
}
.log-record-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E53935;
    border: 2px solid rgba(229, 57, 53, 0.9);
    animation: logRecPulse 1.5s ease-in-out infinite;
}
.log-rec-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #E53935;
    text-transform: uppercase;
}
@keyframes logRecPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.08); }
}

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

.admin-chart-card {
    padding: 0;
}

.admin-chart-card h3 {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    font-weight: 600;
}

.admin-chart-card h3 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.chart-wrap {
    padding: 1rem 1.25rem;
    height: 220px;
    position: relative;
}

.chart-wrap-wide {
    height: 280px;
}

.admin-chart-wide {
    grid-column: 1 / -1;
}

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

.admin-table th {
    text-align: left;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
}

.admin-table td {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table .text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-table .text-center {
    text-align: center;
}

.admin-table-wrap {
    overflow-x: auto;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.badge-admin {
    background: rgba(232, 167, 92, 0.25);
    color: #E8A75C;
}

.badge-premium {
    background: rgba(88, 214, 141, 0.2);
    color: #58D68D;
}

.badge-status-active {
    background: rgba(88, 214, 141, 0.2);
    color: #58D68D;
}

.badge-status-suspended {
    background: rgba(241, 196, 15, 0.25);
    color: #F1C40F;
}

.badge-status-banned {
    background: rgba(231, 76, 60, 0.25);
    color: #E74C3C;
}

.admin-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.admin-alert-success {
    background: rgba(88, 214, 141, 0.15);
    color: #58D68D;
    border: 1px solid rgba(88, 214, 141, 0.3);
}

.admin-alert-error {
    background: rgba(231, 76, 60, 0.15);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.admin-status-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-status-select {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    min-width: 100px;
}

.admin-status-btn {
    padding: 0.35rem 0.5rem;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}

.admin-status-btn:hover {
    opacity: 0.9;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.admin-pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-pagination-links nav ul.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-pagination-links nav ul.pagination li {
    display: inline-block;
}

.admin-pagination-links nav ul.pagination li a,
.admin-pagination-links nav ul.pagination li span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
}

.admin-pagination-links nav ul.pagination li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.admin-pagination-links nav ul.pagination li.active span {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.admin-pagination-links nav ul.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-page .admin-container {
    max-width: 1200px;
    margin: 0;
    padding: 0;
}

.admin-page .upload-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-page .upload-form h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.admin-page .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-page .form-group {
    display: flex;
    flex-direction: column;
}

.admin-page .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-page .form-group input,
.admin-page .form-group select,
.admin-page .form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-page .form-group input:focus,
.admin-page .form-group select:focus,
.admin-page .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(79, 19, 48, 0.25);
}

.admin-page .form-group input[type="file"] {
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.admin-page .form-group input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-page .form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.admin-page .form-group.form-group-full {
    margin-bottom: 1.25rem;
}

.admin-page .form-group input::placeholder,
.admin-page .form-group textarea::placeholder {
    color: var(--text-muted);
}

.admin-page .btn-upload {
    background: linear-gradient(135deg, var(--primary-color), #4a5562);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-page .btn-upload:hover {
    background: var(--accent-color);
    transform: scale(1.02);
}

.admin-page .references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.admin-page .reference-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.admin-page .reference-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.admin-page .reference-card .card-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.admin-page .reference-card .card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.admin-page .reference-card .tag {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-page .reference-card .tag.difficulty {
    background: var(--accent-color);
}

.admin-page .reference-card .tag.exercise {
    background: var(--success);
}

.admin-page .reference-card .metrics {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-page .btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.admin-page .btn-delete:hover {
    background: rgba(239, 68, 68, 0.35);
}

.admin-page .success-msg {
    background: var(--success);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
}

.admin-page .admin-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.admin-page .references-grid {
    min-height: 120px;
}

.admin-page .references-grid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-muted);
    text-align: center;
}

.admin-page .references-grid-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.admin-page .references-grid-empty p {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.admin-page .references-grid-empty span {
    font-size: 0.9rem;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(17, 17, 17, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cookie-consent-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent-color), #6b1f42);
    color: white;
    box-shadow: 0 5px 20px rgba(79, 19, 48, 0.4);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 19, 48, 0.6);
}

.cookie-btn-settings {
    background: rgba(59, 68, 75, 0.2);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.cookie-btn-settings:hover {
    background: rgba(59, 68, 75, 0.3);
    border-color: var(--primary-color);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.cookie-btn-decline:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.25rem 1.5rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LIMITS / INFO MODAL (daily limit, storage, file size)
   ============================================ */
.limits-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}
.limits-modal.hidden {
    display: none;
}
.limits-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
.limits-modal-content {
    position: relative;
   
    border-radius: 24px;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
   
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.limits-modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}
.limits-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.limits-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}
.limits-modal-body {
    text-align: center;
}
.limits-modal-icon-wrap {
    margin-bottom: 1.25rem;
}
.limits-modal-icon {
    font-size: 3rem;
    color: var(--accent-color);
    filter: drop-shadow(0 4px 12px rgba(79, 19, 48, 0.4));
}
.limits-modal.limits-modal-warning .limits-modal-icon { color: #f59e0b; filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.4)); }
.limits-modal.limits-modal-error .limits-modal-icon { color: #ef4444; filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4)); }
.limits-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.limits-modal-message {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.limits-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #6b1f42);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.limits-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 19, 48, 0.4);
}

/* ============================================
   ACHIEVEMENT UNLOCK MODAL
   ============================================ */
.achievement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.achievement-modal.hidden {
    display: none;
}

.achievement-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.achievement-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 13, 18, 0.95) 0%, rgba(59, 68, 75, 0.95) 100%);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.achievement-modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.achievement-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.achievement-modal-body {
    text-align: center;
}

.achievement-unlock-icon {
    margin-bottom: 1.5rem;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.achievement-trophy-icon {
    font-size: 4rem;
    color: #f59e0b;
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.4));
    animation: pulse 2s infinite;
}

.achievement-unlock-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-badge-large {
    background: linear-gradient(135deg, rgba(59, 68, 75, 0.8) 0%, rgba(13, 13, 18, 0.9) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.achievement-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.achievement-description-large {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.achievement-xp-reward {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.2) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: #fbbf24;
    font-weight: 600;
    font-size: 1.1rem;
}

.achievement-xp-reward i {
    color: #f59e0b;
}

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

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

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .achievement-modal-content {
        padding: 1.5rem;
        max-width: 90%;
    }

    .achievement-trophy-icon {
        font-size: 3rem;
    }

    .achievement-unlock-title {
        font-size: 1.5rem;
    }

    .achievement-badge-large {
        padding: 1.5rem;
    }

    .achievement-icon-large {
        font-size: 3rem;
    }

    .achievement-name-large {
        font-size: 1.25rem;
    }
}




