/* ==========================================================================
   Reminder Service — site theme
   Sits on top of Bootstrap 3.3.7 (bootstrap-theme.min.css is no longer
   loaded). Every legacy class hook used by the views is kept below.
   ========================================================================== */

:root {
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --surface: #ffffff;
    --canvas: #f6f8fb;
    --soft: #eef3fb;

    --brand: #1746c4;
    --brand-hover: #0f37a3;
    --brand-soft: #e8eefc;
    --brand-ink: #0a2a80;
    --accent: #a8c706;          /* legacy lime, used sparingly */

    --danger: #dc2626;
    --danger-soft: #fdecec;
    --success: #15803d;
    --success-soft: #e7f6ec;
    --warning: #b45309;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 20px 48px -20px rgba(15, 23, 42, .35);

    --header-h: 64px;
    --font: "Google Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; }

body {
    padding-top: var(--header-h);
    padding-bottom: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-optical-sizing: auto;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
h1 { font-size: 34px; letter-spacing: -0.03em; }
h2 { font-size: 26px; }
h3 { font-size: 19px; margin-top: 24px; }
h4 { font-size: 16px; }

a { color: var(--brand); transition: color .15s; }
a:hover, a:focus { color: var(--brand-hover); text-decoration: none; }

hr { border-top-color: var(--line); }

img { max-width: 100%; }

::selection { background: var(--brand-soft); color: var(--brand-ink); }

.lead { font-size: 17px; color: var(--muted); font-weight: 400; }

/* ---------- Page container ----------------------------------------------- */

body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }

.body-content {
    padding: 32px 15px 0;
    margin-top: 0;
}
.body-content > hr { display: none; }

.full-width {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1440px;
}

.restricted-width { max-width: 1440px !important; margin: auto; }

/* ---------- Header / navbar ---------------------------------------------- */

.navbar,
.navbar-inverse {
    background: rgba(255, 255, 255, .88) !important;
    background-image: none !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    min-height: var(--header-h);
    margin-bottom: 0;
}

.navbar .container { padding-left: 15px; padding-right: 15px; }
body.app .navbar .container { max-width: 1440px; width: 100%; padding: 0 20px; }

.navbar-header { display: flex; align-items: center; height: var(--header-h); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink) !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0;
    border-radius: 9px;
    background: var(--brand);
}
.brand-mark img {  width: auto; display: block; }
.brand-sub { color: var(--muted); font-weight: 500; }

/* legacy logo classes (still referenced by some views) */
.logo { max-height: 40px; margin: 0; }
.rslogo { margin-bottom: 0 !important; }

