/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7fb;
    color: #333;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 15px 30px;
}

.lang-switch {
    display: flex;
    gap: 15px;
    font-size: 13px;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
}

.lang-switch .active {
    color: #0284c7;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 28px;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 8px;
}

.sub-title {
    font-size: 14px;
    color: #94a3b8;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Alerts */
.alerts-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.alert {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    border: 1px solid transparent;
}

.alert .icon {
    margin-right: 10px;
    font-size: 14px;
}

.alert-yellow {
    background-color: #fef9c3;
    border-color: #fde047;
}

.alert-blue {
    background-color: #e0f2fe;
    border-color: #bae6fd;
}

/* Form Section */
.form-section {
    background-color: transparent;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.form-label {
    font-size: 14px;
    font-weight: bold;
    color: #1e293b;
}

.form-link {
    font-size: 13px;
    color: #0ea5e9;
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.form-textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    font-family: monospace;
    font-size: 13px;
    color: #64748b;
    resize: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.form-textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.form-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mt-4 {
    margin-top: 20px;
}

.block {
    display: block;
}

.submit-btn {
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(to right, #0ea5e9, #3b82f6);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    transition: opacity 0.2s, transform 0.1s;
}

.submit-btn:hover {
    opacity: 0.9;
}

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

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Payment / Result Styles */
.qr-box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin: 0 auto;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.qr-box svg {
    max-width: 100%;
    height: auto;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(59,130,246,0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto;
}

.result-icon.success {
    background-color: #dcfce7;
    color: #10b981;
}

.result-icon.error {
    background-color: #fee2e2;
    color: #ef4444;
}
