.sidenav .navbar-brand {
    padding: 14px !important;
}

.navbar-vertical .navbar-brand>img {
    max-height: 100%;
    height: 50px !important;
}

.navbar-vertical.navbar-expand-xs .navbar-collapse {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

.site-title {
    vertical-align: bottom;
    line-height: 20px;
    font-size: 23px !important;
    font-family: impact, 'Open Sans';
    color: #1c004a !important;
}

.loader {
    font-size: 0px;
}

.datepicker td,
.datepicker th,
.datepicker span {
    text-align: center;
    padding: 4px 10px;
    font-size: 14px;
}

.form-check-input {
    border: 1px solid #ccc;
}

.alert a {
    color: rgb(210, 241, 255);
    text-decoration: underline;
}

.scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scrollbar::-webkit-scrollbar-button:start:decrement,
.scrollbar::-webkit-scrollbar-button:end:increment {
    display: block;
    height: 10px;
}

.scrollbar::-webkit-scrollbar-button:vertical:increment {
    background-color: #fff;
}

.scrollbar::-webkit-scrollbar-track-piece {
    background-color: #eee;
    -webkit-border-radius: 3px;
}

.scrollbar::-webkit-scrollbar-thumb:vertical {
    height: 50px;
    background-color: #ccc;
    -webkit-border-radius: 3px;
}

.scrollbar::-webkit-scrollbar-thumb:horizontal:hover {
    background-color: #aaa;
}

.scrollbar::-webkit-scrollbar-thumb:horizontal {
    width: 50px;
    background-color: #ccc;
    -webkit-border-radius: 3px;
    transition: 0.5s;
}

.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

.picture-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.picture-item .pic {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    flex: 0 0 35px;
    border-radius: 100%;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    margin: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.picture-item.disabled span {
    text-decoration: line-through;
}

.choices .choices__inner .choices__item.choices__item--selectable,
.choices .choices__inner .choices__item.is-highlighted {
    display: inline-flex;
    padding-right: 10px;
}

.choices .choices__inner .choices__item .picture-item .pic {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 1.2em;
}

.choices .choices__item--selectable .picture-item {
    margin: 0 5px;
}

.check-top input[type="checkbox"] {
    vertical-align: top;
    margin-top: 8px;
}

:root {
    --fc-daygrid-event-dot-width: 10px;
}

.fc .fc-button-primary {
    text-transform: capitalize;
}

.fc-daygrid-dot-event .fc-event-title {
    font-weight: normal;
}

.fc .fc-daygrid-day-number {
    font-size: 18px;
}

.fc .fc-daygrid-day.fc-day-today {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

/* Equal-height month cells — prevent job-rich days from stretching the grid */
.ag-timesheet-calendar .fc-daygrid-body,
.ag-timesheet-calendar .fc-scrollgrid-sync-table {
    height: 100% !important;
}

.ag-timesheet-calendar .fc-daygrid-day-frame {
    min-height: 118px;
    height: 100%;
    padding: 2px 3px 4px;
}

.ag-timesheet-calendar .fc-daygrid-day-top {
    flex-direction: row !important;
    justify-content: flex-end;
}

.ag-timesheet-calendar .fc-daygrid-day-number {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #334155;
    padding: 4px 6px !important;
}

.ag-timesheet-calendar .fc-day-today .fc-daygrid-day-number {
    background: #4054c4;
    color: #fff !important;
    border-radius: 999px;
    min-width: 1.6rem;
    text-align: center;
}

.ag-timesheet-calendar .fc-daygrid-day-events {
    margin-top: 2px;
    min-height: 0 !important;
}

.ag-timesheet-calendar .fc-daygrid-event {
    background: transparent !important;
    border: none !important;
    margin: 1px 1px !important;
    box-shadow: none !important;
}

.ag-timesheet-calendar .fc-daygrid-event .fc-event-main {
    padding: 0 !important;
    color: inherit !important;
}

.ag-timesheet-calendar .fc-more-link {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #4054c4 !important;
    padding: 2px 4px !important;
}

.ag-timesheet-calendar .fc-header-toolbar {
    gap: 0.75rem;
    margin-bottom: 1rem !important;
    flex-wrap: wrap;
}

.ag-timesheet-calendar .fc-toolbar-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b;
}

.ag-timesheet-calendar .fc-button-primary {
    background: #4054c4 !important;
    border-color: #4054c4 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.ag-timesheet-calendar .fc-button-primary:not(:disabled).fc-button-active,
.ag-timesheet-calendar .fc-button-primary:not(:disabled):hover {
    background: #2f3fa8 !important;
    border-color: #2f3fa8 !important;
}

.ag-timesheet-calendar .ag-cal-event-chip {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.45rem;
    border-radius: 0.4rem;
    border-left: 3px solid var(--ag-chip-accent, #4054c4);
    background: var(--ag-chip-bg, #eef2ff) !important;
    color: var(--ag-chip-fg, #1e293b) !important;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.ag-timesheet-calendar .fc-daygrid-event:hover .ag-cal-event-chip {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
    filter: saturate(1.08);
}

.ag-timesheet-calendar .ag-cal-event-chip__time {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    color: var(--ag-chip-accent, #4054c4);
}

.ag-timesheet-calendar .ag-cal-event-chip__title {
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

/* Day-of-week header row */
.ag-timesheet-calendar .fc-col-header-cell {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.06) !important;
}

.ag-timesheet-calendar .fc-col-header-cell-cushion {
    padding: 0.6rem 0.35rem !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    text-decoration: none !important;
}

.ag-timesheet-calendar .fc-scrollgrid,
.ag-timesheet-calendar .fc-scrollgrid td,
.ag-timesheet-calendar .fc-scrollgrid th {
    border-color: rgba(15, 23, 42, 0.07) !important;
}

.ag-timesheet-calendar .fc-daygrid-day {
    transition: background 0.15s ease;
}

.ag-timesheet-calendar .fc-daygrid-day:hover {
    background: rgba(64, 84, 196, 0.045);
}

/* Subtle weekend tint */
.ag-timesheet-calendar .fc-day-sat,
.ag-timesheet-calendar .fc-day-sun {
    background: rgba(148, 163, 184, 0.06);
}

.ag-timesheet-calendar .fc-day-today {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%) !important;
}

/* Toolbar buttons — rounded pill group */
.ag-timesheet-calendar .fc-button-group .fc-button {
    border-radius: 0 !important;
}

.ag-timesheet-calendar .fc-button-group .fc-button:first-child {
    border-top-left-radius: 0.6rem !important;
    border-bottom-left-radius: 0.6rem !important;
}

.ag-timesheet-calendar .fc-button-group .fc-button:last-child {
    border-top-right-radius: 0.6rem !important;
    border-bottom-right-radius: 0.6rem !important;
}

.ag-timesheet-calendar .fc-today-button {
    border-radius: 0.6rem !important;
    background: #fff !important;
    color: #4054c4 !important;
    border: 1px solid #c7cdf2 !important;
}

.ag-timesheet-calendar .fc-today-button:disabled {
    opacity: 0.55 !important;
}

/* List view polish */
.ag-timesheet-calendar .fc-list {
    border-radius: 0.75rem;
    overflow: hidden;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.ag-timesheet-calendar .fc-list-day-cushion {
    background: #f1f5f9 !important;
    font-weight: 700;
    color: #1e293b;
}

.ag-timesheet-calendar .fc-list-event:hover td {
    background: rgba(64, 84, 196, 0.06) !important;
}

.ag-timesheet-calendar .fc-list-event-dot {
    border-width: 6px !important;
}

.ag-timesheet-calendar .fc-popover {
    border-radius: 0.75rem !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
    overflow: hidden;
}

.ag-timesheet-calendar .fc-popover-header,
.ag-timesheet-calendar .fc-more-popover .fc-popover-header {
    background: #eef2ff !important;
    color: #102a43 !important;
    font-weight: 700 !important;
    padding: 0.5rem 0.75rem !important;
}

.ag-timesheet-calendar .fc-popover-title,
.ag-timesheet-calendar .fc-more-popover .fc-popover-title {
    color: #102a43 !important;
    font-weight: 700 !important;
}

.ag-timesheet-calendar .fc-popover-close {
    color: #334155 !important;
    opacity: 1 !important;
}

/* Status legend */
.ag-cal-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.ag-cal-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.ag-cal-legend__dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .ag-timesheet-calendar .fc-daygrid-day-frame {
        min-height: 90px;
    }

    .ag-cal-legend {
        gap: 0.35rem 0.75rem;
        padding: 0.5rem 0.65rem;
    }

    .ag-cal-legend__item {
        font-size: 0.68rem;
    }
}

.fc .fc-day-today .fc-timegrid-now-indicator-container {
    background: #f2f3ff;
}

.fc a.fc-event:hover {
    color: #000;
}

.fc .fc-event-time {
    text-transform: uppercase;
}

.react-date-picker {
    width: 100%;
}

.react-date-picker__wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.react-date-picker__wrapper:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.react-date-picker__inputGroup {
    flex-grow: 1;
    padding: 0;
    padding: 0.5rem 0.75rem;
}

.react-date-picker__inputGroup__input {
    min-width: 0.54em;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    width: 100%;
}

.react-date-picker__inputGroup__input:focus {
    outline: none;
}

.react-date-picker__button {
    background-color: #fff;
    color: #8392ab;
    border-left: 1px solid #d2d6da;
    padding: 0.5rem 1rem;
}

.react-date-picker__calendar-button {
    border-radius: 0 5px 5px 0;
}

.react-date-picker__button:enabled:hover .react-date-picker__button__icon,
.react-date-picker__button:enabled:focus .react-date-picker__button__icon {
    stroke: #007bff;
}

.react-date-picker--disabled div,
.react-date-picker--disabled button {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #6c757d;
}

.react-date-picker__calendar {
    z-index: 100000 !important;
}

.react-date-picker__calendar--open {
    z-index: 100000 !important;
}

/* Larger, clearer calendar for staff/client portal */
.ccs-datepicker-wrap {
    width: 100%;
    position: relative;
    z-index: 40;
    overflow: visible;
}

.ccs-datepicker-wrap .react-date-picker {
    width: 100%;
}

.ccs-datepicker-wrap .react-date-picker__wrapper {
    min-height: 46px;
}

.react-date-picker__calendar--open,
.react-date-picker__calendar.ccs-datepicker-calendar,
.ccs-datepicker-calendar.react-calendar,
.react-calendar.ccs-datepicker-calendar {
    width: 320px !important;
    max-width: min(320px, calc(100vw - 24px));
    max-height: none;
    overflow: visible;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 0.75rem;
    z-index: 100000 !important;
}

.ccs-datepicker-calendar .react-calendar__navigation button,
.react-calendar.ccs-datepicker-calendar .react-calendar__navigation button {
    min-width: 44px;
    font-size: 1rem;
    font-weight: 600;
}

.ccs-datepicker-calendar .react-calendar__tile,
.react-calendar.ccs-datepicker-calendar .react-calendar__tile {
    padding: 0.85em 0.4em;
    font-size: 0.95rem;
    border-radius: 0.65rem;
}

.ccs-datepicker-calendar .react-calendar__month-view__weekdays__weekday,
.react-calendar.ccs-datepicker-calendar .react-calendar__month-view__weekdays__weekday {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.password-eye {
    border-radius: 0 5px 5px 0;
    margin-top: 0;
    border-color: #d2d6da;
}

/* Removed: body.timesheet nav { display:none } — it hid the portal topbar header */

.btn.highlight {
    background: #f53a3c;
}

.form-control.disabled {
    background: #eaecef;
}

.navbar-vertical {
    z-index: 1000;
}

/* Short viewports: keep footer (Logout) visible — nav scrolls, footer stays pinned */
@media (max-height: 768px) {

    #sidenav-main .navbar-collapse#sidenav-collapse-main,
    .navbar-vertical.navbar-expand-xs .navbar-collapse {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
    }

    #sidenav-main .sidenav-footer {
        display: block !important;
        flex: 0 0 auto !important;
        visibility: visible !important;
        padding-top: 0.55rem !important;
        padding-bottom: 0.95rem !important;
    }

    #sidenav-main .sidenav-footer .btn,
    #sidenav-main .sidenav-footer .ag-logout-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 2.4rem;
    }
}

@media (max-width: 575.98px) {
    .mb-flex-vertical {
        flex-direction: column;
    }
}

.react-date-picker__inputGroup {
    display: flex;
    align-items: center;
    gap: 4px;
    /* Prevent overlapping */
    flex-wrap: nowrap;
}

.react-date-picker__inputGroup__input {
    min-width: 2ch;
    /* Ensure space for day/month/year */
    text-align: center;
    padding: 0 2px;
}

.react-date-picker__inputGroup__divider {
    padding: 0 2px;
}

/* .fc-daygrid-event {
  font-size: 0.8rem;
  margin: 2px 0;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1.2;
} */

.fw-semibold.text-dark {
    word-wrap: break-word;
    word-break: break-word;
}

.select__control {
    border-radius: 0.375rem;
    /* rounded */
    border-color: #ced4da;
    min-height: 38px;
}

.select__menu {
    z-index: 9999;
    /* so it appears above modal/cards */
}

.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    /* pushes it to the bottom */
}


.lucide.lucide-sparkles path {
    stroke: #5e72e4;
}

.text-20 {
    font-size: 20px;
    color: #5e72e4;
}

.logins-card .card {
    height: 118px;
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease-in;
}

.logins-card .card .card-body {
    padding: 24px;
    border: 2px solid rgb(228, 228, 228);
    /* box-shadow: 0px 0px 10px #00000015; */
    text-align: center;
    border-radius: 12px;
}

.logins-card .card .card-body svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.logins-card .card .card-body h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.logins-card .card .card-body svg path,
.logins-card .card .card-body svg circle {
    stroke: #5e72e4 !important;
}

.logins-card .card .card-body p {
    margin-bottom: 0px;
}

.star-icon {
    stroke: rgb(255, 208, 0);
    /* golden yellow */
    fill: rgb(255, 208, 0);
    /* golden yellow */
    animation: pulse 2s infinite linear;
    width: 25px !important;
    height: 25px !important;
    position: absolute;
    right: 0px;
    stroke-width: none !important;
    top: -10px;
}

.star-icon path {
    stroke-width: none !important;
    stroke: rgb(255, 208, 0);
    /* golden yellow */
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
        /* slight grow */
    }
}

.logins-card .card {
    height: auto;
    position: relative;
}

.logins-card .card.active-cards {
    background-color: #5e72e4;
    transform: scale(1.1);
}

.logins-card .card.active-cards h3 {
    color: #ffffff !important;
}

.logins-card .card.active-cards p {
    color: #ffffffde !important;
}

.logins-card .card.active-cards .card-body svg path,
.logins-card .card.active-cards .card-body svg circle {
    stroke: #ffffff !important;
}

.warning span {
    font-size: 13px;
}

.login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #d2d6ee;
    border: 1px solid #5e72e4;
    ;
    border-radius: 8px;
    margin-bottom: 20px;

}

.login-box svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.login-box svg path,
.login-box svg circle {
    stroke: #5e72e4
}

.login-box h5 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #5e72e4;
}

.login-box p {
    font-size: 13px;
    color: rgb(167, 167, 167);
}

.table-responsive table {
    min-height: 1px;
    /* Safari bug fix */
}

@media (max-width: 768px) {
    .custom-calendar-style .fc-header-toolbar {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .custom-calendar-style .fc-button-group .fc-button-primary {
        padding: 6px 12px;
    }

    .custom-calendar-style .fc-toolbar-title {
        font-size: 22px;
        padding: 10px 0;
    }

    .fc .fc-list-day-cushion,
    .fc .fc-list-table td {
        padding: 5px 4px;
    }

    .navbar-vertical.navbar-expand-xs.fixed-start {
        z-index: 1000;
    }

    .navbar-vertical.navbar-expand-xs .navbar-nav .nav-link {
        margin-right: 0 !important;
    }


}

.ag-recruitment-card .ag-recruitment-card-items {
    height: 200px;
}

.btn-close {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 16 16'><path d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/></svg>")
}

:root {
    /* Panel-aligned Argon tokens (see ag-design-system.css for full set) */
    --ag-primary: #5e72e4;
    --ag-primary-50: #eef0fc;
    --ag-primary-600: #4c5fd0;
    --ag-dark: #344767;
    --ag-secondary: #8392ab;
    --ag-surface: #f8f9fa;
    --ag-surface-strong: #ffffff;
    --ag-border: rgba(52, 71, 103, 0.1);
    --ag-border-strong: rgba(94, 114, 228, 0.18);
    --ag-text: #344767;
    --ag-text-muted: #8392ab;
    --ag-shadow-soft: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
    --ag-shadow-card: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    --ag-shadow-strong: 0 20px 40px rgba(52, 71, 103, 0.12);
    --ag-radius-xl: 1rem;
    --ag-radius-lg: 0.75rem;
    --ag-gradient-primary: linear-gradient(310deg, #5e72e4 0%, #825ee4 100%);
}

body {
    color: var(--ag-text);
    background: #f3f4f6;
}

.ag-page-section {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-xl);
    box-shadow: var(--ag-shadow-soft);
}

.ag-card,
.ag-surface-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-xl);
    box-shadow: var(--ag-shadow-soft);
}

