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

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 32px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0d0d0d;
    --bg-card: rgba(15, 12, 10, 0.6);
    --shadow-glow: 0 0 40px rgba(242, 207, 123, 0.3);
    --text-primary: #E8DCC4;
    --text-secondary: #9B8B7E;
    --gradient-primary: linear-gradient(135deg, #f2cf7b 0%, #d29658 50%, #7d3f26 100%);
    --gradient-accent: linear-gradient(135deg, #d29658 0%, #7d3f26 100%);
    --gradient-bg: linear-gradient(180deg, #0a0805 0%, #161210 50%, #1f1a16 100%);
    --glow-gold: 0 0 40px rgba(242, 207, 123, 0.4), 0 0 80px rgba(210, 150, 88, 0.2);
    --glow-bronze: 0 0 40px rgba(125, 63, 38, 0.5), 0 0 80px rgba(210, 150, 88, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(125, 63, 38, 0.2);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.8), 0 15px 40px rgba(125, 63, 38, 0.3);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-gold: #f2cf7b;
}

/* Fix for iOS white areas in safe zones */
html {
    background-color: #0a0805;
    height: 100%;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
    /* Page transition animation */
    animation: pageTransitionFadeIn 0.3s ease-out;
    min-height: 100vh;
    position: relative;
    
    /* Respect safe-area insets */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Geometric Background Elements */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.08;
}

.geo-element {
    position: absolute;
    border: 1px solid #d29658;
    animation: floatGeometry 25s infinite ease-in-out;
}

.geo-circle {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(210, 150, 88, 0.2);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid rgba(210, 150, 88, 0.15);
    border: none;
    background: none;
}

.geo-triangle::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 2px;
    left: -48px;
    border-left: 48px solid transparent;
    border-right: 48px solid transparent;
    border-bottom: 83px solid transparent;
    border-top: 0;
}

.geo-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d29658, transparent);
}

.geo-ring {
    border-radius: 50%;
    border: 2px solid rgba(242, 207, 123, 0.2);
    box-shadow: 0 0 20px rgba(242, 207, 123, 0.1);
}

@keyframes floatGeometry {
    0% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    15% {
        opacity: 0.08;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.05);
        opacity: 0.2;
    }
    40% {
        opacity: 0.12;
    }
    50% { 
        transform: translateY(-50px) rotate(180deg) scale(1);
        opacity: 0.18;
    }
    65% {
        opacity: 0.1;
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(0.95);
        opacity: 0.22;
    }
    90% {
        opacity: 0.13;
    }
    100% { 
        transform: translateY(0) rotate(360deg) scale(1);
        opacity: 0.15;
    }
}

/* ========================================
   MAIN NAVIGATION - CSS
   ======================================== */

/* Navbar Container */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 3, 3, 0.97);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-bottom: 1px solid rgba(168, 107, 62, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 
                0 2px 8px rgba(168, 107, 62, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo Section */
.nav-left {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f2cf7b 0%, #d29658 70%, #7d3f26 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.logo:hover {
    filter: brightness(1.1);
}

.logo-icon {
    filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.3));
}

.logo-text-white {
    background: linear-gradient(135deg, #f2cf7b 0%, #d29658 70%, #7d3f26 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Center Navigation Links */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.75rem 1.5rem;
    color: rgba(196, 181, 160, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(127, 58, 27, 0.6) 0%, 
        rgba(168, 107, 62, 0.8) 30%, 
        rgba(212, 165, 116, 0.95) 70%, 
        rgba(236, 207, 131, 1) 100%);
    border-radius: 3px 3px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 16px rgba(236, 207, 131, 0);
}

.nav-link:hover,
.nav-link.active {
    color: #f4f1ea;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    box-shadow: 0 0 16px rgba(236, 207, 131, 0.6);
}

/* Disabled nav link */
.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-link.disabled::after {
    display: none;
}

/* Coming Soon Badge */
.nav-link-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(168, 107, 236, 0.15);
    border: 1px solid rgba(168, 107, 236, 0.35);
    border-radius: 6px;
    color: rgba(200, 160, 255, 0.9);
    box-shadow: 0 2px 8px rgba(168, 107, 236, 0.2);
}

/* Right Section: Search + User */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Search Bar */
.search-container {
    position: relative;
    width: 260px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(236, 207, 131, 0.7);
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(168, 107, 62, 0.3));
    transition: all 0.3s ease;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(10, 9, 8, 0.6);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(168, 107, 62, 0.25);
    border-radius: 14px;
    color: #f4f1ea;
    font-size: 0.9375rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-input::placeholder {
    color: rgba(196, 181, 160, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: rgba(212, 165, 116, 0.5);
    background: rgba(10, 9, 8, 0.8);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(168, 107, 62, 0.15),
        0 4px 16px rgba(168, 107, 62, 0.2);
}

.search-container:focus-within .search-icon {
    color: rgba(236, 207, 131, 0.9);
    filter: drop-shadow(0 0 8px rgba(236, 207, 131, 0.5));
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 720px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    background: rgba(10, 9, 8, 0.98);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(236, 207, 131, 0.1),
        inset 0 1px 0 rgba(212, 165, 116, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 8px;
}

/* Custom Scrollbar */
.search-dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown-content::-webkit-scrollbar-track {
    background: rgba(212, 165, 116, 0.05);
    border-radius: 10px;
}

.search-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.3);
    border-radius: 10px;
}

.search-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.5);
}

/* Search Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.search-result-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, rgba(168, 107, 62, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-result-item:hover::before {
    opacity: 1;
}

.search-result-item:hover {
    background: rgba(212, 165, 116, 0.08);
    transform: translateX(4px);
}

.search-result-item.active {
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

/* Search Result Icon */
.search-result-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(212, 165, 116, 0.1);
    border: 1.5px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.search-result-icon svg {
    width: 22px;
    height: 22px;
    stroke: #d4a574;
}

.search-result-icon.ai-recipe::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #a86bec 0%, #8b5bd6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid rgba(10, 9, 8, 0.98);
    box-shadow: 0 0 8px rgba(168, 107, 236, 0.6);
}

/* Search Result Content */
.search-result-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.search-result-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-title .ai-badge {
    display: inline-flex;
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(168, 107, 236, 0.15);
    border: 1px solid rgba(168, 107, 236, 0.3);
    border-radius: 4px;
    color: #a86bec;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-meta {
    font-size: 13px;
    color: rgba(196, 181, 160, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #d4a574;
}

/* Search Empty State */
.search-empty {
    padding: 40px 20px;
    text-align: center;
}

.search-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.search-empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: #d4a574;
}

.search-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    font-family: 'Comfortaa', sans-serif;
}

.search-empty-text {
    font-size: 14px;
    color: rgba(196, 181, 160, 0.6);
}

/* Search Category Header */
.search-category {
    padding: 12px 14px 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(212, 165, 116, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-category::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
}

.search-category::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
}

/* Loading State */
.search-loading {
    padding: 40px 20px;
    text-align: center;
}

.search-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(212, 165, 116, 0.2);
    border-top-color: #d4a574;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.search-loading-text {
    font-size: 14px;
    color: rgba(196, 181, 160, 0.7);
}

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

.user-login-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 9, 8, 0.6);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(125, 63, 38, 0.2) 0%, 
        rgba(212, 165, 116, 0.3) 50%,
        rgba(242, 207, 123, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-login-button:hover::before {
    opacity: 1;
}

.user-login-button:hover {
    border-color: rgba(242, 207, 123, 0.6);
    box-shadow: 0 0 20px rgba(242, 207, 123, 0.2);
    transform: translateY(-2px);
}

.user-icon {
    stroke: #eccf83;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 340px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari */
    border: 1px solid rgba(168, 107, 62, 0.25);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(168, 107, 62, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
}

/* Invisible bridge to prevent dropdown closing when moving mouse from button to dropdown */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    right: 0;
    height: 1.5rem;
    background: transparent;
}

.user-menu-container:hover .user-dropdown,
.user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, 
        rgba(127, 58, 27, 0.2) 0%, 
        rgba(168, 107, 62, 0.1) 50%, 
        transparent 100%);
    border-bottom: 1px solid rgba(168, 107, 62, 0.15);
    border-radius: 24px 24px 0 0;
    position: relative;
}

.dropdown-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(236, 207, 131, 0.5) 50%, 
        transparent 100%);
}

.dropdown-avatar {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 9, 8, 0.6);
    border: 2px solid rgba(212, 165, 116, 0.3);
    color: #eccf83;
    font-size: 1.375rem;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dropdown-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(125, 63, 38, 0.1) 0%, 
        rgba(212, 165, 116, 0.15) 50%, 
        rgba(242, 207, 123, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* When profile picture is uploaded, clean up the styling */
.dropdown-avatar[style*="background-image"] {
    background: transparent;
    border: 2px solid rgba(212, 165, 116, 0.5);
    color: transparent;
}

.dropdown-avatar[style*="background-image"]::before {
    display: none;
}

.dropdown-header:hover .dropdown-avatar {
    border-color: rgba(242, 207, 123, 0.5);
}

.dropdown-header:hover .dropdown-avatar::before {
    opacity: 1;
}

.dropdown-header:hover .dropdown-avatar[style*="background-image"] {
    border-color: rgba(242, 207, 123, 0.7);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f4f1ea;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dropdown-email {
    font-size: 0.875rem;
    color: rgba(196, 181, 160, 0.65);
}

/* AI Credits Section - Purple Theme */
.dropdown-credits {
    margin: 1rem 1.25rem;
    padding: 1.125rem 1.25rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 92, 246, 0.15);
}

.dropdown-credits::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.08) 0%, 
        rgba(139, 92, 246, 0.12) 50%, 
        rgba(168, 85, 247, 0.08) 100%);
}

