/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Floating Crepes Background */
.floating-crepe {
    position: fixed;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    transform: rotate(-15deg);
}

.floating-crepe::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 7px;
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.8;
    transform: rotate(15deg);
}

.floating-crepe::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.9;
    box-shadow: 
        6px 4px 0 0 rgba(255, 255, 255, 0.9),
        3px 7px 0 0 rgba(255, 255, 255, 0.7),
        9px 8px 0 0 rgba(255, 255, 255, 0.8);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(-15deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-50px) rotate(75deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) rotate(165deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-50px) rotate(255deg);
        opacity: 0.6;
    }
}

/* Different sizes and speeds for variety */
.floating-crepe:nth-child(1) {
    top: 2%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
    width: 20px;
    height: 20px;
    transform: rotate(-20deg);
}

.floating-crepe:nth-child(2) {
    top: 8%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
    width: 28px;
    height: 28px;
    transform: rotate(10deg);
}

.floating-crepe:nth-child(3) {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
    animation-duration: 9s;
    width: 18px;
    height: 18px;
    transform: rotate(-30deg);
}

.floating-crepe:nth-child(4) {
    top: 40%;
    right: 5%;
    animation-delay: 3s;
    animation-duration: 6s;
    width: 25px;
    height: 25px;
    transform: rotate(25deg);
}

.floating-crepe:nth-child(5) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 8s;
    width: 22px;
    height: 22px;
    transform: rotate(-10deg);
}

.floating-crepe:nth-child(6) {
    top: 3%;
    left: 50%;
    animation-delay: 5s;
    animation-duration: 7s;
    width: 32px;
    height: 32px;
    transform: rotate(15deg);
}

.floating-crepe:nth-child(7) {
    top: 70%;
    right: 20%;
    animation-delay: 6s;
    animation-duration: 9s;
    width: 18px;
    height: 18px;
    transform: rotate(-25deg);
}

.floating-crepe:nth-child(8) {
    top: 90%;
    right: 10%;
    animation-delay: 7s;
    animation-duration: 6s;
    width: 25px;
    height: 25px;
    transform: rotate(5deg);
}

/* Header Styles */
.header {
   
    padding: 40px 0 30px 0;
    
}

.header-content {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.main-title {
    font-size: 4rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ff4b4b 0%, #ffffff 50%, #ffd700 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 4px;
    line-height: 0.9;
    animation: waveGradient 4s linear infinite;
    filter: drop-shadow(0 6px 12px rgba(255, 75, 75, 0.4));
    
}

@keyframes waveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    opacity: 0.95;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.info-section > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-section i {
    color: #fbbf24;
    font-size: 1rem;
}

/* Logo Section - now in header */
.logo-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.logo-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border: 3px solid #ff4b4b;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(255, 75, 75, 0.4);
}

