.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.95));
    margin: 2% auto;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #ff0000;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #cc0000;
}

.modal-content h2 {
    color: #ff0000;
    text-align: center;
    margin-bottom: 35px;
    font-size: 2.2em;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(255, 0, 0, 0.2);
    position: relative;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff6b6b, #ff0000);
    border-radius: 2px;
}

.custom-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.03), rgba(255, 255, 255, 0.8));
    border-radius: 16px;
    border: 2px solid rgba(255, 0, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.custom-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff6b6b, #ff0000);
    border-radius: 16px 16px 0 0;
}

.custom-section h3 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.options-grid label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.9));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.options-grid label:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 255, 255, 0.95));
    border-color: rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.options-grid label:hover::before {
    left: 100%;
}

.options-grid input[type="radio"],
.options-grid input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff0000;
    cursor: pointer;
}

.options-grid input[type="radio"]:checked+span,
.options-grid input[type="checkbox"]:checked+span {
    font-weight: 700;
    color: #ff0000;
    text-shadow: 0 1px 2px rgba(255, 0, 0, 0.2);
}

.options-grid label:has(input:checked) {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 255, 255, 0.9));
    border-color: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    transform: scale(1.02);
}

.options-grid span {
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-total {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 255, 255, 0.9));
    border-radius: 12px;
    border: 2px solid rgba(255, 0, 0, 0.2);
}

.custom-total h3 {
    color: #000000;
    font-size: 1.8em;
    margin: 0;
}

#custom-price {
    color: #ff0000;
    font-weight: 700;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.modal-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

#add-custom-burger {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

#add-custom-burger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

#cancel-custom {
    background: linear-gradient(135deg, #666666, #333333);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#cancel-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}