.dropdown-credits-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.dropdown-credits-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-credits-label {
    font-size: 0.6875rem;
    color: rgba(196, 181, 253, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.dropdown-credits-amount {
    font-size: 1.625rem;
    font-weight: 700;
    background: linear-gradient(135deg, #A78BFA 0%, #C4B5FD 50%, #DDD6FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.4));
}

.dropdown-credits-buy {
    padding: 0.75rem 1.125rem;
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    color: #F5F5F5;
    border: none;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.dropdown-credits-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    margin: 0.75rem 1.25rem;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(168, 107, 62, 0.3) 50%, 
        transparent 100%);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    margin: 0.375rem 1rem;
    color: rgba(244, 241, 234, 0.75);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #eccf83 0%, #a86b3e 100%);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(168, 107, 62, 0.12);
    color: #eccf83;
    transform: translateX(6px);
}

.dropdown-item:hover::before {
    height: 70%;
}

.dropdown-item svg {
    stroke: currentColor;
    opacity: 0.75;
    transition: all 0.3s ease;
}

.dropdown-item:hover svg {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(236, 207, 131, 0.4));
}

/* Admin Item */
.admin-item {
    background: linear-gradient(135deg, rgba(168, 107, 236, 0.12), rgba(125, 63, 236, 0.08));
    border: 1px solid rgba(168, 107, 236, 0.25);
    color: rgba(200, 160, 255, 0.95) !important;
    font-weight: 700;
}

.admin-item::before {
    background: linear-gradient(180deg, rgba(200, 160, 255, 0.9) 0%, rgba(168, 107, 236, 0.8) 100%);
    height: 70%;
}

.admin-item:hover {
    background: linear-gradient(135deg, rgba(168, 107, 236, 0.2), rgba(125, 63, 236, 0.12));
    border-color: rgba(168, 107, 236, 0.4);
    box-shadow: 0 4px 16px rgba(168, 107, 236, 0.3);
    color: rgba(200, 160, 255, 1) !important;
}

.admin-item svg {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(168, 107, 236, 0.4));
}

/* Logout Item */
.logout-item {
    color: rgba(239, 68, 68, 0.85);
    margin-top: 0.75rem;
    border-top: 1px solid rgba(168, 107, 62, 0.15);
    padding-top: 1rem;
}

.logout-item::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.logout-item:hover svg {
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

/* Main Content */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px 50px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    color: #f4f1ea;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title > span:not(.section-title-icon) {
    color: rgba(212, 165, 116, 1);
}

.section-title-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 165, 116, 1);
    flex-shrink: 0;
}

.section-title-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(212, 165, 116, 0.2));
}

/* Section Title with Action Button */
.section-title-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.section-title-with-action .section-title {
    margin-bottom: 0;
}

/* View All Button */
.view-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn svg {
    width: 16px;
    height: 16px;
    stroke: rgba(212, 165, 116, 0.8);
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(10, 9, 8, 0.8);
    border-color: rgba(212, 165, 116, 0.6);
    color: #f2cf7b;
    transform: translateX(4px);
}

.view-all-btn:hover svg {
    stroke: #f2cf7b;
    transform: translateX(2px);
}

/* Header actions container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recent-brews-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.recent-brews-left {
    min-width: 0;
    overflow: hidden;
}

.section-divider {
    margin: 48px 0;
}

/* Tabs System */
.tabs-container {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    width: fit-content;
}

.tabs-and-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.recent-brews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
    padding: 10px 0px 0px 0px;
    width: 100%;
    max-width: 100%;
    overflow: visible; /* allow card shadows/glow to render fully */
}

/* Empty state for dashboard */
.empty-state-dashboard {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.empty-state-dashboard .empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(236, 107, 168, 0.12) 0%, rgba(236, 63, 125, 0.08) 100%);
    border: 2px solid rgba(236, 107, 168, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-dashboard .empty-state-icon .material-symbols-rounded {
    font-size: 56px;
    color: rgba(236, 107, 168, 0.6);
}

.empty-state-dashboard h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.empty-state-dashboard p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: none;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-btn.active {
    color: #ffffff;
}

.tab-btn.active::before {
    opacity: 1;
    box-shadow: var(--glow-orange);
}

.tab-btn:not(.active):hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.tab-icon {
    font-size: 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 10px !important;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

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

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.hero-right {
    text-align: right;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10;
    gap: 8px;
}

/* Modern Bold Typography */
.hero-title-wrapper {
    position: relative;
    display: inline-block;
}

.hero-title-main {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -2px;
    line-height: 1;
    margin: 0;
    font-family: 'Comfortaa', sans-serif;
    position: relative;
    z-index: 2;
}

.hero-title-accent {
    font-size: 56px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    line-height: 1;
    margin: 0;
    font-family: 'Comfortaa', sans-serif;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 4px 20px rgba(242, 207, 123, 0.3));
    display: inline;
}

.hero-title-outline {
    position: absolute;
    top: -15px;
    right: -25px;
    font-size: 72px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(212, 165, 116, 0.08);
    letter-spacing: -2px;
    font-family: 'Comfortaa', sans-serif;
    z-index: 1;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 10px;
    color: rgba(196, 181, 253, 0.95);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 12px;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    border-radius: 24px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.15) 0%, 
        rgba(139, 92, 246, 0.2) 50%,
        rgba(124, 58, 237, 0.15) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(168, 85, 247, 0.05);
    transition: all 0.3s ease;
}

.hero-subtitle::before {
    content: '';
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #8B5CF6 0%, #C4B5FD 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.hero-subtitle:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(168, 85, 247, 0.1);
    transform: translateY(-1px);
}

/* Coffee Particles Background */
.coffee-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.coffee-bean {
    position: absolute;
    width: 12px;
    height: 16px;
    background: linear-gradient(135deg, #6F4E37 0%, #8B6F47 50%, #5C4033 100%);
    border-radius: 45% 45% 50% 50%;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 3px rgba(139, 111, 71, 0.4),
        0 4px 8px rgba(111, 78, 55, 0.3);
    animation: floatBean infinite ease-in-out;
}

.coffee-bean::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3), transparent);
    border-radius: 2px;
}

.steam-particle {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(200, 180, 140, 0.3) 30%, 
        rgba(180, 160, 120, 0.2) 60%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    filter: blur(3px);
    animation: riseAndFade infinite ease-out;
}

.coffee-drop {
    position: absolute;
    width: 6px;
    height: 8px;
    background: radial-gradient(ellipse at center, 
        rgba(101, 67, 33, 0.6) 0%, 
        rgba(139, 69, 19, 0.4) 50%, 
        rgba(101, 67, 33, 0.2) 100%);
    border-radius: 50% 50% 50% 0%;
    transform: rotate(-45deg);
    box-shadow: 
        inset -1px -1px 2px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(101, 67, 33, 0.3);
    animation: dropAndFloat infinite ease-in-out;
}

.sparkle-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, 
        rgba(242, 207, 131, 0.8) 0%, 
        rgba(212, 165, 116, 0.4) 50%, 
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(242, 207, 131, 0.6);
    animation: twinkleFloat infinite ease-in-out;
}

@keyframes floatBean {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        opacity: 0.7;
    }
}

@keyframes riseAndFade {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(-40px) translateX(10px) scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-80px) translateX(-5px) scale(0.8);
        opacity: 0;
    }
}

@keyframes dropAndFloat {
    0%, 100% {
        transform: translateY(0) rotate(-45deg);
        opacity: 0.5;
    }
    30% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-25px) rotate(-30deg);
        opacity: 0.4;
    }
    80% {
        opacity: 0.6;
    }
}

@keyframes twinkleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-35px) scale(1.5);
        opacity: 0.9;
    }
    90% {
        opacity: 0.3;
    }
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 380px;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 700px;
}

