/* Universal Popup Modal Styles */
.sh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.sh-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.sh-modal-box {
    background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #fff;
    box-sizing: border-box;
}

.sh-modal-box * {
    box-sizing: border-box;
}

.sh-modal-overlay.is-active .sh-modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.sh-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8b2c3;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.sh-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sh-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.sh-modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.2;
}

.sh-modal-subtitle {
    font-size: 14px;
    color: #a8b2c3;
    line-height: 1.5;
}

.sh-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sh-modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sh-modal-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a95a3;
}

.sh-modal-input, .sh-modal-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sh-modal-input:focus, .sh-modal-select:focus {
    outline: none;
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.25);
}

.sh-modal-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8b2c3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}
.sh-modal-select option {
    background: #0d1b2e;
    color: #fff;
}

.sh-modal-submit {
    margin-top: 8px;
    padding: 16px;
    background: #C62828;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.sh-modal-submit:hover {
    background: #b71c1c;
    transform: translateY(-1px);
}

.sh-modal-submit:active {
    transform: translateY(1px);
}

.sh-modal-submit:disabled {
    background: #a8b2c3;
    cursor: not-allowed;
    transform: none;
}

.sh-modal-status {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    display: none;
    line-height: 1.4;
}

.sh-modal-status.is-success {
    display: block;
    color: #4CAF50;
}

.sh-modal-status.is-error {
    display: block;
    color: #F44336;
}

body.sh-modal-open {
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .sh-modal-box {
        padding: 32px 24px;
    }
    .sh-modal-title {
        font-size: 20px;
    }
}
