:root {
    --bg: #eef4ff;
    --panel: #ffffff;
    --accent: #f97316;
    --accent-2: #2563eb;
    --text: #0f172a;
    --muted: #475569;
    --border: #d6e3ff;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(37, 99, 235, 0.12);
    --font: "Trebuchet MS", "Segoe UI", "Verdana", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    position: relative;
}

.background {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.16), transparent 35%), radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.16), transparent 30%), radial-gradient(circle at 50% 80%, rgba(52, 211, 153, 0.12), transparent 35%), linear-gradient(135deg, #eef4ff, #f7fbff 60%, #eef4ff);
    filter: blur(0px);
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.hero {
    margin-bottom: 28px;
}

.brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
}

.brand-logo {
    width: 220px;
    max-width: 48vw;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 8px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-2);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
    margin: 0 0 4px;
}

h1 {
    margin: 0 0 6px;
    font-size: clamp(32px, 5vw, 44px);
    letter-spacing: -0.02em;
}

.lede {
    margin: 0;
    color: var(--muted);
    max-width: 640px;
    font-size: 18px;
}

.card {
    background: linear-gradient(145deg, #ffffff, #f7fbff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.stand-field {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fbff;
    color: var(--text);
    font-size: 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #f8fbff;
    color: var(--text);
}

.option input {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

button {
    background: linear-gradient(120deg, #f97316, #fb923c);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.32);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.status {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.status.success {
    color: #16a34a;
}

.status.error {
    color: #dc2626;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    padding: 20px;
    max-width: 420px;
    width: 100%;
    color: #0f172a;
}

.modal h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.modal p {
    margin: 0 0 16px;
    color: #334155;
}

.modal button {
    width: 100%;
}

.table-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

th {
    background: #edf2ff;
    font-weight: 700;
    color: #0f172a;
}

tbody tr:nth-child(odd) {
    background: #f8fbff;
}

@media (max-width: 640px) {
    .card {
        padding: 22px;
    }
}