/* Action Card Base */
.action-card {
    background: rgba(10, 9, 8, 0.7);
    backdrop-filter: blur(20px) saturate(140%);
    border-radius: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: 28px;
    padding-right: 28px;
    border: 1.5px solid rgba(168, 107, 62, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(125, 63, 38, 0.15) 0%, 
        rgba(212, 165, 116, 0.25) 50%,
        rgba(242, 207, 123, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover::before {
    opacity: 1;
}

.action-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-card-secondary:hover .action-card-icon {
    transform: translateY(-4px) scale(1.05);
}

.action-card-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.action-card-secondary:hover .action-card-icon svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.action-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-card-icon {
    position: relative;
    z-index: 10;
}

.action-card-footer {
    position: relative;
    z-index: 10;
}

.action-card-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
    font-family: 'Comfortaa', sans-serif;
}

.action-card-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.7;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.action-card:hover .action-card-desc {
    opacity: 0.9;
}

.action-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.action-card:hover .action-card-footer {
    opacity: 1;
    gap: 12px;
}

.action-card-footer svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.action-card:hover .action-card-footer svg {
    transform: translateX(4px);
}

/* Create New Recipe Card - Primary */
.action-card-primary {
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.action-card-primary:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 207, 123, 0.5);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(242, 207, 123, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.action-card-primary .action-card-icon {
    background: rgba(10, 9, 8, 0.7);
    border: 2px solid rgba(212, 165, 116, 0.4);
    box-shadow: 
        0 0 25px rgba(210, 150, 88, 0.2),
        inset 0 0 20px rgba(125, 63, 38, 0.1);
}

.action-card-primary .action-card-icon svg {
    stroke: #f2cf7b;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(242, 207, 123, 0.4));
}

.action-card-primary .action-card-title {
    color: #f2cf7b;
}

.action-card-primary .action-card-desc {
    color: rgba(244, 241, 234, 0.8);
}

.action-card-primary .action-card-footer {
    color: #d29658;
}

.action-card-primary .action-card-footer svg {
    stroke: #d29658;
    stroke-width: 2;
}

/* Use AI Barista Card - Purple AI Theme */
.action-card-secondary {
    background: 
        radial-gradient(at 0% 0%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(232, 121, 249, 0.3) 0%, transparent 50%),
        radial-gradient(at 0% 100%, rgba(147, 51, 234, 0.2) 0%, transparent 50%),
        rgba(5, 5, 5, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.3);
    position: relative;
    transition: all 0.5s ease;
}

/* No border animation for gradient mesh design */
.action-card-secondary::before {
    display: none;
}

@keyframes pulse-ai-card-glow {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4)) 
                drop-shadow(0 0 30px rgba(124, 58, 237, 0.2));
    }
    25% {
        opacity: 0.85;
        filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.6)) 
                drop-shadow(0 0 45px rgba(139, 92, 246, 0.35));
    }
    50% {
        opacity: 0.75;
        filter: drop-shadow(0 0 20px rgba(196, 181, 253, 0.5)) 
                drop-shadow(0 0 40px rgba(168, 85, 247, 0.3));
    }
    75% {
        opacity: 0.85;
        filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.6)) 
                drop-shadow(0 0 45px rgba(139, 92, 246, 0.35));
    }
}

.action-card-secondary:hover {
    transform: translateY(-6px);
    background: 
        radial-gradient(at 0% 0%, rgba(168, 85, 247, 0.32) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(232, 121, 249, 0.32) 0%, transparent 50%),
        radial-gradient(at 0% 100%, rgba(147, 51, 234, 0.22) 0%, transparent 50%),
        rgba(5, 5, 5, 0.9);
    border-color: rgba(168, 85, 247, 0.6);
}

.action-card-secondary:hover::before {
    display: none;
}

