@keyframes gold-pulse {
    0% {
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 1));
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

:root {
    /* Brand Colors - Premium Wine Theme */
    --primary-burgundy: #722F37;
    --primary-gold: #D4AF37;
    --deep-purple: #4B0082;
    --wine-red: #8B1538;
    --champagne: #F7E7CE;
    --dark-grape: #2C1810;
    
    /* Glass Morphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-blur: blur(15px);
    
    /* Navigation */
    --nav-height: 80px;
    --tab-content-height: calc(100dvh - var(--nav-height) - env(safe-area-inset-bottom));
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Typography */
    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}

body {
    font-family: var(--font-family-sans-serif);
    background: linear-gradient(135deg, var(--primary-burgundy), var(--deep-purple));
    color: #333;
    line-height: 1.6;
    height: 100vh; /* Use height instead of min-height for a fixed viewport */
    height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    padding: 0;
    box-sizing: border-box; /* Include padding in the height calculation */

    /* iOS Safe Areas handled on .app */
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

/* App Container (Full-viewport, no emulator frame) */
.app {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    /* Safe-area paddings */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Синяя стрелочка удалена по запросу пользователя */

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* === ONBOARDING SCREENS === */
.screen-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-smooth);
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 60px;
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    transform: translateX(0);
}

/* Onboarding Content */
.onboarding-content {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.logo-section {
    margin-bottom: 50px;
}

.app-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.onboarding-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-gold), var(--champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.welcome-description {
    margin-bottom: 50px;
}

.benefit-section {
    margin-bottom: 30px;
}

.benefit-section h3 {
    font-size: 1.4rem;
    color: var(--champagne);
    margin-bottom: 20px;
    text-align: left;
    font-weight: 500;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    text-align: left;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.5;
}

.benefit-item strong {
    color: var(--primary-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.quick-start-info {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    margin-top: 20px;
}

.quick-start-info p {
    margin: 0;
    color: var(--champagne);
    font-weight: 500;
    text-align: center;
}

/* === MODERN WELCOME DESIGN === */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--primary-gold), transparent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    width: 4px;
    height: 4px;
    top: 60%;
    right: 20%;
    animation-delay: -2s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 25%;
    animation-delay: -4s;
    animation-duration: 10s;
}

.particle:nth-child(4) {
    width: 3px;
    height: 3px;
    top: 30%;
    right: 30%;
    animation-delay: -1s;
    animation-duration: 7s;
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    top: 45%;
    left: 70%;
    animation-delay: -3s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.modern-welcome-content {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: welcomeSlide 1s ease-out;
}

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

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.logo-container {
    position: relative;
    animation: logoAppear 1.5s ease-out 0.3s both;
}

@keyframes logoAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.app-logo-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-logo-modern:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.logo-icon {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.logo-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-gold), transparent, var(--champagne));
    border-radius: 27px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: pulse 3s ease-in-out infinite;
}

.app-logo-modern:hover .logo-glow {
    opacity: 0.6;
}

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

.title-block {
    animation: titleSlide 1s ease-out 0.6s both;
}

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

.modern-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 50%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 1px;
}

.modern-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    opacity: 0;
    animation: subtitleFade 0.8s ease-out 1.2s both;
}

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

/* Feature Constellation */
.features-constellation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 260px;
    animation: constellationAppear 1s ease-out 0.9s both;
}

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

.feature-diamond {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-diamond::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.feature-diamond:hover::before {
    opacity: 0.1;
}

.feature-diamond:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: var(--primary-gold);
}

.feature-diamond:nth-child(1) {
    animation-delay: 1.1s;
}
.feature-diamond:nth-child(2) {
    animation-delay: 1.3s;
}
.feature-diamond:nth-child(3) {
    animation-delay: 1.5s;
}
.feature-diamond:nth-child(4) {
    animation-delay: 1.7s;
}

.diamond-icon {
    font-size: 1.8rem;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.feature-diamond:hover .diamond-icon {
    transform: scale(1.2);
}

.diamond-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    z-index: 1;
    position: relative;
    transition: color 0.3s ease;
}

.feature-diamond:hover .diamond-label {
    color: white;
}

/* Magic CTA Section */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: ctaSlide 1s ease-out 1.2s both;
}

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

.magic-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    animation: hintGlow 2s ease-in-out infinite;
}

@keyframes hintGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    }
}

.hint-icon {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.hint-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.magic-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    border: none;
    border-radius: 30px;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    -webkit-appearance: none;
    appearance: none;
    min-height: 56px;
    min-width: 200px;
}

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

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

.magic-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.magic-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.magic-btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-text {
    position: relative;
}

.btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    border-radius: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    filter: blur(8px);
}

.magic-btn:hover .btn-glow {
    opacity: 0.6;
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.btn-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFly 2s ease-out infinite;
}

.btn-particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.btn-particle:nth-child(2) {
    top: 60%;
    right: 25%;
    animation-delay: 0.7s;
}

.btn-particle:nth-child(3) {
    bottom: 30%;
    left: 60%;
    animation-delay: 1.4s;
}

@keyframes particleFly {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0);
    }
}

.magic-btn:hover .btn-particles .btn-particle {
    animation-play-state: running;
}

/* === MODERN ONBOARDING SCREENS === */
/* Modern Question Screen */
.modern-question-content {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    animation: questionSlide 0.8s ease-out;
}

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

.modern-question-header {
    text-align: center;
    animation: headerFade 1s ease-out 0.3s both;
}

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

.modern-question-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 50%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.modern-question-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.modern-options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    animation: optionsAppear 0.8s ease-out 0.6s both;
}

@keyframes optionsAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modern-option-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 22px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.modern-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.modern-option-btn:hover::before {
    opacity: 0.1;
}

.modern-option-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: var(--primary-gold);
}

.modern-option-btn:nth-child(1) {
    animation-delay: 0.8s;
}
.modern-option-btn:nth-child(2) {
    animation-delay: 1.0s;
}
.modern-option-btn:nth-child(3) {
    animation-delay: 1.2s;
}

.modern-option-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.modern-option-btn:hover .modern-option-icon {
    transform: scale(1.15);
}

.modern-option-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
    position: relative;
}

.modern-option-text strong {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--champagne);
    transition: color 0.3s ease;
}

.modern-option-btn:hover .modern-option-text strong {
    color: white;
}

.modern-option-text span {
    opacity: 0.8;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.modern-option-btn:hover .modern-option-text span {
    opacity: 1;
}

/* Modern Persona Introduction */

/* Класс для визуального отключения кнопок персон "Любитель" и "Эксперт" на странице "Расскажите о себе" */
.persona--disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-color: rgba(255,255,255,0.15);
}

.modern-persona-content {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: personaSlide 1s ease-out;
}

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

.modern-persona-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

.modern-persona-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--primary-gold), transparent, var(--champagne));
    border-radius: 33px;
    opacity: 0.6;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.persona-avatar-icon {
    font-size: 3.5rem;
    z-index: 2;
    position: relative;
}

.modern-persona-greeting {
    text-align: center;
    animation: greetingFade 1s ease-out 0.5s both;
}

.modern-persona-greeting h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-persona-greeting p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.modern-persona-features {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    animation: featuresSlide 1s ease-out 0.8s both;
}

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

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

/* Question Screens */
.question-section {
    width: 100%;
}

.question-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--champagne);
}

.question-subtitle {
    opacity: 0.8;
    margin-bottom: 40px;
}

.question-step h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: white;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
}

.option-btn:hover,
.option-btn:active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-gold);
    transform: scale(0.98);
}

.option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-text strong {
    font-weight: 600;
    font-size: 1.1rem;
}

.option-text span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Persona Introduction */
.persona-intro-section {
    text-align: center;
}

.persona-avatar {
    font-size: 5rem;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.persona-greeting h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--champagne);
}

.persona-greeting p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.persona-features {
    margin-bottom: 40px;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    border: none;
    border-radius: 25px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover,
.primary-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover,
.secondary-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.98);
}

/* === MODERN MAIN APP CONTAINER === */
.main-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(139, 21, 56, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(75, 8, 130, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(139, 21, 56, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 40% 60%, rgba(75, 8, 130, 0.02) 0%, transparent 50%);
    }
    33% {
        background: radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 30% 80%, rgba(139, 21, 56, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 60% 40%, rgba(75, 8, 130, 0.02) 0%, transparent 50%);
    }
    66% {
        background: radial-gradient(circle at 40% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 90% 30%, rgba(139, 21, 56, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 20% 50%, rgba(75, 8, 130, 0.03) 0%, transparent 50%);
    }
}

.main-container > :not(.particles-container) {
    position: relative;
    z-index: 1;
}
.main-container > .particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

/* Tab Content */
.tab-content {
    display: flex;
    width: 500%; /* 5 tabs * 100% */
    height: var(--tab-content-height);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.tab-screen {
    flex-shrink: 0;
    width: 20%; /* 100% / 5 tabs */
    height: 100%;
    overflow-y: auto;
    /* Убираем лишние свойства позиционирования и анимации, они теперь на контейнере */
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px 25px 0 0;
    box-shadow: var(--glass-shadow);
    box-sizing: border-box; /* Добавим для корректных расчетов */

    /* Fade-out effect at the bottom */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}


/* === MODERN TAB HEADERS === */
.tab-header, .modern-tab-header {
    display: none; /* Полностью скрываем хедеры разделов */
}

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

.tab-header::before, .modern-tab-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.8;
    border-radius: 25px 25px 0 0;
}

.tab-header h2, .modern-tab-title {
    display: none; /* Скрываем заголовки разделов */
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
    }
}

/* === MODERN USER GREETING === */
.user-greeting, .modern-user-greeting {
    display: none;
    margin-bottom: 25px;
    animation: greetingAppear 1s ease-out 0.3s both;
}

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

.greeting-text {
    font-size: 1.4rem;
    font-weight: 400;
    background: linear-gradient(135deg, var(--champagne) 0%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.greeting-subtitle {
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-size: 1rem;
}

.persona-indicator, .modern-persona-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: indicatorFloat 3s ease-in-out infinite;
}

@keyframes indicatorFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

.persona-indicator:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* === MODERN MAIN CONTENT AREA === */
.main-content, .modern-main-content {
    flex: 1;
    padding: 30px 25px;
    background: transparent;
    animation: contentSlide 1s ease-out;
    position: relative;
}

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

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(139, 21, 56, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

.modern-loading-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: white;
    animation: placeholderFade 1s ease-out;
}

@keyframes placeholderFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modern-loading-spinner {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 auto 25px;
}

.modern-loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: modernSpin 1.2s linear infinite;
}