.ag-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ag-card-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: #102a43;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.ag-card-subtitle {
    margin: 0.35rem 0 0;
    color: #6b7a90;
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 36rem;
}

/* Job details read-only layout */
.ag-job-details {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.ag-job-section {
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: linear-gradient(180deg, #ffffff, #f8faff);
}

.ag-job-section__title {
    display: flex;
    align-items: center;
    margin: 0 0 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4054c4;
}

.ag-job-section__title i {
    opacity: 0.85;
}

.ag-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

@media (min-width: 768px) {
    .ag-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ag-info-item {
    min-width: 0;
}

.ag-info-item--full {
    grid-column: 1 / -1;
}

.ag-info-item__label {
    margin-bottom: 0.28rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b98ad;
}

.ag-info-item__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #102a43;
    line-height: 1.4;
    word-break: break-word;
}

.ag-flag-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

@media (min-width: 576px) {
    .ag-flag-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ag-flag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.ag-flag-item--on {
    color: #0f766e;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.ag-flag-item--off {
    color: #64748b;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
}

.ag-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(94, 114, 228, 0.1);
    color: #4054c4;
    font-size: 0.82rem;
    font-weight: 600;
}

.ag-notes-box {
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.03);
    border: 1px dashed rgba(15, 23, 42, 0.1);
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.ag-job-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ag-job-gallery__btn {
    width: 110px;
    height: 110px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.ag-job-gallery__btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ag-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.ag-image-lightbox img {
    max-width: min(960px, 94vw);
    max-height: 82vh;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
}

.ag-image-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #102a43;
    cursor: pointer;
}

.ag-detail-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.ag-detail-card-header__title {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 700;
    color: #102a43;
}

.ag-detail-card-header__meta {
    margin: 0.3rem 0 0;
    color: #6b7a90;
    font-size: 0.88rem;
}

.ag-schedule-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.08), rgba(17, 205, 239, 0.08));
    border: 1px solid rgba(94, 114, 228, 0.12);
}