.action-card-secondary .action-card-icon {
    background: linear-gradient(135deg, rgba(100, 50, 150, 0.25), rgba(140, 70, 160, 0.25));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: none;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

@keyframes pulse-ai-icon-border {
    0%, 100% {
        border-color: rgba(139, 92, 246, 0.7);
        box-shadow: 
            0 0 35px rgba(139, 92, 246, 0.5),
            0 0 60px rgba(124, 58, 237, 0.25),
            inset 0 0 25px rgba(124, 58, 237, 0.2);
    }
    33% {
        border-color: rgba(168, 85, 247, 0.9);
        box-shadow: 
            0 0 45px rgba(168, 85, 247, 0.7),
            0 0 75px rgba(139, 92, 246, 0.4),
            inset 0 0 30px rgba(139, 92, 246, 0.3);
    }
    66% {
        border-color: rgba(196, 181, 253, 0.8);
        box-shadow: 
            0 0 40px rgba(196, 181, 253, 0.6),
            0 0 70px rgba(168, 85, 247, 0.35),
            inset 0 0 28px rgba(168, 85, 247, 0.25);
    }
}

.action-card-secondary .action-card-icon::before {
    display: none;
}

.action-card-secondary .action-card-icon::after {
    display: none;
}

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

@keyframes pulse-ai-border {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

.ai-icon-gradient {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #a855f7, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.action-card-secondary:hover .action-card-icon {
    background: linear-gradient(135deg, rgba(110, 55, 160, 0.28), rgba(150, 75, 170, 0.28));
}

.action-card-secondary:hover .ai-icon-gradient {
    filter: drop-shadow(0 0 20px rgba(232, 121, 249, 0.7));
}

.action-card-secondary .action-card-title {
    color: #f0abfc;
}

.action-card-secondary .action-card-desc {
    color: rgba(192, 132, 252, 0.8);
}

.action-card-secondary .action-card-footer {
    color: #e879f9;
}

.action-card-secondary .action-card-footer svg {
    stroke: #e879f9;
    stroke-width: 2;
}

.action-card-secondary:hover .action-card-title {
    color: #f0abfc;
}

.action-card-secondary:hover .action-card-footer {
    color: #e879f9;
}

.action-card-secondary:hover .action-card-footer svg {
    stroke: #e879f9;
}

/* Stats Panel */
.stats-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
    margin-left: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: rgba(5, 5, 5, 0.85);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.6s ease forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(5, 5, 5, 0.92);
    box-shadow: 0px 16px 48px 0px rgba(0, 0, 0, 0.8), 0px 0px 30px 0px rgba(174, 113, 58, 0.2);
}

.stats-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(212, 165, 116, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.stats-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(10, 9, 8, 0.6);
    border: 2px solid rgba(212, 165, 116, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(125, 63, 38, 0.2) 0%, 
        rgba(212, 165, 116, 0.3) 50%,
        rgba(242, 207, 123, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon::before {
    opacity: 1;
}

.stat-card:hover .stat-icon {
    border-color: rgba(242, 207, 123, 0.6);
    box-shadow: 0 0 20px rgba(242, 207, 123, 0.2);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: #eccf83;
    stroke-width: 2;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Hide mobile stat value on desktop */
.mobile-stat-value {
    display: none;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-info h3 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(196, 181, 160, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.2;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: #eccf83;
    letter-spacing: -1.5px;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(236, 207, 131, 0.3);
}

.stat-content {
    margin-top: 0;
    flex: 1;
}

/* Progress Bars */
.progress-container {
    margin-bottom: 20px;
}

.progress-container:last-child {
    margin-bottom: 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 12px;
    font-weight: 700;
    color: #f4f1ea;
    letter-spacing: 0.3px;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 800;
    color: #eccf83;
    text-shadow: 0 2px 8px rgba(236, 207, 131, 0.2);
}

.progress-percentage.purple {
    color: #d4a574;
}

.progress-bar-bg {
    height: 14px;
    background: rgba(10, 9, 8, 0.6);
    border: 1px solid rgba(168, 107, 62, 0.2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #7d3f26 0%, #d29658 70%, #f2cf7b 100%);
    position: relative;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 0 20px rgba(242, 207, 123, 0.5);
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.progress-bar-fill.purple {
    background: linear-gradient(135deg, #7d3f26 0%, #d29658 70%, #f2cf7b 100%);
    box-shadow: 0 0 20px rgba(242, 207, 123, 0.5);
}

/* Manual Recipe Progress Bar - Gold/Amber */
.progress-bar-fill.manual-recipe {
    background: linear-gradient(135deg, #d4a574 0%, #f2cf7b 50%, #d4a574 100%);
    box-shadow: 0 0 20px rgba(242, 207, 123, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill.manual-recipe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmerManual 2s infinite;
}

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

.progress-percentage {
    font-weight: 700;
    color: #f2cf7b;
}

.progress-percentage.ai-recipe {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

/* AI Generated Progress Bar - Purple/Violet Gradient */
.progress-bar-fill.ai-recipe {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 25%, #c084fc 50%, #e879f9 75%, #a78bfa 100%);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.7),
                0 0 40px rgba(192, 132, 252, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 8px rgba(124, 58, 237, 0.5);
    position: relative;
    overflow: hidden;
    animation: aiGlow 3s ease-in-out infinite;
}

.progress-bar-fill.ai-recipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmerAI 2.5s infinite;
}

.progress-bar-fill.ai-recipe::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(232, 121, 249, 0.4),
        transparent);
    animation: aiSweep 4s ease-in-out infinite;
}

@keyframes shimmerAI {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes aiGlow {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(167, 139, 250, 0.7),
                    0 0 40px rgba(192, 132, 252, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 35px rgba(167, 139, 250, 0.9),
                    0 0 60px rgba(192, 132, 252, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes aiSweep {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Coffee Tags */
.coffee-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.coffee-tag {
    padding: 8px 14px;
    background: linear-gradient(135deg, 
        rgba(131, 62, 31, 0.25) 0%, 
        rgba(174, 113, 58, 0.25) 100%);
    border: 1px solid rgba(168, 107, 62, 0.4);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #d4a574;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.coffee-tag:hover {
    background: linear-gradient(135deg, 
        rgba(131, 62, 31, 0.35) 0%, 
        rgba(174, 113, 58, 0.35) 100%);
    border-color: rgba(212, 165, 116, 0.6);
    color: #eccf83;
}

.coffee-name {
    font-size: 18px;
    font-weight: 800;
    color: #f4f1ea;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Section Headers */
.section-header {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative; /* Ensure proper stacking context */
    overflow: visible; /* Allow dropdowns to overflow grid */
}

/* Recipe Card with Glass Morphism */
.recipe-card {
    background: rgba(5, 5, 5, 0.85);
    border-radius: 24px;
    border: 1px solid transparent;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    overflow: visible; /* Ensure dropdowns can overflow */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1; /* Create stacking context */
    min-width: 0; /* Respect grid constraints */
    max-width: 100%;
    box-sizing: border-box;
}

.recipe-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   CREATE RECIPE CARD - First Card in Grid
   ========================================== */
.create-recipe-card {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
}

.create-recipe-card::before {
    display: none;
}

.create-recipe-card-inner {
    position: relative;
    height: 100%;
    min-height: 420px;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(168, 107, 62, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(18, 16, 14, 0.95) 0%, rgba(10, 9, 8, 0.98) 100%);
    border: 1px solid rgba(168, 107, 62, 0.25);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.create-recipe-card:hover .create-recipe-card-inner {
    border-color: rgba(168, 107, 62, 0.45);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(168, 107, 62, 0.08);
}

/* Decorative Background */
.create-recipe-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
}

.create-recipe-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(168, 107, 62, 0.03) 60deg,
        transparent 120deg,
        rgba(139, 92, 246, 0.02) 180deg,
        transparent 240deg,
        rgba(168, 107, 62, 0.03) 300deg,
        transparent 360deg
    );
    animation: rotateGlow 20s linear infinite;
}

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

.create-recipe-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(168, 107, 62, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* Header */
.create-recipe-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.create-recipe-icon-container {
    position: relative;
    display: inline-flex;
    margin-bottom: 16px;
}

.create-recipe-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(168, 107, 62, 0.2) 0%, rgba(168, 107, 62, 0.08) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.create-recipe-icon .material-symbols-rounded {
    font-size: 32px;
    background: linear-gradient(135deg, #f2cf7b 0%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.create-recipe-icon-ring {
    position: absolute;
    inset: -4px;
    border: 2px dashed rgba(168, 107, 62, 0.3);
    border-radius: 24px;
    animation: rotateDash 30s linear infinite;
}

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

.create-recipe-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #f4f1ea;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.create-recipe-subtitle {
    font-size: 14px;
    color: rgba(244, 241, 234, 0.5);
    margin: 0;
}

/* Action Buttons */
.create-recipe-actions {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.create-recipe-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
}

.create-recipe-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

/* Manual Button */
.create-recipe-btn-manual:hover {
    border-color: rgba(168, 107, 62, 0.4);
    box-shadow: 0 4px 20px rgba(168, 107, 62, 0.15);
}

.create-recipe-btn-manual .create-btn-icon {
    background: linear-gradient(135deg, rgba(168, 107, 62, 0.2) 0%, rgba(168, 107, 62, 0.1) 100%);
}

.create-recipe-btn-manual .create-btn-icon .material-symbols-rounded {
    color: #d4a574;
}

.create-recipe-btn-manual:hover .create-btn-icon {
    background: linear-gradient(135deg, rgba(168, 107, 62, 0.35) 0%, rgba(168, 107, 62, 0.2) 100%);
}

/* AI Button */
.create-recipe-btn-ai:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.create-recipe-btn-ai .create-btn-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.create-recipe-btn-ai .create-btn-icon .material-symbols-rounded {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.create-recipe-btn-ai:hover .create-btn-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(168, 85, 247, 0.2) 100%);
}

/* Button Components */
.create-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.create-btn-icon .material-symbols-rounded {
    font-size: 22px;
}

.create-btn-content {
    flex: 1;
    min-width: 0;
}

.create-btn-label {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #f4f1ea;
    margin-bottom: 2px;
}

.create-btn-desc {
    display: block;
    font-size: 12px;
    color: rgba(244, 241, 234, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.create-btn-arrow {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.create-btn-arrow .material-symbols-rounded {
    font-size: 16px;
    color: rgba(244, 241, 234, 0.7);
}

.create-recipe-btn:hover .create-btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

.create-recipe-btn-manual:hover .create-btn-arrow {
    background: rgba(168, 107, 62, 0.2);
}

.create-recipe-btn-manual:hover .create-btn-arrow .material-symbols-rounded {
    color: #d4a574;
}

.create-recipe-btn-ai:hover .create-btn-arrow {
    background: rgba(139, 92, 246, 0.2);
}

.create-recipe-btn-ai:hover .create-btn-arrow .material-symbols-rounded {
    color: #a78bfa;
}

/* Divider */
.create-recipe-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.create-recipe-divider::before,
.create-recipe-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.create-recipe-divider span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(244, 241, 234, 0.3);
}

/* Compact View Adjustments */
.recipe-grid-full.compact-view .create-recipe-card-inner {
    min-height: 280px;
    padding: 20px 16px;
}

.recipe-grid-full.compact-view .create-recipe-header {
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.recipe-grid-full.compact-view .create-recipe-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.recipe-grid-full.compact-view .create-recipe-icon .material-symbols-rounded {
    font-size: 24px;
}

.recipe-grid-full.compact-view .create-recipe-icon-ring {
    inset: -3px;
    border-radius: 17px;
}

.recipe-grid-full.compact-view .create-recipe-title {
    font-size: 18px;
}

.recipe-grid-full.compact-view .create-recipe-subtitle {
    font-size: 12px;
}

.recipe-grid-full.compact-view .create-recipe-btn {
    padding: 12px 14px;
    gap: 10px;
}

.recipe-grid-full.compact-view .create-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.recipe-grid-full.compact-view .create-btn-icon .material-symbols-rounded {
    font-size: 18px;
}

.recipe-grid-full.compact-view .create-btn-label {
    font-size: 13px;
}

.recipe-grid-full.compact-view .create-btn-desc {
    display: none;
}

.recipe-grid-full.compact-view .create-recipe-divider {
    padding: 2px 0;
}

/* NEW RECIPE HIGHLIGHT - Purple Glow Animation */
.recipe-card.recipe-highlight-new {
    animation: purpleGlowPulse 3s ease-in-out;
}

@keyframes purpleGlowPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        border-color: transparent;
    }
    15%, 85% {
        box-shadow: 
            0 0 30px rgba(183, 148, 244, 0.6),
            0 0 60px rgba(159, 122, 234, 0.4),
            0 0 90px rgba(128, 90, 213, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.6);
        border-color: rgba(183, 148, 244, 0.8);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(183, 148, 244, 0.8),
            0 0 80px rgba(159, 122, 234, 0.6),
            0 0 120px rgba(128, 90, 213, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.6);
        border-color: rgba(183, 148, 244, 1);
    }
}

/* Gradient Border Effect */
.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5px;
    background: linear-gradient(135deg, 
        rgba(125, 63, 38, 0.6) 0%, 
        rgba(212, 165, 116, 0.8) 30%,
        rgba(242, 207, 123, 0.9) 50%,
        rgba(212, 165, 116, 0.8) 70%,
        rgba(125, 63, 38, 0.6) 100%);
    border-radius: 24px;
    z-index: 10;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.recipe-card:hover::before {
    opacity: 1;
    padding: 2.5px;
    background: linear-gradient(135deg, 
        rgba(125, 63, 38, 0.8) 0%, 
        rgba(212, 165, 116, 1) 30%,
        rgba(242, 207, 123, 1) 50%,
        rgba(212, 165, 116, 1) 70%,
        rgba(125, 63, 38, 0.8) 100%);
    filter: drop-shadow(0 0 12px rgba(242, 207, 123, 0.4));
}

.recipe-card:hover {
    transform: translateY(-6px);
    background: rgba(5, 5, 5, 0.92);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(174, 113, 58, 0.3);
}

.recipe-card-header {
    position: relative;
    z-index: 1;
    overflow: visible; /* Changed from hidden to visible to allow dropdown to show */
    border-radius: 24px 24px 0 0;
    min-height: 200px;
}

/* Position badges relative to header in extended view (NOT in compact grid) */
.recipe-grid-full:not(.compact-view) .brew-type-badge-top-left {
    top: 12px;
}

.recipe-grid-full:not(.compact-view) .recipe-card-ai-badge {
    top: 168px; /* Position nicely within cover image */
    bottom: auto;
    right: 24px; /* Align with favorite button */
    left: auto;
}

/* Dashboard grid - same positioning as my recipes */
.recent-brews-grid .recipe-card-ai-badge {
    top: 168px; /* Position nicely within cover image */
    bottom: auto;
    right: 24px; /* Align with favorite button */
    left: auto;
}

.recipe-card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    display: block;
    filter: brightness(0.85);
    border-radius: 24px 24px 0 0; /* Match card header border-radius */
}

.recipe-card:hover .recipe-card-thumbnail {
    filter: brightness(1);
}

.recipe-card-thumbnail-placeholder {
    background: linear-gradient(135deg, 
        rgba(18, 18, 18, 0.95) 0%, 
        rgba(25, 25, 25, 0.92) 50%,
        rgba(18, 18, 18, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px 24px 0 0; /* Match card header border-radius */
}

.recipe-card-thumbnail-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(168, 107, 62, 0.08) 0%,
        transparent 70%);
}

.recipe-card-thumbnail-placeholder svg {
    position: relative;
    z-index: 1;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.recipe-card:hover .recipe-card-thumbnail-placeholder {
    background: linear-gradient(135deg, 
        rgba(22, 22, 22, 0.95) 0%, 
        rgba(28, 28, 28, 0.92) 50%,
        rgba(22, 22, 22, 0.95) 100%);
}

.recipe-card:hover .recipe-card-thumbnail-placeholder svg {
    opacity: 0.5;
    transform: scale(1.05);
}

/* Thumbnail Overlay for Cover Image Upload */
.recipe-card-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    cursor: pointer;
    pointer-events: none;
}

.recipe-card-header:hover .recipe-card-thumbnail-overlay,
.recipe-card-thumbnail-overlay:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Ensure overlay doesn't block menu button or badges */
.recipe-card-menu,
.brew-type-badge-top-left {
    position: relative;
    z-index: 10000;
}

.recipe-card-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #f2cf7b;
    transform: translateY(8px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px;
    width: 100%;
    max-width: 180px;
}

.recipe-card-header:hover .recipe-card-overlay-content,
.recipe-card-thumbnail-overlay:hover .recipe-card-overlay-content {
    transform: translateY(0);
}

/* Overlay Option Buttons */
.recipe-card-overlay-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(20, 20, 20, 0.85); /* Darker base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    border-radius: 12px;
    color: #f4f1ea;
    font-family: 'Quicksand', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.recipe-card-overlay-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 207, 123, 0.15), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.recipe-card-overlay-option:hover::before {
    left: 100%;
}

.recipe-card-overlay-option:hover {
    background: rgba(242, 207, 123, 0.15);
    border-color: rgba(242, 207, 123, 0.5);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(242, 207, 123, 0.2);
    color: #eccf83;
}

.recipe-card-overlay-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.recipe-card-overlay-option .material-symbols-rounded {
    font-size: 16px;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    color: inherit; /* Inherit color from parent */
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.recipe-card-overlay-option:hover .material-symbols-rounded {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 2px 6px rgba(242, 207, 123, 0.4));
}

.recipe-card-overlay-option span:not(.material-symbols-rounded) {
    white-space: nowrap;
    font-size: 10px;
}

/* Optimize Recipe button special styling - Purple/AI theme */
.recipe-card-overlay-optimize {
    background: rgba(30, 20, 40, 0.85) !important; /* Dark purple tint base */
    border-color: rgba(168, 107, 236, 0.3) !important;
    color: #e0ccff !important;
}

.recipe-card-overlay-optimize .material-symbols-rounded {
    color: #d8b4fe !important;
}

.recipe-card-overlay-optimize:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(168, 107, 236, 0.25)) !important;
    border-color: rgba(168, 107, 236, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(139, 92, 246, 0.4) !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6) !important;
}

.recipe-card-overlay-optimize:hover .material-symbols-rounded {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(168, 107, 236, 0.8)) !important;
    transform: scale(1.1) rotate(10deg); /* Rotate opposite direction */
}

.recipe-card-overlay-optimize::before {
    background: linear-gradient(90deg, transparent, rgba(183, 148, 244, 0.2), transparent);
}

/* Brew Type Badge Overlay - Clean & Professional */
/* OLD STYLE - Hidden, replaced by .brew-type-badge-top-left */
.brew-type-badge-overlay {
    display: none;
}

.brew-type-badge-overlay:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(168, 107, 62, 0.6);
    transform: scale(1.05);
}

.brew-type-badge-overlay svg {
    width: 24px;
    height: 24px;
    stroke: #d4a574;
    fill: #d4a574;
}

/* AI Generated Icon Indicator */
.ai-icon-indicator {
    display: inline-block;
    font-size: 14px;
    margin-left: 6px;
    vertical-align: super;
    background: linear-gradient(135deg, #b794f6 0%, #a86bec 50%, #8b5bd6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    filter: drop-shadow(0 0 4px rgba(168, 107, 236, 0.5));
    transition: all 0.3s ease;
    cursor: help;
    line-height: 1;
}

.ai-icon-indicator:hover {
    filter: drop-shadow(0 0 8px rgba(168, 107, 236, 0.8));
    transform: scale(1.15);
}

/* Three Dots Menu */
.recipe-card-menu {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10000; /* Very high z-index to ensure it's above header content */
}

.menu-button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 107, 62, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.menu-button:hover {
    background: rgba(5, 5, 5, 0.95);
    border-color: rgba(212, 165, 116, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.menu-button svg {
    width: 18px;
    height: 18px;
    stroke: #f5deb3;;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    min-width: 160px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible; /* Changed from hidden to visible to show all menu items */
    z-index: 99999; /* High z-index to ensure it appears above everything */
}

.recipe-card-menu:hover .menu-dropdown,
.menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: rgba(244, 241, 234, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.menu-dropdown-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

.menu-dropdown-item:hover {
    background: rgba(168, 107, 62, 0.12);
    color: #eccf83;
    border-radius: 10px;
}

.menu-dropdown-item.delete-item {
    color: rgba(239, 68, 68, 0.85);
}

.menu-dropdown-item.delete-item:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.menu-dropdown-item.ai-optimize-item {
    color: rgba(183, 148, 244, 0.9);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.05));
}

.menu-dropdown-item.ai-optimize-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.12));
    color: #c4b5fd;
}

.menu-dropdown-item.ai-optimize-item svg {
    stroke: #a78bfa;
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
}

/* Pro badge inside menu items - matches .pro-badge style */
.menu-dropdown-item .pro-badge {
    margin-left: auto;
}

/* Pro badge inline - small badge inside buttons, matches .pro-badge style */
.pro-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 5px;
    margin-left: 4px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 5px;
    color: #c084fc;
    flex-shrink: 0;
    white-space: nowrap;
}

.pro-badge-inline .material-symbols-rounded {
    font-size: 10px;
    font-variation-settings: 'FILL' 1, 'wght' 600;
}

.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(168, 107, 62, 0.3) 50%, 
        transparent 100%);
    margin: 4px 0;
}

  .recipe-card-header-content {
      padding: 24px 24px 20px;
      position: relative;
      z-index: 1; /* Lower z-index than menu dropdown */
  }
  
  .recipe-card-title {
      font-size: 28px;
      font-weight: 800;
      margin-bottom: 6px;
      letter-spacing: -0.5px;
      color: #ffffff;
      line-height: 1.2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
  }

  .favorite-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(10, 9, 8, 0.85);
      border: 1px solid rgba(168, 107, 62, 0.3);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      flex-shrink: 0;
  }

  /* Default state: NOT favorited (outlined heart) */
  .favorite-btn svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: rgba(168, 107, 62, 0.5);
      stroke-width: 2;
      filter: none;
      transition: all 0.3s ease;
  }

  .favorite-btn:hover {
      background: rgba(10, 9, 8, 0.95);
      border-color: rgba(212, 165, 116, 0.5);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .favorite-btn:hover svg {
      stroke: rgba(212, 165, 116, 0.8);
      filter: drop-shadow(0 2px 8px rgba(212, 165, 116, 0.3));
  }

  /* Active state: IS favorited (filled red heart) */
  .favorite-btn.active svg {
      fill: #ef4444;
      stroke: #ef4444;
      filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.4));
  }

  .favorite-btn.active:hover svg {
      transform: scale(1.1);
      filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.6));
  }

  .favorite-btn:active {
      transform: scale(0.95);
  }
  
  /* Roaster Row - Contains roaster name + brew type badge */
  .recipe-card-roaster-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
  }

  .recipe-card-roaster {
      font-size: 11px;
      color: #d4a574;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      display: flex;
      align-items: center;
      gap: 0;
  }
  
  .recipe-card-roaster svg {
      display: none;
  }
  
  /* Brew Type Inline Badge - Simple tag style like other tags */
  /* OLD STYLE - Hidden, replaced by .brew-type-badge-top-left */
  .brew-type-inline-badge {
      display: none;
  }