.modern-loading-spinner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 38px;
    height: 38px;
    border: 2px solid transparent;
    border-top: 2px solid var(--champagne);
    border-radius: 50%;
    animation: modernSpin 0.8s linear infinite reverse;
}

@keyframes modernSpin {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }
}

/* Legacy Loading Components */
.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* === MODERN CHAT TAB === */
.modern-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 85px);
    background: transparent;
    animation: chatSlide 0.8s ease-out;
}

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

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 85px);
}

.modern-chat-messages {
    flex: 1;
    padding: 30px 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.modern-chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 21, 56, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modern-chat-messages > * {
    position: relative;
    z-index: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-message {
    display: flex;
    max-width: 85%;
    animation: modernMessageSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes modernMessageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message {
    display: flex;
    max-width: 80%;
    animation: messageSlide 0.3s ease;
}

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

.modern-message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message.user {
    margin-left: auto;
}

.modern-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 12px;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modern-message.user .modern-message-avatar {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    font-weight: 600;
}

.modern-message.assistant .modern-message-avatar {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    color: white;
}

.modern-message-bubble {
    position: relative;
    max-width: 100%;
}

.modern-message-content {
    padding: 18px 24px;
    border-radius: 25px;
    word-wrap: break-word;
    line-height: 1.6;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.modern-message:hover .modern-message-content::before {
    left: 100%;
}

.message-content {
    padding: 15px 20px;
    border-radius: 20px;
    word-wrap: break-word;
    line-height: 1.4;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modern-message.user .modern-message-content {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.modern-message.assistant .modern-message-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.modern-message.assistant.error .modern-message-content {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.08));
    border: 2px solid rgba(220, 38, 38, 0.4);
    color: #dc2626;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.message.assistant .message-content {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.message.assistant.error .message-content {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.modern-message-time {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 8px;
    text-align: right;
    font-weight: 400;
}

.modern-message.user .modern-message-time {
    text-align: left;
}

.modern-chat-input-container {
    padding: 25px;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(44,24,16,0.75));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    animation: inputSlide 0.8s ease-out 0.3s both;
}

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

.modern-chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.8;
}

.chat-input-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-chat-input {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
}

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

.modern-input-wrapper {
    flex: 1;
    position: relative;
}

.modern-chat-input input,
.modern-chat-input textarea {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    outline: none;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    color: #333;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
    min-height: 56px;
    max-height: 120px;
}

.modern-chat-input input:focus,
.modern-chat-input textarea:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.modern-chat-input input::placeholder,
.modern-chat-input textarea::placeholder {
    color: #666;
    font-weight: 400;
}

.chat-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.chat-input input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.chat-input input::placeholder {
    color: #666;
}

.modern-send-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

.modern-send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-send-btn:hover::before {
    opacity: 1;
}

.modern-send-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.modern-send-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.modern-send-btn .send-icon {
    font-size: 1.3rem;
    font-weight: bold;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.modern-send-btn:hover .send-icon {
    transform: translateX(2px);
}

.chat-input button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    -webkit-appearance: none;
    appearance: none;
}

.chat-input button:active {
    transform: scale(0.95);
}

.send-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Modern Chat Welcome State */
.modern-chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    color: white;
    animation: welcomeSlide 1s ease-out;
}

.modern-chat-welcome-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
}

.modern-chat-welcome h3 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-chat-welcome p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 300px;
}

/* Modern Typing Indicator */
.modern-typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 52px;
    animation: typingSlide 0.5s ease;
}

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

.modern-typing-bubble {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    padding: 15px 20px;
    border-radius: 25px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modern-typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.modern-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-burgundy);
    border-radius: 50%;
    animation: modernTyping 1.4s ease-in-out infinite;
}

.modern-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes modernTyping {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* === MODERN SCANNER TAB === */
.scanner-container, .modern-scanner-container {
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
    animation: scannerSlide 1s ease-out;
    position: relative;
}

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

.scanner-container::before, .modern-scanner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(114, 47, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.scanner-container > *, .modern-scanner-container > * {
    position: relative;
    z-index: 1;
}

.modern-scan-frame {
    position: relative;
    width: 320px;
    height: 240px;
    animation: frameAppear 1.2s ease-out 0.3s both;
}

@keyframes frameAppear {
    from {
        opacity: 0;
        transform: scale(0.9) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.scan-frame {
    position: relative;
    width: 280px;
    height: 200px;
}

.modern-scan-area {
    width: 100%;
    height: 100%;
    border: 3px dashed rgba(212, 175, 55, 0.6);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scanPulse 3s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(212, 175, 55, 0.3);
        border-color: rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(212, 175, 55, 0.5);
        border-color: rgba(212, 175, 55, 0.6);
    }
}

.modern-scan-area::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-gold), transparent, var(--champagne));
    border-radius: 27px;
    opacity: 0;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.modern-scan-area:hover {
    transform: scale(1.02);
    border-color: var(--primary-gold);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 40px rgba(212, 175, 55, 0.6);
}

.scan-area {
    width: 100%;
    height: 100%;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.modern-scan-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.scan-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.modern-corner {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 4px solid var(--primary-gold);
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
    animation: cornerPulse 2s ease-in-out infinite;
}

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

.modern-corner.top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
    border-radius: 15px 0 0 0;
    animation-delay: 0s;
}

.modern-corner.top-right {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 15px 0 0;
    animation-delay: 0.5s;
}

.modern-corner.bottom-left {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 15px;
    animation-delay: 1s;
}

.modern-corner.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 15px 0;
    animation-delay: 1.5s;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-gold);
}

.corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-radius: 10px 0 0 0;
}

.corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 10px 0 0;
}

.corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 10px;
}

.corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 10px 0;
}

.modern-scan-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    animation: placeholderSlide 1s ease-out 0.6s both;
}

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

.scan-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.modern-scan-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    animation: scanIconFloat 3s ease-in-out infinite;
}

@keyframes scanIconFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.modern-scan-icon.scanning {
    animation: scanIconSpin 2s linear infinite;
}

@keyframes scanIconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.scan-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

.modern-scan-text {
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.modern-scan-hint {
    font-size: 0.9rem;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.modern-scanner-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    animation: controlsSlide 1s ease-out 0.9s both;
}

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

.scanner-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 280px;
}

.modern-scanner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.modern-camera-btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    border: none;
    border-radius: 25px;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.modern-camera-btn:hover::before {
    left: 100%;
}

.modern-camera-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.5);
}

.modern-camera-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.modern-gallery-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modern-gallery-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.modern-scanner-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-scanner-help:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.modern-help-icon {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.modern-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.modern-help-btn:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

.scanner-help-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Modern Scanning State */
.modern-scan-area.scanning {
    border-color: var(--primary-gold);
    animation: scanningPulse 1.5s ease-in-out infinite;
}

@keyframes scanningPulse {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(212, 175, 55, 0.6);
        border-color: var(--primary-gold);
    }
    50% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 50px rgba(212, 175, 55, 0.8);
        border-color: var(--champagne);
    }
}

.modern-scan-area.scanning::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* === LEARNING TAB === */
.learning-container {
    padding: 25px;
    flex: 1;
}

.progress-indicator, .modern-progress-indicator {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* === MODERN PROFILE TAB === */
.modern-profile-container {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
    animation: profileSlide 1s ease-out;
    position: relative;
}

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

.modern-profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(114, 47, 55, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modern-profile-container > * {
    position: relative;
    z-index: 1;
}

.profile-container {
    padding: 25px;
    flex: 1;
}

/* Modern Profile Info Card */
.modern-profile-info {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #333;
    position: relative;
    overflow: hidden;
    animation: profileInfoReveal 1s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modern-profile-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--champagne), var(--primary-burgundy));
    border-radius: 25px 25px 0 0;
}

.modern-profile-info:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.profile-info {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #333;
}

.modern-user-info {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 30px;
    animation: userInfoSlide 1s ease-out 0.3s both;
}

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

.modern-user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    animation: avatarFloat 3s ease-in-out infinite;
}

.modern-user-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-gold), transparent, var(--champagne));
    border-radius: 50%;
    opacity: 0.6;
    animation: avatarGlow 3s ease-in-out infinite;
}

.modern-user-avatar span {
    position: relative;
    z-index: 1;
}

.modern-user-details {
    flex: 1;
}

.modern-user-details h3 {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
}

.modern-user-details p {
    margin-bottom: 8px;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.modern-user-level {
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(75, 8, 130, 0.3);
    animation: levelPulse 3s ease-in-out infinite;
}

@keyframes levelPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(75, 8, 130, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(75, 8, 130, 0.5);
    }
}