@media (min-width: 576px) {
    .ag-schedule-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ag-schedule-strip__label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.ag-schedule-strip__value {
    font-size: 1rem;
    font-weight: 700;
    color: #102a43;
}

.ag-actions-card .card-header h5,
.ag-actions-card .ag-detail-card-header__title {
    font-size: 1.05rem;
}

.ag-table-card {
    padding: 1.15rem 1.15rem 0.75rem;
}

@media (min-width: 768px) {
    .ag-table-card {
        padding: 1.35rem 1.5rem 1rem;
    }
}

.ag-table-card .ag-card-header {
    margin-bottom: 0.85rem;
}

.ag-table-card .card-header {
    padding: 0 !important;
}

.ag-day-job-item {
    cursor: pointer;
    border-color: var(--ag-border) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ag-day-job-item:hover {
    transform: translateY(-2px);
    border-color: #5e72e4 !important;
    box-shadow: 0 8px 20px rgba(94, 114, 228, 0.18);
}

.newsletter-body {
    color: var(--ag-text);
    font-size: 0.95rem !important;
    line-height: 1.6;
    word-break: break-word;
}

.newsletter-body h1,
.newsletter-body h2,
.newsletter-body h3,
.newsletter-body h4,
.newsletter-body h5,
.newsletter-body h6 {
    font-size: 1.1rem !important;
    font-weight: 700;
    margin: 0.75rem 0 0.4rem;
}

.newsletter-body p,
.newsletter-body li,
.newsletter-body span,
.newsletter-body div {
    font-size: inherit !important;
}

.newsletter-body img {
    max-width: 100%;
    height: auto;
}

.newsletter-body p {
    margin-bottom: 0.75rem;
}

.newsletter-body p:last-child {
    margin-bottom: 0;
}

.newsletter-body .newsletter-struck,
.newsletter-body s,
.newsletter-body strike {
    text-decoration: none;
    color: inherit;
    opacity: 0.92;
}

.newsletter-body mark,
.newsletter-body span[style*="background"] {
    background: transparent !important;
    color: inherit !important;
}

.ag-newsletter-list {
    max-height: min(70vh, 640px);
    overflow-y: auto;
}

.ag-newsletter-item {
    border: 0 !important;
    border-bottom: 1px solid var(--ag-border) !important;
    padding: 0.95rem 1.15rem !important;
    color: var(--ag-text, #344767) !important;
    background: #fff !important;
    transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.ag-newsletter-item:hover {
    background: rgba(72, 187, 120, 0.08) !important;
    color: #1f3d2c !important;
}

.ag-newsletter-item:focus-visible {
    outline: 2px solid rgba(72, 187, 120, 0.45);
    outline-offset: -2px;
    z-index: 1;
}

.ag-newsletter-item .ag-newsletter-snippet,
.ag-newsletter-item .ag-newsletter-date {
    color: #8392ab;
}

.ag-newsletter-item.is-active,
.ag-newsletter-item.is-active:hover,
.ag-newsletter-item.is-active:focus {
    background: linear-gradient(135deg,
            rgba(72, 187, 120, 0.22),
            rgba(154, 230, 180, 0.28)) !important;
    color: #14532d !important;
    box-shadow: inset 3px 0 0 #48bb78;
    border-bottom-color: rgba(72, 187, 120, 0.18) !important;
}

.ag-newsletter-item.is-active .ag-newsletter-title {
    color: #14532d;
    font-weight: 700;
}

.ag-newsletter-item.is-active .ag-newsletter-snippet,
.ag-newsletter-item.is-active .ag-newsletter-date {
    color: #2f6b46;
    opacity: 1;
}

.ag-notification-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem !important;
}

.ag-notification-row.is-unread {
    background: rgba(94, 114, 228, 0.05);
}

.ag-notification-main {
    min-width: 0;
}

.ag-notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5e72e4;
    flex-shrink: 0;
}

.ag-notification-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.ag-notification-action-btn {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.55rem !important;
    line-height: 1.3 !important;
    white-space: nowrap;
}

.ag-notification-delete-btn {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.45rem !important;
    line-height: 1.3 !important;
    min-width: 1.85rem;
}

@media (max-width: 575.98px) {
    .ag-notification-row {
        flex-wrap: wrap;
    }

    .ag-notification-actions {
        width: 100%;
        margin-left: 0;
        padding-top: 0.35rem;
    }
}

/* ===== Help & Support ===== */
.ag-help-card {
    min-height: calc(100vh - 8.5rem);
}

.ag-support-tabs-wrap {
    background: #f3f6f4;
    border: 1px solid rgba(72, 187, 120, 0.16);
    border-radius: 999px;
    padding: 0.4rem;
}

.ag-support-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #345c43;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ag-support-tabs .nav-link:hover {
    background: rgba(72, 187, 120, 0.1);
    color: #14532d;
}

.ag-support-tabs .nav-link.active {
    background: linear-gradient(135deg, #9ae6b4, #68d391);
    border-color: transparent;
    color: #14532d;
    box-shadow: 0 4px 14px rgba(72, 187, 120, 0.28);
}

.ag-help-panel {
    min-height: 52vh;
}

.ag-help-panel--chat {
    min-height: 0;
}

.ag-help-contact-textarea {
    min-height: 220px;
    resize: vertical;
}

.ag-help-btn {
    background: linear-gradient(135deg, #68d391, #48bb78) !important;
    border: 0 !important;
    color: #0f3d24 !important;
    font-weight: 700 !important;
    padding: 0.7rem 1.85rem !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.28);
}

.ag-help-btn:hover,
.ag-help-btn:focus {
    filter: brightness(0.98);
    color: #0f3d24 !important;
}

.ag-help-btn:disabled {
    opacity: 0.7;
}

/* WhatsApp-style support chat */
.ag-wa-chat {
    display: flex;
    flex-direction: column;
    height: min(78vh, 760px);
    min-height: 520px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(16, 24, 40, 0.08);
    background: #efeae2;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.ag-wa-chat__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #5e72e4;
    color: #fff;
}

.ag-wa-chat__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.ag-wa-chat__name {
    font-weight: 700;
    line-height: 1.2;
}

.ag-wa-chat__status {
    font-size: 0.78rem;
    opacity: 0.85;
}

.ag-wa-chat__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ag-wa-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.85rem 0.5rem;
    scroll-behavior: smooth;
    background-color: #e5ddd5;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.ag-wa-chat__empty {
    margin: 2.5rem auto;
    max-width: 280px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #54656f;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.ag-wa-row {
    display: flex;
    margin-bottom: 0.55rem;
}

.ag-wa-row--mine {
    justify-content: flex-end;
}

.ag-wa-row--theirs {
    justify-content: flex-start;
}

.ag-wa-bubble {
    max-width: min(78%, 520px);
    padding: 0.45rem 0.65rem 0.3rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 1px rgba(16, 24, 40, 0.08);
    word-break: break-word;
    line-height: 1.4;
}

.ag-wa-bubble--mine {
    background: #d9fdd3;
    border-top-right-radius: 0.2rem;
    color: #111b21;
}

.ag-wa-bubble--theirs,
.ag-wa-bubble--support {
    background: #fff;
    border-top-left-radius: 0.2rem;
    color: #111b21;
}

.ag-wa-bubble__sender {
    font-size: 0.72rem;
    font-weight: 700;
    color: #075e54;
    margin-bottom: 0.15rem;
}

.ag-wa-bubble__text {
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.ag-wa-bubble__meta {
    font-size: 0.68rem;
    color: #667781;
    text-align: right;
    margin-top: 0.2rem;
}

.ag-wa-bubble__image-link {
    display: block;
    margin-top: 0.15rem;
}

.ag-wa-bubble__image {
    display: block;
    max-width: 100%;
    max-height: 240px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.ag-wa-chat__preview {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.5rem 0.75rem 0;
    padding: 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 0.75rem;
    border: 1px solid rgba(16, 24, 40, 0.08);
}

.ag-wa-chat__preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.ag-wa-chat__composer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem 0.85rem;
    background: #f0f2f5;
    border-top: 1px solid rgba(16, 24, 40, 0.06);
}

.ag-wa-chat__attach,
.ag-wa-chat__send {
    width: 2.65rem;
    height: 2.65rem;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.ag-wa-chat__attach {
    background: #fff;
    color: #54656f;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.ag-wa-chat__send {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.35);
}

.ag-wa-chat__send:disabled {
    opacity: 0.55;
    box-shadow: none;
}

.ag-wa-chat__attach:hover:not(:disabled),
.ag-wa-chat__send:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.ag-wa-chat__input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    padding: 0.7rem 1rem;
    outline: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    color: #111b21;
}

.ag-wa-chat__input:focus {
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

@media (max-width: 767.98px) {
    .ag-support-tabs-wrap {
        border-radius: 1rem;
    }

    .ag-support-tabs {
        justify-content: stretch !important;
    }

    .ag-support-tabs .nav-item {
        flex: 1 1 auto;
    }

    .ag-support-tabs .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.55rem 0.65rem;
        font-size: 0.86rem;
    }

    .ag-wa-chat {
        height: min(82vh, 680px);
        min-height: 460px;
    }

    .ag-wa-bubble {
        max-width: 88%;
    }
}

.ag-logout-btn {
    position: relative;
    z-index: 2;
}

.ag-nav-link--logout {
    color: #b91c1c;
}

#sidenav-main .sidenav-footer {
    flex-shrink: 0;
}

/* Main page content wrapper — centers all pages, expands to full usable width */
.ag-page-content {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding: 1.5rem 1.5rem 2rem;
}

@media (max-width: 1199.98px) {
    .ag-page-content {
        padding: 1.25rem 1rem 2rem;
    }
}

/* Centered, comfortable Create / Edit form pages */
.ag-form-shell {
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
    flex: 0 0 auto;
}

/* Centered Details pages (keeps multi-column layout, constrains width) */
.ag-detail-shell {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

.ag-form-shell .card,
.ag-detail-shell .card {
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    box-shadow: var(--ag-shadow-soft);
}

.ag-form-shell .card-header h4,
.ag-form-shell .card-header .h4 {
    width: 100%;
    text-align: center;
}

@media (max-width: 575.98px) {
    .ag-form-shell {
        max-width: 100%;
    }
}

.ag-status-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(94, 114, 228, 0.1);
    color: #4054c4;
    font-size: 0.85rem;
    font-weight: 600;
}

.ag-shell-banner {
    background-image: var(--ag-gradient-primary, linear-gradient(310deg, #5e72e4 0%, #825ee4 100%));
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
}

.ag-shell-main {
    padding-inline: 1rem;
}

.ag-shell-main .main-content {
    min-height: 100vh;
}

.ag-sidebar {
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.96));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
}

.ag-sidebar .navbar-brand {
    padding-top: 1.25rem !important;
    padding-bottom: 1rem !important;
}

.ag-sidebar__section-label {
    letter-spacing: 0.08em;
    color: #8b98ad;
    font-size: 0.7rem;
}

.ag-sidebar__footer {
    background: linear-gradient(180deg, rgba(94, 114, 228, 0.07), rgba(17, 205, 239, 0.04));
    border-radius: 1.25rem;
    border: 1px solid rgba(94, 114, 228, 0.08);
    padding: 1rem;
}

.ag-sidebar__footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background-image: var(--ag-gradient-primary, linear-gradient(310deg, #5e72e4 0%, #825ee4 100%));
    box-shadow: 0 4px 16px rgba(52, 71, 103, 0.18);
    pointer-events: auto;
}

.ag-topbar .navbar-nav,
.ag-topbar .nav-item,
.ag-topbar button,
.ag-topbar a {
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .ag-topbar {
        top: 0.5rem;
    }
}

.ag-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.ag-nav-link {
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.45rem;
    transition: all 0.2s ease;
}

.ag-nav-link .icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.85rem;
    background: rgba(94, 114, 228, 0.08);
}

.ag-nav-link:hover {
    background: rgba(94, 114, 228, 0.07);
    transform: translateX(2px);
}

.ag-nav-link.active {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.16), rgba(17, 205, 239, 0.08));
    box-shadow: 0 12px 30px rgba(94, 114, 228, 0.12);
}