.recipe-card-body {
    position: relative;
    z-index: 1;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Brewing Parameters Section */
.brewing-params-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.param-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 20px 14px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(168, 107, 62, 0.12);
    transition: all 0.3s ease;
    text-align: center;
}

.param-item:hover {
    background: rgba(25, 25, 25, 0.9);
    border-color: rgba(168, 107, 62, 0.25);
}

.param-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px auto;
}

.param-icon svg {
    width: 32px;
    height: 32px;
    stroke: rgba(212, 165, 116, 0.7);
    stroke-width: 1.5;
}

.param-value {
    font-size: 22px;
    font-weight: 800;
    color: #f4f1ea;
    letter-spacing: -0.5px;
    line-height: 1;
    text-align: center;
    width: 100%;
    margin-top: 6px;
}

.param-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(196, 181, 160, 0.5);
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 6px;
    text-align: center;
    width: 100%;
}

/* IN & OUT Section */
.dose-yield-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap; /* Allow wrapping on narrow cards */
}

.dose-yield-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px; /* Base width before wrapping */
    padding: 16px 12px; /* Reduced horizontal padding */
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(168, 107, 62, 0.12);
    transition: all 0.3s ease;
}

.dose-yield-group:hover {
    background: rgba(25, 25, 25, 0.9);
}

