input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #1e293b;
    margin: 0;
    padding: 40px 20px;
}
.container {
    max-width: 550px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}
.header {
    text-align: center;
    margin-bottom: 32px;
}
.header h1 {
    font-size: 24px;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-weight: 700;
}
.header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #fff;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(39, 99, 235, 0.15);
}
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    margin-top: 32px;
}
.btn:hover {
    background-color: #1d4ed8;
}
.btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}
.status-box {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}
.status-error {
    display: block;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}
.status-error a {
    color: #b91c1c;
    font-weight: 600;
    text-decoration: underline;
}
.status-success {
    display: block;
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}
.status-loading {
    display: block;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.field-hint a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed rgba(39, 99, 235, 0.4);
    transition: color 0.2s, border-color 0.2s;
}
.field-hint a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #e2e8f0;
}
.modal-content h2 {
    margin-top: 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
}
.close-modal {
    position: absolute;
    right: 24px;
    top: 20px;
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #475569;
}
.modal-body {
    margin-top: 20px;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
}
.modal-body ol {
    padding-left: 20px;
    margin: 0;
}
.modal-body li {
    margin-bottom: 12px;
}
.modal-body code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #0f172a;
}