.ag-auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(94, 114, 228, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(17, 205, 239, 0.14), transparent 22%),
        linear-gradient(180deg, #eef4ff 0%, #f7faff 34%, #ffffff 100%);
}

.auth-shell__panel {
    border-radius: 2rem;
}

.auth-shell__panel--content {
    padding: 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    border: 1px solid var(--ag-border);
    box-shadow: var(--ag-shadow-soft);
}

.auth-shell__panel--visual {
    padding: 0;
    overflow: hidden;
    box-shadow: var(--ag-shadow-strong);
    min-height: 100%;
}

.auth-shell__steps {
    margin-bottom: 1.25rem;
}

.auth-shell__steps-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.75rem;
    padding: 0;
}

.auth-shell__step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-shell__step-index {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.auth-shell__step.is-active {
    color: #071e4f;
}

.auth-shell__step.is-active .auth-shell__step-index {
    background: #071e4f;
    color: #fff;
}

.auth-shell__step.is-done {
    color: #0f766e;
}

.auth-shell__step.is-done .auth-shell__step-index {
    background: #14b8a6;
    color: #fff;
}

.auth-shell__step-label {
    white-space: nowrap;
}

.auth-shell__steps-bar {
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.auth-shell__steps-bar>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #071e4f, #4fb6ff);
    transition: width 0.35s ease;
}

.auth-shell__role-switch {
    font-size: 0.9rem;
}

.auth-shell__role-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.auth-shell__role-tab {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(7, 30, 79, 0.12);
    background: #f8fbff;
    color: #475569;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s ease;
}

.auth-shell__role-tab strong {
    font-size: 0.95rem;
    color: #071e4f;
}

.auth-shell__role-tab small {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

.auth-shell__role-tab:hover {
    border-color: rgba(79, 182, 255, 0.55);
    transform: translateY(-1px);
    color: #475569;
}

.auth-shell__role-tab.is-active {
    background: linear-gradient(135deg, rgba(7, 30, 79, 0.96), rgba(15, 60, 120, 0.92));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(7, 30, 79, 0.18);
    color: #fff;
}

.auth-shell__role-tab.is-active strong,
.auth-shell__role-tab.is-active small {
    color: #fff;
}

.auth-shell__role-link {
    font-weight: 700;
    color: #071e4f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-shell__role-link:hover {
    color: #4fb6ff;
}

.auth-shell__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.auth-shell__nav .btn {
    min-width: 7.5rem;
}

.auth-shell__step-panel[hidden] {
    display: none !important;
}

.auth-shell__cleaning-block {
    border: 1px solid rgba(7, 30, 79, 0.08);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background: #f8fbff;
}

.auth-shell__cleaning-block h6 {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: #071e4f;
    font-weight: 700;
}

.auth-shell__badge {
    padding: 0.65rem 0.95rem;
    background: rgba(94, 114, 228, 0.08);
    border: 1px solid rgba(94, 114, 228, 0.14);
    border-radius: 999px;
    color: #4054c4;
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-shell__eyebrow {
    color: #5e72e4;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-shell__title {
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.auth-shell__subtitle {
    color: var(--ag-text-muted);
    font-size: 1rem;
    max-width: 40rem;
}

.auth-shell__card {
    background: #fff;
    border: 1px solid var(--ag-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.auth-shell__hero {
    min-height: 100%;
    padding: 2rem;
    background: linear-gradient(145deg, #3040a6 0%, #5e72e4 52%, #11cdef 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.auth-shell__hero-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.auth-shell__hero-copy h2 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.auth-shell__hero-copy p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
}

.auth-shell__hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.auth-shell__hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.25rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 130px;
}

.auth-shell__hero-card span {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    line-height: 1.4;
}

.ag-form-card {
    background: #fff;
    border: 1px solid var(--ag-border);
    border-radius: 1.25rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.ag-form-section {
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 255, 1));
}

.ag-form-section__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(94, 114, 228, 0.12);
    color: #5e72e4;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.ag-form-section__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1f2d3d;
}

.ag-form-section__subtitle {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #8492a6;
}

@media (max-width: 575.98px) {
    .ag-form-section {
        padding: 1rem;
    }

    .ag-form-section__step {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.72rem;
    }
}

.ag-table-shell {
    overflow: hidden;
    border: 1px solid var(--ag-border);
    border-radius: 1.25rem;
    background: #fff;
}

.ag-table-shell table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.ag-table-shell thead th {
    padding: 0.85rem 1rem !important;
    white-space: nowrap;
    background: #f8faff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.68rem !important;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.ag-table-shell tbody td:not(.ag-portal-table__td),
.ag-table-shell .ag-td:not(.ag-portal-table__td) {
    padding: 0.95rem 1rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: #344767;
    max-width: 220px;
    overflow-wrap: anywhere;
}

.ag-table-shell .ag-td--job {
    min-width: 220px;
    max-width: 320px;
}

.ag-table-shell .picture-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.ag-table-shell .picture-item>span {
    min-width: 0;
    line-height: 1.35;
    font-weight: 600;
    color: #102a43;
}

.ag-table-shell .picture-item .text-sm {
    font-weight: 500;
    color: #6b7a90;
    margin-top: 0.15rem;
}

.ag-table-shell tbody tr:hover {
    background: rgba(94, 114, 228, 0.04);
}

.ag-table-shell .badge {
    white-space: nowrap;
}

@media (max-width: 991.98px) {

    .ag-table-shell thead th,
    .ag-table-shell tbody td,
    .ag-table-shell .ag-td {
        padding: 0.75rem 0.85rem !important;
    }
}


.ag-filter-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7a90;
}

.ag-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 0.35rem;
    padding: 0.85rem 0 0.15rem !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.ag-table-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.ag-search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.ag-search-form .form-control,
.ag-search-form .form-select {
    min-height: 48px;
}

.ag-empty-state {
    margin: 2rem auto;
    padding: 2rem;
    max-width: 420px;
    text-align: center;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(94, 114, 228, 0.06), rgba(17, 205, 239, 0.05));
    border: 1px dashed rgba(94, 114, 228, 0.24);
}

.ag-loading-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #5e72e4;
}

.ag-modal-backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    z-index: 1100 !important;
}

.ag-onboarding-step {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ag-onboarding-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.ag-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 3px solid rgba(94, 114, 228, 0.15);
    border-top-color: #5e72e4;
    animation: ag-spin 0.8s linear infinite;
}

@keyframes ag-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1199.98px) {
    .ag-shell-main {
        padding-inline: 0.75rem;
    }

    .auth-shell__hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .auth-shell__row {
        flex-direction: column;
    }

    /* Brand / visual side always visible on mobile (was previously hidden) */
    .auth-shell__visual-col {
        display: block !important;
        order: 1;
    }

    .auth-shell__form-col {
        order: 2;
    }

    .auth-shell--form-left .auth-shell__form-col {
        order: 1;
    }

    .auth-shell--form-left .auth-shell__visual-col {
        order: 2;
    }

    .auth-shell__panel--visual {
        min-height: 0;
        border-radius: 1.5rem;
    }

    .auth-shell__hero {
        min-height: 180px;
        padding: 1.25rem 1.35rem !important;
        justify-content: flex-end;
    }

    .auth-shell__hero-copy h2 {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .auth-shell__hero-copy p {
        font-size: 0.88rem;
        margin-bottom: 0;
    }

    .auth-shell__hero-badge {
        font-size: 0.72rem;
        margin-bottom: 0.75rem;
    }

    .auth-shell__panel--content {
        padding: 1.25rem;
    }

    .auth-shell__card {
        padding: 1.15rem;
    }

    .auth-shell__title {
        font-size: 1.55rem;
    }

    .auth-shell__step-label {
        display: none;
    }

    .auth-shell__step.is-active .auth-shell__step-label,
    .auth-shell__step.is-done .auth-shell__step-label {
        display: inline;
        max-width: 7rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ag-card-header,
    .ag-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .ag-shell-banner {
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .ag-search-form {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .auth-shell__brand {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

/* ── CRM-style auth (colossians-cleaning-services brand colors) ── */

:root {
    --ccs-primary: #071e4f;
    --ccs-secondary: #4fb6ff;
    --ccs-primary-muted: rgba(7, 30, 79, 0.5);
    --ccs-primary-ring: rgba(7, 30, 79, 0.2);
    --ccs-gray-900: #111827;
    --ccs-gray-700: #374151;
    --ccs-gray-600: #4b5563;
    --ccs-gray-500: #6b7280;
    --ccs-gray-400: #9ca3af;
    --ccs-gray-300: #d1d5db;
}

body.crm-auth-body {
    margin: 0 !important;
    overflow: hidden;
    background: #ffffff !important;
    font-family: "Poppins", "Open Sans", sans-serif;
}

.crm-auth {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    background: #ffffff;
    z-index: 1040;
    font-family: "Poppins", "Open Sans", sans-serif;
}

.crm-auth__frame {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
}

/* Left brand panel — gradient: primary → secondary → primary/50 */
.crm-auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(to bottom right,
            var(--ccs-primary) 0%,
            var(--ccs-secondary) 50%,
            var(--ccs-primary-muted) 100%);
}

.crm-auth__sparkle {
    position: absolute;
    top: -4rem;
    right: 0;
    width: 24rem;
    height: 24rem;
    transform: none;
    color: var(--ccs-primary);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.crm-auth__brand-top {
    position: relative;
    z-index: 1;
}

.crm-auth__logo {
    height: 4rem;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.crm-auth__brand-bottom {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin-top: auto;
    width: 100%;
}

.crm-auth__brand-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.crm-auth__brand-title span {
    display: block;
}

.crm-auth__brand-lead {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}

/* Right sign-in panel */
.crm-auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow-y: auto;
}

.crm-auth__card {
    position: relative;
    width: 100%;
    max-width: 30rem;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(7, 30, 79, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(7, 30, 79, 0.05),
        0 20px 45px -10px rgba(7, 30, 79, 0.14);
    overflow: hidden;
}

.crm-auth__card-accent {
    height: 4px;
    background: linear-gradient(90deg,
            var(--ccs-primary) 0%,
            var(--ccs-secondary) 55%,
            var(--ccs-primary) 100%);
}

.crm-auth__card-body {
    padding: 2rem 2rem 1.5rem;
}

.crm-auth__card-header {
    margin-bottom: 1.75rem;
}

.crm-auth__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(7, 30, 79, 0.06);
    color: var(--ccs-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.crm-auth__title {
    font-size: clamp(1.85rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--ccs-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.crm-auth__subtitle {
    color: var(--ccs-gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.crm-auth__portal-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.crm-auth__portal-btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--ccs-gray-300);
    border-radius: 0.85rem;
    background: #ffffff;
    color: var(--ccs-primary);
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        background 0.22s ease;
}

.crm-auth__portal-btn:hover,
.crm-auth__portal-btn:focus-visible {
    outline: none;
    border-color: var(--ccs-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 28px rgba(7, 30, 79, 0.1);
    transform: translateY(-2px);
}

.crm-auth__portal-btn-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg,
            rgba(7, 30, 79, 0.1) 0%,
            rgba(79, 182, 255, 0.15) 100%);
    color: var(--ccs-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.crm-auth__portal-btn-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.crm-auth__portal-btn-text strong {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ccs-primary);
    line-height: 1.25;
}

.crm-auth__portal-btn-text small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ccs-gray-500);
    line-height: 1.35;
}

.crm-auth__portal-btn-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 30, 79, 0.06);
    color: var(--ccs-gray-500);
    font-size: 0.75rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.crm-auth__portal-btn:hover .crm-auth__portal-btn-arrow {
    background: var(--ccs-primary);
    color: #ffffff;
    transform: translateX(2px);
}

.crm-auth__field {
    margin-bottom: 1.15rem;
}

.crm-auth__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ccs-gray-700);
    margin-bottom: 0.45rem;
}

.crm-auth__input {
    width: 100%;
    border: 1px solid var(--ccs-gray-300);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    font-size: 0.98rem;
    background: #fafbfc;
    color: var(--ccs-gray-900);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.crm-auth__input:hover {
    background: #ffffff;
}

.crm-auth__input::placeholder {
    color: var(--ccs-gray-400);
}

.crm-auth__input:focus {
    outline: none;
    border-color: var(--ccs-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--ccs-primary-ring);
}

.crm-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.crm-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ccs-gray-600);
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.crm-auth__remember input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--ccs-primary);
}

.crm-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ccs-primary) 0%, #0a2d6e 100%);
    box-shadow: 0 12px 28px rgba(7, 30, 79, 0.28);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.crm-auth__submit:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(7, 30, 79, 0.32);
}

.crm-auth__submit:active:not(:disabled) {
    transform: translateY(0);
}

.crm-auth__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.crm-auth__signup {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    color: var(--ccs-gray-600);
}

.crm-auth__link {
    color: var(--ccs-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.crm-auth__link:hover {
    color: #051638;
    text-decoration: underline;
}

.crm-auth__card-footer {
    padding: 1rem 2rem 1.35rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.crm-auth__nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.crm-auth__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ccs-gray-600);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.crm-auth__nav-btn:hover {
    color: var(--ccs-primary);
}

.crm-auth__nav-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ccs-gray-300);
    flex-shrink: 0;
}

.crm-auth__legal {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.crm-auth__legal a {
    font-size: 0.75rem;
    color: var(--ccs-gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.crm-auth__legal a:hover {
    color: var(--ccs-primary);
}

.crm-auth__animate-in {
    animation: crm-auth-fade-in 0.35s ease;
}

@keyframes crm-auth-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-field-affixed {
    position: relative;
    width: 100%;
}

.password-field-affixed .crm-auth__input {
    width: 100%;
    padding-right: 3.1rem;
}

.password-field-affixed__toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--ccs-gray-400);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.password-field-affixed__toggle:hover {
    color: var(--ccs-primary);
    background: rgba(7, 30, 79, 0.06);
}

@media (max-width: 991.98px) {
    body.crm-auth-body {
        overflow: auto;
    }

    .crm-auth {
        position: relative;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .crm-auth__frame {
        grid-template-columns: 1fr;
        min-height: 100dvh;
    }

    .crm-auth__brand {
        min-height: 42vh;
        padding: 2rem 1.5rem;
    }

    .crm-auth__sparkle {
        width: 16rem;
        height: 16rem;
    }

    .crm-auth__panel {
        min-height: 58vh;
        padding: 1.5rem 1rem 2rem;
    }

    .crm-auth__card-body {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .crm-auth__card-footer {
        padding: 0.85rem 1.25rem 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .auth-shell__role-tabs {
        grid-template-columns: 1fr;
    }

    .auth-shell__role-tab {
        padding: 0.75rem 0.9rem;
    }

    .crm-auth__logo {
        height: 2.25rem;
    }

    .crm-auth__brand-title {
        font-size: 1.75rem;
    }

    .crm-auth__legal {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ── Force readable sidebar (override Argon mini/clip bugs) ── */
@media (min-width: 1200px) {

    #sidenav-main.sidenav.ag-sidebar.navbar-vertical,
    #sidenav-main.sidenav.navbar-vertical {
        top: 1rem !important;
        bottom: 1rem !important;
        height: calc(100vh - 2rem) !important;
        height: calc(100dvh - 2rem) !important;
        max-height: calc(100vh - 2rem) !important;
        max-height: calc(100dvh - 2rem) !important;
        width: 17.5rem !important;
        min-width: 17.5rem !important;
        max-width: 17.5rem !important;
        left: 1.25rem !important;
    }

    body.g-sidenav-show:not(.ag-sidebar-collapsed) .main-content.ag-shell-main {
        margin-left: 19.5rem !important;
    }

    /* Collapsed rail — let content reclaim the space */
    body.g-sidenav-show.ag-sidebar-collapsed .main-content.ag-shell-main {
        margin-left: calc(88px + 32px) !important;
    }
}

#sidenav-main .navbar-nav .nav-link.ag-nav-link,
#sidenav-main .navbar-nav .nav-link {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#sidenav-main .nav-link-text {
    opacity: 1 !important;
    width: auto !important;
    max-width: none !important;
}

/* ── Sidebar layout: fixed viewport height + scrollable nav + pinned Logout ──
   Root cause of "footer chip/clip":
   Argon sets .navbar-collapse { height: calc(100vh - 360px) }.
   Overriding that with height:auto made the nav grow unboundedly, so the
   footer was pushed past max-height and cut off by overflow:hidden. */
#sidenav-main.sidenav,
#sidenav-main.sidenav.navbar-vertical.navbar-expand-xs {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    top: 1rem !important;
    bottom: 1rem !important;
    /* Fixed height (not auto) so flex children can shrink + scroll correctly */
    height: calc(100vh - 2rem) !important;
    height: calc(100dvh - 2rem) !important;
    max-height: calc(100vh - 2rem) !important;
    max-height: calc(100dvh - 2rem) !important;
}

#sidenav-main .sidenav-header,
#sidenav-main>hr.horizontal {
    flex: 0 0 auto !important;
}

#sidenav-main .sidenav-header {
    height: auto !important;
    min-height: 4.5rem;
    padding: 0.5rem 0.75rem !important;
}

#sidenav-main .navbar-brand-img {
    max-height: 3rem !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
}

/* Middle nav is the ONLY scrollable region — kills Argon's calc(100vh - 360px) */
#sidenav-main .navbar-collapse#sidenav-collapse-main,
#sidenav-main.navbar-vertical.navbar-expand-xs .navbar-collapse,
.navbar-vertical.navbar-expand-xs .navbar-collapse {
    display: block !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0.55rem 0.5rem !important;
}

#sidenav-main .navbar-collapse#sidenav-collapse-main::-webkit-scrollbar {
    width: 6px;
}

#sidenav-main .navbar-collapse#sidenav-collapse-main::-webkit-scrollbar-thumb {
    background: rgba(94, 114, 228, 0.35);
    border-radius: 6px;
}