/* Modern Profile Sections */
.modern-profile-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modern-profile-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    animation: sectionSlide 0.8s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sectionSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-profile-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.profile-section {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.modern-profile-section h3 {
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-section h3 {
    margin-bottom: 15px;
    color: var(--champagne);
    font-weight: 500;
}

.modern-section-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

/* Modern Current Persona Display */
.modern-current-persona {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    animation: personaSlide 1s ease-out 0.3s both;
}

.modern-current-persona:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    transform: translateX(5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.current-persona {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 15px;
}

.modern-persona-avatar-small {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    animation: personaFloat 3s ease-in-out infinite;
}

@keyframes personaFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

.modern-persona-info-text {
    flex: 1;
}

.modern-persona-name {
    font-weight: 600;
    color: var(--champagne);
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.modern-persona-description {
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.4;
}

.modern-change-persona-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.modern-change-persona-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-change-persona-btn:hover::before {
    left: 100%;
}

.modern-change-persona-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-grape);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.modern-change-persona-btn:active {
    transform: translateY(0px) scale(0.98);
}

.change-persona-btn {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.change-persona-btn:active {
    background: var(--primary-gold);
    color: var(--dark-grape);
}

/* Modern Stats Grid */
.modern-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modern-stat-item {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: statFloat 0.8s ease-out;
}

@keyframes statFloat {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-stat-item:hover::before {
    opacity: 0.08;
}

.modern-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

.modern-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
    position: relative;
    z-index: 1;
    animation: valueCount 1.5s ease-out 0.5s both;
}

@keyframes valueCount {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modern-stat-label {
    opacity: 0.95;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

/* Modern Settings Options */
.modern-settings-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-settings-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

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

.modern-settings-btn:hover::before {
    left: 100%;
}

.modern-settings-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateX(5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

.modern-settings-btn:active {
    transform: translateX(2px) scale(0.98);
}

.settings-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
}

.modern-settings-btn-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.modern-settings-icon {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

.modern-settings-btn:hover .modern-settings-icon {
    transform: scale(1.1);
}

.modern-settings-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.modern-settings-btn:hover .modern-settings-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Modern Profile Actions */
.modern-profile-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.modern-profile-primary-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    border: none;
    border-radius: 20px;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

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

.modern-profile-primary-btn:hover::before {
    left: 100%;
}

.modern-profile-primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.5);
}

.modern-profile-secondary-btn {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    -webkit-appearance: none;
    appearance: none;
}

.modern-profile-secondary-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    border-color: var(--champagne);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* === MODERN BOTTOM NAVIGATION === */
.bottom-navigation, .modern-bottom-navigation {
    height: var(--nav-height);
    border-top: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 100;
    box-shadow: none;
}

.bottom-navigation::before {
    content: ''; /* Тонкая полоска сверху для общего стиля */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.6;
    pointer-events: none;
    z-index: 101; /* Поверх волны, но под активным элементом */
}

.nav-item, .modern-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 10px;
    border-radius: 18px;
    min-width: 64px;
    position: relative;
    -webkit-touch-callout: none;
    touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    
    /* Стилизация пассивного элемента меню */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая рамка */
    box-shadow: none;
}

/* Эффект наведения для неактивных элементов */
.nav-item:hover:not(.active), .modern-nav-item:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)); /* Более выраженный фон */
    transform: translateY(-5px) scale(1.02); /* Анимация подъема и небольшого увеличения */
    box-shadow: 0  одобренных px 25px rgba(0,0,0,0.2); /* Усиленная тень */
    border-color: var(--primary-gold); /* Изменение цвета рамки на золотой */
}

/* Эффект активного элемента */
.nav-item.active, .modern-nav-item.active {
    background: transparent;
    box-shadow: none;
    transform: translateY(-3px);
    border: 0.5px solid var(--primary-gold); /* Более тонкая золотая рамка для активного элемента */
}

/* Эффект нажатия (для всех элементов) */
.nav-item:active, .modern-nav-item:active {
    transform: translateY(-1px) scale(0.98); /* Более мягкая анимация нажатия */
}

/* Анимация для иконки активного элемента */
.nav-item.active .nav-icon, .modern-nav-item.active .modern-nav-icon {
    animation: iconActivePulse 2s ease-in-out infinite;
}

@keyframes iconActivePulse {
    0%, 100% {
        transform: scale(1.15) translateY(0px) rotate(0deg);
        filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
    }
    50% {
        transform: scale(1.2) translateY(-2px) rotate(2deg);
        filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.8));
    }
}

/* Обновление золотой полоски сверху для активного элемента */
/* Удаляем старые правила ::before, которые добавляли волну (теперь это JS) */
.nav-item.active::before, .modern-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px; /* Чуть выше */
    left: 50%;
    transform: translateX(-50%) scaleX(0); /* Изначально скрыта, будет анимироваться */
    width: 80%; /* почти на всю ширину элемента */
    height: 3px; /* Немного толще */
    background: linear-gradient(90deg, transparent, var(--primary-gold), var(--champagne), transparent);
    border-radius: 15px; /* Более округлая форма выделения */
    opacity: 0;
    transition: all 0.5s ease-out; /* Плавное появление */
    animation: activeGoldBarAppear 0.5s forwards, activeGoldBarGlow 1.5s ease-in-out infinite alternate 0.5s; /* Появление, затем пульсация */
    z-index: 1; /* Поверх других элементов nav-item, но под иконкой */
}

@keyframes activeGoldBarAppear {
    from {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}

@keyframes activeGoldBarGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6), 0 0 25px rgba(212, 175, 55, 0.3);
    }
}

/* Удаляем более ранние определения, чтобы избежать дублирования и конфликтов */
.nav-item::before, .modern-nav-item::before {
    content: none;
}

.nav-item.active .nav-icon,
.modern-nav-item.active .modern-nav-icon,
.nav-item.active .nav-label,
.modern-nav-item.active .modern-nav-label {
    color: var(--dark-grape);
    z-index: 1;
    position: relative;
}

.nav-icon, .modern-nav-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-label, .modern-nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    z-index: 1;
    position: relative;
    letter-spacing: 0.3px;
}

/* === UTILITIES === */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.hidden {
    display: none !important;
}
.hidden { display: none !important; }

.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 480px) {
    .onboarding-content {
        padding: 30px 20px;
    }
    
    .onboarding-content h1 {
        font-size: 2rem;
    }
    
    .app-logo {
        font-size: 3rem;
    }
    
    .option-btn {
        padding: 18px;
        gap: 15px;
    }
    
    .tab-header {
        padding: 20px 20px 15px;
    }
    
    .main-content,
    .scanner-container,
    .learning-container,
    .profile-container {
        padding: 20px;
    }
    
    .scan-frame {
        width: 250px;
        height: 180px;
    }
    
    .scanner-controls {
        max-width: 250px;
    }
}

@media (max-height: 700px) {
    .onboarding-content {
        padding: 20px;
    }
    
    .logo-section {
        margin-bottom: 30px;
    }
    
    .welcome-features {
        margin-bottom: 30px;
    }
    
    .app-logo {
        font-size: 3rem;
    }
}

/* === SEGMENT-SPECIFIC COMPONENTS === */

/* === MODERN BEGINNER DASHBOARD === */
.beginner-dashboard, .modern-beginner-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: dashboardSlide 1s ease-out;
}

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

/* Replaced by unified .glass-card system - these classes are deprecated, use .glass-card instead */

.daily-card, .progress-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #333;
}

.modern-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    animation: headerFadeIn 1s ease-out 0.3s both;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modern-card-header h3, .card-header h3 {
    font-size: 1.4rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--wine-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-burgundy);
}

.modern-badge, .modern-new-badge, .modern-level-badge, .modern-vintage-badge, .modern-period-badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-badge::before, .modern-new-badge::before, .modern-level-badge::before, .modern-vintage-badge::before, .modern-period-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.new-badge, .level-badge, .vintage-badge, .period-badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.modern-wine-recommendation {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), rgba(212, 175, 55, 0.01));
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    animation: wineSlide 1s ease-out 0.6s both;
}

@keyframes wineSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wine-recommendation {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.modern-wine-image {
    font-size: 3.5rem;
    opacity: 0.9;
    animation: wineFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

@keyframes wineFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

.wine-image {
    font-size: 3rem;
    opacity: 0.8;
}

.modern-wine-info h4, .wine-info h4 {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.wine-info h4 {
    color: var(--primary-burgundy);
    margin-bottom: 8px;
    font-weight: 600;
}

.modern-wine-info p, .wine-info p {
    opacity: 0.85;
    margin-bottom: 12px;
    line-height: 1.5;
}

.wine-info p {
    opacity: 0.8;
    margin-bottom: 10px;
}

.modern-price-range {
    color: var(--wine-red);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 16px;
    background: rgba(139, 21, 56, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(139, 21, 56, 0.2);
}

.price-range {
    color: var(--wine-red);
    font-weight: 500;
}

.modern-learn-more-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    color: white;
    border: none;
    border-radius: 18px;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 8px 25px rgba(114, 47, 55, 0.3);
    position: relative;
    overflow: hidden;
}

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

.modern-learn-more-btn:hover::before {
    left: 100%;
}

.modern-learn-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(114, 47, 55, 0.4);
}

.learn-more-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.modern-progress-bar {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.15), rgba(114, 47, 55, 0.08));
    border-radius: 15px;
    height: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.modern-progress-fill {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    height: 100%;
    border-radius: 15px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.modern-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.progress-bar {
    background: rgba(114, 47, 55, 0.2);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-gold), var(--champagne));
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.modern-achievements {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    animation: achievementsSlide 1s ease-out 0.9s both;
}

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

.achievements {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.modern-achievement {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    color: var(--wine-red);
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-achievement:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.achievement {
    background: rgba(212, 175, 55, 0.2);
    color: var(--wine-red);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.modern-quick-actions {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    animation: actionsSlide 1s ease-out 1.2s both;
}

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

.quick-actions {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.modern-quick-actions h3, .quick-actions h3 {
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 500;
}

.quick-actions h3 {
    margin-bottom: 20px;
    color: var(--champagne);
}

.modern-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modern-action-btn, .modern-action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

/* Responsive dimensions for action cards */
@media (max-width: 430px) {
    .modern-action-btn, .modern-action-card {
        min-height: 150px;
        aspect-ratio: 1;
    }
}

@media (min-width: 431px) {
    .modern-action-btn, .modern-action-card {
        min-height: 180px;
        aspect-ratio: 4/3;
    }
}

.modern-action-btn::before, .modern-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modern-action-btn:hover::before {
    opacity: 0.1;
}

.modern-action-btn:hover, .modern-action-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    -webkit-appearance: none;
    appearance: none;
}

.action-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.98);
}

.modern-action-icon {
    font-size: 2.2rem;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.modern-action-btn:hover .modern-action-icon {
    transform: scale(1.1);
}

.action-icon {
    font-size: 1.8rem;
}

.modern-action-label {
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1;
    position: relative;
    text-align: center;
}

/* === MODERN CONNOISSEUR DASHBOARD === */
.connoisseur-dashboard, .modern-connoisseur-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: expertSlide 1s ease-out;
}

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

/* Replaced by unified .glass-card system - classes removed, use .glass-card-premium instead */

.expert-card, .collection-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #333;
}

.modern-wine-detail h4, .wine-detail h4 {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--deep-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 600;
    filter: drop-shadow(0 2px 4px rgba(75, 8, 130, 0.2));
}

.wine-detail h4 {
    color: var(--primary-burgundy);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.modern-wine-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
    animation: specsAppear 1s ease-out 0.5s both;
}

@keyframes specsAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wine-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.modern-wine-specs span, .wine-specs span {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.15), rgba(114, 47, 55, 0.08));
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(114, 47, 55, 0.2);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.wine-specs span {
    background: rgba(114, 47, 55, 0.1);
    color: var(--primary-burgundy);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.modern-wine-specs span:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 47, 55, 0.2);
}

.modern-tasting-notes {
    background: linear-gradient(135deg, rgba(75, 8, 130, 0.1), rgba(75, 8, 130, 0.05));
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(75, 8, 130, 0.2);
    box-shadow: inset 0 2px 8px rgba(75, 8, 130, 0.05);
    animation: tastingSlide 1s ease-out 0.8s both;
}

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

.tasting-notes {
    background: rgba(75, 8, 130, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
}

.modern-analysis-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 10px 30px rgba(75, 8, 130, 0.3);
    position: relative;
    overflow: hidden;
}

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

