/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
    background: white;
}

/* White background - no animation needed */

/* Header styles */
.app-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin: 16px;
}

/* User info section (left side) */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.user-status {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* City selector (right side) */
.city-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* Show all cafes button */
.btn-show-all {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-show-all:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.city-select {
    padding: 12px 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.city-select:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.city-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.city-select option {
    padding: 8px;
    color: #333;
    background: white;
}

/* Main content */
.main-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* App menu */
.app-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Menu items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 16px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
}

.menu-item:active {
    transform: translateY(0);
}

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

.menu-text {
    white-space: nowrap;
    font-weight: 600;
}

/* Specific menu item styles */
.loyalty-btn {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(74, 144, 226, 0.05));
    border-color: rgba(74, 144, 226, 0.2);
}

.loyalty-btn:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(74, 144, 226, 0.1));
    border-color: rgba(74, 144, 226, 0.3);
}

.favorites-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border-color: rgba(255, 107, 107, 0.2);
}

.favorites-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border-color: rgba(255, 107, 107, 0.3);
}

/* Logo animation removed */

.app-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}



/* Cafes list container */
.cafes-list {
    padding: 0 16px;
    width: 100%;
}

/* Cafe section header */
.cafe-section-header {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Cafes grid */
.cafes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

/* Responsive grid for mobile - only very small phones get 1 column */
@media (max-width: 350px) {
    .cafes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.loading {
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
    border-radius: 25px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

/* Cafe card */
.cafe-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cafe-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.cafe-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cafe-info {
    padding: 16px;
    position: relative;
    min-height: 140px; /* Уменьшаем высоту карточки */
}

.cafe-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px; /* Уменьшаем отступ */
}

.cafe-city {
    font-size: 14px;
    color: white;
    font-weight: 600;
    margin-bottom: 10px; /* Уменьшаем отступ */
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    padding: 6px 12px; /* Уменьшаем padding */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cafe-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 35px; /* Уменьшаем отступ для времени */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 36px; /* Уменьшаем высоту описания */
}

.cafe-hours {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 8px;
    border-radius: 6px;
    border-left: 2px solid #ddd;
    position: absolute;
    bottom: 16px; /* Привязываем к нижней границе */
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
}

/* No cafes message */
.no-cafes {
    text-align: center;
    color: white;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
    border-radius: 25px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.no-cafes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.no-cafes p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    margin: 5% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.close {
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Cafe detail styles in modal */
.cafe-detail-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.cafe-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.coffee-icon {
    font-size: 80px;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.cafe-detail-info {
    padding: 28px;
    background: white;
    border-radius: 0 0 24px 24px;
}

.cafe-detail-name {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 16px;
}

.cafe-detail-city {
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.cafe-detail-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 28px;
}

.cafe-detail-hours {
    background: rgba(74, 144, 226, 0.05);
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid #4A90E2;
}

.cafe-detail-hours h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cafe-detail-hours p {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .app-header {
        padding: 12px 16px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .city-select {
        min-width: 140px;
        font-size: 13px;
        padding: 10px 16px;
        padding-right: 35px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .app-title h1 {
        font-size: 32px;
    }
    
    .coffee-icon {
        font-size: 28px;
    }
    
    .cafe-card {
        border-radius: 20px;
    }
    
    .cafe-info {
        padding: 20px;
    }
}

/* Animation for cafe cards */
.cafe-card {
    animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Loading animation */
.loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1.2s ease-in-out infinite;
    margin-left: 12px;
}

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

/* Beautiful gradient buttons */
.btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Modal styles for menu */
.loyalty-modal,
.favorites-modal {
    padding: 20px;
    text-align: center;
}

.loyalty-modal h2,
.favorites-modal h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Loyalty stats */
.loyalty-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

/* Loyalty info */
.loyalty-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.loyalty-info p {
    margin: 10px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

/* Favorites */
.empty-favorites {
    padding: 40px 20px;
    text-align: center;
}

.empty-favorites p {
    margin: 15px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.favorite-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.favorite-item h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.favorite-item p {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
}

.remove-favorite {
    background: linear-gradient(135deg, #FF6B6B, #EE5A52);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.remove-favorite:hover {
    background: linear-gradient(135deg, #EE5A52, #D64545);
    transform: translateY(-1px);
}

/* Responsive design for menu */
@media (max-width: 600px) {
    .app-menu {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .menu-item {
        width: 100%;
        justify-content: center;
    }
    
    .loyalty-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* Cafe photo styles */
.cafe-photo {
    width: 100%;
    height: 100px; /* Уменьшаем высоту фото */
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.cafe-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cafe-card:hover .cafe-thumbnail {
    transform: scale(1.05);
}

.cafe-placeholder {
    font-size: 48px;
    color: #adb5bd;
    text-align: center;
}

/* Cafe detail photo in modal */
.cafe-detail-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Responsive photo adjustments */
@media (max-width: 600px) {
    .cafe-photo {
        height: 80px; /* Еще меньше для мобильных */
    }
    
    .cafe-detail-photo {
        height: 150px;
    }
    
    .cafe-info {
        min-height: 120px; /* Еще меньше для мобильных */
        padding: 14px;
    }
    
    .cafe-hours {
        bottom: 14px;
        left: 14px;
        right: 14px;
        width: calc(100% - 28px);
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .cafe-description {
        max-height: 32px; /* Меньшая высота для мобильных */
        font-size: 12px;
        margin-bottom: 30px; /* Уменьшенный отступ для времени */
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .cafe-info {
        min-height: 110px; /* Еще компактнее */
        padding: 12px;
    }
    
    .cafe-hours {
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        font-size: 10px;
        padding: 3px 5px;
    }
    
    .cafe-description {
        max-height: 28px;
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 25px; /* Уменьшенный отступ */
    }
    
    .cafe-name {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .cafe-city {
        font-size: 12px;
        margin-bottom: 8px;
        padding: 4px 8px;
    }
    
    .cafe-photo {
        height: 70px; /* Минимальная высота для маленьких экранов */
    }
}

/* Cafe header with favorite button */
.cafe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.cafe-header h3 {
    margin: 0;
    flex: 1;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}

.favorite-btn.favorited {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Responsive adjustments for favorite button */
@media (max-width: 600px) {
    .favorite-btn {
        font-size: 18px;
        min-width: 28px;
        height: 28px;
    }
}

@media (max-width: 375px) {
    .favorite-btn {
        font-size: 16px;
        min-width: 24px;
        height: 24px;
    }
}

/* Cafe address */
.cafe-address {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Working hours list */
.working-hours-list {
    margin-bottom: 16px;
}

.working-hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
    padding: 2px 0;
}

.day-name {
    font-weight: 500;
    color: #555;
}

.time-range {
    color: #666;
}

/* Loyalty apply button */
.loyalty-apply-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
}

.loyalty-apply-btn:hover {
    background: linear-gradient(135deg, #357ABD, #2E6AA8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.loyalty-apply-btn:active {
    transform: translateY(0);
}

/* Loyalty modal styles */
.loyalty-apply-modal {
    padding: 20px;
}

.loyalty-apply-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.cafe-loyalty-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.cafe-loyalty-info h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 18px;
}

.cafe-loyalty-info p {
    margin: 6px 0;
    color: #666;
    font-size: 14px;
}

.loyalty-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-checkin,
.btn-view-benefits {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkin {
    background: linear-gradient(135deg, #28A745, #20C997);
    color: white;
}

.btn-checkin:hover {
    background: linear-gradient(135deg, #20C997, #1EA085);
    transform: translateY(-2px);
}

.btn-view-benefits {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: white;
}

.btn-view-benefits:hover {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    transform: translateY(-2px);
}

/* Loyalty benefits modal */
.loyalty-benefits-modal {
    padding: 20px;
}

.loyalty-benefits-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

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

.benefit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
}

.benefit-level {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.benefit-desc {
    color: #666;
    font-size: 13px;
}