/* Main Content */
.main-content {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px 40px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.category-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 50%, #2d2d2d 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 15px 12px; /* Reduced padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 75, 75, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 110px; /* Reduced width */
    height: 120px; /* Reduced height */
    flex: 1;
    will-change: transform;
    transform: translateZ(0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

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

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, transparent 50%, rgba(255, 75, 75, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Removed hover effects for mobile-first design */

.category-icon {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.category-icon i {
    font-size: 1.8rem; /* Reduced from 2rem */
    color: #ff4b4b;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(255, 75, 75, 0.5));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-image {
    width: 35px; /* Reduced from 40px */
    height: 35px; /* Reduced from 40px */
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(255, 75, 75, 0.5));
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Removed hover effects for mobile-first design */

/* Make toast icon slightly bigger to match others */
.category-card[data-category="toast"] .category-image {
    width: 40px; /* Reduced from 45px */
    height: 40px; /* Reduced from 45px */
    
}

.category-card h3 {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 6px; /* Reduced margin */
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.6px; /* Reduced letter spacing */
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.category-card p {
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: #f0f0f0;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    opacity: 0.9;
    line-height: 1.4;
    letter-spacing: 0.3px; /* Reduced letter spacing */
    position: relative;
    z-index: 2;
}

/* Style the category rows with flexbox */
.category-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 15px;
}

.category-row:last-child {
    margin-bottom: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-overflow-scrolling: touch;
    /* Prevent body scroll when modal is open */
    overflow: hidden;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 20px 25px 20px 45px; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff4b4b;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4b4b, #ffd700, #ff4b4b);
    background-size: 200% 100%;
    animation: headerGradient 3s ease-in-out infinite;
}

@keyframes headerGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.modal-header h2 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    letter-spacing: 0.8px; /* Reduced letter spacing */
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    margin: 0 50px; /* Reduced margins */
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem; /* Reduced from 1.5rem */
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 12px; /* Adjusted position */
    right: 12px; /* Adjusted position */
    z-index: 10;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.back-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 35px; /* Reduced from 40px */
    height: 35px; /* Reduced from 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    position: absolute;
    top: 12px; /* Adjusted position */
    left: 12px; /* Adjusted position */
    z-index: 10;
}

.back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.back-btn i {
    font-size: 1rem; /* Reduced from 1.1rem */
}

/* Drinks Styles */
.drinks-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 15px */
}

.drink-category {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    /* Ensure proper stacking */
    position: relative;
    z-index: 1;
}

.drink-category:last-child {
    margin-bottom: 0;
}

/* Ensure proper spacing between categories */
.drink-category + .drink-category {
    margin-top: 0;
}

/* Improve dropdown performance */
.category-content {
    /* Use transform instead of height for better performance */
    transform-origin: top;
    will-change: transform, opacity;
}

/* Prevent layout shifts when dropdowns open/close */
.ingredients-list, .drinks-container {
    /* Reserve space for potential content */
    min-height: 0;
    /* Ensure smooth transitions */
    transition: height 0.3s ease;
}



.drink-item {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 10px; /* Reduced from 12px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #444;
    margin: 6px; /* Reduced from 8px */
    transition: all 0.3s ease;
}

.drink-item:hover {
    transform: translateX(5px);
    border-color: #ff4b4b;
    background: #333;
}

.drink-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-right: 10px; /* Reduced from 12px */
}

.drink-name {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 500;
    color: #ffffff;
}

.drink-price {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 600;
    color: #ffd700;
}

.add-drink-btn {
    width: 28px; /* Reduced from 32px */
    height: 28px; /* Reduced from 32px */
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 75, 75, 0.3);
    font-size: 0.9rem; /* Reduced from 1rem */
}

.add-drink-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 75, 75, 0.4);
}

.add-drink-btn.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.add-drink-btn i {
    transition: all 0.3s ease;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Menu Items */
.menu-item {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 15px; /* Reduced from 20px */
    margin-bottom: 12px; /* Reduced from 15px */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item:hover {
    background: #333;
}

.menu-item-actions {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 15px */
}

.add-item-btn {
    width: 35px; /* Reduced from 40px */
    height: 35px; /* Reduced from 40px */
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 75, 75, 0.3);
    font-size: 1.1rem; /* Reduced from 1.2rem */
}

.add-item-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 75, 75, 0.4);
}

.add-item-btn.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.add-item-btn i {
    transition: all 0.3s ease;
}

/* Ingredient Categories */
.ingredient-category {
    margin-bottom: 15px; /* Reduced from 20px */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    /* Ensure proper stacking */
    position: relative;
    z-index: 1;
}

