* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    background: #f5f7fb;
    color: #1a2a3a;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 24px 28px;
    margin-bottom: 28px;
    transition: all 0.2s;
}

h1 {
    margin-top: 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: normal;
    font-family: monospace;
    color: #2c3e66;
}

.proxy-url {
    background: #f1f3f5;
    padding: 8px 16px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 12px 0 0;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

input, select, button {
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: white;
    transition: 0.2s;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.flex-grow {
    flex: 1;
    min-width: 200px;
}

button {
    background: #1e6f3f;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

button:hover {
    background: #0f5a34;
    transform: translateY(-1px);
}

.test-btn {
    background: #2c5f8a;
}

.test-btn:hover {
    background: #1e4a6e;
}

.status {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #f8f9fc;
    border-left: 5px solid #6c757d;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.status.success {
    border-left-color: #2b8c4a;
    background: #eef6ef;
}

.status.error {
    border-left-color: #c7362b;
    background: #fef2f0;
}

.status.loading {
    border-left-color: #f0b400;
    background: #fff9e8;
}

.preview-area {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.5;
    transition: all 0.2s;
}

.preview-area .weight-400,
.preview-area .weight-700 {
    display: block;
    margin: 8px 0;
}

.font-meta {
    font-size: 0.8rem;
    color: #5a6e7c;
    margin-top: 16px;
    border-top: 1px solid #ecf3fa;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.url-log {
    max-height: 260px;
    overflow-y: auto;
    background: #1e2a36;
    color: #dcf2ff;
    padding: 12px;
    border-radius: 14px;
    font-family: monospace;
    font-size: 0.75rem;
}

.log-entry {
    border-bottom: 1px solid #334;
    padding: 6px 0;
}

hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #e2edf7;
}

.small-note {
    font-size: 0.75rem;
    color: #6f8faa;
}

@media (max-width: 640px) {
    .card {
        padding: 18px;
    }
    .preview-area {
        font-size: 1rem;
    }
}