:root {
    --navy: #0b1f3a;
    --gold: #c9a227;
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #1c2331;
    --muted: #6b7280;
    --border: #e2e5eb;
    --danger: #b3261e;
    --success: #1e7a34;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
header.topbar {
    background: var(--navy);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header.topbar a { color: #fff; text-decoration: none; }
header.topbar .brand { font-weight: 700; letter-spacing: .04em; }
header.topbar .brand .accent { color: var(--gold); }
header.topbar nav a { margin-left: 18px; font-size: 14px; opacity: .9; }
header.topbar nav a:hover { opacity: 1; text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 28px 20px; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.card h2, .card h3 { margin-top: 0; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }

.stat { text-align: left; }
.stat .value { font-size: 28px; font-weight: 700; color: var(--navy); }
.stat .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
tr:hover td { background: #fafbfc; }

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge.instagram { background: #fde7ef; color: #b3164e; }
.badge.facebook { background: #e7effd; color: #1a4fb4; }
.badge.tiktok { background: #eae7fd; color: #4b1ab4; }
.badge.success { background: #e5f4e8; color: var(--success); }
.badge.error { background: #fbe6e5; color: var(--danger); }

form.stacked label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
form.stacked input, form.stacked select, form.stacked textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px;
    margin-bottom: 14px; font-size: 14px; font-family: inherit;
}
form.inline { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
form.inline > div { flex: 1; min-width: 140px; }

.btn {
    display: inline-block; background: var(--navy); color: #fff; border: none;
    padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none;
}
.btn:hover { opacity: .9; }
.btn.secondary { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); }

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

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert.error { background: #fbe6e5; color: var(--danger); }
.alert.success { background: #e5f4e8; color: var(--success); }

.muted { color: var(--muted); font-size: 13px; }
.text-right { text-align: right; }