.modern-analysis-btn:hover::before {
    left: 100%;
}

.modern-analysis-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(75, 8, 130, 0.4);
}

/* CSS для навигационного меню */
.navigation-menu {
    position: fixed;
    z-index: 1000;
    bottom: 0;
    left: 0;
    right: 0;
    transition: transform 0.3s ease;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    width: 100%;
    /* max-width removed to allow full-width navigation */
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: none;
    box-shadow: none;
    z-index: 1000;
    animation: navSlideUp 0.6s ease-out;
}

@keyframes navSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 8px;
    border-radius: 18px;
    min-width: 65px;
    background: transparent;
    border: none;
}

.nav-item:hover {
    transform: scale(1.1);
    background: transparent;
}


@keyframes glow {
    from {
        opacity: 0.7;
        box-shadow: 0 0 5px #FFD700;
    }
    to {
        opacity: 1;
        box-shadow: 0 0 15px #FFD700, 0 0 25px #FFA500;
    }
}

.nav-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.nav-item.active .nav-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
    animation: floatingEmoji 2s ease-in-out infinite;
}

.nav-label {
    display: none;
}

.nav-item.active .nav-label {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.8);
}

.nav-badge {
    position: absolute;
    top: 5px;
    right: 12px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    border-radius: 12px;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse-badge 2s infinite;
}

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

/* Анимация волны */
@keyframes wave {
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

.analysis-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.modern-collection-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.08), rgba(114, 47, 55, 0.03));
    border-radius: 20px;
    border: 1px solid rgba(114, 47, 55, 0.15);
}

.collection-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.modern-stat {
    text-align: center;
    animation: statCount 1.5s ease-out 1s both;
}

@keyframes statCount {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stat {
    text-align: center;
}

.modern-stat-number, .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-burgundy);
}

.modern-stat-label, .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    color: var(--primary-burgundy);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.modern-collection-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: previewFade 1s ease-out 1.3s both;
}

@keyframes previewFade {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.collection-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-wine-preview {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.15), rgba(139, 21, 56, 0.1));
    color: var(--wine-red);
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(139, 21, 56, 0.2);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-wine-preview:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.2);
}

.wine-preview {
    background: rgba(114, 47, 55, 0.1);
    color: var(--wine-red);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.modern-pro-tools {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pro-tools {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.modern-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modern-tool-btn, .modern-tool-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

.modern-tool-btn::before, .modern-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--deep-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-tool-btn:hover::before {
    opacity: 0.15;
}

.modern-tool-btn:hover, .modern-tool-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--deep-purple);
}

.tool-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    -webkit-appearance: none;
    appearance: none;
}

.tool-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

.modern-tool-icon {
    font-size: 2.2rem;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.modern-tool-btn:hover .modern-tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-icon {
    font-size: 1.8rem;
}

.modern-tool-label {
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1;
    position: relative;
    text-align: center;
}

/* === MODERN HORECA DASHBOARD === */
.horeca-dashboard, .modern-horeca-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: businessSlide 1s ease-out;
}

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

/* Replaced by unified .glass-card system - classes removed, use .glass-card-premium instead */

.analytics-card, .top-sales-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #333;
}

.modern-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    animation: metricsAppear 1s ease-out 0.3s both;
}

@keyframes metricsAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-metric {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.12), rgba(114, 47, 55, 0.06));
    border-radius: 20px;
    border: 1px solid rgba(114, 47, 55, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-metric:hover::before {
    opacity: 0.08;
}

.modern-metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(114, 47, 55, 0.15);
    border-color: var(--primary-gold);
}

.metric {
    text-align: center;
    padding: 15px;
    background: rgba(114, 47, 55, 0.05);
    border-radius: 15px;
}

.modern-metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
    position: relative;
    z-index: 1;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: 5px;
}

.modern-metric-label {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
    color: var(--primary-burgundy);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.metric-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

.modern-metric-change {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.modern-metric-change.positive {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.modern-metric-change.negative {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
}

.metric-change.positive {
    color: #28a745;
}

.modern-sales-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: salesSlide 1s ease-out 0.6s both;
}

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

.sales-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-sale-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.1), rgba(114, 47, 55, 0.05));
    border-radius: 18px;
    border: 1px solid rgba(114, 47, 55, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.modern-sale-item:hover::before {
    left: 100%;
}

.modern-sale-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 25px rgba(114, 47, 55, 0.15);
    border-color: var(--primary-gold);
}

.sale-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(114, 47, 55, 0.05);
    border-radius: 12px;
}

.modern-sale-rank {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
    animation: rankGlow 3s ease-in-out infinite;
}

@keyframes rankGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
    }
}

.sale-rank {
    background: var(--primary-gold);
    color: var(--dark-grape);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.modern-sale-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.modern-sale-info strong {
    display: block;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.modern-sale-info span {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.sale-info {
    flex: 1;
}

.sale-info strong {
    display: block;
    color: var(--primary-burgundy);
    margin-bottom: 3px;
}

.sale-info span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.modern-sale-margin {
    color: var(--wine-red);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 16px;
    background: rgba(139, 21, 56, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(139, 21, 56, 0.2);
    position: relative;
    z-index: 1;
}

.sale-margin {
    color: var(--wine-red);
    font-weight: 600;
}

.modern-business-tools {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    animation: toolsSlide 1s ease-out 0.9s both;
}

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

.business-tools {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.modern-business-tools h3, .business-tools h3 {
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 500;
}

.modern-business-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modern-business-tool-btn, .modern-business-tool-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

.modern-business-tool-btn::before, .modern-business-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-business-tool-btn:hover::before {
    opacity: 0.15;
}

.modern-business-tool-btn:hover, .modern-business-tool-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-gold);
}

.business-tool-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    -webkit-appearance: none;
    appearance: none;
}

.business-tool-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

.modern-business-tool-icon {
    font-size: 2.2rem;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.modern-business-tool-btn:hover .modern-business-tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.modern-business-tool-label {
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1;
    position: relative;
    text-align: center;
}

/* Scanner Result */
.scan-result-content {
    width: 100%;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-header h3 {
    color: var(--primary-burgundy);
}

.confidence {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.wine-details {
    margin-bottom: 20px;
}

.wine-main-info h4 {
    color: var(--primary-burgundy);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.wine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.wine-meta span {
    background: rgba(114, 47, 55, 0.1);
    color: var(--primary-burgundy);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.wine-price {
    color: var(--wine-red);
    font-weight: 600;
    font-size: 1.1rem;
}

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

.result-actions .primary-btn,
.result-actions .secondary-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

/* === MODERN SCANNER RESULT === */
.modern-scan-result, .modern-scan-result-container {
    padding: 30px 25px;
    animation: resultSlide 1s ease-out;
    position: relative;
}

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

.modern-scan-result::before,
.modern-scan-result-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(114, 47, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modern-scan-result > *,
.modern-scan-result-container > * {
    position: relative;
    z-index: 1;
}

.modern-scan-result-content {
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #333;
    position: relative;
    overflow: hidden;
    animation: resultCardReveal 1s ease-out 0.3s both;
}

@keyframes resultCardReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modern-scan-result-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--champagne), var(--primary-burgundy));
    border-radius: 25px 25px 0 0;
}

.modern-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: headerFadeIn 1s ease-out 0.6s both;
}

.modern-result-header h3 {
    font-size: 1.8rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--wine-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-result-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

.modern-confidence {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    animation: confidenceGlow 2s ease-in-out infinite;
}

@keyframes confidenceGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
    }
}

.modern-confidence::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: confidenceShimmer 3s ease-in-out infinite;
}

@keyframes confidenceShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modern-wine-details {
    margin-bottom: 30px;
    animation: detailsSlide 1s ease-out 0.9s both;
}

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

.modern-wine-main-info {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.08), rgba(114, 47, 55, 0.03));
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(114, 47, 55, 0.15);
    box-shadow: inset 0 2px 8px rgba(114, 47, 55, 0.05);
}

.modern-wine-main-info h4 {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
}

.modern-wine-description {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.modern-wine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.modern-wine-meta span {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.15), rgba(114, 47, 55, 0.08));
    color: var(--primary-burgundy);
    padding: 10px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(114, 47, 55, 0.2);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-wine-meta span:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 47, 55, 0.2);
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.2), rgba(114, 47, 55, 0.12));
}

.modern-wine-price {
    color: var(--wine-red);
    font-weight: 700;
    font-size: 1.4rem;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.12), rgba(139, 21, 56, 0.06));
    border-radius: 18px;
    border: 2px solid rgba(139, 21, 56, 0.2);
    display: inline-block;
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.15);
    animation: priceHighlight 2s ease-in-out infinite;
}

@keyframes priceHighlight {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(139, 21, 56, 0.15);
    }
    50% {
        box-shadow: 0 12px 35px rgba(139, 21, 56, 0.25);
    }
}

.modern-tasting-notes-section {
    background: linear-gradient(135deg, rgba(75, 8, 130, 0.1), rgba(75, 8, 130, 0.05));
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(75, 8, 130, 0.2);
    box-shadow: inset 0 2px 8px rgba(75, 8, 130, 0.05);
    animation: tastingNotesSlide 1s ease-out 1.2s both;
}

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

.modern-tasting-notes-section h5 {
    color: var(--deep-purple);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-tasting-icon {
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(75, 8, 130, 0.3);
}

.modern-tasting-notes {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.modern-result-actions {
    display: flex;
    gap: 18px;
    animation: actionsSlide 1s ease-out 1.5s both;
}

.modern-result-primary-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    border: none;
    border-radius: 20px;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.modern-result-primary-btn:hover::before {
    left: 100%;
}

.modern-result-primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.5);
}