.ingredient-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px; /* Reduced padding */
    background: linear-gradient(135deg, rgba(255, 75, 75, 0.1) 0%, rgba(255, 75, 75, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Ensure header stays on top */
    position: relative;
    z-index: 2;
}

.category-header:hover {
    background: linear-gradient(135deg, rgba(255, 75, 75, 0.15) 0%, rgba(255, 75, 75, 0.08) 100%);
}

.category-header.active {
    background: linear-gradient(135deg, rgba(255, 75, 75, 0.2) 0%, rgba(255, 75, 75, 0.1) 100%);
    border-bottom-color: rgba(255, 75, 75, 0.3);
}

.category-header h4 {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    /* Prevent text wrapping issues */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 10px;
}

.category-icon {
    font-size: 0.9rem; /* Reduced from 1rem */
    color: #ff4b4b;
    transition: all 0.3s ease;
    /* Ensure icon doesn't shrink */
    flex-shrink: 0;
}

.category-header.active .category-icon {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding: 8px 15px; /* Reduced padding */
    background: rgba(0, 0, 0, 0.2);
    /* Ensure proper stacking and prevent layout issues */
    position: relative;
    z-index: 1;
    /* Smooth animation */
    transition: all 0.3s ease;
    /* Prevent content from affecting other elements */
    overflow: hidden;
}

.category-content.show {
    display: block;
    /* Add animation for smooth opening */
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.menu-item-info h4 {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 5px; /* Reduced from 6px */
    color: #ffffff;
    letter-spacing: 0.2px; /* Reduced letter spacing */
}

.menu-item-info p {
    font-size: 0.9rem; /* Reduced from 0.95rem */
    color: #a3a3a3;
    font-family: 'Inter', sans-serif;
    margin-bottom: 6px; /* Reduced from 8px */
    line-height: 1.4; /* Reduced from 1.5 */
    letter-spacing: 0.1px; /* Reduced letter spacing */
}

.menu-item-price {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    font-weight: 700;
    color: #ffd700;
}

/* Selection Grid Styles */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px; /* Reduced from 20px */
    margin-bottom: 15px; /* Reduced from 20px */
}

.selection-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 50%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 16px;
    padding: 20px; /* Reduced from 25px */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

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

.selection-card.custom {
    border-color: #ffd700;
}

/* Removed hover effects for mobile-first design */

.selection-icon {
    margin-bottom: 12px; /* Reduced from 15px */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px; /* Reduced from 60px */
    height: 50px; /* Reduced from 60px */
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.selection-card:not(.custom) .selection-icon {
    background: none;
}

.selection-card.custom .selection-icon {
    background: none;
}

.selection-icon i {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    color: #ffffff;
}

.selection-image {
    width: 40px; /* Reduced from 50px */
    height: 40px; /* Reduced from 50px */
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(255, 75, 75, 0.3));
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Removed hover effects for mobile-first design */

.selection-card h3 {
    font-size: 1.2rem; /* Reduced from 1.3rem */
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin-bottom: 6px; /* Reduced from 8px */
    letter-spacing: 0.4px; /* Reduced letter spacing */
    position: relative;
    z-index: 2;
}

.selection-card p {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: #a3a3a3;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px; /* Reduced from 15px */
    line-height: 1.3; /* Reduced from 1.4 */
    position: relative;
    z-index: 2;
}

.selection-price {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #ffd700;
    position: relative;
    z-index: 2;
}

.selection-card.custom .selection-price {
    color: #ffd700;
}

/* New Custom Builder Styles - Matching the Image Design */
.custom-builder-new {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced from 20px */
}

.builder-step {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 15px; /* Reduced from 20px */
    border: 1px solid #444;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced from 12px */
    margin-bottom: 12px; /* Reduced from 15px */
}

.step-number {
    width: 25px; /* Reduced from 30px */
    height: 25px; /* Reduced from 30px */
    background: #ff4b4b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem; /* Reduced from 1rem */
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Base Card Styles */
.base-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 12px; /* Reduced from 15px */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.base-card:hover {
    border-color: #ff4b4b;
    background: #2a2a2a;
}

.base-card.selected {
    border-color: #10b981;
}

.base-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Reduced from 12px */
}

.base-info h4 {
    font-size: 0.9rem; /* Reduced from 1rem */
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.base-price {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 700;
    color: #ffd700;
}

.base-card.selected .base-price {
    color: #ffffff;
}

.base-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px; /* Reduced from 10px */
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 75, 75, 0.3);
}

.base-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 75, 75, 0.4);
}

.base-card.selected .base-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Type Buttons Styles */
.type-buttons {
    display: flex;
    gap: 8px; /* Reduced from 10px */
}

.type-btn {
    flex: 1;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #ff4b4b;
    border-radius: 6px;
    padding: 10px; /* Reduced from 12px */
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-btn.active {
    background: #ff4b4b;
    border-color: #ff4b4b;
}

.type-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Ingredients List Styles */
.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduced from 8px */
}

.ingredient-item-new {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 10px; /* Reduced from 12px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #444;
}

.ingredient-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-right: 10px; /* Reduced from 12px */
}

.ingredient-name {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 500;
    color: #ffffff;
}

.ingredient-price {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 600;
    color: #ffffff;
}

.add-ingredient-btn {
    width: 28px; /* Reduced from 32px */
    height: 28px; /* Reduced from 32px */
    background: #ff4b4b;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.add-ingredient-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.add-ingredient-btn.added {
    background: #059669;
}

.add-ingredient-btn i {
    font-size: 0.7rem; /* Reduced from 0.8rem */
}

/* Builder Summary New Styles */
.builder-summary-new {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 15px; /* Reduced from 20px */
    border: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px; /* Reduced from 15px */
}

.summary-total h3 {
    font-size: 0.9rem; /* Reduced from 1rem */
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0; /* Reduced bottom margin */
}

