:root {
    color-scheme: dark;
    --bg: #080b14;
    --panel: #101625;
    --panel-2: #151d30;
    --line: #26324b;
    --text: #eef2ff;
    --muted: #9ba7c2;
    --primary: #22c55e;
    --primary-2: #16a34a;
    --danger: #ef4444;
    --warning: #f59e0b;
    --blue: #38bdf8;
    --shadow: 0 20px 60px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 28rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, .button { transition: transform .16s ease, opacity .16s ease, background .16s ease; }
button:hover, .button:hover { transform: translateY(-1px); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar {
    position: sticky; top: 0; height: 100vh; padding: 26px 18px;
    background: rgba(10,14,25,.94); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), #86efac); color: #04130a; font-size: 22px; font-weight: 900;
    box-shadow: 0 10px 30px rgba(34,197,94,.26);
}
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .08em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 7px; margin-top: 36px; }
.nav a { padding: 13px 15px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.nav a:hover, .nav a.active { background: rgba(34,197,94,.11); color: #d8ffe5; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); }
.sidebar-footer a { color: #fca5a5; }
.main { min-width: 0; }
.topbar { min-height: 94px; padding: 22px 34px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; }
.topbar h1 { margin: 0 0 4px; font-size: 24px; }
.topbar p { margin: 0; color: var(--muted); }
.secure-pill { margin-left: auto; padding: 8px 11px; border: 1px solid rgba(34,197,94,.3); border-radius: 999px; color: #a7f3d0; background: rgba(34,197,94,.08); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.menu-button { display: none; background: transparent; color: var(--text); border: 0; font-size: 24px; }
.content { padding: 30px 34px 50px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card, .panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(21,29,48,.93), rgba(13,18,32,.96)); box-shadow: var(--shadow); }
.stat-card { border-radius: 18px; padding: 20px; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card strong { display: block; margin: 9px 0 6px; font-size: 30px; }
.panel { border-radius: 20px; overflow: hidden; }
.panel-head { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0 0 5px; font-size: 18px; }
.panel-head p { margin: 0; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 16px; border: 0; border-radius: 11px; font-weight: 800; cursor: pointer; }
.button.primary { color: #04130a; background: linear-gradient(135deg, var(--primary), #86efac); }
.button.full { width: 100%; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 20px; border-bottom: 1px solid rgba(38,50,75,.7); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
td strong, td small { display: block; }
td small { margin-top: 5px; color: var(--muted); }
.empty { padding: 38px; text-align: center; color: var(--muted); }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.status-active, .status-completed, .status-sent { color: #bbf7d0; background: rgba(34,197,94,.13); }
.status-inactive, .status-failed { color: #fecaca; background: rgba(239,68,68,.13); }
.status-queued { color: #fde68a; background: rgba(245,158,11,.13); }
.status-processing { color: #bae6fd; background: rgba(56,189,248,.13); }
.mini-progress { width: 160px; height: 7px; border: 0; border-radius: 999px; overflow: hidden; background: #202941; }
.mini-progress::-webkit-progress-bar { background: #202941; }
.mini-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), #86efac); }
.mini-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--primary), #86efac); }
.two-column { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 20px; align-items: start; }
.form-stack { padding: 22px; display: grid; gap: 17px; }
.form-stack label { display: grid; gap: 8px; font-weight: 700; }
.form-stack label small { color: var(--muted); font-weight: 400; }
input, textarea { width: 100%; color: var(--text); background: #0c1220; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; outline: none; }
input:focus, textarea:focus { border-color: rgba(34,197,94,.7); box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notification-preview { margin: 24px; padding: 17px; border-radius: 15px; background: #e5e7eb; color: #111827; display: flex; gap: 13px; box-shadow: 0 12px 35px rgba(0,0,0,.3); }
.notification-preview > img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #fff; }
.notification-preview strong, .notification-preview p, .notification-preview small { display: block; }
.notification-preview p { margin: 5px 0; }
.notification-preview small { color: #4b5563; }
.preview-image-wrap { margin: -8px 24px 24px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.preview-image-wrap img { width: 100%; display: block; }
.send-progress { margin: 0 22px 22px; padding: 16px; border-radius: 14px; background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.2); }
.progress-label { display: flex; justify-content: space-between; }
.progress-native { width: 100%; height: 10px; margin-top: 12px; border: 0; border-radius: 999px; overflow: hidden; background: #202941; }
.progress-native::-webkit-progress-bar { background: #202941; }
.progress-native::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), #86efac); transition: width .25s ease; }
.progress-native::-moz-progress-bar { background: linear-gradient(90deg, var(--primary), #86efac); }
.send-progress p { margin: 10px 0 0; color: var(--muted); }
.hidden { display: none !important; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filters a, .pagination a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.filters a.active, .pagination a.active { color: #d8ffe5; background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); }
.pagination { padding: 18px 22px; display: flex; gap: 7px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 380px; padding: 13px 16px; border-radius: 12px; background: #182238; color: var(--text); box-shadow: var(--shadow); transform: translateY(25px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border: 1px solid rgba(239,68,68,.35); }
.toast.success { border: 1px solid rgba(34,197,94,.35); }
.login-page { display: grid; place-items: center; padding: 24px; }
.login-wrap { width: min(100%, 460px); }
.login-panel { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: rgba(15,21,36,.95); box-shadow: var(--shadow); }
.login-brand { margin-bottom: 34px; }
.login-panel h1 { margin: 0 0 9px; font-size: 27px; }
.login-panel > p { color: var(--muted); line-height: 1.6; }
.login-panel .form-stack { padding: 18px 0 0; }
.alert { margin-top: 18px; padding: 12px 14px; border-radius: 11px; }
.alert-error { color: #fecaca; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.24); }
.alert-success { color: #bbf7d0; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.24); }
.security-notes { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.security-notes span { padding: 6px 8px; border-radius: 8px; color: var(--muted); background: #0c1220; font-size: 11px; }
@media (max-width: 1050px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-column { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 20; width: 250px; transform: translateX(-105%); transition: transform .2s ease; }
    body.menu-open .sidebar { transform: translateX(0); }
    .menu-button { display: block; }
    .topbar { padding: 18px; }
    .secure-pill { display: none; }
    .content { padding: 20px 16px 40px; }
    .stat-grid, .form-grid { grid-template-columns: 1fr; }
    .panel-head { align-items: flex-start; flex-direction: column; }
}
.muted { color: var(--muted); }
.resume-campaign { min-height: 34px; padding: 0 11px; background: #1d293f; color: #dbeafe; border: 1px solid #334155; }

/* v1.1.0 */
.brand { flex-direction: column; align-items: flex-start; gap: 7px; }
.brand-logo { display: block; width: 195px; max-width: 100%; height: auto; object-fit: contain; }
.brand > small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.login-brand { align-items: center; }
.login-logo { width: 250px; }
button, input, textarea, select { font: inherit; }
input, textarea, select { width: 100%; color: var(--text); background: #0c1220; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: rgba(34,197,94,.7); box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
select { appearance: auto; }
.status-scheduled { color: #e9d5ff; background: rgba(168,85,247,.14); }
.status-cancelled { color: #cbd5e1; background: rgba(100,116,139,.16); }
.button.secondary { color: #dbeafe; background: #1d293f; border: 1px solid #334155; }
.small-button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.form-note { padding: 13px 14px; border: 1px solid rgba(56,189,248,.18); background: rgba(56,189,248,.07); color: #bae6fd; border-radius: 11px; line-height: 1.55; }
.report-filter-panel { margin-bottom: 20px; }
.report-filters { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)) auto; align-items: end; gap: 14px; padding: 18px 22px; }
.report-filters label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
.report-stats { margin-top: 0; }
.detail-panel { margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.detail-grid > div { padding: 18px; background: #111827; }
.detail-grid span, .campaign-copy span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.detail-grid strong { font-size: 18px; }
.campaign-copy { display: grid; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.campaign-copy p { margin: 0; line-height: 1.6; word-break: break-word; }
.campaign-copy a { color: #7dd3fc; }
.schedule-grid { align-items: end; }
@media (max-width: 1100px) {
    .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .report-filters, .detail-grid { grid-template-columns: 1fr; }
    .brand-logo { width: 185px; }
}