.modern-result-primary-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.modern-result-secondary-btn {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    color: var(--primary-burgundy);
    border: 2px solid rgba(114, 47, 55, 0.3);
    border-radius: 20px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.modern-result-secondary-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    border-color: var(--primary-burgundy);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modern-result-secondary-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.modern-result-btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.modern-result-primary-btn:hover .modern-result-btn-icon,
.modern-result-secondary-btn:hover .modern-result-btn-icon {
    transform: scale(1.1);
}

/* Светлые цвета для заголовков и информации на карточках для улучшенной читабельности на основном фоне */
.glass-card-premium .modern-card-header h3,
.glass-card-premium .modern-wine-detail h4 {
  color: rgba(255,255,255,0.95) !important;
}

.glass-card-premium .modern-wine-specs span {
  color: rgba(255,255,255,0.85) !important;
}

.glass-card-premium .modern-tasting-notes strong,
.glass-card-premium .modern-card-header h3 {
  color: rgba(255,255,255,0.94) !important;
}

/* === HoReCa MODE SPECIFIC STYLES === */
.horeca-mode .glass-card-premium {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
    -webkit-backdrop-filter: blur(60px);
    backdrop-filter: blur(60px);
    border: 0.3px solid rgba(255,255,255,0.25);
    border-radius: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.horeca-mode .glass-card-premium:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.12));
    -webkit-backdrop-filter: blur(70px);
    backdrop-filter: blur(70px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.horeca-mode .glass-card-premium h3 {
    color: rgba(255, 255, 255, 0.98);
}

.horeca-mode .modern-wine-specs span,
.horeca-mode .modern-stat,
.horeca-mode .modern-wine-preview,
.horeca-mode .modern-stat-label {
    color: rgba(255, 255, 255, 0.98);
}

.horeca-mode .modern-wine-specs span {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.18), rgba(114, 47, 55, 0.1));
    border: 1px solid rgba(114, 47, 55, 0.25);
}

.horeca-mode .modern-wine-preview {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.18), rgba(114, 47, 55, 0.1));
    border: 1px solid rgba(139, 21, 56, 0.25);
}

.horeca-mode .modern-stat-number,
.horeca-mode .modern-overview-stat-number {
    color: rgba(255, 255, 255, 0.98);
}

.horeca-mode .modern-stat-label,
.horeca-mode .modern-overview-stat-label {
    color: rgba(255, 255, 255, 0.98);
}

/* === CHAT COMPOSER BUTTON ALIGNMENT FIX === */
.modern-chat-input, .modern-chat-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

#message-input, textarea#message-input {
    display: block;
    padding: 12px 16px;
    line-height: 1.4;
    margin: 0;
}

.modern-send-btn, .send-btn {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    align-self: center;
    margin: 0;
    transform: none;
}

/* Modern Scanner Result Error State */
.modern-scan-result-error {
    text-align: center;
    padding: 60px 30px;
    animation: errorSlide 1s ease-out;
}

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

.modern-error-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(220, 53, 69, 0.3));
    animation: errorPulse 2s ease-in-out infinite;
}

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

.modern-error-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #dc3545;
    margin-bottom: 15px;
}

.modern-error-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.5;
}

.modern-retry-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.modern-retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.4);
}

/* === MODERN LEARNING TAB === */
.modern-learning-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    animation: learningSlide 1s ease-out;
    position: relative;
}

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

.modern-learning-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 75% 80%, rgba(75, 8, 130, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modern-learning-container > * {
    position: relative;
    z-index: 1;
}

/* Learning Type Containers */
.learning-beginner, .learning-connoisseur, .learning-horeca {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modern-learning-beginner, .modern-learning-connoisseur, .modern-learning-horeca {
    display: flex;
    flex-direction: column;
    gap: 35px;
    animation: typeSlide 1s ease-out;
}

@keyframes typeSlide {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern Lesson of the Day */
.modern-lesson-of-day {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #333;
    position: relative;
    overflow: hidden;
    animation: lessonReveal 1s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modern-lesson-of-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--champagne), var(--deep-purple));
    border-radius: 25px 25px 0 0;
}

.modern-lesson-of-day:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.lesson-of-day {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #333;
}

.modern-lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: lessonHeaderFade 1s ease-out 0.3s both;
}

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

.modern-lesson-header h3 {
    font-size: 1.6rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--deep-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(75, 8, 130, 0.2));
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-lesson-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
    animation: lessonIconFloat 3s ease-in-out infinite;
}

@keyframes lessonIconFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

.modern-lesson-difficulty {
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(75, 8, 130, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-lesson-difficulty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: difficultyShimmer 3s ease-in-out infinite;
}

@keyframes difficultyShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modern-lesson-content {
    animation: lessonContentSlide 1s ease-out 0.6s both;
}

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

.modern-lesson-title {
    font-size: 1.4rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.modern-lesson-description {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 25px;
}

.modern-lesson-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(75, 8, 130, 0.08), rgba(75, 8, 130, 0.03));
    border-radius: 18px;
    border: 1px solid rgba(75, 8, 130, 0.15);
    animation: progressSlide 1s ease-out 0.9s both;
}

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

.lesson-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0 20px;
}

.modern-progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-gold) 0deg 144deg, rgba(212, 175, 55, 0.2) 144deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    animation: progressRotate 2s ease-in-out infinite;
}

@keyframes progressRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

.modern-progress-circle::before {
    content: '';
    position: absolute;
    width: 46px;
    height: 46px;
    background: white;
    border-radius: 50%;
}

.modern-progress-text {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--primary-burgundy);
    font-size: 0.9rem;
}

.modern-progress-info {
    flex: 1;
}

.modern-progress-info h4 {
    color: var(--deep-purple);
    font-weight: 600;
    margin-bottom: 8px;
}

.modern-progress-info p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.modern-start-lesson-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 12px 30px rgba(75, 8, 130, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.modern-start-lesson-btn:hover::before {
    left: 100%;
}

.modern-start-lesson-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(75, 8, 130, 0.4);
}

.modern-start-lesson-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.start-lesson-btn {
    width: 100%;
}

.modern-lesson-btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.modern-start-lesson-btn:hover .modern-lesson-btn-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Modern Learning Paths */
.modern-learning-paths {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    animation: pathsSlide 1s ease-out 0.3s both;
}

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

.learning-paths, .achievements-section {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.modern-learning-paths h3 {
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-paths-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.modern-path-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.path-grid, .achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-learning-path {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: pathReveal 0.8s ease-out;
}

@keyframes pathReveal {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.modern-learning-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-learning-path:hover::before {
    opacity: 0.08;
}

.modern-learning-path:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

.learning-path {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.modern-learning-path.locked {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.modern-learning-path.locked:hover {
    transform: none;
    box-shadow: none;
}

.learning-path.locked {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.1);
}

.modern-path-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modern-path-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    animation: pathIconPulse 3s ease-in-out infinite;
    z-index: 1;
    position: relative;
}

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

.path-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modern-path-level {
    background: linear-gradient(135deg, var(--deep-purple), var(--wine-red));
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(75, 8, 130, 0.3);
}

.modern-path-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    z-index: 1;
    position: relative;
}

.modern-path-description {
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
    z-index: 1;
    position: relative;
}

.modern-path-progress {
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.path-progress {
    opacity: 0.8;
    margin: 8px 0 15px;
}

.modern-path-progress-text {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 12px;
}

.modern-path-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    height: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

.modern-path-progress-fill {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    height: 100%;
    border-radius: 12px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    position: relative;
}

.modern-path-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

.modern-continue-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    border: none;
    border-radius: 18px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.modern-continue-btn:hover::before {
    left: 100%;
}

.modern-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.continue-btn {
    background: var(--primary-gold);
    color: var(--dark-grape);
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
}

.modern-unlock-requirement {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    position: relative;
}

.unlock-requirement {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

/* Modern Achievements Section */
.modern-achievements-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #333;
    position: relative;
    overflow: hidden;
    animation: achievementsReveal 1s ease-out 0.6s both;
}

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

.modern-achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--wine-red), var(--deep-purple));
    border-radius: 25px 25px 0 0;
}

.achievements-section {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.modern-achievements-section h3 {
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--wine-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
}

.modern-achievements-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.modern-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.modern-achievement {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    color: var(--wine-red);
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-achievement:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.modern-achievement-card {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.1), rgba(114, 47, 55, 0.05));
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(114, 47, 55, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: achievementFloat 0.8s ease-out;
}

@keyframes achievementFloat {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-achievement-card:hover::before {
    opacity: 0.08;
}

.modern-achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(114, 47, 55, 0.15);
    border-color: var(--primary-gold);
}

.modern-achievement-card.earned {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 2px solid var(--primary-gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.modern-achievement-card.earned .modern-achievement-icon {
    animation: achievementGlow 2s ease-in-out infinite;
}

@keyframes achievementGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
    }
    50% {
        filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.6));
    }
}

.modern-achievement-card.locked {
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.1), rgba(200, 200, 200, 0.05));
    border: 2px solid rgba(200, 200, 200, 0.3);
}

.modern-achievement-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.achievement.earned {
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--primary-gold);
}

.achievement.locked {
    opacity: 0.5;
    background: rgba(200, 200, 200, 0.1);
    border: 2px solid rgba(200, 200, 200, 0.3);
}

.modern-achievement-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(114, 47, 55, 0.3));
    position: relative;
    z-index: 1;
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modern-achievement-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.modern-achievement-description {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.achievement-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Learning Progress Overview */
.modern-learning-overview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 35px;
    animation: overviewSlide 1s ease-out;
}

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

.modern-learning-overview h3 {
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 500;
}

.modern-overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.modern-overview-stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.modern-overview-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.modern-overview-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.modern-overview-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Learning Components (Legacy) - Keep for backward compatibility */
.learning-beginner, .learning-connoisseur, .learning-horeca {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.lesson-of-day {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #333;
}

.lesson-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0 20px;
}

.start-lesson-btn {
    width: 100%;
}

