body {
    margin: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    color: #2563eb;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto;
}

.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 24px;
    margin-bottom: 20px;
}

.hero {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.plan {
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 16px;
}

.plan h3 {
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input,
select,
textarea,
button {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 12px 14px;
    font-size: 14px;
}

button {
    background: #2563eb;
    color: #fff;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    background: #1d4ed8;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 10px;
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-unused {
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-active {
    background: #ecfdf5;
    color: #047857;
}

.badge-expired {
    background: #fef2f2;
    color: #b91c1c;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.muted {
    color: #6b7280;
    font-size: 13px;
}