.dose-yield-item {
    flex: 1;
    text-align: center;
}

.dose-yield-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(196, 181, 160, 0.5);
    font-weight: 700;
    margin-bottom: 6px;
}

.dose-yield-value {
    font-size: 22px;
    font-weight: 800;
    color: #f4f1ea;
    letter-spacing: -0.5px;
}

.dose-yield-arrow {
    font-size: 20px;
    color: rgba(168, 107, 62, 0.4);
}

.ratio-badge {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap */
    padding: 10px 14px; /* Reduced padding */
    background: rgba(10, 9, 8, 0.7);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0; /* Don't squash the badge */
}

.ratio-badge:hover {
    background: rgba(10, 9, 8, 0.85);
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.ratio-badge-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(196, 181, 160, 0.65);
    font-weight: 600;
}

.ratio-badge-value {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #d4a574 0%, #eccf83 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Inline Editable Fields */
.inline-editable {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 6px;
    margin: -2px -6px;
    position: relative;
}

.inline-editable:hover {
    background: rgba(168, 107, 62, 0.15);
}

.inline-editable[contenteditable="true"] {
    outline: none;
    background: rgba(168, 107, 62, 0.25);
    box-shadow: 0 0 0 2px rgba(168, 107, 62, 0.4);
}

/* Fix gradient text for ratio badge - use pseudo-element for hover background */
.ratio-badge-value.inline-editable {
    position: relative;
}

.ratio-badge-value.inline-editable::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: transparent;
    transition: background 0.2s ease;
    z-index: -1;
}

.ratio-badge-value.inline-editable:hover {
    background: linear-gradient(135deg, #d4a574 0%, #eccf83 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.ratio-badge-value.inline-editable:hover::before {
    background: rgba(168, 107, 62, 0.15);
}

.ratio-badge-value.inline-editable[contenteditable="true"] {
    background: rgba(168, 107, 62, 0.25);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #eccf83;
    background-clip: unset;
}

.ratio-badge-value.inline-editable[contenteditable="true"]::before {
    background: transparent;
}

/* Tasting Notes Tags - Gold Accent (NO emoji) */
.recipe-tag.tasting-note-tag {
    background: rgba(242, 207, 123, 0.12);
    border: 1px solid rgba(242, 207, 123, 0.35);
    color: #f2cf7b;
    font-weight: 600;
}

.recipe-tag.tasting-note-tag:hover {
    background: rgba(242, 207, 123, 0.18);
    border-color: rgba(242, 207, 123, 0.5);
    transform: translateY(-1px);
}


/* Brew Type Badge - Top Left Overlay on Image */
.brew-type-badge-top-left {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* animation: badgeSlideIn 0.4s ease-out; */
}

/* AI Generated Badge - Bottom Right Overlay on Image - Subtle & Clean */
.recipe-card-ai-badge {
    position: absolute;
    top: auto;
    bottom: 12px;
    right: 12px;
    left: auto;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    background: linear-gradient(135deg, rgb(82, 52, 133, 0.85), rgb(76, 41, 145, 0.75));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(183, 148, 244, 0.6);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #f0abfc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}



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

.brew-type-badge-top-left svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.brew-type-badge-top-left.espresso {
    /* background: linear-gradient(135deg, rgba(139, 69, 19, 0.85) 0%, rgba(101, 67, 33, 0.85) 100%); */
    border-color: rgba(212, 165, 116, 0.3);
}

.brew-type-badge-top-left.espresso svg {
    stroke: #d4a574;
}

.brew-type-badge-top-left.espresso .brew-type-text {
    color: #f5deb3;
}

.brew-type-badge-top-left.with_milk {
    /* background: linear-gradient(135deg, rgba(160, 120, 90, 0.85) 0%, rgba(139, 90, 60, 0.85) 100%); */
    border-color: rgba(242, 207, 123, 0.3);
}

.brew-type-badge-top-left.with_milk svg {
    stroke: #f2cf7b;
}

.brew-type-badge-top-left.with_milk .brew-type-text {
    color: #ffeaa7;
}

.brew-type-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Recipe Card Rating - Inline with Roaster - INTERACTIVE */
.recipe-card-rating-inline {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 4px 8px;
    background: rgba(242, 207, 123, 0.08);
    border: 1px solid rgba(242, 207, 123, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recipe-card-rating-inline:hover {
    background: rgba(242, 207, 123, 0.15);
    border-color: rgba(242, 207, 123, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(242, 207, 123, 0.2);
}

.recipe-card-rating-inline .star-mini {
    font-size: 14px;
    color: rgba(242, 207, 123, 0.3);
    transition: all 0.2s ease;
    text-shadow: 0 0 6px rgba(242, 207, 123, 0.2);
    cursor: pointer;
    position: relative;
}

/* Individual star hover - preview rating */
.recipe-card-rating-inline .star-mini:hover {
    color: #f2cf7b;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(242, 207, 123, 0.8);
}

/* Hover effect - highlight stars up to hovered star */
.recipe-card-rating-inline:hover .star-mini:hover ~ .star-mini {
    color: rgba(242, 207, 123, 0.3);
}

.recipe-card-rating-inline .star-mini.filled {
    color: #f2cf7b;
    text-shadow: 0 0 10px rgba(242, 207, 123, 0.6),
                 0 0 4px rgba(242, 207, 123, 0.4);
    /* animation: starGlow 2s ease-in-out infinite; */
}

/* Pulse animation for rating update feedback */
@keyframes ratingPulse {
    0%, 100% {
        transform: scale(1) translateY(-1px);
    }
    50% {
        transform: scale(1.15) translateY(-2px);
        box-shadow: 0 4px 16px rgba(242, 207, 123, 0.5);
    }
}

.recipe-card-rating-inline.rating-pulse {
    animation: ratingPulse 0.6s ease;
}

@keyframes starGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 2px rgba(242, 207, 123, 0.4));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 4px rgba(242, 207, 123, 0.6));
    }
}

/* Recipe Tags Section - Limited to 5 + more badge */
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
    padding: 0 24px 24px;
}

.recipe-tag {
    padding: 7px 14px;
    background: rgba(168, 107, 62, 0.15);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #d4a574;
    text-transform: capitalize;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

/* "+X more" badge styling */
.recipe-tag.more-tag {
    background: rgba(242, 207, 123, 0.1);
    border: 1px dashed rgba(242, 207, 123, 0.4);
    color: #f2cf7b;
    font-style: italic;
    cursor: help;
    position: relative;
    overflow: hidden;
}

.recipe-tag.more-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 207, 123, 0.15), transparent);
    transition: left 0.5s ease;
}

.recipe-tag.more-tag:hover {
    background: rgba(242, 207, 123, 0.15);
    border-color: rgba(242, 207, 123, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 207, 123, 0.3);
}

.recipe-tag.more-tag:hover::before {
    left: 100%;
}

.recipe-tag:hover {
    background: rgba(168, 107, 62, 0.25);
    border-color: rgba(212, 165, 116, 0.5);
    color: #eccf83;
}

/* Rating tag with stars */
.recipe-tag.rating-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

.recipe-tag.rating-tag:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.star-mini {
    font-size: 13px;
    color: rgba(168, 107, 62, 0.3);
    line-height: 1;
    transition: all 0.2s ease;
}

.star-mini.filled {
    color: #ffd700;
    /* text-shadow: 0 0 4px rgba(255, 215, 0, 0.5); */
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
}

/* Compact pagination for header */
.pagination-compact {
    margin: 0;
    gap: 6px;
}

.pagination-compact .pagination-btn {
    width: 32px;
    height: 32px;
}

.pagination-compact .pagination-page {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 9, 8, 0.6);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(236, 207, 131, 0.7);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(10, 9, 8, 0.8);
    border-color: rgba(212, 165, 116, 0.5);
    color: #eccf83;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.pagination-pages {
    display: flex;
    gap: 8px;
}

.pagination-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 9, 8, 0.6);
    border: 1px solid rgba(168, 107, 62, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(196, 181, 160, 0.7);
    font-size: 14px;
    font-weight: 600;
}

.pagination-page:hover {
    background: rgba(10, 9, 8, 0.8);
    border-color: rgba(212, 165, 116, 0.5);
    color: #eccf83;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pagination-page.active {
    background: linear-gradient(135deg, rgba(125, 63, 38, 0.4) 0%, rgba(168, 107, 62, 0.5) 100%);
    border-color: rgba(212, 165, 116, 0.6);
    color: #eccf83;
    box-shadow: 0 4px 16px rgba(168, 107, 62, 0.25);
}

/* Filter Brew Cards - Slightly different accent */
/* Filter coffee styles removed - app now focuses on espresso-based drinks only */

/* Fade animation for filtered cards */
.recipe-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Keyboard shortcut hint */
.shortcut-hint {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    font-weight: 600;
}