.learning-paths, .achievements-section {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.achievements-section {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.path-grid, .achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.learning-path {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.learning-path.locked {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.1);
}

.path-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.path-progress {
    opacity: 0.8;
    margin: 8px 0 15px;
}

.continue-btn {
    background: var(--primary-gold);
    color: var(--dark-grape);
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
}

.unlock-requirement {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

.achievement.earned {
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--primary-gold);
}

.achievement.locked {
    opacity: 0.5;
    background: rgba(200, 200, 200, 0.1);
    border: 2px solid rgba(200, 200, 200, 0.3);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.achievement-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Profile Components */
.user-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-details h3 {
    color: var(--primary-burgundy);
    margin-bottom: 8px;
}

.user-details p {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.persona-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.persona-avatar-small {
    font-size: 2rem;
}

.persona-info-text {
    flex: 1;
}

.persona-name {
    font-weight: 600;
    color: var(--champagne);
    margin-bottom: 3px;
}

.persona-description {
    opacity: 0.8;
    font-size: 0.9rem;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    display: block;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    opacity: 0.8;
    font-size: 0.85rem;
}

/* === UNIFIED DESIGN SYSTEM COMPONENTS === */

/* === MODERN BUTTON SYSTEM === */
.btn, .modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    box-sizing: border-box;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Primary Button */
.btn-primary, .modern-btn.primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

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

.btn-primary:hover::before, .modern-btn.primary:hover::before {
    left: 100%;
}

.btn-primary:hover, .modern-btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

.btn-primary:active, .modern-btn.primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Secondary Button */
.btn-secondary, .modern-btn.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover, .modern-btn.secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active, .modern-btn.secondary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Accent Button */
.btn-accent {
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    color: white;
    box-shadow: 0 8px 25px rgba(75, 8, 130, 0.4);
}

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

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

.btn-accent:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(75, 8, 130, 0.5);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.5);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-ghost:hover {
    background: var(--primary-gold);
    color: var(--dark-grape);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Button Sizes */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-height: 40px;
    border-radius: 15px;
}

.btn-lg {
    padding: 18px 32px;
    font-size: 1.1rem;
    min-height: 56px;
    border-radius: 25px;
}

.btn-xl {
    padding: 22px 40px;
    font-size: 1.2rem;
    min-height: 64px;
    border-radius: 30px;
}

/* Icon Button */
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    min-height: auto;
}

.btn-icon.btn-sm {
    width: 40px;
    height: 40px;
}

.btn-icon.btn-lg {
    width: 56px;
    height: 56px;
}

.btn-icon .btn-icon-symbol {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-icon:hover .btn-icon-symbol {
    transform: scale(1.1);
}

/* Button with Icon */
.btn .btn-icon-left,
.btn .btn-icon-right {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon-left {
    transform: translateX(-2px);
}

.btn:hover .btn-icon-right {
    transform: translateX(2px);
}

/* === MODERN CARD SYSTEM === */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #333;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--champagne));
    border-radius: 20px 20px 0 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Card Variants */
.card-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
}

.card-glass::before {
    background: linear-gradient(90deg, var(--champagne), white);
}

.card-accent {
    background: linear-gradient(135deg, rgba(75, 8, 130, 0.95), rgba(114, 47, 55, 0.9));
    color: white;
}

.card-accent::before {
    background: linear-gradient(90deg, var(--deep-purple), var(--primary-burgundy));
}

.card-gradient {
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--wine-red) 50%, var(--deep-purple) 100%);
    color: white;
}

/* Card Sizes */
.card-sm {
    padding: 20px;
    border-radius: 15px;
}

.card-lg {
    padding: 35px;
    border-radius: 25px;
}

.card-xl {
    padding: 40px;
    border-radius: 30px;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.card-glass .card-title {
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Card Body */
.card-body {
    line-height: 1.6;
}

/* Card Footer */
.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* === MODERN FORM SYSTEM === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--champagne);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: rgba(51, 51, 51, 0.6);
    font-weight: 400;
}

/* Glass Form Input */
.form-input-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.form-input-glass::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input-glass:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-color: var(--primary-gold);
}

/* Form Textarea */
.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Form Select */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 45px;
    cursor: pointer;
}

/* Form Validation States */
.form-input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.form-input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-success {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Form Checkbox & Radio */
.form-checkbox,
.form-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-right: 10px;
}

.form-checkbox {
    border-radius: 5px;
}

.form-radio {
    border-radius: 50%;
}

.form-checkbox:checked,
.form-radio:checked {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    border-color: var(--primary-gold);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-grape);
    font-weight: 700;
    font-size: 0.8rem;
}

.form-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--dark-grape);
    border-radius: 50%;
}

/* Form Switch */
.form-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    outline: none;
}

.form-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-switch:checked {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
}

.form-switch:checked::before {
    left: 27px;
    background: var(--dark-grape);
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === UTILITY CLASSES === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.shadow-glow-accent {
    box-shadow: 0 0 20px rgba(75, 8, 130, 0.3);
}

.blur-bg {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.blur-bg-strong {
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
}

.glass-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Unified glass utility and application to scrollable panes */
.u-glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: background var(--transition-smooth), border-color var(--transition-smooth), backdrop-filter var(--transition-slow), -webkit-backdrop-filter var(--transition-slow);
}
@supports not ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
    .u-glass { background: rgba(0, 0, 0, 0.35); } /* graceful fallback for older browsers */
}

/* Apply glass to primary scrollable containers */
.screen,
.tab-screen,
.modern-chat-messages {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
/* Fallback for browsers without backdrop-filter: keep readability */
@supports not ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
    .screen,
    .tab-screen,
    .modern-chat-messages {
        background: rgba(0, 0, 0, 0.35);
    }
}

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

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

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

.loading-skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === RESPONSIVE HELPERS === */
@media (max-width: 768px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .card-lg {
        padding: 25px;
        border-radius: 20px;
    }
    
    .form-input {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* === CUSTOM SCROLLBAR === */
.tab-screen::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.tab-screen::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.tab-screen::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.tab-screen::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* === GLOBAL ANIMATIONS & TRANSITIONS SYSTEM === */

/* === PAGE TRANSITION ANIMATIONS === */
@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pageSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

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

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

/* Global Page Transition Classes */
.page-transition-slide {
    animation: pageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-fade {
    animation: pageFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-zoom {
    animation: pageZoomIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === LOADING STATE ANIMATIONS === */
@keyframes globalLoader {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
}

@keyframes pulseLoader {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes dotLoader {
    0%, 20% {
        color: rgba(212, 175, 55, 0.3);
        transform: scale(1);
    }
    50% {
        color: var(--primary-gold);
        transform: scale(1.4);
    }
    80%, 100% {
        color: rgba(212, 175, 55, 0.3);
        transform: scale(1);
    }
}

/* Global Loading Components */
.global-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(44,24,16,0.95));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: globalLoader 1.2s linear infinite;
}

.loader-text {
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-dots {
    display: flex;
    gap: 8px;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
    animation: dotLoader 1.4s infinite;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* === HOVER & INTERACTION ANIMATIONS === */
@keyframes hoverLift {
    from {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    to {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    }
}

@keyframes hoverGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

@keyframes hoverScale {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes clickRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Global Hover Classes */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    animation: hoverLift 0.3s ease forwards;
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    animation: hoverGlow 1.5s ease-in-out infinite;
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    animation: hoverScale 0.2s ease forwards;
}

.click-ripple {
    position: relative;
    overflow: hidden;
}

.click-ripple::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: clickRipple 0.6s linear;
    pointer-events: none;
}

/* === MODAL & OVERLAY ANIMATIONS === */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

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

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

/* Modal Components */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9000;
    animation: overlayFadeIn 0.3s ease;
}

.modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px 25px 0 0;
    padding: 30px;
    z-index: 9001;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content.center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
    border-radius: 25px;
    max-width: 400px;
    width: 90%;
    max-height: 70vh;
    animation: modalFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(114, 47, 55, 0.2);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(114, 47, 55, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-burgundy);
}

.modal-close:hover {
    background: rgba(114, 47, 55, 0.2);
    transform: scale(1.1);
}

/* === TOAST NOTIFICATION ANIMATIONS === */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Toast Components */
.toast-container {
    position: fixed;
    top: env(safe-area-inset-top, 20px);
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
}

.toast {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #333;
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.warning {
    border-left: 4px solid #ffc107;
}

.toast.info {
    border-left: 4px solid var(--primary-gold);
}

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

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast.info .toast-icon {
    color: var(--primary-gold);
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
}

.toast-message {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-gold);
    animation: toastProgress 5s linear;
    border-radius: 0 0 20px 20px;
}

.toast.success .toast-progress {
    background: #28a745;
}

.toast.error .toast-progress {
    background: #dc3545;
}

.toast.warning .toast-progress {
    background: #ffc107;
}

/* === MICRO-INTERACTIONS === */
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Micro-interaction Classes */
.btn-press {
    transition: transform 0.1s ease;
}

.btn-press:active {
    animation: buttonPress 0.2s ease;
}

.icon-spin {
    animation: iconSpin 1s linear infinite;
}

.icon-bounce {
    animation: iconBounce 0.6s ease infinite;
}

.text-glow-animated {
    animation: textGlow 2s ease-in-out infinite;
}

.card-float {
    animation: cardFloat 4s ease-in-out infinite;
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* === SCROLL ANIMATIONS === */
@keyframes scrollFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollSlideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animation Classes */
.scroll-fade-in {
    opacity: 0;
    animation: scrollFadeIn 0.8s ease forwards;
}

.scroll-slide-left {
    opacity: 0;
    animation: scrollSlideLeft 0.8s ease forwards;
}

.scroll-slide-right {
    opacity: 0;
    animation: scrollSlideRight 0.8s ease forwards;
}

/* === ADVANCED INTERACTION STATES === */
@keyframes focusRing {
    0% {
        box-shadow: 0 0 0 0px rgba(212, 175, 55, 0.7);
    }
    100% {
        box-shadow: 0 0 0 6px rgba(212, 175, 55, 0);
    }
}

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

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Advanced State Classes */
.focus-ring:focus {
    animation: focusRing 0.6s ease-out;
}

.invalid-shake {
    animation: invalidShake 0.5s ease-in-out;
}

.success-pulse {
    animation: successPulse 1s ease-out;
}

/* === CUSTOM EASING CURVES === */
:root {
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-spring: cubic-bezier(0.68, -0.75, 0.265, 1.75);
}

/* === PERFORMANCE OPTIMIZATIONS === */
.gpu-accelerated {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* === ACCESSIBILITY CONSIDERATIONS === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particle,
    .floating-element,
    .auto-animate {
        animation: none !important;
    }
}

/* === DARK MODE ADAPTATIONS === */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: linear-gradient(135deg, rgba(44,24,16,0.95), rgba(0,0,0,0.9));
        color: white;
    }
    
    .toast {
        background: linear-gradient(135deg, rgba(44,24,16,0.95), rgba(0,0,0,0.9));
        color: white;
    }
}

/* === MOBILE KEYBOARD FIXES === */
/* Blur background messages when input is focused */
@media (max-width: 768px) {
    .modern-chat-container:focus-within .modern-chat-messages {
        backdrop-filter: blur(20px) brightness(1.2);
        -webkit-backdrop-filter: blur(20px) brightness(1.2);
        background: rgba(255, 255, 255, 0.9) !important;
        transition: backdrop-filter 0.3s ease, background 0.3s ease;
    }
    
    /* Additional blur for individual messages when input is focused */
    .modern-chat-container:focus-within .modern-chat-messages .message {
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }
    
    /* Ensure navigation menu stays fixed and visible */
    .navigation-menu {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        transform: none !important;
        transition: transform 0.3s ease !important;
    }
    
    /* Keep input container above navigation */
    .modern-chat-input-container {
        z-index: 1100 !important;
        position: relative !important;
    }
}

/* === RESPONSIVE ANIMATION SCALING === */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .toast-container {
        right: 15px;
        left: 15px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        padding: 15px;
    }
    
    /* Reduce animation intensity on mobile for performance */
    .hover-lift:hover,
    .hover-scale:hover,
    .card-float {
        transform: none;
        animation: none;
    }
}

/* === HIGH-PERFORMANCE MODE === */
@media (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    /* Disable complex animations on high-DPI mobile devices */
    .particle,
    .floating-element,
    .complex-animation {
        animation: none !important;
        transform: none !important;
    }
    
    .blur-bg,
    .blur-bg-strong {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.8);
    }
}

/* === UNIFIED GLASS CARD SYSTEM === */

/* Base Glass Card */
.glass-card, .modern-daily-card, .modern-progress-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.55));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #333;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardReveal 0.8s ease-out;
}

