/* Vyral Campaigns theme for SendPortal — same brand as Vyral Boards / Vyral Marketing.
   Loaded on every page (see resources/views/vendor/sendportal/layouts/partials/favicons.blade.php).
   It loads before SendPortal's app.css, so selectors start with "html" to win. Change the tokens to re-theme. */
:root {
    --vy-navy: #094164;
    --vy-navy-hover: #0c5381;
    --vy-ink: #052b44;
    --vy-blue: #1c9ad6;
    --vy-blue-soft: #e3eef6;
    --vy-amber: #f6a81c;
    --vy-paper: #f3f6f9;
    --vy-text: #12283a;
    --vy-muted: #5b7083;
    --vy-line: #d6e0e8;
    --vy-side: linear-gradient(180deg, #04243a 0%, #073a5a 55%, #0a4c74 100%);
    --vy-side-hover: rgba(255, 255, 255, .08);
    --vy-side-active: rgba(28, 154, 214, .22);
    --vy-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
html body { font-family: var(--vy-font); background-color: var(--vy-paper); color: var(--vy-text); }
html a { color: var(--vy-navy); }
html a:hover { color: var(--vy-blue); }
html .text-primary { color: var(--vy-navy) !important; }
html .color-purple-500, html a.color-purple-500, html a.color-purple-500:hover { color: var(--vy-navy) !important; }
html .bg-purple-500 { background-color: var(--vy-navy) !important; }
html .table th, html ul.pagination .page-link { color: var(--vy-ink); }
html ul.pagination .page-item.active .page-link { background-color: var(--vy-navy); border-color: var(--vy-navy); color: #fff; }

/* ---------- Sidebar ---------- */
html .bg-purple-100 { background: var(--vy-side) !important; background-color: var(--vy-ink) !important; }
html .sidebar .logo { padding: .75rem 1.25rem 0; }
html .sidebar .logo img { width: 110px !important; max-width: 100%; height: auto; }
html .sidebar .logo::after {
    content: "Campaigns"; display: block; margin-top: .55rem;
    color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
}
html .sidebar li.nav-item a.nav-link { border-left-color: transparent; color: #e6f0f7; }
html .sidebar li.nav-item a.nav-link .fas { color: #7fb6d3; }
html .sidebar li.nav-item a.nav-link:hover { background: var(--vy-side-hover); border-left-color: transparent; }
html .sidebar li.nav-item.active a.nav-link { background: var(--vy-side-active); border-left-color: var(--vy-blue); color: #fff; }
html .sidebar li.nav-item.active a.nav-link .fas { color: #fff; }
html .sidebar.modal .modal-dialog, html .sidebar.modal .modal-body { background: var(--vy-ink) !important; }

/* ---------- Header ---------- */
html .main-header { background: #fff; border-bottom: 1px solid var(--vy-line); margin-bottom: 1.5rem; }
html .main-header header.navbar { margin-bottom: 0 !important; }
html .main-header h1 { color: var(--vy-ink); font-weight: 700; }
html .main-header .dropdown-item:hover .fas { color: var(--vy-navy); }

/* ---------- Buttons ---------- */
html .btn-primary,
html .btn-primary:not(:disabled):not(.disabled):active,
html .btn-primary:not(:disabled):not(.disabled).active {
    background-color: var(--vy-navy); border-color: var(--vy-navy); color: #fff;
}
html .btn-primary:hover, html .btn-primary:focus { background-color: var(--vy-navy-hover); border-color: var(--vy-navy-hover); color: #fff; }
html .btn-primary:focus { box-shadow: 0 0 0 .2rem rgba(28, 154, 214, .35); }
html .btn-outline-primary { color: var(--vy-navy); border-color: var(--vy-navy); }
html .btn-outline-primary:hover { background-color: var(--vy-navy); border-color: var(--vy-navy); color: #fff; }
html .btn-secondary { background-color: #fff; border-color: var(--vy-line); color: var(--vy-navy); }
html .btn-secondary:hover,
html .btn-secondary:not(:disabled):not(.disabled).active,
html .btn-secondary:not(:disabled):not(.disabled):active { background-color: var(--vy-blue-soft); border-color: #b9d3e4; color: var(--vy-navy); }

/* ---------- Tabs, progress, forms ---------- */
html .nav-pills a.nav-link { color: var(--vy-ink); }
html .nav-pills a.nav-link.active, html .nav-pills a.nav-link:hover { background-color: var(--vy-navy); color: #fff; }
html .progress-bar { background-color: var(--vy-blue); }
html .form-control:focus,
html .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--vy-blue); box-shadow: 0 0 0 .2rem rgba(28, 154, 214, .2);
}
html .abc-checkbox-primary input[type=checkbox]:checked + label::before,
html .abc-checkbox-info input[type=checkbox]:checked + label::before { background-color: var(--vy-blue); border-color: var(--vy-blue); }

/* ---------- Cards ---------- */
html .card { border-color: var(--vy-line); border-radius: 10px; box-shadow: 0 1px 2px rgba(5, 43, 68, .06); }
html .card-header-accent { border-top: 3px solid var(--vy-blue) !important; }
html .alert-info { background-color: var(--vy-blue-soft); border-color: #c3dcec; color: var(--vy-ink); }

/* ---------- Sign-in / sign-up / setup pages ---------- */
html .logo.text-center img[src*="vyral-theme/logo-navy"] { width: 210px; height: auto; }
html .vy-auth-brand { color: var(--vy-muted); font-size: .8rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin: -2.25rem 0 2rem; }

/* =====================================================================
   Phase 1 screens: Home, Campaigns list, Review & send (vy-*)
   ===================================================================== */
.vy-h2 { font-size: 1.05rem; font-weight: 700; color: var(--vy-ink); margin-bottom: .75rem; }
.vy-empty { border: 2px dashed var(--vy-line); border-radius: 10px; padding: 1.5rem; text-align: center; color: var(--vy-muted); background: #fff; }
.vy-badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 999px; background: #e9eef3; color: var(--vy-muted); }
.vy-badge.is-sent { background: #d5f0e2; color: #14573a; }
.vy-badge.is-scheduled { background: #fdecc4; color: #6b4700; }
.vy-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--vy-muted); }
.vy-dot.is-sent { background: #1e8e5a; }
.vy-dot.is-scheduled { background: var(--vy-amber); }
.vy-pill { display: inline-block; margin-left: .4rem; font-size: .78rem; font-weight: 600; background: var(--vy-blue-soft); color: var(--vy-navy); padding: .15rem .55rem; border-radius: 999px; }
.vy-muted-inline { font-weight: 400; font-size: .85rem; color: var(--vy-muted); }

/* Home */
.vy-home-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 991px) { .vy-home-grid { grid-template-columns: 1fr; } }
.vy-cal-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-size: .85rem; }
.vy-cal-table th { color: var(--vy-muted); font-weight: 600; padding: .25rem 0; }
.vy-cal-table td { position: relative; height: 36px; border-radius: 8px; color: var(--vy-text); }
.vy-cal-table td.is-out { color: #b3c0cb; }
.vy-cal-table td.is-today span { display: inline-block; min-width: 24px; line-height: 24px; border-radius: 50%; background: var(--vy-navy); color: #fff; }
.vy-cal-table td.has-items { cursor: pointer; font-weight: 700; }
.vy-cal-table td.has-items:hover, .vy-cal-table td.is-picked { background: var(--vy-blue-soft); }
.vy-cal-table td .vy-dot { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 5px; height: 5px; }
.vy-cal-legend { display: flex; gap: 1rem; font-size: .75rem; color: var(--vy-muted); margin: .5rem 0 .75rem; }
.vy-cal-list { border-top: 1px solid var(--vy-line); padding-top: .75rem; }
.vy-cal-day { font-size: .8rem; font-weight: 700; color: var(--vy-muted); margin-bottom: .35rem; }
.vy-cal-item { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid #eef2f6; font-size: .85rem; color: var(--vy-text) !important; }
.vy-cal-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vy-cal-time { color: var(--vy-muted); font-size: .78rem; }
.vy-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.vy-kpi-head { font-weight: 700; color: var(--vy-ink); margin-bottom: .6rem; }
.vy-kpi-head span { font-weight: 400; color: var(--vy-muted); font-size: .85rem; margin-left: .25rem; }
.vy-kpis-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.vy-kpis-inner strong { display: block; font-size: 1.45rem; color: var(--vy-navy); line-height: 1.1; }
.vy-kpis-inner span { font-size: .78rem; color: var(--vy-muted); }
.vy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.vy-card { overflow: hidden; color: var(--vy-text) !important; text-decoration: none !important; transition: box-shadow .15s; }
.vy-card:hover { box-shadow: 0 8px 20px rgba(5, 43, 68, .14); }
.vy-thumb { position: relative; height: 170px; overflow: hidden; background: #f3f6f9; border-bottom: 1px solid var(--vy-line); }
.vy-thumb iframe, .vy-mini iframe { position: absolute; top: 0; left: 0; width: 600px; height: 1200px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.vy-card-body { padding: .75rem .9rem .9rem; }
.vy-card-name { font-weight: 700; color: var(--vy-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vy-card-subject { font-size: .85rem; color: var(--vy-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vy-card-date { font-size: .75rem; color: var(--vy-muted); margin: .2rem 0 .6rem; }
.vy-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid #eef2f6; padding-top: .5rem; }
.vy-card-stats strong { display: block; color: var(--vy-ink); }
.vy-card-stats span { font-size: .7rem; color: var(--vy-muted); }

/* Campaigns list */
.vy-tabs .nav-link { border-radius: 999px; padding: .4rem .9rem; }
.vy-count { display: inline-block; min-width: 1.4rem; margin-left: .3rem; padding: 0 .35rem; border-radius: 999px; background: rgba(5, 43, 68, .08); font-size: .75rem; text-align: center; }
.vy-tabs .nav-link.active .vy-count { background: rgba(255, 255, 255, .25); }
.vy-table td { vertical-align: middle; }
.vy-mini { position: relative; display: block; width: 72px; height: 90px; overflow: hidden; border: 1px solid var(--vy-line); border-radius: 6px; background: #fff; }
.vy-mini iframe { transform: scale(.12); }
.vy-row-name { font-weight: 700; color: var(--vy-navy); }
.vy-row-sub { font-size: .85rem; color: var(--vy-muted); }
.vy-table .dropdown-item form, form .dropdown-item { margin: 0; }
.vy-table .dropdown-menu form { margin: 0; }

/* Review & send */
.vy-review-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.vy-review-name { font-size: 1.25rem; font-weight: 700; color: var(--vy-ink); }
.vy-review-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .vy-review-grid { grid-template-columns: 1fr; } }
.vy-preview { position: sticky; top: 1rem; background: #fff; border: 1px solid var(--vy-line); border-radius: 10px; overflow: hidden; }
.vy-preview-bar { padding: .5rem .75rem; border-bottom: 1px solid var(--vy-line); background: #f8fafc; }
.vy-inbox { padding: .6rem .9rem; border-bottom: 1px solid var(--vy-line); font-size: .88rem; }
.vy-inbox-from { font-weight: 700; color: var(--vy-ink); }
.vy-frame-wrap { height: 70vh; min-height: 480px; background: #e9eef3; display: flex; justify-content: center; }
.vy-frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .2s; }
.vy-frame-wrap.is-phone iframe { width: 375px; box-shadow: 0 0 0 1px var(--vy-line); }
.vy-steps .vy-step { margin-bottom: 1rem; }
.vy-choice { display: flex; flex-wrap: wrap; gap: .5rem; }
.vy-choice label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .45rem .8rem; border: 1px solid var(--vy-line); border-radius: 8px; cursor: pointer; }
.vy-choice label:has(input:checked) { border-color: var(--vy-navy); background: var(--vy-blue-soft); }
.vy-groups { display: flex; flex-wrap: wrap; gap: .4rem; }
.vy-groups label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .3rem .6rem; border: 1px solid var(--vy-line); border-radius: 999px; font-size: .85rem; cursor: pointer; }
.vy-groups label span { color: var(--vy-muted); font-size: .75rem; }
.vy-groups label:has(input:checked) { border-color: var(--vy-navy); background: var(--vy-blue-soft); }
.vy-groups.is-off { opacity: .45; pointer-events: none; }
.vy-sub-h { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--vy-muted); margin-bottom: .35rem; }
.vy-label { font-weight: 600; font-size: .88rem; margin-bottom: .25rem; display: flex; justify-content: space-between; }
.vy-counter { font-weight: 400; color: var(--vy-muted); font-size: .78rem; }
.vy-counter.is-over { color: #b55a00; font-weight: 700; }
.vy-tag-buttons { font-size: .78rem; color: var(--vy-muted); }
.vy-tag-buttons .btn-link { padding: 0 .25rem; font-size: .78rem; }
.vy-check-line { display: flex; align-items: center; gap: .45rem; margin-bottom: .35rem; font-weight: 400; }
.vy-check.has-errors { border-left: 4px solid #c0392b; }
.vy-check.is-good { border-left: 4px solid #1e8e5a; }
.vy-check-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.vy-check-list li { display: flex; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid #eef2f6; font-size: .88rem; }
.vy-check-list li:last-child { border-bottom: 0; }
.vy-check-list li > i { margin-top: .2rem; width: 1rem; }
.vy-check-list li strong { display: block; font-weight: 600; }
.vy-check-list li span { display: block; color: var(--vy-muted); font-size: .82rem; }
.vy-check-list li.is-error > i { color: #c0392b; }
.vy-check-list li.is-warning > i { color: #b55a00; }
.vy-check-list li.is-ok > i { color: #1e8e5a; }
.vy-check-list li.is-ok strong { font-weight: 400; }
.vy-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 0; background: linear-gradient(transparent, var(--vy-paper) 30%); }

/* =====================================================================
   Phase 2: Audience (vy-*)
   ===================================================================== */
.vy-subnav { gap: .35rem; flex-wrap: wrap; }
.vy-subnav .nav-link { border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; }
.vy-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .9rem; }
.vy-toolbar form { margin: 0; }
.vy-bulk { display: none; align-items: center; gap: .4rem; padding: .5rem .75rem; margin-bottom: .75rem; background: var(--vy-blue-soft); border: 1px solid #c3dcec; border-radius: 8px; flex-wrap: wrap; }
.vy-bulk.is-on { display: flex; }
.vy-table th { white-space: nowrap; }
.vy-chip { display: inline-block; font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: #e9eef3; color: var(--vy-ink); margin: 0 .2rem .2rem 0; white-space: nowrap; }
.vy-col-hidden { display: none; }
.vy-num { text-align: right; font-variant-numeric: tabular-nums; }
.vy-muted { color: var(--vy-muted); }
.vy-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem 1rem; }
@media (max-width: 768px) { .vy-form-grid { grid-template-columns: 1fr; } }
.vy-rule { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: .5rem; align-items: center; margin-bottom: .5rem; }
@media (max-width: 768px) { .vy-rule { grid-template-columns: 1fr; } }
.vy-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; background: #0f1d29; color: #d6e6f2; border-radius: 8px; padding: .75rem; white-space: pre-wrap; word-break: break-all; }
.vy-steps-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .85rem; color: var(--vy-muted); }
.vy-steps-bar span.is-on { color: var(--vy-navy); font-weight: 700; }
.vy-status { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: .1rem .5rem; border-radius: 999px; }
.vy-status.is-done { background: #d5f0e2; color: #14573a; }
.vy-status.is-running, .vy-status.is-queued { background: #fdecc4; color: #6b4700; }
.vy-status.is-failed { background: #fbdcd8; color: #8a1f15; }
.vy-status.is-mapping { background: #e9eef3; color: var(--vy-muted); }

/* ---------- Agency view (phase 4) ---------- */
.vy-agency-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.vy-agency-kpis .card-body { padding: 1rem; }
.vy-agency-kpis strong { display: block; font-size: 1.5rem; color: var(--vy-navy); line-height: 1.15; }
.vy-agency-kpis .lbl { font-size: .8rem; font-weight: 600; color: var(--vy-ink); }
.vy-delta { font-size: .75rem; font-weight: 600; }
.vy-delta.is-up { color: #1e8e5a; }
.vy-delta.is-down { color: #c0392b; }
.vy-delta.is-flat { color: var(--vy-muted); }
.vy-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.vy-highlights .card-body { padding: 1rem; }
.vy-highlights .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vy-muted); font-weight: 700; }
.vy-acal { width: 100%; table-layout: fixed; border-collapse: collapse; }
.vy-acal th { font-size: .75rem; color: var(--vy-muted); font-weight: 600; padding: .35rem; text-align: left; }
.vy-acal td { vertical-align: top; height: 104px; border: 1px solid var(--vy-line); padding: .3rem; background: #fff; }
.vy-acal td.is-out { background: #f7f9fb; color: #b3c0cb; }
.vy-acal td.is-today .vy-acal-num { background: var(--vy-navy); color: #fff; border-radius: 999px; padding: 0 .4rem; }
.vy-acal-num { font-size: .75rem; font-weight: 700; display: inline-block; margin-bottom: .2rem; }
.vy-chip { display: block; font-size: .72rem; line-height: 1.25; padding: .15rem .35rem; border-radius: 5px; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.vy-chip.is-sent { background: #d5f0e2; color: #14573a; }
.vy-chip.is-scheduled { background: #fdecc4; color: #6b4700; }
.vy-chip.is-pending { background: #e3eef6; color: var(--vy-navy); border: 1px dashed var(--vy-blue); }
.vy-chip-more { font-size: .72rem; color: var(--vy-muted); background: none; border: 0; padding: 0; }
.vy-badge.is-pending { background: #e3eef6; color: var(--vy-navy); }
.vy-badge.is-rejected { background: #f8d7d3; color: #8a2a1f; }
.vy-badge.is-paused { background: #e9eef3; color: var(--vy-muted); }
.vy-badge.is-trial { background: #fdecc4; color: #6b4700; }
.vy-badge.is-active { background: #d5f0e2; color: #14573a; }
.vy-health { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; }
.vy-health i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #b3c0cb; }
.vy-health.is-ok i { background: #1e8e5a; }
.vy-health.is-warning i { background: var(--vy-amber); }
.vy-health.is-error i { background: #c0392b; }
.vy-approval { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; }
.vy-approval .vy-thumb { height: 260px; }
.vy-approval .vy-thumb iframe { width: 600px; height: 2000px; transform-origin: 0 0; border: 0; pointer-events: none; }
.vy-sortable th[data-sort] { cursor: pointer; }
.vy-sortable th[data-sort]:after { content: " \2195"; color: #b3c0cb; font-size: .75rem; }
.vy-dns td:first-child { width: 90px; font-weight: 700; }
.vy-dns code { font-size: .72rem; word-break: break-all; }
@media (max-width: 767px) {
    .vy-approval { grid-template-columns: 1fr; }
    .vy-acal td { height: 64px; }
    .vy-chip { font-size: 0; height: 6px; padding: 0; }
}
.vy-agency-table td:first-child { min-width: 10rem; }

/* ---------- Sign in with Google / Admin ---------- */
html .vy-or { display: flex; align-items: center; gap: .75rem; color: var(--vy-muted); font-size: .85rem; margin: .25rem 0 1rem; }
html .vy-or:before, html .vy-or:after { content: ""; flex: 1; border-top: 1px solid var(--vy-line); }
html .vy-google-btn { background: #fff; color: #3c4043; font-weight: 600; padding: .55rem 1.2rem; }
html .vy-google-btn:hover { background: #f8fafb; color: #202124; }
.vy-ws-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; background: #eef2f6; border-radius: 999px; padding: .1rem .55rem; margin: 0 .25rem .25rem 0; }
.vy-ws-chip.is-auto { background: #f3f6f9; color: var(--vy-muted); }
.vy-ws-chip form { display: inline; margin: 0; } .vy-ws-chip button { border: 0; background: none; color: var(--vy-muted); padding: 0 0 0 .15rem; line-height: 1; }

/* ---------- Agency dashboard (v2) ---------- */
.vy-dash { --vy-card-shadow: 0 1px 2px rgba(5, 43, 68, .06), 0 8px 24px rgba(5, 43, 68, .06); }
.vy-dash .card.vy-panel { border: 0; border-radius: 14px; box-shadow: var(--vy-card-shadow); padding: 1.15rem 1.25rem; margin-bottom: 1.25rem; }
.vy-dash .card.vy-panel > .card-body { padding: 0; }
.vy-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; flex-wrap: wrap; }

.vy-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr minmax(220px, 340px); gap: 1.5rem; align-items: end;
    color: #fff; border-radius: 18px; padding: 1.6rem 1.8rem; margin-bottom: 1.25rem;
    background: radial-gradient(120% 140% at 100% 0%, #1c9ad6 0%, rgba(28, 154, 214, 0) 55%), linear-gradient(135deg, #052b44 0%, #094164 55%, #0c5381 100%);
    box-shadow: 0 10px 30px rgba(5, 43, 68, .25); }
.vy-hero:after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(246, 168, 28, .18); pointer-events: none; }
.vy-hero-hi { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.vy-hero-sub { opacity: .8; font-size: .92rem; margin-bottom: 1rem; }
.vy-hero-big { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vy-hero-big small { font-size: 1rem; font-weight: 600; opacity: .8; margin-left: .4rem; letter-spacing: 0; }
.vy-hero .vy-pill { display: inline-block; margin-top: .55rem; padding: .2rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff !important; font-size: .78rem; }
.vy-hero .vy-pill.is-up:before { content: "▲ "; color: #7be0a9; } .vy-hero .vy-pill.is-down:before { content: "▼ "; color: #ffb4a8; }
.vy-hero-stats { display: flex; gap: 1.75rem; margin-top: 1.1rem; flex-wrap: wrap; }
.vy-hero-stats strong { display: block; font-size: 1.35rem; line-height: 1.1; } .vy-hero-stats strong small { font-size: .8rem; opacity: .7; }
.vy-hero-stats span { font-size: .78rem; opacity: .75; }
.vy-hero-spark { position: relative; z-index: 1; } .vy-hero-spark svg { width: 100%; height: 90px; display: block; }
.vy-hero-spark-cap { font-size: .75rem; opacity: .75; margin-top: .3rem; text-align: right; }

.vy-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.vy-tile { display: flex; align-items: center; gap: .9rem; background: #fff; border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--vy-card-shadow); color: inherit; text-decoration: none !important; }
.vy-tile-lbl { font-size: .8rem; font-weight: 600; color: var(--vy-muted); }
.vy-tile-val { font-size: 1.6rem; font-weight: 800; color: var(--vy-ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.vy-ring { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
.vy-ring-bg { fill: none; stroke: #e6eef4; stroke-width: 8; }
.vy-ring-fg { fill: none; stroke: #1c9ad6; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.vy-tile:nth-child(2) .vy-ring-fg { stroke: #094164; } .vy-tile:nth-child(3) .vy-ring-fg { stroke: #f6a81c; }
.vy-tile-icon { width: 64px; height: 64px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: #eef4f8; color: var(--vy-muted); }
.vy-tile-approve.has-pending { background: linear-gradient(135deg, #fff8e8, #fff); box-shadow: inset 0 0 0 2px rgba(246, 168, 28, .55), var(--vy-card-shadow); }
.vy-tile-approve.has-pending .vy-tile-icon { background: #f6a81c; color: #052b44; }
.vy-tile-approve:hover { transform: translateY(-1px); }

.vy-duo { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.25rem; }
.vy-duo > .vy-panel { margin-bottom: 1.25rem; }
.vy-trend { position: relative; } .vy-trend svg { width: 100%; height: auto; display: block; overflow: visible; }
.vy-grid { stroke: #e9eff4; stroke-width: 1; } .vy-grid.is-base { stroke: #c9d6e0; }
.vy-axis { fill: #5b7083; font-size: 11px; font-family: var(--vy-font); }
.vy-trend-line { stroke-dasharray: 2000; stroke-dashoffset: 0; animation: vy-draw 1.4s ease-out; }
@keyframes vy-draw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .vy-trend-line { animation: none; } .vy-ring-fg { transition: none; } }
.vy-cross { stroke: #9fb2c2; stroke-width: 1; stroke-dasharray: 3 3; }
.vy-cross-dot { fill: #1c9ad6; stroke: #fff; stroke-width: 2; }
.vy-tip { position: absolute; pointer-events: none; background: #052b44; color: #fff; border-radius: 8px; padding: .45rem .65rem; font-size: .78rem; line-height: 1.35; white-space: nowrap; box-shadow: 0 6px 16px rgba(5, 43, 68, .25); }
.vy-tip-sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #1c9ad6; margin-right: .35rem; }
.vy-tip-sub { opacity: .75; }

.vy-leader { display: grid; grid-template-columns: 28px 1fr auto; gap: .65rem; align-items: center; padding: .55rem .35rem; border-radius: 10px; color: inherit; text-decoration: none !important; }
.vy-leader:hover { background: #f3f7fa; }
.vy-leader-rank { width: 26px; height: 26px; border-radius: 50%; background: #eef4f8; color: var(--vy-navy); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.vy-leader:first-of-type .vy-leader-rank { background: #f6a81c; color: #052b44; }
.vy-leader-main { min-width: 0; } .vy-leader-name { display: block; font-weight: 600; color: var(--vy-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vy-leader-bar { display: block; height: 6px; border-radius: 999px; background: #eef2f6; margin-top: .3rem; overflow: hidden; }
.vy-leader-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #094164, #1c9ad6); }
.vy-leader-num { text-align: right; line-height: 1.15; } .vy-leader-num strong { display: block; font-variant-numeric: tabular-nums; } .vy-leader-num small { color: var(--vy-muted); }
.vy-mix { display: flex; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--vy-line); margin-top: .75rem; padding-top: .75rem; font-size: .82rem; color: var(--vy-muted); }
.vy-mix strong { color: var(--vy-ink); margin-left: .2rem; }
.vy-mix-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; background: #b3c0cb; }
.vy-mix-dot.is-active { background: #1e8e5a; } .vy-mix-dot.is-trial { background: #f6a81c; }

.vy-spot { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.25rem; }
.vy-spot-mail { display: grid !important; grid-template-columns: 200px 1fr; gap: 1.25rem; align-items: center; }
.vy-spot-thumb { height: 150px; overflow: hidden; border-radius: 10px; border: 1px solid var(--vy-line); background: #f3f6f9; position: relative; }
.vy-spot-thumb iframe { width: 600px; height: 1200px; border: 0; transform-origin: 0 0; pointer-events: none; }
.vy-spot-tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b9770e; margin-bottom: .35rem; }
.vy-spot-tag i { margin-right: .25rem; }
.vy-spot-name { display: block; font-size: 1.15rem; font-weight: 700; color: var(--vy-navy); line-height: 1.25; }
.vy-spot-stats { display: flex; gap: 1.5rem; margin-top: .75rem; }
.vy-spot-stats strong { display: block; font-size: 1.3rem; color: var(--vy-ink); line-height: 1.1; } .vy-spot-stats span { font-size: .75rem; color: var(--vy-muted); }

.vy-dash .vy-acal td { border-color: #edf2f6; } .vy-dash .vy-acal { border-radius: 10px; overflow: hidden; }
.vy-dash .vy-chip { border-radius: 6px; font-weight: 600; }

@media (max-width: 991px) {
    .vy-tiles { grid-template-columns: repeat(2, 1fr); }
    .vy-duo, .vy-spot { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .vy-hero { grid-template-columns: 1fr; padding: 1.25rem; } .vy-hero-big { font-size: 2.4rem; }
    .vy-tiles { grid-template-columns: 1fr; }
    .vy-spot-mail { grid-template-columns: 1fr; }
}
.vy-bar { fill: #1c9ad6; transform-box: fill-box; transform-origin: bottom; animation: vy-grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.vy-bar:hover { fill: #0c7fb8; }
@keyframes vy-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.vy-hover-band { fill: #eef5fa; }
@media (prefers-reduced-motion: reduce) { .vy-bar { animation: none; } }
@media (max-width: 575px) {
    .vy-hero:after { display: none; }
    .vy-trend .vy-axis { font-size: 26px; }
}
/* Phones: SendPortal's top-right account menu ran 20px off the screen on every page. */
@media (max-width: 575px) {
    html .main-header .user-dropdown { padding-left: .35rem !important; }
    html .main-header .user-dropdown .dropdown-toggle { margin-right: 0 !important; padding-right: 0 !important; }
    html .main-header .user-dropdown .fa-caret-down { display: none; }
}

/* ---------- Sidebar: collapsible menu groups + app / workspace divider ---------- */
html .sidebar .vy-nav-toggle { display: flex !important; align-items: center; }
html .sidebar .vy-nav-toggle > span:not(.badge) { flex: 1; min-width: 0; }
html .sidebar .vy-nav-toggle > .badge { flex: none; }
html .sidebar .vy-caret { font-size: .7rem; margin-left: .5rem; margin-right: .6rem; opacity: .7; transition: transform .2s ease; color: #e6f0f7 !important; }
html .sidebar .vy-nav-group.is-open .vy-caret { transform: rotate(180deg); }
html .sidebar .vy-side-sub { list-style: none; margin: 0; padding: .15rem 0 .35rem; display: none; }
html .sidebar .vy-nav-group.is-open .vy-side-sub { display: block; }
html .sidebar .vy-side-link { display: flex; align-items: center; gap: .55rem; padding: .42rem .75rem .42rem 2.85rem; font-size: .88rem; white-space: normal; line-height: 1.3;
    color: #c9dcea; border-radius: 8px; margin: 0 .5rem; text-decoration: none; }
html .sidebar .vy-side-link .fa-fw, html .sidebar .vy-side-link .fab { color: #7fb6d3; font-size: .8rem; }
html .sidebar .vy-side-link:hover { background: var(--vy-side-hover); color: #fff; }
html .sidebar .vy-side-link.is-on { background: rgba(28, 154, 214, .16); color: #fff; font-weight: 600; }
html .sidebar .vy-side-link.is-on .fa-fw, html .sidebar .vy-side-link.is-on .fab { color: #7fd0f5; }
/* An open group whose page you're on: highlight the item, not the whole group header. */
html .sidebar li.nav-item.vy-nav-group.active > a.nav-link { background: transparent; color: #fff; font-weight: 700; }
html .sidebar li.nav-item.vy-nav-group.active:not(.is-open) > a.nav-link { background: var(--vy-side-active); }
html .sidebar .vy-nav-sep { list-style: none; margin: .65rem 1.25rem .35rem; padding-top: .7rem; border-top: 1px solid rgba(255, 255, 255, .18);
    display: flex; flex-direction: column; gap: .05rem; }
html .sidebar .vy-nav-sep span { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7fb6d3; }
html .sidebar .vy-nav-sep strong { font-size: .8rem; font-weight: 600; color: #e6f0f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { html .sidebar .vy-caret { transition: none; } }
html .sidebar.modal .vy-nav-toggle { padding-right: .75rem; } html .sidebar.modal .vy-side-link { padding-left: 2.4rem; margin: 0 .25rem; }

/* ---------- Sidebar: slim (icon-only) mode, desktop. Toggle at the bottom of the menu; remembered per device. ---------- */
html .sidebar .vy-side-collapse { list-style: none; margin: .75rem 0 0; padding-top: .6rem; border-top: 1px solid rgba(255, 255, 255, .12); }
html .sidebar .vy-side-collapse button { display: flex; align-items: center; gap: .55rem; width: 100%; background: none; border: 0; color: #9fc3d9;
    font: inherit; font-size: .85rem; padding: .5rem 1rem; border-radius: 8px; cursor: pointer; text-align: left; }
html .sidebar .vy-side-collapse button:hover { background: var(--vy-side-hover); color: #fff; }
html .sidebar .vy-side-collapse .fas { width: 1.25em; text-align: center; transition: transform .2s ease; }
html .sidebar.d-xl-block { transition: width .2s ease, min-width .2s ease, max-width .2s ease, flex-basis .2s ease; }
@media (min-width: 1200px) {
    html.vy-side-mini .sidebar.d-xl-block { width: 78px !important; min-width: 78px !important; max-width: 78px !important; flex: 0 0 78px !important; overflow: visible; }
    html.vy-side-mini .sidebar.d-xl-block .sidebar-inner { margin-left: .4rem !important; margin-right: .4rem !important; }
    html.vy-side-mini .sidebar.d-xl-block .logo { padding: .5rem .25rem 0; }
    html.vy-side-mini .sidebar.d-xl-block .logo img { width: 58px !important; }
    html.vy-side-mini .sidebar.d-xl-block .logo::after { display: none; }
    html.vy-side-mini .sidebar.d-xl-block li.nav-item a.nav-link { display: flex !important; justify-content: center; position: relative; padding-left: 0; padding-right: 0; }
    html.vy-side-mini .sidebar.d-xl-block li.nav-item a.nav-link > span:not(.badge),
    html.vy-side-mini .sidebar.d-xl-block .vy-caret,
    html.vy-side-mini .sidebar.d-xl-block .vy-side-sub,
    html.vy-side-mini .sidebar.d-xl-block .vy-nav-sep span,
    html.vy-side-mini .sidebar.d-xl-block .vy-nav-sep strong,
    html.vy-side-mini .sidebar.d-xl-block .vy-side-collapse span { display: none !important; }
    html.vy-side-mini .sidebar.d-xl-block li.nav-item a.nav-link .fa-fw { margin-right: 0 !important; font-size: 1.05rem; }
    html.vy-side-mini .sidebar.d-xl-block li.nav-item a.nav-link > .badge { position: absolute; top: 2px; right: 6px; margin: 0 !important; font-size: .6rem; padding: .15rem .3rem; }
    html.vy-side-mini .sidebar.d-xl-block .vy-nav-sep { margin: .5rem .5rem .35rem; padding-top: 0; }
    html.vy-side-mini .sidebar.d-xl-block .vy-side-collapse button { justify-content: center; padding: .55rem 0; }
    html.vy-side-mini .sidebar.d-xl-block .vy-side-collapse .fas { transform: rotate(180deg); }
    /* the page you're on inside a group: show the group itself as active */
    html.vy-side-mini .sidebar.d-xl-block li.nav-item.vy-nav-group.active > a.nav-link { background: var(--vy-side-active); }
}
@media (prefers-reduced-motion: reduce) { html .sidebar.d-xl-block, html .sidebar .vy-side-collapse .fas { transition: none; } }

/* ---------- Email proof QA: verdict, extra markers, link check (2026-11-21) */
.vy-check-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; margin-bottom: .6rem; }
.vy-verdict { margin-left: auto; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: .28rem .6rem; border-radius: 999px; white-space: nowrap; }
.vy-verdict.is-do-not-send { background: #fdecea; color: #a93226; }
.vy-verdict.is-send-after-confirm { background: #fff4dc; color: #8a5a00; }
.vy-verdict.is-send-clean { background: #e3f5ec; color: #1e7a4f; }
.vy-check-list li.is-unknown > i { color: #7b8794; }
.vy-check-list li.is-info > i { color: #7fb6d3; }
.vy-linkcheck { border-top: 1px solid #e3eaf0; margin-top: .4rem; padding-top: .7rem; }
.vy-linkcheck-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; font-size: .9rem; }
.vy-lc-links { list-style: none; padding: 0; margin: .4rem 0 0; max-height: 320px; overflow: auto; }
.vy-lc-links li { display: flex; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid #eef2f6; font-size: .8rem; }
.vy-lc-links li strong { display: block; font-weight: 600; }
.vy-lc-links li a, .vy-lc-links li span { display: block; color: var(--vy-muted); word-break: break-all; }
.vy-lc-mark { width: 1.2rem; flex: none; }