/* Hide shortcut hint on mobile devices */
@media (max-width: 768px) {
    .shortcut-hint {
        display: none !important;
    }
}

.shortcut-hint.visible {
    opacity: 1;
}

.shortcut-key {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */

/* Large screens - keep 3 recipe cards + stats panel */
@media (max-width: 1600px) {
    .recent-brews-section {
        grid-template-columns: 1fr 260px;
        gap: 24px;
    }
    
    .stat-card {
        padding: 22px;
    }
}

@media (max-width: 1500px) {
    .recent-brews-section {
        grid-template-columns: 1fr 240px;
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px;
        border-radius: 20px;
    }
}

@media (max-width: 1400px) {
    .recent-brews-section {
        grid-template-columns: 1fr 220px;
        gap: 18px;
    }
    
    .stat-card {
        padding: 18px;
        border-radius: 18px;
    }

    .recent-brews-grid {
        gap: 12px; /* Reduced gap to give more room to cards */
    }

    /* Intermediate Fix for Recipe Cards */
    .recipe-card-body {
        padding: 0 16px 20px;
    }

    .dose-yield-value {
        font-size: 18px;
    }

    .ratio-badge-value {
        font-size: 16px;
    }

    .dose-yield-group {
        padding: 14px 10px;
        gap: 8px;
    }

    .ratio-badge {
        padding: 8px 12px;
        gap: 6px;
    }
}

/* At 1300px, switch to 2 recipe cards to avoid cramped layout on MacBooks/Laptops */
@media (max-width: 1300px) {
    .recent-brews-section {
        grid-template-columns: 1fr 220px;
        gap: 16px;
    }
    
    .recent-brews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .recent-brews-section {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .stats-panel {
        position: relative;
        top: 0;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .stats-panel::-webkit-scrollbar {
        display: none;
    }
    
    .stats-title {
        display: none;
    }
    
    .stat-card {
        min-height: auto;
        min-width: 200px;
        flex-shrink: 0;
    }
}

@media (max-width: 900px) {
    .recent-brews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    /* Hide brewing parameter icons on mobile as requested */
    .brewing-params-section .param-icon {
        display: none;
    }

    .brewing-params-section .param-item {
        padding: 14px 8px;
        gap: 2px;
    }

    .brewing-params-section .param-label {
        font-size: 11px; /* Bigger label on mobile */
        margin-top: 0;
        margin-bottom: 2px;
        color: rgba(196, 181, 160, 0.65);
    }

    .brewing-params-section .param-value {
        font-size: 20px; /* Reduced by 15% for better fit on mobile */
        margin-top: 0;
    }

    /* Keep grid layout */
    .brewing-params-section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .param-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-center {
        display: none;
    }
    
    .search-container {
        width: 180px;
    }
    
    .hero-right {
        display: none;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .hero-title-main {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .hero-title-accent {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .hero-title-outline {
        font-size: 48px;
        top: -10px;
        right: -15px;
    }

    .hero-buttons {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Compact Action Cards for Mobile */
    .action-card {
        padding: 16px 18px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        border-radius: 16px;
    }

    .action-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
    }

    .action-card-icon svg,
    .action-card-icon .material-symbols-rounded {
        width: 22px !important;
        height: 22px !important;
        font-size: 22px !important;
    }

    .action-card-content {
        flex: 1;
        gap: 2px;
    }

    .action-card-title {
        font-size: 15px;
    }

    .action-card-desc {
        display: none;
    }

    .action-card-footer {
        margin-top: 0;
        font-size: 11px;
        opacity: 0.7;
    }

    .action-card-footer svg {
        width: 14px;
        height: 14px;
    }

    .action-card:hover {
        transform: none;
    }

    .action-card:active {
        transform: scale(0.98);
    }

    .hero-description {
        font-size: 15px;
    }

    .container {
        padding: 10px 20px 40px;
    }

    .recipe-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    
    .recent-brews-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    
    .recipe-card {
        padding: 0;
        border-radius: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6); /* Reduced shadow to prevent clipping */
    }
    
    /* Create Recipe Card - Mobile */
    .create-recipe-card-inner {
        min-height: auto;
        padding: 20px 16px;
        border-radius: 20px;
    }
    
    .create-recipe-header {
        padding-bottom: 16px;
        margin-bottom: 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
        border-bottom: none;
    }
    
    .create-recipe-icon-container {
        margin-bottom: 0;
    }
    
    .create-recipe-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    
    .create-recipe-icon .material-symbols-rounded {
        font-size: 24px;
    }
    
    .create-recipe-icon-ring {
        inset: -2px;
        border-radius: 16px;
    }
    
    .create-recipe-title {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .create-recipe-subtitle {
        font-size: 13px;
    }
    
    .create-recipe-actions {
        gap: 10px;
    }
    
    .create-recipe-btn {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 14px;
    }
    
    .create-btn-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .create-btn-icon .material-symbols-rounded {
        font-size: 20px;
    }
    
    .create-btn-label {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .create-btn-desc {
        font-size: 11px;
        opacity: 0.8;
    }
    
    .create-btn-arrow {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }
    
    .create-btn-arrow .material-symbols-rounded {
        font-size: 14px;
    }
    
    .create-recipe-divider {
        padding: 0;
        margin: 4px 0;
    }
    
    .create-recipe-divider span {
        font-size: 10px;
        opacity: 0.5;
    }
    
    .recipe-card-header {
        border-radius: 20px 20px 0 0;
        min-height: 180px;
        max-width: 100%;
    }
    
    .recipe-card-thumbnail,
    .recipe-card-thumbnail-placeholder,
    .recipe-card-thumbnail-overlay {
        border-radius: 20px 20px 0 0;
    }
    
    .recipe-card-body {
        padding: 20px;
    }
    
    .recipe-card-header-content {
        padding: 16px 20px;
    }
    
    .recipe-ratio {
        padding: 12px;
        gap: 8px;
    }
    
    .recipe-ratio-value {
        font-size: 18px;
    }
    
    .recipe-card-thumbnail {
        height: 180px;
    }
    
    .recipe-card-title {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }
    
    .recipe-card-title > span:first-child {
        flex: 1;
        font-size: 20px;
        line-height: 1.3;
    }
    
    .recipe-card-title .favorite-btn {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        margin-top: 2px;
    }
    
    .recipe-card-title .favorite-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .recipe-card-title .ai-icon-indicator {
        display: none;
    }
    
    .recipe-card-header-content {
        padding: 16px 20px 14px;
    }
    
    .recipe-params {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }

    .section-title-with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-compact {
        width: 100%;
        justify-content: center;
    }

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

    .section-header {
        font-size: 28px;
    }
    
    .tabs-container {
        width: 100%;
    }
    
    .tab-btn {
        flex: 1;
        justify-content: center;
    }
    
    .user-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    /* Mobile Stats - App-like compact design */
    .stats-panel {
        margin-bottom: 24px;
        flex-direction: row;
        gap: 10px;
        padding: 0;
        overflow-x: visible;
    }
    
    .stats-title {
        display: none;
    }
    
    .stat-card {
        flex: 1;
        min-width: 0;
        padding: 14px 12px;
        border-radius: 14px;
        background: rgba(10, 9, 8, 0.7);
        border: 1px solid rgba(168, 107, 62, 0.2);
        animation: none;
        opacity: 1;
    }
    
    .stat-card:hover {
        transform: none;
    }
    
    .stat-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-bottom: 0;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border-width: 1.5px;
    }
    
    .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-info {
        align-items: center;
        gap: 4px;
    }
    
    .stat-info h3 {
        font-size: 9px;
        letter-spacing: 0.8px;
        color: rgba(196, 181, 160, 0.7);
    }
    
    .stat-value {
        font-size: 24px;
        letter-spacing: -1px;
    }
    
    /* Hide detailed stat content on mobile */
    .stat-content {
        display: none;
    }
    
    /* Second and third stat cards - simplified */
    .stat-card#favoriteMethodCard .stat-header,
    .stat-card#recipeSourceCard .stat-header {
        margin-bottom: 0;
    }
    
    .stat-card#favoriteMethodCard .stat-info h3,
    .stat-card#recipeSourceCard .stat-info h3 {
        font-size: 9px;
    }
    
    /* Mobile stat value for method/source cards */
    .mobile-stat-value {
        display: block;
        text-align: center;
        font-size: 15px;
        font-weight: 700;
        color: #eccf83;
        margin-top: 6px;
        letter-spacing: -0.3px;
        text-shadow: 0 1px 4px rgba(236, 207, 131, 0.3);
    }
    
    .hero {
        margin-bottom: 32px;
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-buttons {
        width: 100%;
    }
    
    .hero-right {
        text-align: right;
    }

    /* Mobile Recipe Card Fixes */
    .dose-yield-section {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .dose-yield-group {
        width: 100%;
    }

    .ratio-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Loading animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1625;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ==========================================
   PAGE TRANSITIONS
   ========================================== */

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

/* Smooth content transitions */
main {
    animation: contentFadeIn 0.4s ease-out;
}

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

/* ==========================================
   LUMO LOGO LOADER - ANIMATED
   ========================================== */

.lumo-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease; /* Synced with JS timeout */
    will-change: opacity;
}

.lumo-loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lumo-loader {
    width: 100px;
    height: 100px;
    position: relative;
    animation: earlyPulse 2s ease-in-out infinite;
}

.lumo-loader svg {
    width: 100%;
    height: 100%;
}

.lumo-loader circle {
    animation: earlyRotate 2s linear infinite;
    transform-origin: center;
}

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

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

/* Small inline loader (for buttons/cards) */
.lumo-loader-small {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
}

.lumo-loader-small svg {
    width: 100%;
    height: 100%;
    animation: spin 2s linear infinite;
}

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

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Card skeleton loading */
.card-skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.03) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    height: 200px;
}

/* Smooth page exit transition (optional for future SPA) */
.page-exit {
    animation: pageTransitionFadeOut 0.2s ease-in forwards;
}

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

/* ==========================================
   MOBILE ONLY PAGINATION (Bottom of Grid)
   ========================================== */
.mobile-only-pagination {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 32px 0 16px;
        margin-top: 12px;
        width: 100%;
        border-top: 1px solid rgba(168, 107, 62, 0.12);
        animation: contentFadeIn 0.6s ease-out;
    }
    
    .header-actions-bottom {
        gap: 16px;
        flex-direction: column !important; /* Force vertical stacking on mobile */
        align-items: center !important;
    }

    .header-actions-bottom .pagination-compact {
        width: auto !important;
        background: rgba(20, 20, 20, 0.4);
        padding: 6px 12px;
        border-radius: 14px;
        border: 1px solid rgba(168, 107, 62, 0.08);
    }

    .header-actions-bottom .view-all-btn {
        margin-top: 8px;
        width: 100%;
        max-width: 200px;
        justify-content: center;
        background: rgba(168, 107, 62, 0.08);
        border: 1px solid rgba(168, 107, 62, 0.15);
        color: #d4a574;
        font-weight: 600;
        padding: 12px;
        border-radius: 12px;
    }
}


/* ================================================
   PRO BADGE COMPONENT
   Used to mark Pro-only features across the app
   ================================================ */

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c084fc;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.pro-badge .material-symbols-rounded {
    font-size: 12px;
    font-variation-settings: 'FILL' 1, 'wght' 600;
}

.pro-badge:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

/* Pro badge variant - Small (for inline use) */
.pro-badge-sm {
    padding: 2px 6px;
    font-size: 9px;
    gap: 3px;
}

.pro-badge-sm .material-symbols-rounded {
    font-size: 10px;
}

/* Pro badge variant - Large (for cards/buttons) */
.pro-badge-lg {
    padding: 5px 12px;
    font-size: 11px;
    gap: 5px;
    border-radius: 8px;
}

.pro-badge-lg .material-symbols-rounded {
    font-size: 14px;
}

/* Pro badge positioned absolute in card corner */
.pro-badge-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

/* Pro badge with glow effect */
.pro-badge-glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
    animation: proBadgePulse 2s ease-in-out infinite;
}

@keyframes proBadgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), 0 0 50px rgba(168, 85, 247, 0.3);
    }
}

