/* Liquid Glass Modal */
/* 阻止背景滚动 */
body.glass-modal-open {
    overflow: hidden !important;
}

.glass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.glass-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.glass-modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    padding: 24px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    color: #1f2937;
}

.glass-modal-overlay.show .glass-modal-content {
    transform: scale(1);
}

.glass-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.glass-modal-body {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

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

.glass-btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.glass-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.glass-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.glass-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: #4b5563;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #111827;
}

/* Specific styling for Info Modal content */
.glass-info-box {
    background: #e0f2fe;
    color: #0f172a;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    font-family: monospace;
    font-weight: bold;
}

.glass-info-box-yellow {
    background: #fff3cd;
    color: #1f2937;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
}

.glass-modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    outline: none;
}

.glass-modal-input:focus {
    background: white;
    border-color: #6366f1;
}