.navbar-nav { margin: 0; text-transform: none; }
.navbar-nav > li > a {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 12px;
    margin: 14px 2px;
    border-radius: 8px;
    line-height: 20px;
    transition: background-color .15s, color .15s;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.nav > li > a:hover,
.nav > li > a:focus {
    background-color: var(--soft) !important;
    color: var(--ink) !important;
}
.navbar-nav > li.active > a,
.navbar-nav > .open > a,
.navbar-nav > .open > a:hover,
.navbar-nav > .open > a:focus {
    background-color: var(--brand-soft) !important;
    color: var(--brand-ink) !important;
}

.navbar-nav > li > a.nav-cta {
    background: var(--brand) !important;
    color: #fff !important;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 8px;
}
.navbar-nav > li > a.nav-cta:hover { background: var(--brand-hover) !important; color: #fff !important; }

.navbar-nav .nav-icon { display: inline-flex; align-items: center; }
.navbar-nav .nav-icon svg { width: 18px; height: 18px; }

.helpicon { height: 18px; margin-top: -2px; opacity: .7; }

.navbar-toggle {
    margin: 0 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
}
.navbar-toggle .icon-bar { background-color: var(--ink); }
.navbar-toggle:hover, .navbar-toggle:focus { background: var(--soft); }

/* ---------- Dropdowns ----------------------------------------------------- */

.dropdown-menu {
    padding: 6px;
    margin-top: 4px;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    text-transform: none;
}
.dropdown-menu > li > a,
.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu a:hover {
    background: var(--soft);
    color: var(--ink);
}
.dropdown-menu .divider { margin: 6px 4px; background: var(--line); }
.dropdown-menu .dropdown-header {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.dropdown-menu .empty { padding: 8px 12px; color: var(--muted); white-space: normal; }
.remindermenu { min-width: 280px; }

.dropdown-toggle .caret { margin-left: 4px; opacity: .6; }

/* ---------- Mobile nav (collapse earlier because the app nav is wide) ----- */

@media (max-width: 1050px) {
    .navbar-header { float: none; }
    .navbar-left, .navbar-right { float: none !important; }
    .navbar-toggle { display: block; }
    .navbar-collapse {
        border-top: 1px solid var(--line);
        box-shadow: none;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding-bottom: 12px;
    }
    .navbar-fixed-top { top: 0; border-width: 0 0 1px; }
    .navbar-collapse.collapse { display: none !important; }
    .collapse.in { display: block !important; }
    .navbar-nav { float: none !important; margin: 8px 0 0; }
    .navbar-nav > li { float: none; }
    .navbar-nav > li > a { margin: 2px 0; padding: 10px 12px; }
    .navbar-nav > li > a.nav-cta { margin: 8px 0 0; text-align: center; }
    .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        box-shadow: none;
        border: 0;
        background: var(--canvas);
        margin: 0 0 6px;
    }
}

/* ---------- Page header (was a grey jumbotron) ---------------------------- */

.jumbotron,
.emailersys .jumbotron {
    background: transparent;
    padding: 8px 0 20px;
    margin: 0 15px 24px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}
.jumbotron h1,
.emailersys .jumbotron h1 {
    color: var(--ink);
    font-size: 30px;
    margin: 0 0 6px;
}
.jumbotron p,
.jumbotron .lead {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
    font-weight: 400;
}
.jumbotron img { max-height: 56px; }
.container .jumbotron, .container-fluid .jumbotron { padding-left: 0; padding-right: 0; border-radius: 0; }

/* ---------- Cards ---------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-bottom: 24px;
}
.card > h3:first-child, .card > h2:first-child { margin-top: 0; }

/* legacy boxes, now rendered as cards */
.homebox, .costbox { padding: 0 12px; border: 0; }
.homeboxdiv,
.costbox > div {
    background: var(--surface);
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin: 0 0 24px;
}
.homeboxdiv h3:first-child { margin-top: 0; }
.costbox:hover { border: 0; }
.costbox div span { font-weight: 700; }
.costrow { margin: auto; width: 100%; }
.costbox h3 { text-transform: none; }

/* Emailer dashboard columns look better as cards */
.emailersys #reminderer > .col-sm-4 > h3:first-child { margin-top: 0; }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--brand);
    background-image: none;
    color: #fff;
    text-shadow: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-hover); color: #fff; }
.btn:focus, .btn:active:focus, .btn.focus {
    outline: none;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(23, 70, 196, .25);
    top: 0;
}
.btn:active, .btn.active { top: 0; box-shadow: none; }

.btn-default,
.btn-secondary,
.modal-footer .btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-default:hover, .btn-default:focus,
.btn-secondary:hover, .btn-secondary:focus {
    background: var(--soft);
    color: var(--ink);
    border-color: var(--line-strong);
}
/* “submit” buttons in the app were the primary action */
.btn-secondary.submit, .btn.submit, .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-secondary.submit:hover, .btn.submit:hover, .btn-primary:hover,
.btn-secondary.submit:focus, .btn.submit:focus, .btn-primary:focus {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #fff;
}

.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }

.btn-select {
    background: var(--brand-soft);
    color: var(--brand-ink);
    border-color: transparent;
    padding: 5px 12px;
    font-size: 13px;
    box-shadow: none;
}
.btn-select:hover, .btn-select:focus { background: var(--brand); color: #fff; }

.btn-delete {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: transparent;
    padding: 6px 12px;
    box-shadow: none;
}
.btn-delete:hover, .btn-delete:focus { background: var(--danger); color: #fff; }

.viewsent,
.btn.viewsent {
    background: var(--success-soft);
    color: var(--success);
    border-color: transparent;
}
.viewsent:hover, .btn.viewsent:hover, .btn.viewsent:focus { background: var(--success); color: #fff; }

.btn-link { background: transparent; box-shadow: none; color: var(--brand); padding-left: 0; padding-right: 0; }
.btn-link:hover { background: transparent; color: var(--brand-hover); }

/* ---------- Forms --------------------------------------------------------- */

input, select, textarea { max-width: 1170px; }

.form-control {
    height: 42px;
    padding: 9px 12px;
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 70, 196, .15);
    outline: 0;
}
.form-control::placeholder { color: #94a3b8; text-transform: none; }
textarea.form-control, textarea { min-height: 400px; height: auto; }
select.form-control { padding-top: 8px; padding-bottom: 8px; }

.control-label,
label {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
}
.form-horizontal .control-label { padding-top: 11px; }

.form-group { margin-bottom: 18px; }

.text-danger, .field-validation-error { color: var(--danger); font-size: 13px; }
.validation-summary-errors ul { padding-left: 18px; margin: 0 0 16px; }
.validation-summary-errors {
    background: var(--danger-soft);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.validation-summary-valid { display: none; }

/* Icon sits inside the input: pinned to the input's box (42px tall), not the
   container, so helper text under the input doesn't pull it down. */
.input-icons { position: relative; }
.input-icons i {
    position: absolute;
    left: 12px;
    top: 21px;
    transform: translateY(-50%);
    margin: 0;
    z-index: 3;
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}
/* Bootstrap column wrappers have 15px side padding */
.input-icons[class*="col-"] i { left: 27px; }
/* Loose helper text such as "(dd/mm/yyyy)" after the input */
.input-icons[class*="col-"] { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.input-icons[class*="col-"] .form-control { margin-bottom: 4px; }
.iconform, .hasDatepicker { text-indent: 0; padding-left: 36px !important; }

.offsetboxes input { max-width: 60%; }
.helpform .row { margin-bottom: 10px; }

/* Wrap Emailer forms in a surface so they don’t float on the canvas */
.emailersys form.form-horizontal,
#reminderer > .col-sm-12 > form.form-horizontal {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 20px 12px;
    box-shadow: var(--shadow-sm);
}

/* ---------- Alerts / status ---------------------------------------------- */

.alert {
    border: 1px solid transparent;
    border-radius: var(--radius);
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    margin: 0 15px 24px;
}
.alert-success { background: var(--success-soft); color: var(--success); border-color: #bfe5cb; }
.alert-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: #f6c9c9; }
.alert-info    { background: var(--brand-soft);   color: var(--brand-ink); border-color: #cdd9f7; }

.saved {
    border: 1px solid #cdd9f7;
    background: var(--brand-soft);
    color: var(--brand-ink);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 0 0 32px;
    font-weight: 600;
}

._Disabled { color: var(--danger); }
._sent { color: var(--success); font-weight: 700; }
.dir { font-weight: 700; }
.mf { text-decoration: underline !important; color: var(--danger); }

.badge-soft {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
}
.badge-soft.accent { background: #f2f8d6; color: #4d5c00; }

/* ---------- Tables -------------------------------------------------------- */

.table { background: var(--surface); }
.table > thead > tr > th {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.table > tbody > tr > td { border-top-color: var(--line); vertical-align: middle; }

.datagrid, .homedatagrid {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.datagrid td, .datagrid th { padding: 14px 16px; }
.homedatagrid td, .homedatagrid th { padding: 8px 12px; }
.datagrid th, .homedatagrid th {
    background: var(--canvas);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--line);
}
.toprow { border-bottom: 0 !important; }
.gridrow {
    border-top: 0 !important;
    border-bottom: 1px solid var(--line);
    padding: 12px 0 24px;
}
.gridrow td { padding: 16px; }
.datagrid .btn { padding: 6px 12px; }

.datagrid .dropdown-menu { padding: 6px !important; }
.datagrid .dropdown-menu a { padding: 10px 14px; color: var(--text); }
.datagrid .dropdown-menu a:hover { color: var(--ink); }
.datagrid .dropdown-menu .delete:hover { color: var(--danger); background: var(--danger-soft); }

.dl-horizontal dt { white-space: normal; }

/* ---------- Angular ui-grid ---------------------------------------------- */

.ui-grid {
    height: 600px;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}
.ui-grid-sm { height: 260px; }
.ui-grid-top-panel,
.ui-grid-header-viewport,
.ui-grid-header-canvas,
.ui-grid-header-cell {
    background: var(--canvas) !important;
    background-image: none !important;
}
.ui-grid-header { border-bottom: 1px solid var(--line) !important; }
.ui-grid-header-cell {
    border-right: 1px solid var(--line) !important;
    color: var(--muted);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.ui-grid-cell-contents { padding: 9px 10px; }
.ui-grid-row:nth-child(odd) .ui-grid-cell { background: var(--surface); }
.ui-grid-row:nth-child(even) .ui-grid-cell { background: #fafbfd; }
.ui-grid-row:hover .ui-grid-cell { background: var(--brand-soft) !important; }
.ui-grid-cell { border-right: 1px solid #f1f4f8 !important; border-bottom: 1px solid #f1f4f8; }
.ui-grid-pager-panel { background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px; }
.ui-grid-pager-control button, .ui-grid-pager-control input { border-radius: 6px; }
.ui-grid-pager-row-count-picker select { height: auto !important; }

.ui-grid button,
.ui-grid-cell-contents button {
    margin: -3px 0 0 4px;
    padding: 3px 10px;
    font: 600 12.5px/18px var(--font);
    color: var(--brand-ink);
    background: var(--brand-soft);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.ui-grid button:hover { background: var(--brand); color: #fff; }
.ui-grid .ui-grid-pager-control button { margin: 0 2px; }

/* ---------- jQuery UI (dialogs, autocomplete, datepicker) ---------------- */

.ui-widget { font-family: var(--font) !important; font-size: 14px; }
.ui-widget-overlay { background: #0f172a; opacity: .45; }
.ui-dialog {
    padding: 0;
    border: 0 !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.ui-dialog .ui-dialog-titlebar {
    background: var(--surface);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 16px 20px;
    color: var(--ink);
    font-weight: 700;
    font-size: 16px;
}
.ui-dialog .ui-dialog-titlebar-close { right: 14px; border: 0; background: transparent; }
.ui-dialog .ui-dialog-content { padding: 20px; color: var(--text); }
.ui-dialog .ui-dialog-buttonpane {
    border-top: 1px solid var(--line);
    background: var(--canvas);
    padding: 10px 16px;
    margin: 0;
}
.ui-dialog .ui-dialog-buttonpane button {
    font: 600 14px/20px var(--font);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}
.ui-dialog .ui-dialog-buttonpane button:first-child {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.ui-dialog .ui-dialog-buttonpane button:hover { filter: brightness(.96); }
.dialog-icon { float: left; margin: 2px 12px 0 0; }
.pixelle-dialog { display: none; }

ul.ui-autocomplete.ui-menu {
    width: 600px !important;
    max-width: calc(100vw - 32px);
    padding: 6px;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}
.ui-menu .ui-menu-item { margin: 0; }
.ui-menu .ui-menu-item-wrapper { padding: 9px 12px; border-radius: 6px; border: 0 !important; }
.ui-menu .ui-state-active, .ui-menu .ui-menu-item-wrapper.ui-state-active {
    background: var(--brand-soft) !important;
    color: var(--brand-ink) !important;
    margin: 0 !important;
}
ul.ui-autocomplete.ui-menu li:first-child a { color: var(--brand); }

.ui-datepicker { border-radius: var(--radius) !important; box-shadow: var(--shadow-lg); padding: 8px; border: 1px solid var(--line) !important; }
.ui-datepicker .ui-datepicker-header { background: var(--canvas); border: 0; border-radius: 8px; }
.ui-datepicker td a, .ui-datepicker td span { text-align: center !important; border-radius: 6px; }
.ui-datepicker .ui-state-highlight { background: var(--brand-soft) !important; border-color: transparent !important; color: var(--brand-ink) !important; }
.ui-datepicker .ui-state-active { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }

/* ---------- Bootstrap modal ---------------------------------------------- */

.modal-content {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.modal-header .modal-title { font-size: 18px; margin: 0; }
.modal-header .close { margin: 0; font-size: 26px; opacity: .45; }
.modal-footer { border-top: 1px solid var(--line); background: var(--canvas); padding: 14px 24px; }
.modal-backdrop.in { opacity: .45; background: #0f172a; }

.previewbox {
    box-shadow: none;
    padding: 32px;
}
.previewbox td { padding: 20px; }
.isolated-component { all: revert; }

/* ---------- Marketing pages ---------------------------------------------- */

.hero {
    padding: 40px 0 48px;
}
.hero h1 {
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 14px 0 16px;
    max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 19px; line-height: 1.55; max-width: 36em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

.login-card { padding: 28px; }
.login-card h3 { margin: 0 0 4px; font-size: 20px; }
.login-card .sub { color: var(--muted); margin-bottom: 20px; }
.login-card .btn { width: 100%; }
.login-card .login-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 14px;
}

#loginform { max-width: 100%; margin: 0; }
#results table td { vertical-align: middle; }

.section { padding: 40px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { margin: 8px 0 8px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
}

.feature { }
.feature-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); }

.row-eq { display: flex; flex-wrap: wrap; }
.row-eq:before, .row-eq:after { display: none; }
.row-eq > [class*="col-"] { display: flex; }
.row-eq > [class*="col-"] > .card { flex: 1; }

/* Pricing */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price-card .tag { position: absolute; top: -12px; left: 28px; background: var(--brand); color: #fff; }
.price-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price { font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-meta { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.checklist li { position: relative; padding: 7px 0 7px 28px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.price-card .btn { width: 100%; }

.casestudies p { margin-bottom: 0; }
.case h4 { margin: 0 0 8px; font-size: 17px; }
.case p { color: var(--muted); margin: 0; }

/* Demo */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; }
.step p { color: var(--muted); }
.shot {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--canvas);
}
.shot img { display: block; width: 100%; margin: 0 !important; }
#demopage img { margin: 0; width: 100%; }

.cta-band {
    background: var(--ink);
    color: #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 8px;
}
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 24px; }
.cta-band p { margin: 0; }
.cta-band .btn-default { border-color: transparent; }

.back-link { display: inline-block; margin-top: 16px; color: var(--muted); }
.back-link:hover { color: var(--ink); }

/* Auth pages */
.auth-wrap { max-width: 440px; margin: 24px auto 40px; }
.auth-wrap .card { padding: 32px; }
.auth-wrap h1 { font-size: 26px; margin: 0 0 6px; }
.auth-wrap .sub { color: var(--muted); margin-bottom: 24px; }

.privacy h4 { margin-top: 30px; }

/* legacy hidden panels used by showpage() */
#services, #projects, #contact_us, #reminder { display: none; }

.project { margin-bottom: 20px; border-radius: var(--radius); }
.project img { width: 100%; max-width: 220px; border: 1px solid var(--line); border-radius: 8px; }
.proj:hover img { width: 100%; }

.imagebox img { max-width: 200px; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
    margin-top: 56px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
}
.site-footer .inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 24px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    align-items: center;
    justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--brand); }
.site-footer .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .ver { color: #94a3b8; }
body.app .site-footer .inner { max-width: 1440px; padding: 24px 20px; }

footer { color: var(--muted); }
footer a { color: var(--text); }

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 991px) {
    .hero { padding: 16px 0 24px; }
    .hero h1 { font-size: 38px; }
    .login-card { margin-top: 24px; }
}

@media (max-width: 767px) {
    body { font-size: 15px; }
    .body-content { padding: 20px 16px 0; }
    .navbar .container { padding: 0 16px; }
    .hero h1 { font-size: 32px; }
    .hero .lead { font-size: 17px; }
    .jumbotron h1, .emailersys .jumbotron h1 { font-size: 24px; }
    .jumbotron p { font-size: 15px; }
    .emailersys h3 { font-size: 18px; }
    .card, .homeboxdiv, .costbox > div { padding: 22px; }
    .row-eq > [class*="col-"] { width: 100%; }
    .cta-band { padding: 28px 22px; }
    .brand-sub { display: none; }
    .form-horizontal .control-label { padding-top: 0; }
    ul.ui-autocomplete.ui-menu { width: auto !important; }
}

.navbar-nav > .open > a.nav-cta,
.navbar-nav > .open > a.nav-cta:hover,
.navbar-nav > .open > a.nav-cta:focus,
.navbar-nav > li.active > a.nav-cta { background: var(--brand-hover) !important; color: #fff !important; }

/* Form submit buttons are the primary action even when marked btn-default */
form [type="submit"].btn,
form button[type="submit"].btn { background: var(--brand); border-color: var(--brand); color: #fff; }
form [type="submit"].btn:hover,
form button[type="submit"].btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

/* ---------- Reminder list (Emailer/List) --------------------------------- */

.count-pill {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: #e9eef6;
}
.seg a {
    padding: 7px 16px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.list-filter { flex: 1 1 280px; max-width: 460px; }
.list-search { margin: 0; }
.list-empty { color: var(--muted); padding: 16px 4px; }
.ui-grid button.danger { background: var(--danger-soft); color: var(--danger); }
.ui-grid button.danger:hover { background: var(--danger); color: #fff; }
.ui-grid-cell-contents a { cursor: pointer; }
.preview-meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.preview-body { padding: 0; background: var(--canvas); }
.preview-body > p { padding: 20px 24px; margin: 0; }
#previewFrame { display: block; width: 100%; height: 65vh; border: 0; background: #fff; }
.modal-header:before, .modal-header:after { display: none; }