/* Pro locked overlay for cards/features */
.pro-locked {
    position: relative;
    cursor: pointer;
}

.pro-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.6) 0%, rgba(15, 15, 15, 0.4) 100%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pro-locked:hover::after {
    opacity: 1;
}

.pro-locked .pro-badge-corner {
    opacity: 0.8;
}

.pro-locked:hover .pro-badge-corner {
    opacity: 1;
    transform: scale(1.05);
}

/* Pro feature card hover hint */
.pro-feature-hint {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(168, 85, 247, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.pro-locked:hover .pro-feature-hint {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================
   DASHBOARD MOBILE FAB (Floating Action Button)
   Matches "My Recipes" design exactly
   ========================================== */
@media (max-width: 768px) {
    .dashboard-fab {
        position: fixed !important;
        bottom: 30px !important;
        right: 30px !important;
        z-index: 9999 !important;
        width: 60px !important;
        height: 60px !important;
        display: block !important;
    }

    .dashboard-fab-inner {
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 60px !important;
        height: 60px !important;
        min-height: 60px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #f2cf7b 0%, #d29658 50%, #a67c52 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(168, 107, 62, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
        transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        overflow: hidden !important;
        cursor: pointer !important;
        z-index: 10001;
    }

    /* Pulse effect for the FAB */
    .dashboard-fab-inner::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        background: var(--accent-gold);
        opacity: 0.2;
        z-index: -1;
        animation: fabPulse 2s infinite;
    }

    @keyframes fabPulse {
        0% { transform: scale(1); opacity: 0.2; }
        70% { transform: scale(1.3); opacity: 0; }
        100% { transform: scale(1.3); opacity: 0; }
    }

    /* Hide background and other elements initially */
    .dashboard-fab .create-recipe-bg,
    .dashboard-fab .create-recipe-header .create-recipe-title,
    .dashboard-fab .create-recipe-header .create-recipe-subtitle,
    .dashboard-fab .create-recipe-divider,
    .dashboard-fab .create-recipe-actions,
    .dashboard-fab .create-recipe-icon-ring {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: none;
    }

    .dashboard-fab .create-recipe-header {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .dashboard-fab .create-recipe-icon-container {
        margin: 0 !important;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
    }

    .dashboard-fab .create-recipe-icon {
        background: transparent !important;
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-fab .create-recipe-icon .material-symbols-rounded {
        color: #000000 !important;
        font-size: 34px !important;
        font-weight: 700 !important;
        font-variation-settings: 'FILL' 1, 'wght' 700 !important;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* OPEN STATE - Mobile Menu */
    .dashboard-fab.mobile-fab-open .dashboard-fab-inner {
        width: 260px !important;
        height: auto !important;
        border-radius: 24px !important;
        padding: 24px !important;
        bottom: 15px !important;
        right: -5px !important;
        background: #0f0c0a !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(242, 207, 123, 0.4) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9) !important;
        overflow: visible !important;
        cursor: default !important;
    }

    .dashboard-fab.mobile-fab-open .dashboard-fab-inner::after {
        display: none;
    }

    /* Staggered animation for options */
    .dashboard-fab.mobile-fab-open .create-recipe-btn {
        animation: fabOptionIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    }

    .dashboard-fab.mobile-fab-open .create-recipe-btn-manual { animation-delay: 0.1s; }
    .dashboard-fab.mobile-fab-open .create-recipe-divider { animation: fabOptionIn 0.3s ease both; animation-delay: 0.15s; }
    .dashboard-fab.mobile-fab-open .create-recipe-btn-ai { animation-delay: 0.2s; }

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

    .dashboard-fab.mobile-fab-open .create-recipe-header {
        display: block !important;
        opacity: 1;
        visibility: visible;
        text-align: center;
        margin-bottom: 24px !important;
    }

    .dashboard-fab.mobile-fab-open .create-recipe-header .create-recipe-title,
    .dashboard-fab.mobile-fab-open .create-recipe-header .create-recipe-subtitle {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    .dashboard-fab.mobile-fab-open .create-recipe-title {
        font-family: 'Comfortaa', sans-serif;
        font-size: 1.25rem;
        font-weight: 800;
        color: white;
        margin-bottom: 4px;
    }

    .dashboard-fab.mobile-fab-open .create-recipe-subtitle {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.5);
    }

    .dashboard-fab.mobile-fab-open .create-recipe-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        opacity: 1;
        visibility: visible;
    }

    .dashboard-fab.mobile-fab-open .create-recipe-divider {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        justify-content: center;
        align-items: center;
        color: rgba(255, 255, 255, 0.3);
        font-size: 12px;
        text-transform: uppercase;
        margin: 4px 0;
    }

    .dashboard-fab.mobile-fab-open .create-recipe-icon-container {
        transform: translateY(-10px) scale(0.8);
        margin-bottom: 8px !important;
        order: -1;
    }

    .dashboard-fab.mobile-fab-open .create-recipe-icon .material-symbols-rounded {
        color: #000000 !important;
        transform: rotate(135deg); /* Turn + into x */
    }

    /* Overlay */
    .dashboard-fab-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        pointer-events: none;
    }

    .dashboard-fab.mobile-fab-open .dashboard-fab-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Button adjustments in FAB mode */
    .dashboard-fab.mobile-fab-open .create-recipe-btn {
        width: 100% !important;
        padding: 16px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 16px !important;
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        color: white !important;
        text-align: left !important;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dashboard-fab .create-btn-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .dashboard-fab .create-btn-label {
        font-weight: 700;
        font-size: 15px;
        color: var(--accent-gold);
    }

    .dashboard-fab .create-btn-desc {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
    }

    .dashboard-fab .create-btn-icon .material-symbols-rounded {
        font-size: 24px;
        color: var(--accent-gold);
    }

    .dashboard-fab .create-btn-arrow {
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .dashboard-fab .create-btn-arrow .material-symbols-rounded {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.3);
    }

    .dashboard-fab.mobile-fab-open .create-recipe-btn:active {
        background: rgba(242, 207, 123, 0.15) !important;
        border-color: var(--accent-gold) !important;
        transform: scale(0.98);
    }
}

@media (min-width: 769px) {
    .dashboard-fab {
        display: none !important;
    }
}
    

