:root {
    --primary-color: #ff8fab;
    --bg-color: #ffe5ec;
    --card-bg: #ffffff;
    --text-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: #fb6f92;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
    margin-bottom: 2rem;
}

.nail-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 4px solid transparent;
    position: relative;
}

.nail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(251, 111, 146, 0.3);
}

.nail-card.selected {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(251, 111, 146, 0.5);
}

.nail-card.selected::after {
    content: '💙';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.nail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.nail-title {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fb6f92;
}

.confirm-btn {
    background-color: #fb6f92;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(251, 111, 146, 0.4);
    margin-bottom: 3rem;
}

.confirm-btn:hover {
    background-color: #ff8fab;
    transform: scale(1.05);
}

.confirm-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

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

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: #fb6f92;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.send-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    color: white;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

.wa-btn {
    background-color: #25D366;
}

.close-btn {
    background-color: #ffe5ec;
    color: #888;
    border: 1px solid #ffe5ec;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #ff8fab;
    color: #333;
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .nail-image {
        height: 180px;
    }
    h1 {
        font-size: 2rem;
    }
}