/* Enhanced height for modern-daily-card */
.modern-daily-card {
    padding: 50px 40px;
    min-height: 320px;
}

.glass-card::before, .modern-daily-card::before, .modern-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--champagne));
    border-radius: 25px 25px 0 0;
}

.glass-card:hover, .modern-daily-card:hover, .modern-progress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Glass Card Variants */
.glass-card-premium {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-premium:hover {
  -webkit-backdrop-filter: blur(60px);
  backdrop-filter: blur(60px);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
  transform: translateY(-3px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.20);
}

.glass-card-premium::before {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--champagne), var(--primary-burgundy));
}

.glass-card-premium h3 {
    color: rgba(255, 255, 255, 0.95);
}

.glass-card-transparent {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.glass-card-transparent::before {
    background: linear-gradient(90deg, var(--champagne), white);
}

.glass-card-accent {
    background: linear-gradient(135deg, rgba(75, 8, 130, 0.95), rgba(114, 47, 55, 0.9));
    color: white;
    box-shadow: 0 20px 50px rgba(75, 8, 130, 0.2);
}

.glass-card-accent::before {
    background: linear-gradient(90deg, var(--deep-purple), var(--primary-burgundy));
}

/* Glass Card Sizes */
.glass-card-sm {
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.glass-card-lg {
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.glass-card-xl {
    padding: 40px;
    border-radius: 35px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

/* Glass Card Header */
.glass-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    animation: headerFadeIn 1s ease-out 0.3s both;
}

.glass-card-title {
    font-size: 1.4rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
    margin: 0;
}

.glass-card-transparent .glass-card-title {
    background: linear-gradient(135deg, var(--champagne), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 8px;
    font-weight: 400;
}

/* Glass Card Body */
.glass-card-body {
    line-height: 1.6;
    animation: bodySlide 1s ease-out 0.6s both;
}

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

/* Glass Card Footer */
.glass-card-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    gap: 15px;
    align-items: center;
    animation: footerSlide 1s ease-out 0.9s both;
}

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

/* Glass Card Actions */
.glass-card-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

/* Glass Card Badge */
.glass-card-badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-card-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Glass Card Special States */
.glass-card-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.glass-card-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: cardSkeleton 1.5s ease-in-out infinite;
    border-radius: inherit;
}

@keyframes cardSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.glass-card-error {
    border: 2px solid rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05));
    animation: errorShake 0.5s ease-in-out;
}

.glass-card-error::before {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

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

.glass-card-success {
    border: 2px solid rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    animation: successPulse 1s ease-out;
}

.glass-card-success::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Responsive Glass Cards */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .glass-card-lg {
        padding: 25px;
        border-radius: 25px;
    }

    .glass-card-xl {
        padding: 30px;
        border-radius: 30px;
    }

    .glass-card-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .glass-card-title {
        font-size: 1.2rem;
    }

    .glass-card-actions {
        flex-direction: column;
        gap: 12px;
    }
}

/* === PRINT STYLES === */
@media print {
    .modal-overlay,
    .toast-container,
    .global-loader,
    .floating-element {
        display: none !important;
    }

    * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        background: white !important;
        color: black !important;
    }
}

/* Kilo fix: Robust iOS vertical centering for chat composer */
.modern-chat-input,
.modern-chat-input-container {
  position: relative;
  display: flex;
}

/* Adjust input field width to match AI message card width */
.modern-chat-container .modern-chat-input {
  left: 25px !important;
  right: 25px !important;
}

.modern-input-wrapper {
  max-width: 80%;
}

.modern-chat-input .modern-send-btn,
.modern-chat-input-container .modern-send-btn,
.modern-chat-input .send-btn,
.modern-chat-input-container .send-btn {
  position: absolute !important;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 1;
}

.modern-chat-input textarea,
.modern-chat-input input[type="text"],
.modern-chat-input-container textarea,
.modern-chat-input-container input[type="text"],
#message-input,
textarea#message-input {
  box-sizing: border-box;
  padding-right: 100px !important; /* 56px кнопка + увеличенный запас */
  margin: 0;
  line-height: 1.4;
}

/* Kilo fix: "Что делаем сегодня?" grid - Updated for screenshot match */
.modern-quick-actions {
  display: block !important;
  margin-top: 16px;
  /* Updated: фиолетово-розовый градиент, радиус 20px, light overlay сверху-слева, внутренняя тень */
  background: linear-gradient(135deg, rgba(75, 8, 130, 0.25), rgba(139, 21, 56, 0.25));
  border-radius: 20px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.1), 0 15px 40px rgba(0, 0, 0, 0.1);
  position: relative;
}
.modern-quick-actions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: 20px;
  pointer-events: none;
}
.modern-quick-actions h3 { margin: 0 0 12px 0; }

.modern-action-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.modern-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  /* Updated: более светлый фон, тонкая рамка, внутренняя тень */
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.modern-action-icon { font-size: 28px; }
.modern-action-text { font-weight: 600; }

@media (max-width: 430px) {
  .modern-action-card { aspect-ratio: 1 / 1; min-height: 120px; max-width: 140px; }
  .modern-action-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 431px) {
  .modern-action-card { aspect-ratio: 4 / 3; min-height: 140px; }
}

.glass-card-success::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Responsive Glass Cards */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .glass-card-lg {
        padding: 25px;
        border-radius: 25px;
    }
    
    .glass-card-xl {
        padding: 30px;
        border-radius: 30px;
    }
    
    .glass-card-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .glass-card-title {
        font-size: 1.2rem;
    }
    
    .glass-card-actions {
        flex-direction: column;
        gap: 12px;
    }
}

/* === PRINT STYLES === */
@media print {
    .modal-overlay,
    .toast-container,
    .global-loader,
    .floating-element {
        display: none !important;
    }
    
    * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        background: white !important;
        color: black !important;
    }
}

/* ================ EMOJI VISIBILITY HOTFIX =============== */
/* This block forces color emoji to render on systems
   where text-gradient styles make them transparent. */

.app-logo,
.logo-icon,
.diamond-icon,
.hint-icon,
.btn-icon,
.modern-option-icon,
.persona-avatar-icon,
.send-icon,
.modern-chat-welcome-icon,
.modern-scan-icon,
.scan-icon,
.modern-nav-icon,
.nav-icon,
.modern-profile-section h3,
.modern-section-icon,
.modern-help-icon,
.settings-icon,
.modern-settings-icon,
.modern-tasting-icon,
.modern-action-icon,
.action-icon,
.modern-tool-icon,
.tool-icon,
.modern-business-tool-icon,
.modern-result-icon,
.modern-error-icon,
.modern-lesson-icon,
.modern-paths-icon,
.path-icon,
.modern-achievement-icon,
.achievement-icon,
.modern-persona-avatar-small,
.persona-avatar-small,
.user-avatar,
.modern-user-avatar span,
.modern-wine-image,
.wine-image,
.modern-sale-rank {
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    text-shadow: none !important;
}

/* .main-app is deprecated and removed */

#onboarding::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Высота градиента, немного больше чем nav-menu */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); /* Градиент от почти непрозрачного черного до прозрачного */
    pointer-events: none; /* Чтобы не блокировать взаимодействия с контентом */
    z-index: 999; /* Ниже навигационной панели, но выше контента */
}

.nav-item {
    cursor: pointer;
    transition: transform 0.3s ease; /* Плавный переход для transform */
}

/* Увеличение при наведении */
.nav-item:hover .nav-icon {
    transform: scale(1.2);
}
/* Transparent base override removed (2025‑09‑24):
   scrollable panes keep glass backgrounds for readability in full‑viewport layout. */
/* === CHAT INPUT TRANSPARENT + CHAMPAGNE EFFECT (2025-09-27) === */

/* 1) Make bottom input area fully transparent and float input+button above nav */
.modern-chat-input-container {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-top: none !important;
  padding: 0 !important;
  height: 0 !important; /* collapse the container, the row is fixed */
  position: relative;
}

/* Float the input row above the bottom navigation with safe-area support */
.modern-chat-container .modern-chat-input {
  position: fixed !important;
  left: 20px;
  right: 20px;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px) !important;
  z-index: 1100; /* higher than .navigation-menu (z-index: 1000) */
  pointer-events: auto;
}

/* Ensure chat content isn't hidden behind the floating input row + nav */
.modern-chat-messages {
  padding-bottom: calc(
    20px          /* reduced base padding */
    + 56px        /* input/button height */
    + var(--nav-height)
    + env(safe-area-inset-bottom)
    + 16px         /* reduced breathing space */
  ) !important;
}

/* Allow bubbles to overflow outside elements */
.modern-input-wrapper,
.modern-chat-input,
.modern-send-btn {
  overflow: visible !important;
}

/* 2) Champagne bubbles visual styles */
.bubble {
  --size: 6px;
  --dx: 0px;
  --dy: -40px;
  --duration: 1200ms;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.9;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(212,175,55,0.85) 60%, rgba(212,175,55,0) 100%);
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.45));
  animation: champagneRise var(--duration) cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes champagneRise {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.7);
    opacity: 0;
  }
}

/* Optional: subtle shake you can add by appending bubbleShake to animation list */
@keyframes bubbleShake {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
  50%      { transform: translate(-50%, -50%) translate(1px, -1px); }
}

/* Button hover kept; ensure it doesn't clip bubbles */
.modern-send-btn {
  position: relative;
}