.total-price {
    font-size: 1.2rem; /* Reduced from 1.4rem */
    font-weight: 800;
    color: #ff4b4b;
}

.add-to-order-btn {
    background: #ff4b4b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px; /* Reduced padding */
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-order-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Custom Builder Styles */
.custom-builder {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.builder-section {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #333;
}

.builder-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #ff4b4b;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.builder-title::before {
    content: '';
    width: 3px;
    height: 20px;
    background: #ff4b4b;
    border-radius: 2px;
}

.builder-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.builder-option {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

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

.builder-option:hover::before {
    left: 100%;
}

.builder-option:hover {
    border-color: #ff4b4b;
    background: #333;
    transform: translateY(-2px);
}

.builder-option.selected {
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    border-color: #ff4b4b;
    color: #ffffff;
}

.builder-option.selected .option-icon {
    background: rgba(255, 255, 255, 0.2);
}

.builder-option.selected .option-price {
    color: #ffffff;
}

.option-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 75, 75, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-icon i {
    font-size: 1rem;
    color: #ff4b4b;
    transition: all 0.3s ease;
}

.builder-option.selected .option-icon i {
    color: #ffffff;
}

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

.option-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff4b4b;
    font-family: 'Poppins', sans-serif;
}

.builder-summary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #ff4b4b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin-bottom: 5px;
}

.summary-price {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #ff4b4b;
}

.builder-btn {
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: fit-content;
}

.builder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 75, 75, 0.4);
}

/* Custom Order Styles */
.custom-order-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fbbf24;
    border-bottom: 2px solid #ff4b4b;
    padding-bottom: 8px;
}

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

.ingredient-item {
    background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
    border: 1px solid #ff4b4b;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.ingredient-item:hover {
    transform: scale(1.05);
    border-color: #fbbf24;
    box-shadow: 0 5px 15px rgba(255, 75, 75, 0.3);
}

.ingredient-item.selected {
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    border-color: #fbbf24;
    color: #ffffff;
}

.ingredient-item h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.ingredient-item .price {
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 600;
}

/* Order Summary */
.order-summary {
    margin-bottom: 20px;
}

.order-item {
    background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
    border: 1px solid #ff4b4b;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-info p {
    font-size: 0.8rem;
    color: #a3a3a3;
}

.order-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
}

.remove-item-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.remove-item-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.remove-item-btn i {
    font-size: 1rem;
}

.order-total {
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.order-total h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(255, 75, 75, 0.3);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 75, 75, 0.5);
    background: linear-gradient(135deg, #dc2626 0%, #ff4b4b 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.4);
}

