:root {
    --dash-blue: #1987F4;
    --dash-navy: #104482;
    --dash-orange: #FE9914;
    --text: #2D2D2D;
    --border: #e3e8ee;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text);
    background: #f4f7fb;
}
a { color: var(--dash-blue); }

.admin-topbar {
    background: var(--dash-navy);
    color: #fff;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-topbar .brand { display: flex; align-items: baseline; gap: 8px; }
.admin-topbar .brand-logo { height: 18px; width: auto; display: block; }
.admin-topbar .brand span { font-weight: 500; font-size: 12px; color: #b9d3f0; margin-left: 6px; }
.admin-topbar nav a { color: #dce8f7; text-decoration: none; margin-left: 20px; font-size: 14px; }
.admin-topbar nav a:hover { color: #fff; }

.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px; }

.card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(16,68,130,0.06);
    margin-bottom: 24px;
}

h1.page-title { font-size: 24px; margin: 0 0 20px; }

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
table.admin-table th { color: #8b96a3; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-on { background: #e6f6ec; color: #1a9d4c; }
.badge-off { background: #f1f2f4; color: #8b96a3; }
.badge-sent { background: #e6f6ec; color: #1a9d4c; }
.badge-fail { background: #fdeceb; color: #d24339; }

.btn {
    display: inline-block;
    background: var(--dash-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #1470c9; }
.btn-orange { background: var(--dash-orange); }
.btn-orange:hover { background: #e2860e; }
.btn-outline { background: #fff; color: var(--dash-blue); border: 1px solid var(--dash-blue); }
.btn-danger { background: #fff; color: #d24339; border: 1px solid #f2b8b3; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: #55606e; margin-bottom: 6px; }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=password],
.form-row textarea, .form-row select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}
.form-row textarea { resize: vertical; }
.form-row .hint { font-size: 12px; color: #9aa4af; margin-top: 4px; }
.form-row input[type=checkbox] { width: auto; margin-right: 8px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.alert-error { background: #fdeceb; color: #d24339; }
.alert-success { background: #e6f6ec; color: #1a9d4c; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 360px; }

.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.magnet-url { font-size: 12px; color: #8b96a3; word-break: break-all; }