/* Logout footer — always pinned, never clipped by rounded corners */
#sidenav-main .sidenav-footer {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    /* Side + bottom padding clears the sidebar's 1rem border-radius */
    padding: 0.75rem 1rem 1.15rem !important;
    background: #fff;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    z-index: 2;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

#sidenav-main .sidenav-footer::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 0.1rem 0.7rem;
    background: linear-gradient(90deg,
            transparent,
            rgba(15, 23, 42, 0.1) 18%,
            rgba(15, 23, 42, 0.1) 82%,
            transparent);
}

#sidenav-main .sidenav-footer .btn,
#sidenav-main .sidenav-footer .ag-logout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.6rem;
    margin: 0 !important;
    position: relative;
    z-index: 2;
    box-sizing: border-box !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 0 !important;
    border-radius: 0.75rem !important;
    color: #fff !important;
    background-image: linear-gradient(310deg, #5e72e4 0%, #825ee4 100%) !important;
    box-shadow: 0 6px 16px rgba(94, 114, 228, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#sidenav-main .sidenav-footer .ag-logout-btn i {
    font-size: 0.9rem;
    line-height: 1;
}

#sidenav-main .sidenav-footer .ag-logout-btn:hover,
#sidenav-main .sidenav-footer .ag-logout-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(94, 114, 228, 0.45);
    filter: brightness(1.03);
    color: #fff !important;
}

