/* GPS X Œ\ ¨ì ¤À| */
.location-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-content p {
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e5e5e5;
}

.btn-allow {
    background: #007bff;
    color: white;
}

.btn-allow:hover {
    background: #0056b3;
}

/* |°  $ H´ ¨ì */
.browser-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    margin-top: 10vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: settingsModalSlideIn 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.settings-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.settings-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.settings-header h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
}

.settings-description {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

.settings-steps {
    padding: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.step-number {
    background: #667eea;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 16px;
}

.step-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.settings-alternative {
    padding: 0 30px;
    margin-bottom: 20px;
}

.settings-alternative p {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #856404;
}

.settings-buttons {
    padding: 20px 30px 30px;
    text-align: center;
}

.btn-retry {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

@keyframes settingsModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ¨| Q */
@media (max-width: 480px) {
    .settings-modal-content {
        margin-top: 5vh;
        border-radius: 16px;
    }
    
    .settings-header {
        padding: 30px 20px 15px;
        border-radius: 16px 16px 0 0;
    }
    
    .settings-icon {
        font-size: 48px;
    }
    
    .settings-header h3 {
        font-size: 20px;
    }
    
    .settings-steps {
        padding: 20px;
    }
    
    .step-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .step-text {
        font-size: 15px;
    }
    
    .modal-content {
        padding: 20px;
        max-width: 90%;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-buttons button {
        width: 100%;
    }
}