.order-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .logo-image {
        width: 200px;
        height: 200px;
    }
    
    .category-card {
        padding: 25px 20px;
        min-height: 140px;
        border-radius: 25px;
    }
    
    .category-icon i {
        font-size: 2.4rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
    }
    
    .ingredient-grid {
        grid-template-columns: 1fr;
    }
    
    /* Enhanced mobile scrolling */
    .modal-body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        overscroll-behavior: contain;
    }
    
    .main-content {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        overscroll-behavior: contain;
    }
    
    /* Prevent horizontal scrolling on mobile */
    body {
        overflow-x: hidden;
        width: 100%;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .main-title {
        font-size: 2rem; /* Even smaller for very small screens */
        letter-spacing: 1px; /* Further reduced */
    }
    
    .category-card {
        width: 85px; /* Even smaller */
        height: 95px; /* Even smaller */
        padding: 12px 8px; /* Even smaller padding */
    }
    
    .category-image {
        width: 22px; /* Even smaller */
        height: 22px; /* Even smaller */
    }
    
    .category-card[data-category="toast"] .category-image {
        width: 27px; /* Even smaller */
        height: 27px; /* Even smaller */
    }
    
    .category-card h3 {
        font-size: 0.75rem; /* Even smaller */
        line-height: 1.1;
    }
    
    .category-card p {
        font-size: 0.6rem; /* Even smaller */
        line-height: 1.2;
    }
    
    /* Improve modal layout for very small screens */
    .modal-content {
        width: 99%; /* Almost full width */
        max-height: 95vh; /* Almost full height */
        border-radius: 8px; /* Smaller radius */
        margin: 10px; /* Smaller margin */
    }
    
    .modal-header {
        padding: 10px 12px 10px 30px; /* Even smaller padding */
    }
    
    .modal-header h2 {
        font-size: 0.9rem; /* Even smaller */
        margin: 0 25px; /* Even smaller margins */
        line-height: 1.2;
    }
    
    .close-btn {
        font-size: 0.9rem; /* Even smaller */
        top: 6px; /* Adjusted position */
        right: 6px; /* Adjusted position */
        width: 32px; /* Smaller size */
        height: 32px; /* Smaller size */
    }
    
    .back-btn {
        width: 26px; /* Even smaller */
        height: 26px; /* Even smaller */
        top: 6px; /* Adjusted position */
        left: 6px; /* Adjusted position */
    }
    
    .back-btn i {
        font-size: 0.7rem; /* Even smaller */
    }
    
    .modal-body {
        padding: 8px; /* Even smaller padding */
    }
    
    /* Improve touch targets for very small screens */
    .add-item-btn, .add-ingredient-btn, .add-drink-btn {
        width: 32px; /* Minimum size for touch */
        height: 32px; /* Minimum size for touch */
        font-size: 0.9rem;
    }
    
    .add-item-btn i, .add-ingredient-btn i, .add-drink-btn i {
        font-size: 0.8rem;
    }
    
    /* Ensure proper text sizing */
    .ingredient-name, .drink-name, .menu-item-info h4 {
        font-size: 0.75rem; /* Even smaller */
        line-height: 1.2;
    }
    
    .ingredient-price, .drink-price, .menu-item-price {
        font-size: 0.75rem; /* Even smaller */
    }
    
    /* Improve button text */
    .type-btn, .base-btn, .add-to-order-btn {
        font-size: 0.75rem; /* Even smaller */
        padding: 8px 12px; /* Adjusted padding */
        min-height: 40px; /* Minimum touch target */
    }
    
    /* Ensure proper spacing */
    .custom-builder-new {
        gap: 8px; /* Even smaller gap */
    }
    
    .builder-step {
        padding: 10px; /* Further reduced */
        margin-bottom: 8px; /* Even smaller margin */
    }
    
    .step-header {
        gap: 6px; /* Even smaller gap */
        margin-bottom: 8px; /* Even smaller margin */
    }
    
    .step-number {
        width: 20px; /* Even smaller */
        height: 20px; /* Even smaller */
        font-size: 0.7rem; /* Even smaller */
    }
    
    .step-header h3 {
        font-size: 0.8rem; /* Even smaller */
        line-height: 1.2;
    }
    
    /* Improve floating button for very small screens */
    .floating-order-btn {
        bottom: 15px; /* Even smaller */
        right: 15px; /* Even smaller */
        width: 55px; /* Even smaller */
        height: 55px; /* Even smaller */
    }
    
    .floating-order-btn i {
        font-size: 1.3rem; /* Even smaller */
    }
    
    .floating-order-btn span {
        width: 22px; /* Even smaller */
        height: 22px; /* Even smaller */
        font-size: 0.7rem; /* Even smaller */
    }
    
    body {
        font-size: 12px; /* Even smaller base font */
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 75, 75, 0.3);
    border-top: 4px solid #ff4b4b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Error Modal */
.error-modal .modal-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.error-message {
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Order Actions */
.order-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.order-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top: 2px solid #ff4b4b;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

.footer p:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
} 

/* Google Review Section */
.review-section {
    max-width: 400px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.review-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 50%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.review-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.review-card p {
    color: #a3a3a3;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.review-stars {
    color: #ffd700;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.review-stars i {
    font-size: 1.2rem;
}

.review-btn {
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.review-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ff4b4b 100%);
}

/* Translation Button Styles */
.translation-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.translate-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 60px;
    height: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.translate-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.translate-btn:active {
    transform: translateY(0) scale(0.98);
}

.translate-btn i {
    font-size: 1.2rem;
    color: #4f46e5;
}

.translate-btn span {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #4f46e5;
}

/* Translation state indicators */
.translate-btn.translated {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

.translate-btn.translated i {
    color: white;
}

.translate-btn.translated span {
    color: white;
}

.translate-btn.translated:hover {
    background: rgba(16, 185, 129, 1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* Responsive design for translation button */
@media (max-width: 768px) {
    .translation-container {
        top: 15px;
        right: 15px;
    }
    
    .translate-btn {
        padding: 6px 14px;
        min-width: 56px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .translate-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .translation-container {
        top: 12px;
        right: 12px;
    }
    
    .translate-btn {
        padding: 5px 12px;
        min-width: 52px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .translate-btn i {
        font-size: 0.9rem;
    }
}