#sidenav-main .sidenav-footer .ag-logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(94, 114, 228, 0.35);
}

/* Never hide Logout — Argon mini-mode hides .sidenav-footer */
body.g-sidenav-hidden #sidenav-main .sidenav-footer,
.g-sidenav-hidden #sidenav-main .sidenav-footer,
#sidenav-main .sidenav-footer {
    display: block !important;
}

/* ── Main content fills remaining viewport (full 100% width) ── */
body.g-sidenav-show .main-content.ag-shell-main,
body.g-sidenav-show .sidenav.fixed-start+.main-content {
    width: auto !important;
    max-width: none !important;
    min-height: 100vh;
    box-sizing: border-box !important;
}

@media (min-width: 1200px) {

    body.g-sidenav-show .main-content.ag-shell-main,
    body.g-sidenav-show .sidenav.fixed-start+.main-content {
        /* Sidebar is 15.625rem + ms-4 (1.5rem) ≈ 17.125rem; give a little gap */
        margin-left: 17.5rem !important;
    }

    #sidenav-main.sidenav.navbar-vertical {
        width: 15.625rem !important;
        max-width: 15.625rem !important;
        left: 1.25rem !important;
        margin-left: 0 !important;
    }

    body.g-sidenav-show .main-content.ag-shell-main {
        margin-left: calc(15.625rem + 1.25rem + 0.85rem) !important;
    }
}