/* Responsive tweak for very narrow heights */
@media (max-height: 700px) {
  .modern-chat-container .modern-chat-input {
    left: 16px;
    right: 16px;
    bottom: calc(var(--nav-height) + 4px);
  }
}
/* === iPhone 11 Keyboard Handling === */
@media (max-width: 480px) {
    /* iPhone 11 specific viewport adjustments */
    @supports (-webkit-touch-callout: none) {
        /* iOS Safari specific styles */
        .modern-chat-container .modern-chat-input {
            position: fixed !important;
            left: 16px;
            right: 16px;
            bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 4px) !important;
            z-index: 1100;
            pointer-events: auto;
            /* Ensure proper spacing when keyboard is open */
            transition: bottom 0.3s ease;
        }

        /* When keyboard is open, adjust input position */
        @media (max-height: 650px) {
            .modern-chat-container .modern-chat-input {
                bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px) !important;
            }
        }

        /* Navigation menu should be covered by keyboard */
        .navigation-menu {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            /* Keep all visual effects */
            background: transparent;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            border-top: none;
            box-shadow: none;
            /* Ensure effects are preserved */
            border-radius: 0;
        }

        /* Preserve navigation item effects */
        .nav-item {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 18px;
            box-shadow: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-item:hover {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
            border-color: var(--primary-gold);
        }

        .nav-item.active {
            background: transparent;
            box-shadow: none;
            transform: translateY(-3px);
            border: 0.5px solid var(--primary-gold);
        }

        /* Optimize input field for mobile */
        .modern-chat-input input,
        .modern-chat-input textarea {
            min-height: 48px;
            max-height: 100px;
            font-size: 16px; /* Prevents zoom on iOS */
            padding: 14px 20px;
            border-radius: 25px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
            -webkit-appearance: none;
            appearance: none;
        }

        /* Ensure send button is properly sized */
        .modern-send-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
        }

        /* Adjust chat messages padding for floating input */
        .modern-chat-messages {
            padding-bottom: calc(
                15px + 48px + var(--nav-height) + env(safe-area-inset-bottom) + 16px
            ) !important;
        }
    }
}
/* === Enhanced iPhone 11 Navigation Effects === */
@media (max-width: 480px) {
    @supports (-webkit-touch-callout: none) {
        /* Enhanced navigation menu effects for iPhone 11 */
        .navigation-menu {
            /* Ensure navigation stays at bottom but gets covered by keyboard */
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 1000 !important;
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            width: 100%;
            background: transparent;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            border-top: none;
            box-shadow: none;
            /* Preserve visual effects */
            padding: 15px 0;
            padding-bottom: calc(15px + env(safe-area-inset-bottom));
        }

        /* Enhanced navigation items with preserved effects */
        .nav-item {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 18px;
            box-shadow: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        /* Preserve hover effects */
        .nav-item:hover {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
            border-color: var(--primary-gold);
        }

        /* Preserve active state effects */
        .nav-item.active {
            background: transparent;
            box-shadow: none;
            transform: translateY(-3px);
            border: 0.5px solid var(--primary-gold);
        }

        /* Enhanced active indicator bar */
        .nav-item.active::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 50%;
            transform: translateX(-50%) scaleX(1);
            width: 80%;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--primary-gold), var(--champagne), transparent);
            border-radius: 15px;
            opacity: 1;
            animation: activeGoldBarGlow 1.5s ease-in-out infinite alternate;
            z-index: 1;
        }

        /* Preserve icon effects */
        .nav-icon {
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-item.active .nav-icon {
            filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
            animation: iconActivePulse 2s ease-in-out infinite;
        }

        /* Preserve label effects */
        .nav-label {
            color: rgba(255, 255, 255, 0.75);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-item.active .nav-label {
            color: #FFD700;
            font-weight: 700;
            text-shadow: 0 2px 8px rgba(255, 215, 0, 0.8);
        }

        /* Ensure proper touch targets */
        .nav-item {
            min-width: 64px;
            min-height: 64px;
            padding: 12px 10px;
            -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
        }
    }
}
/* === iPhone 11 Navigation Animations === */
@keyframes activeGoldBarGlow {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes iconActivePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 1)) drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
    }
}
/* === Enhanced iPhone 11 Input Optimization === */
@media (max-width: 480px) {
    @supports (-webkit-touch-callout: none) {
        /* Enhanced input field optimization for iPhone 11 */
        .modern-chat-input input,
        .modern-chat-input textarea {
            /* Prevent iOS zoom on focus */
            font-size: 16px !important;
            -webkit-text-size-adjust: 100%;
            -webkit-appearance: none;
            border-radius: 25px;
            /* Enhanced touch targets */
            min-height: 48px;
            padding: 14px 20px;
            /* Better visual feedback */
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            /* Enhanced focus states */
            outline: none;
            border: 2px solid transparent;
            background: rgba(255, 255, 255, 0.15);
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
        }

        /* Enhanced focus state */
        .modern-chat-input input:focus,
        .modern-chat-input textarea:focus {
            background: rgba(255, 255, 255, 0.25);
            border: 2px solid var(--primary-gold);
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
            transform: translateY(-2px);
        }

        /* Enhanced placeholder styling */
        .modern-chat-input input::placeholder,
        .modern-chat-input textarea::placeholder {
            color: rgba(255, 255, 255, 0.6);
            font-weight: 400;
        }

        /* Enhanced send button */
        .modern-send-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
            border: none;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            -webkit-tap-highlight-color: transparent;
        }

        /* === MOBILE KEYBOARD FIXES FOR 480px === */
        /* Blur background messages when input is focused */
        .modern-chat-container:focus-within .modern-chat-messages {
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            background: rgba(255, 255, 255, 0.85);
            transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
        }

        /* Ensure navigation menu stays fixed and doesn't move with keyboard */
        .navigation-menu {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            transform: none !important;
            width: 100% !important;
            z-index: 1000 !important;
            background: transparent !important;
            -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
            border-top: none !important;
            box-shadow: none !important;
        }

        /* Ensure input container stays above navigation */
        .modern-chat-input-container {
            z-index: 1100 !important;
            position: relative;
        }

        /* Enhanced send button hover/active states */
        .modern-send-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
        }

        .modern-send-btn:active {
            transform: scale(0.95);
            box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
        }

        /* Enhanced send button icon */
        .modern-send-btn svg {
            width: 20px;
            height: 20px;
            fill: #2c1810;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
        }

        /* Enhanced disabled state */
        .modern-send-btn:disabled {
            background: rgba(255, 255, 255, 0.2);
            box-shadow: none;
            transform: none;
        }

        /* Enhanced container styling */
        .modern-chat-input-container {
            background: transparent;
            padding: 0;
            margin: 0;
            border-radius: 0;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        /* Enhanced input container positioning */
        .modern-chat-container .modern-chat-input {
            position: fixed;
            left: 16px;
            right: 16px;
            bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);
            z-index: 1100;
            background: transparent;
            padding: 0;
            margin: 0;
            border-radius: 0;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        /* Enhanced responsive adjustments for very small screens */
        @media (max-height: 650px) {
            .modern-chat-container .modern-chat-input {
                bottom: calc(60px + env(safe-area-inset-bottom) + 8px);
            }
        }

        /* Enhanced typing indicator */
        .typing-indicator {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 12px 16px;
            margin: 8px 0;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        /* Enhanced message bubbles for better readability */
        .message-bubble {
            padding: 12px 16px;
            margin: 4px 0;
            border-radius: 18px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
    }
}

/* Modern Scan Result Card Styles */
.modern-scan-result-content {
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #333;
    position: relative;
    overflow: hidden;
    animation: resultCardReveal 1s ease-out 0.3s both;
}

@keyframes resultCardReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modern-scan-result-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--champagne), var(--primary-burgundy));
    border-radius: 25px 25px 0 0;
}

.modern-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: headerFadeIn 1s ease-out 0.6s both;
}

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

.modern-result-header h3 {
    font-size: 1.8rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--wine-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-result-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

.modern-confidence {
    background: linear-gradient(135deg, var(--primary-gold), var(--champagne));
    color: var(--dark-grape);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    animation: confidenceGlow 2s ease-in-out infinite;
}

@keyframes confidenceGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
    }
}

.modern-confidence::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: confidenceShimmer 3s ease-in-out infinite;
}

@keyframes confidenceShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modern-wine-details {
    margin-bottom: 30px;
    animation: detailsSlide 1s ease-out 0.9s both;
}

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

.modern-wine-main-info {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.08), rgba(114, 47, 55, 0.03));
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(114, 47, 55, 0.15);
    box-shadow: inset 0 2px 8px rgba(114, 47, 55, 0.05);
}

.modern-wine-main-info h4 {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--wine-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(114, 47, 55, 0.2));
}

.modern-wine-description {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.modern-wine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.modern-wine-meta span {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.15), rgba(114, 47, 55, 0.08));
    color: var(--primary-burgundy);
    padding: 10px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(114, 47, 55, 0.2);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-wine-meta span:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 47, 55, 0.2);
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.2), rgba(114, 47, 55, 0.12));
}

.modern-wine-price {
    color: var(--wine-red);
    font-weight: 700;
    font-size: 1.4rem;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.12), rgba(139, 21, 56, 0.06));
    border-radius: 18px;
    border: 2px solid rgba(139, 21, 56, 0.2);
    display: inline-block;
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.15);
    animation: priceHighlight 2s ease-in-out infinite;
}

@keyframes priceHighlight {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(139, 21, 56, 0.15);
    }
    50% {
        box-shadow: 0 12px 35px rgba(139, 21, 56, 0.25);
    }
}

.modern-tasting-notes-section {
    background: linear-gradient(135deg, rgba(75, 8, 130, 0.1), rgba(75, 8, 130, 0.05));
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(75, 8, 130, 0.2);
    box-shadow: inset 0 2px 8px rgba(75, 8, 130, 0.05);
    animation: tastingNotesSlide 1s ease-out 1.2s both;
}

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

.modern-tasting-notes-section h5 {
    color: var(--deep-purple);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-tasting-icon {
    background: linear-gradient(135deg, var(--deep-purple), var(--primary-burgundy));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(75, 8, 130, 0.3);
}

.modern-tasting-notes {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.modern-result-actions {
    display: flex;
    gap: 18px;
    animation: actionsSlide 1s ease-out 1.5s both;
}

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

.modern-result-primary-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--champagne) 100%);
    color: var(--dark-grape);
    border: none;
    border-radius: 20px;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.modern-result-primary-btn:hover::before {
    left: 100%;
}

.modern-result-primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.5);
}

.modern-result-primary-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.modern-result-secondary-btn {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    color: var(--primary-burgundy);
    border: 2px solid rgba(114, 47, 55, 0.3);
    border-radius: 20px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.modern-result-secondary-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    border-color: var(--primary-burgundy);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modern-result-secondary-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.modern-result-btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.modern-result-primary-btn:hover .modern-result-btn-icon,
.modern-result-secondary-btn:hover .modern-result-btn-icon {
    transform: scale(1.1);
}

/* CSS class for visual interactivity without navigation - handled in JS */
.card--no-nav {
    cursor: pointer; /* no-op for navigation — handled in JS */
}