.ag-dashboard-content {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

.ag-dashboard-content>.row,
.ag-dashboard-content .card {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .ag-dashboard-content {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

@media (min-width: 1400px) {
    .ag-dashboard-content {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ── Profile completion banner (Customer / Cleaner) ── */
.ag-profile-banner {
    position: relative;
    z-index: 2;
    margin: 0.75rem 1.5rem 0;
    border-radius: 1.15rem;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    padding: 1rem 1.25rem;
}

.ag-profile-banner__layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
}

.ag-profile-banner__ring {
    flex-shrink: 0;
}

.ag-profile-banner__body {
    flex: 1 1 220px;
    min-width: 0;
}

.ag-profile-banner__actions {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}

.ag-profile-banner__verify {
    margin-top: 0.85rem;
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: #fff8e1;
    border: 1px solid #ffe0b2;
}

/* Help line inside the verify box: keep "Help:" and the contact details
   together on the left instead of spreading them across the box. */
.ag-profile-banner__help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.ag-profile-banner__help-label {
    font-weight: 600;
    color: #6b7a90;
}

.ag-profile-banner__help a {
    color: #5e72e4;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.ag-profile-banner__help a:hover {
    color: #324cdd;
    text-decoration: underline;
}

.ag-profile-banner__help-sep {
    color: #6b7a90;
}

@media (max-width: 767.98px) {
    .ag-profile-banner {
        margin: 0.65rem 1rem 0;
        padding: 0.85rem;
    }

    .ag-profile-banner__layout {
        flex-direction: column;
        align-items: stretch;
    }

    .ag-profile-banner__actions {
        margin-left: 0;
        width: 100%;
    }

    .ag-profile-banner__actions .btn {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    #sidenav-main.sidenav.navbar-vertical {
        top: 1rem !important;
        bottom: 1rem !important;
        height: calc(100vh - 2rem) !important;
        height: calc(100dvh - 2rem) !important;
        max-height: calc(100vh - 2rem) !important;
        max-height: calc(100dvh - 2rem) !important;
    }
}

/* ── Sidebar parity with main branch ───────────────────────────────
   Keep this block last: earlier UX experiments used a pinned flex footer.
   Main uses Argon's original scrolling sidebar, nav height and brand card. */
#sidenav-main.sidenav.navbar-vertical.navbar-expand-xs {
    display: block !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 15.625rem !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#sidenav-main .sidenav-header {
    height: 4.875rem !important;
    min-height: 4.875rem !important;
    padding: 0 !important;
}

#sidenav-main .navbar-brand {
    padding: 14px !important;
}

#sidenav-main .navbar-brand-img {
    width: auto !important;
    height: 50px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
}

#sidenav-main .navbar-collapse#sidenav-collapse-main,
#sidenav-main.navbar-vertical.navbar-expand-xs .navbar-collapse {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    height: calc(100vh - 350px) !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: auto !important;
}

#sidenav-main .navbar-nav {
    width: auto !important;
}

#sidenav-main .navbar-nav .nav-link,
#sidenav-main .navbar-nav .nav-link.ag-nav-link {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 0.5rem !important;
    padding: 0.675rem 1rem !important;
    border-radius: 0.5rem !important;
}

#sidenav-main .sidenav-footer,
#sidenav-main .sidenav-footer.mx-3 {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 1rem !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

#sidenav-main .sidenav-footer::before {
    display: none !important;
    content: none !important;
}

#sidenav-main .sidenav-footer #sidenavCard {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#sidenav-main .sidenav-footer #sidenavCard img {
    display: block !important;
    width: 40% !important;
    height: auto !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    object-fit: contain;
}

#sidenav-main .sidenav-footer #sidenavCard .card-body {
    width: 100% !important;
    padding: 1rem !important;
    padding-top: 0 !important;
}

#sidenav-main .sidenav-footer .docs-info h6 {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    white-space: normal !important;
}

#sidenav-main .sidenav-footer .docs-info p {
    display: block;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
}

#sidenav-main .sidenav-footer .btn {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.5rem 2rem !important;
    border-radius: 0.5rem !important;
    color: #fff !important;
    background: #5e72e4 !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (min-width: 1200px) {

    body.g-sidenav-show .main-content.ag-shell-main,
    #sidenav-main.sidenav.fixed-start+.main-content {
        margin-left: 17.125rem !important;
    }
}

@media (max-height: 768px) {
    #sidenav-main .sidenav-footer #sidenavCard {
        display: none !important;
    }

    #sidenav-main .navbar-collapse#sidenav-collapse-main,
    #sidenav-main.navbar-vertical.navbar-expand-xs .navbar-collapse {
        height: calc(100vh - 175px) !important;
    }
}

/* Profile contact line — email / or / phone spacing */
.profile-email-contact {
    max-width: 26rem;
    margin-left: auto;
}

.profile-email-contact__lead {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b7a90;
}

.profile-email-contact__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    justify-content: flex-end;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.profile-email-contact__link,
.profile-email-contact__links a {
    color: #5e72e4;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.profile-email-contact__link:hover,
.profile-email-contact__links a:hover {
    color: #324cdd;
    text-decoration: underline;
}

.profile-email-contact__sep {
    display: inline-block;
    padding: 0 0.15rem;
    color: #6b7a90;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .profile-email-contact {
        width: 100%;
        margin-left: 0;
        text-align: left !important;
    }

    .profile-email-contact__links {
        justify-content: flex-start;
    }
}

/* ===== Job Chat (full-height, responsive) ===== */
.ag-job-chat {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.28);
}

.ag-job-chat__header {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.1), #fff 48%, #f8fafc);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ag-job-chat__header>div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.ag-job-chat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #5e72e4;
    color: #fff;
    box-shadow: 0 8px 16px -8px rgba(94, 114, 228, 0.7);
    flex-shrink: 0;
}



.ag-job-chat__badge {
    background: rgba(94, 114, 228, 0.1);
    color: #3b4bb0;
    border: 1px solid rgba(94, 114, 228, 0.18);
    font-weight: 600;
    flex: 0 0 auto;
    white-space: nowrap;
    width: max-content;
    min-width: max-content;
    overflow: visible;
    margin-bottom: 20px;
    margin-left: 10px;
}

.ag-job-chat__body {
    height: min(72vh, 640px);
    min-height: 420px;
    padding: 0.85rem 1rem 1rem;
}

.ag-job-chat__messages {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #c3ccd9 transparent;
    border: none !important;
    border-radius: 0.9rem;
    padding: 0.85rem;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(94, 114, 228, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(94, 114, 228, 0.08), transparent 50%),
        linear-gradient(180deg, #f4f6fb 0%, #eef1f8 100%) !important;
}

.ag-job-chat__messages::-webkit-scrollbar {
    width: 8px;
}

.ag-job-chat__messages::-webkit-scrollbar-thumb {
    background: #c3ccd9;
    border-radius: 999px;
}

.ag-job-chat__messages::-webkit-scrollbar-track {
    background: transparent;
}

.ag-job-chat__empty {
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed #dbe0ea;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 18rem;
}

.ag-job-chat__composer {
    border: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 1rem;
    padding: 0.35rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ag-job-chat__tool-btn {
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ag-job-chat__tool-btn:hover {
    background: #fff;
    color: #334155;
}

.ag-job-chat__input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ag-job-chat__send {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: 0 8px 16px -8px rgba(94, 114, 228, 0.7);
}

.ag-chat-bubble {
    max-width: 82%;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    word-break: break-word;
    border-radius: 1rem;
}

.ag-chat-bubble--mine {
    background: #5e72e4;
    color: #fff;
    border-bottom-right-radius: 0.35rem;
}

.ag-chat-bubble--admin {
    background: #0f172a;
    color: #fff;
    border-bottom-left-radius: 0.35rem;
}

.ag-chat-bubble--them {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 0.35rem;
}

/* Make the chat column sticky next to the job details on large screens */
@media (min-width: 992px) {
    .ag-job-chat-sticky {
        position: sticky;
        top: 1rem;
    }

    .ag-job-chat-sticky .ag-job-chat,
    .ag-job-chat-sticky>.card {
        margin-top: 0 !important;
    }
}

/* Job details date fields — keep full date visible */
.ccs-datepicker-wrap,
.ccs-datepicker-wrap .react-date-picker,
.ccs-datepicker-wrap .react-date-picker__wrapper {
    width: 100%;
    max-width: 100%;
}

.ccs-datepicker-wrap .react-date-picker__inputGroup {
    min-width: 0;
    flex: 1 1 auto;
}

@media (max-width: 575.98px) {
    .ag-job-chat__body {
        height: min(70vh, 520px);
        min-height: 340px;
        padding: 0.75rem;
    }

    .ag-chat-bubble {
        max-width: 90%;
    }
}

/* ===== Today's Jobs cards (consistent height/spacing) ===== */
.ag-today-job {
    display: flex;
}

.ag-today-job-card {
    width: 100%;
    min-height: 132px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
}

.ag-today-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(16, 24, 40, 0.12) !important;
}

/* ===== Job status colours (original): Created=PINK, Pending=RED, Approved=BLUE, Finished=GREEN, Cancelled=GREY ===== */
.bg-job-created,
.badge.bg-job-created,
.bg-gradient-pink {
    background-color: #e83e8c !important;
    background-image: linear-gradient(310deg, #e83e8c 0%, #f06595 100%) !important;
    color: #fff !important;
}

.bg-job-pending,
.badge.bg-job-pending {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.bg-job-approved,
.badge.bg-job-approved {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.bg-job-finished,
.badge.bg-job-finished {
    background-color: #28a745 !important;
    color: #fff !important;
}

.bg-job-cancelled,
.badge.bg-job-cancelled {
    background-color: #6c757d !important;
    color: #fff !important;
}

.bg-job-in-process,
.badge.bg-job-in-process {
    background-color: #6f42c1 !important;
    color: #fff !important;
}

/* Staff app download (/staff/app) — premium 3-column stage */
.staff-app-body.crm-auth-body {
  overflow: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100dvh;
  background: #071e4f !important;
}

.crm-auth.staff-app {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  background: transparent !important;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  color: #fff;
}

.sa-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, #061833 0%, #071e4f 42%, #0b2a6b 72%, #5e72e4 145%);
}

.sa-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: sa-drift 14s ease-in-out infinite alternate;
}

.sa-orb--1 {
  width: 28rem;
  height: 28rem;
  top: -10rem;
  left: -8rem;
  background: rgba(79, 182, 255, 0.28);
}

.sa-orb--2 {
  width: 24rem;
  height: 24rem;
  top: 35%;
  right: -10rem;
  background: rgba(94, 114, 228, 0.4);
  animation-delay: -4s;
}

.sa-orb--3 {
  width: 20rem;
  height: 20rem;
  bottom: -8rem;
  left: 35%;
  background: rgba(130, 94, 228, 0.22);
  animation-delay: -7s;
}

.sa-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes sa-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -24px, 0) scale(1.06); }
}

.sa-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.sa-brand {
  display: flex;
  justify-content: center;
}

.sa-logo {
  height: clamp(2.4rem, 3.5vw, 3rem);
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
}

.sa-tri {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr) minmax(240px, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.sa-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 24px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sa-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 30px 60px rgba(0, 0, 0, 0.28);
}

.sa-panel.is-hot {
  border-color: rgba(79, 182, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(79, 182, 255, 0.25),
    0 28px 56px rgba(0, 0, 0, 0.28);
}

.sa-panel__mark {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  color: #fff;
  margin-bottom: 0.85rem;
}

.sa-panel__mark--android {
  background: linear-gradient(145deg, #5e72e4, #4fb6ff);
  box-shadow: 0 12px 28px rgba(79, 182, 255, 0.35);
}

.sa-panel__mark--ios {
  background: linear-gradient(145deg, #1f2937, #0f172a);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sa-panel__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.sa-panel__title {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.sa-panel__hint {
  margin: 0.2rem 0 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

.sa-qr {
  width: min(100%, 12.5rem);
  aspect-ratio: 1;
  padding: 0.85rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.15rem;
  display: grid;
  place-items: center;
  animation: sa-float 5.5s ease-in-out infinite;
}

.sa-panel--ios .sa-qr {
  animation-delay: -2.5s;
}

@keyframes sa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.sa-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sa-qr--empty {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 600;
  animation: none;
}

.sa-cta {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sa-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: #fff !important;
}

.sa-cta--android {
  background: linear-gradient(135deg, #5e72e4 0%, #4fb6ff 100%);
  box-shadow: 0 14px 28px rgba(79, 182, 255, 0.28);
}

.sa-cta--ios {
  background: linear-gradient(135deg, #111827 0%, #334155 100%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sa-cta > i:first-child {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sa-cta > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  text-align: left;
  line-height: 1.15;
}

.sa-cta small {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.78;
}

.sa-cta strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.sa-cta > i:last-child {
  opacity: 0.7;
  font-size: 0.8rem;
}

.sa-cta--disabled {
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
}

.sa-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(1rem, 2vw, 1.5rem) 0.5rem;
}

.sa-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.sa-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4fb6ff;
}

.sa-headline {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 11ch;
}

.sa-headline span {
  background: linear-gradient(90deg, #4fb6ff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sa-lead {
  margin: 0 0 1.35rem;
  max-width: 28ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.sa-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.sa-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.sa-trust i {
  color: #4fb6ff;
  font-size: 0.72rem;
}

.sa-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.sa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sa-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  color: #fff !important;
}

.sa-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: sa-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sa-anim--1 { animation-delay: 0.05s; }
.sa-anim--2 { animation-delay: 0.14s; }
.sa-anim--3 { animation-delay: 0.22s; }
.sa-anim--4 { animation-delay: 0.3s; }
.sa-anim--5 { animation-delay: 0.4s; }

@keyframes sa-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-orb,
  .sa-qr,
  .sa-anim {
    animation: none !important;
  }
  .sa-anim {
    opacity: 1;
    transform: none;
  }
}

/* Tablet: hero on top, stores equal below */
@media (max-width: 991.98px) {
  .sa-tri {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hero hero"
      "android ios";
  }

  .sa-hero { grid-area: hero; }
  .sa-panel--android { grid-area: android; }
  .sa-panel--ios { grid-area: ios; }

  .sa-headline {
    max-width: none;
  }

  .sa-lead {
    max-width: 42ch;
  }

  .sa-qr {
    width: min(100%, 11rem);
  }
}

/* Mobile stack */
@media (max-width: 679.98px) {
  .sa-wrap {
    width: min(100% - 1.25rem, 26rem);
    justify-content: flex-start;
    padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  .sa-tri {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "android"
      "ios";
    gap: 0.9rem;
  }

  .sa-headline {
    font-size: 2rem;
  }

  .sa-lead {
    font-size: 0.92rem;
    margin-bottom: 1rem;
  }

  .sa-panel {
    padding: 1.25rem 1.1rem 1.1rem;
    border-radius: 1.25rem;
  }

  .sa-qr {
    width: min(100%, 12rem);
    animation: none;
  }

  .sa-foot {
    gap: 0.55rem;
  }

  .sa-link {
    flex: 1 1 auto;
    justify-content: center;
  }
}
