:root {
    --sp-blue: #0a7db8;
    --sp-blue-dark: #075f8d;
    --sp-blue-soft: #edf7fc;
    --sp-navy: #0a3958;
    --sp-navy-deep: #062a42;
    --sp-text: #1c2b39;
    --sp-muted: #738493;
    --sp-border: #dfe8ef;
    --sp-page: #f4f7fa;
    --sp-card: #ffffff;
    --sp-success: #1aa36f;
    --sp-danger: #d94f5c;
    --sp-warning: #e6a42f;
    --sp-gold: #c89b2f;
    --sp-gold-soft: #fff8e5;
    --sp-shadow: 0 8px 28px rgba(23, 50, 70, .055);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; }
a { color: var(--sp-blue); }
a:hover { color: var(--sp-blue-dark); }

body.admin-body {
    font-family: "Noto Sans", Arial, sans-serif;
    background: var(--sp-page);
    color: var(--sp-text);
    font-size: 14px;
}

.admin-top-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--sp-blue), #16a0d9 56%, var(--sp-gold));
}

.admin-container {
    width: min(100%, 1540px);
    margin: 0 auto;
    padding-left: clamp(16px, 2.2vw, 34px);
    padding-right: clamp(16px, 2.2vw, 34px);
}

.admin-navbar {
    min-height: 76px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--sp-border);
    box-shadow: 0 4px 18px rgba(15, 47, 67, .045);
    backdrop-filter: blur(12px);
    z-index: 1030;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--sp-navy);
    margin-right: 6px;
}
.admin-brand:hover { color: var(--sp-navy); }

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #87630f;
    background: linear-gradient(145deg, #fff9df, #efd26f);
    border: 1px solid #e8d18b;
    box-shadow: 0 7px 18px rgba(180, 137, 27, .13);
    font-size: 17px;
    flex: 0 0 44px;
}

.brand-copy strong,
.login-mini-brand strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}
.brand-copy small,
.login-mini-brand small {
    display: block;
    margin-top: 5px;
    color: #8293a0;
    font-size: 9px;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 700;
}

.admin-main-nav { gap: 5px; }
.admin-main-nav .nav-link {
    color: #546775;
    font-weight: 700;
    padding: 11px 15px !important;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .18s ease;
}
.admin-main-nav .nav-link i { color: #8092a0; }
.admin-main-nav .nav-link:hover {
    color: var(--sp-blue);
    background: var(--sp-blue-soft);
}
.admin-main-nav .nav-link:hover i { color: var(--sp-blue); }
.admin-main-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--sp-blue), #0b72a7);
    box-shadow: 0 7px 18px rgba(10, 125, 184, .20);
}
.admin-main-nav .nav-link.active i { color: #fff; }

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timezone-pill {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    background: #fbfdfe;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #71818d;
    font-size: 10px;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-weight: 700;
}
.timezone-pill strong {
    color: var(--sp-navy);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.timezone-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sp-success);
    box-shadow: 0 0 0 4px rgba(26, 163, 111, .10);
}

.user-menu-btn {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--sp-navy);
    padding: 3px 4px;
}
.user-menu-btn.dropdown-toggle::after { display: none; }
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-blue-soft);
    color: var(--sp-blue);
    border: 1px solid #d9edf7;
}
.user-copy small {
    display: block;
    color: #8a99a4;
    font-size: 8px;
    letter-spacing: .08em;
    margin-bottom: 1px;
}
.user-copy strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    max-width: 145px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-caret { font-size: 9px; color: #8294a1; }
.user-dropdown-menu {
    min-width: 235px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(23, 50, 70, .14);
}
.user-dropdown-menu .dropdown-header {
    font-size: 9px;
    letter-spacing: .10em;
    color: #91a0ab;
    font-weight: 800;
}
.user-dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 10px 11px;
    color: #435867;
    font-weight: 600;
    font-size: 13px;
}
.user-dropdown-menu .dropdown-item i {
    width: 22px;
    color: var(--sp-blue);
}
.user-dropdown-menu .dropdown-item.text-danger i { color: var(--sp-danger); }

.admin-toggler {
    border: 1px solid var(--sp-border);
    border-radius: 9px;
    padding: 6px 9px;
}
.admin-toggler:focus { box-shadow: 0 0 0 .2rem rgba(10,125,184,.10); }

.admin-main { min-height: calc(100vh - 134px); }
.admin-footer {
    min-height: 54px;
    background: #fff;
    border-top: 1px solid var(--sp-border);
    color: #7d8b96;
    font-size: 11px;
    display: flex;
    align-items: center;
}
.admin-footer strong { color: var(--sp-navy); }

.page-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.page-title-copy { min-width: 0; }
.page-kicker {
    color: var(--sp-blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    margin-bottom: 6px;
}
.page-title-wrap h3 {
    margin: 0 0 5px;
    color: var(--sp-navy);
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 800;
    letter-spacing: -.02em;
}
.page-title-wrap p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 13px;
}
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.card {
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    box-shadow: var(--sp-shadow);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--sp-border);
    padding: 16px 18px;
    border-radius: 14px 14px 0 0 !important;
}
.card-title {
    color: var(--sp-navy);
    font-weight: 800;
    font-size: 15px;
}
.card-helper {
    color: var(--sp-muted);
    font-size: 11px;
    line-height: 1.5;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-blue-soft);
    color: var(--sp-blue);
    border: 1px solid #dceef7;
}
.section-icon.gold {
    color: #8e6813;
    background: var(--sp-gold-soft);
    border-color: #f1e2b8;
}
.section-icon.danger-soft {
    background: #fff0f2;
    color: #bd4350;
    border-color: #f8d9dd;
}
.section-icon.warning-soft {
    background: #fff7e5;
    color: #a97612;
    border-color: #f5e4b8;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-section-card { overflow: hidden; }
.settings-card { top: 102px; }

.btn {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}
.btn-primary {
    background: var(--sp-blue);
    border-color: var(--sp-blue);
    box-shadow: 0 5px 13px rgba(10,125,184,.13);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--sp-blue-dark);
    border-color: var(--sp-blue-dark);
}
.btn-outline-primary {
    color: var(--sp-blue);
    border-color: #acd6e9;
}
.btn-outline-primary:hover {
    background: var(--sp-blue);
    border-color: var(--sp-blue);
}
.btn-outline-secondary {
    color: #61727f;
    border-color: #cfdae2;
}
.btn-outline-secondary:hover {
    color: #fff;
    background: #647887;
    border-color: #647887;
}
.btn-soft-primary {
    min-height: 32px;
    padding: 5px 10px;
    color: var(--sp-blue);
    background: var(--sp-blue-soft);
    border: 1px solid #d8edf7;
}
.btn-soft-primary:hover {
    color: #fff;
    background: var(--sp-blue);
    border-color: var(--sp-blue);
}
.btn-lg { min-height: 46px; font-size: 14px; }

.form-label {
    color: #3d5261;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}
.form-control,
.form-select,
.input-group-text {
    min-height: 43px;
    border-color: #d7e2ea;
    border-radius: 7px;
    font-size: 13px;
}
.form-control::placeholder { color: #a3afb8; }
.form-control:focus,
.form-select:focus {
    border-color: #8bc4df;
    box-shadow: 0 0 0 .2rem rgba(10,125,184,.10);
}
.input-group .form-control { border-radius: 0 7px 7px 0; }
.input-group-text {
    color: #718592;
    background: #f7fafc;
    border-radius: 7px 0 0 7px;
}
.form-text {
    color: #83929e;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 6px;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #8ca0ad;
    pointer-events: none;
    z-index: 2;
}
.input-icon-wrap .form-control { padding-left: 39px; }

.select2-container .select2-selection--single {
    height: 43px;
    border: 1px solid #d7e2ea;
    border-radius: 7px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 41px;
    padding-left: 12px;
    color: #334a5a;
    font-size: 13px;
}
.select2-container .select2-selection--single .select2-selection__arrow { height: 41px; }
.select2-dropdown {
    border-color: #d7e2ea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(25,50,68,.12);
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--sp-blue);
}

.flatpickr-calendar {
    border: 1px solid #d7e2ea;
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(19, 49, 68, .16);
    overflow: hidden;
}
.flatpickr-months { background: var(--sp-navy); color: #fff; }
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #fff;
    fill: #fff;
}
.flatpickr-weekdays { background: #f2f8fb; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--sp-blue);
    border-color: var(--sp-blue);
}

.color-field {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #d7e2ea;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
}
.color-field .form-control-color {
    width: 44px;
    height: 32px;
    min-height: 32px;
    border: 0;
    padding: 0;
}
.color-code {
    color: #526775;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    text-transform: lowercase;
}

.logo-dropzone {
    display: block;
    width: 100%;
    min-height: 200px;
    border: 2px dashed #c9d9e4;
    border-radius: 12px;
    background: linear-gradient(180deg, #fcfeff, #f8fbfd);
    cursor: pointer;
    transition: .18s ease;
}
.logo-dropzone:hover,
.logo-dropzone.dragging {
    border-color: var(--sp-blue);
    background: #f2faff;
    box-shadow: inset 0 0 0 1px rgba(10,125,184,.04);
}
.logo-dropzone input { display: none; }
.logo-preview-wrap {
    min-height: 196px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-preview-wrap img {
    max-width: min(100%, 290px);
    max-height: 140px;
    object-fit: contain;
}
#logoPlaceholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: #7d8e9b;
}
#logoPlaceholder strong { color: #405563; font-size: 13px; }
#logoPlaceholder span { font-size: 11px; }
#logoPlaceholder small { color: #98a6b0; font-size: 10px; }
.upload-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-blue);
    background: var(--sp-blue-soft);
    font-size: 19px;
    margin-bottom: 4px;
}

.username-feedback {
    min-height: 18px;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 700;
}
.username-feedback.available { color: var(--sp-success); }
.username-feedback.taken { color: var(--sp-danger); }
.username-feedback.checking { color: #7b8a95; }
.public-url-preview {
    display: flex;
    align-items: center;
    margin-top: 1px;
    color: #8a99a4;
    font-size: 10px;
    min-width: 0;
}
.public-url-preview span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--sp-blue);
}

.theme-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 9px;
    padding: 11px;
    border-radius: 9px;
    color: #627886;
    background: #f4f8fb;
    border: 1px solid #e5edf3;
    font-size: 10px;
    line-height: 1.6;
}
.theme-note-icon {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    color: var(--sp-blue);
    background: #e6f4fb;
}
.display-url-box {
    padding: 12px;
    border-radius: 9px;
    background: linear-gradient(145deg, #f7fbfd, #f2f7fa);
    border: 1px solid #dfe9ef;
    min-width: 0;
}
.display-url-label {
    display: block;
    color: #8696a1;
    font-size: 8px;
    letter-spacing: .11em;
    font-weight: 800;
    margin-bottom: 5px;
}
.display-url-box strong {
    display: block;
    color: var(--sp-navy);
    font-size: 11px;
    line-height: 1.5;
    word-break: break-all;
}

.kpi-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.kpi-card {
    min-height: 164px;
    overflow: hidden;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
}
.kpi-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sp-blue);
}
.kpi-card.kpi-active::before { background: var(--sp-success); }
.kpi-card.kpi-expired::before { background: var(--sp-danger); }
.kpi-card.kpi-expiring::before { background: var(--sp-warning); }
.kpi-link:hover .kpi-card {
    transform: translateY(-3px);
    box-shadow: 0 15px 34px rgba(23,50,70,.09);
}
.kpi-card .card-body { padding: 19px 20px; }
.kpi-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kpi-icon {
    width: 43px;
    height: 43px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf5fb;
    color: #176e9e;
    border: 1px solid #dceef7;
}
.kpi-icon.success { background: #e9f8f1; color: #168a5e; border-color: #d8f0e4; }
.kpi-icon.danger { background: #fff0f2; color: #bc4450; border-color: #f7dadd; }
.kpi-icon.warning { background: #fff7e6; color: #a77612; border-color: #f4e5bc; }
.kpi-arrow { color: #b0bbc3; font-size: 11px; }
.kpi-value {
    margin-top: 14px;
    color: var(--sp-navy);
    font-size: 31px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
}
.kpi-label {
    margin-top: 7px;
    color: #405665;
    font-size: 12px;
    font-weight: 800;
}
.kpi-sub {
    margin-top: 4px;
    color: #8a98a3;
    font-size: 10px;
}

.table-card { overflow: hidden; }
.table-card-header { padding: 18px; }
.filter-label {
    display: block;
    margin-bottom: 5px;
    color: #8c9aa5;
    font-size: 8px;
    letter-spacing: .10em;
    font-weight: 800;
}
.table-responsive { scrollbar-width: thin; scrollbar-color: #c7d6e0 #f6f9fb; }
.table-responsive::-webkit-scrollbar { height: 8px; }
.table-responsive::-webkit-scrollbar-track { background: #f6f9fb; }
.table-responsive::-webkit-scrollbar-thumb { background: #c7d6e0; border-radius: 999px; }

.table > :not(caption) > * > * {
    padding: 13px 12px;
    border-bottom-color: #edf2f5;
}
.table thead th {
    color: #71838f;
    background: #f9fbfc;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    white-space: nowrap;
    border-bottom: 1px solid #e4ebf0;
}
.table tbody td {
    color: #435563;
    font-size: 12px;
    vertical-align: middle;
}
.table tbody tr:hover > td { background: #fcfeff; }
.business-table-wrap { padding-bottom: 4px; }
.business-table { min-width: 1080px; }

.business-cell {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.business-logo-thumb {
    width: 43px;
    height: 43px;
    border-radius: 10px;
    flex: 0 0 43px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--sp-border);
    color: #9aabb7;
}
.business-logo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.business-cell-copy strong {
    display: block;
    max-width: 190px;
    color: var(--sp-navy);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.business-cell-copy small {
    display: block;
    margin-top: 3px;
    color: #8b99a3;
    font-size: 10px;
}
.username-chip {
    display: inline-flex;
    align-items: center;
    max-width: 150px;
    padding: 4px 7px;
    border-radius: 6px;
    color: #2b6f96;
    background: #edf7fc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table-sub-link {
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}
.contact-value { white-space: nowrap; }
.contact-value i { color: #8da0ac; font-size: 9px; }
.subscription-dates {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.subscription-dates span {
    color: #4e626f;
    font-size: 10px;
}
.subscription-dates span small {
    display: block;
    color: #97a4ad;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1px;
}
.subscription-dates > i { color: #b1bcc4; font-size: 8px; }

.subscription-chip,
.plain-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 800;
}
.subscription-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .75;
}
.subscription-chip.active { background: #e9f8f1; color: #16875c; }
.subscription-chip.expiring { background: #fff7e4; color: #a67613; }
.subscription-chip.expired { background: #fff0f2; color: #bd4551; }
.subscription-chip.upcoming { background: #eaf5fb; color: #176f9d; }
.plain-chip { background: #f2f5f7; color: #647783; }
.plain-chip.enabled { background: #edf7fc; color: #1c719e; }

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    text-decoration: none;
    transition: .15s ease;
}
.action-view { color: #1b79a8; background: #edf7fc; border-color: #dceef7; }
.action-view:hover { color: #fff; background: var(--sp-blue); border-color: var(--sp-blue); }
.action-edit { color: #8b6817; background: #fff8e8; border-color: #f0e3bb; }
.action-edit:hover { color: #fff; background: #af8421; border-color: #af8421; }

.dashboard-table th,
.dashboard-table td { padding-left: 18px !important; padding-right: 18px !important; }
.dashboard-table tbody td strong { color: var(--sp-navy); }
.date-alert {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}
.date-alert.expired { color: #b84550; background: #fff1f2; }
.date-alert.warning { color: #a47312; background: #fff7e4; }

.empty-state {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #83929d;
    padding: 25px;
}
.empty-state-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 11px;
    font-size: 19px;
    background: #eef5f8;
    color: #8199a8;
}
.empty-state-icon.success { background: #eaf8f1; color: #1b9567; }
.empty-state strong { color: #4a5d69; font-size: 12px; }
.empty-state p { margin: 5px 0 0; color: #91a0aa; font-size: 10px; }

.app-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    font-size: 12px;
}
.alert-icon { font-size: 15px; }

/* DataTables v2 */
div.dt-container { padding: 15px 18px 18px; }
div.dt-container .dt-layout-row:first-child {
    margin: 0 0 12px;
    align-items: center;
}
div.dt-container .dt-layout-row:last-child { margin: 14px 0 0; }
div.dt-container .dt-length label,
div.dt-container .dt-info {
    color: #80909b;
    font-size: 10px;
}
div.dt-container .dt-length select {
    min-height: 34px;
    min-width: 68px;
    border: 1px solid #d7e2ea;
    border-radius: 7px;
    background: #fff;
    color: #516774;
    font-size: 11px;
}
div.dt-container .dt-search input {
    min-width: min(280px, 50vw);
    min-height: 36px;
    border: 1px solid #d7e2ea !important;
    border-radius: 8px !important;
    padding: 7px 10px !important;
    outline: 0;
    font-size: 11px;
}
div.dt-container .dt-search input:focus {
    border-color: #8bc4df !important;
    box-shadow: 0 0 0 .2rem rgba(10,125,184,.08);
}
div.dt-container .dt-paging .dt-paging-button {
    min-width: 32px;
    height: 32px;
    padding: 4px 8px !important;
    border-radius: 7px !important;
    border: 1px solid transparent !important;
    color: #647783 !important;
    font-size: 10px;
}
div.dt-container .dt-paging .dt-paging-button.current {
    color: #fff !important;
    background: var(--sp-blue) !important;
    border-color: var(--sp-blue) !important;
}
div.dt-container .dt-paging .dt-paging-button:hover:not(.current) {
    color: var(--sp-blue) !important;
    background: var(--sp-blue-soft) !important;
    border-color: #d8edf7 !important;
}

/* Login */
body.login-body {
    min-height: 100vh;
    font-family: "Noto Sans", Arial, sans-serif;
    background: #f3f7fa;
    color: var(--sp-text);
}
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(430px, .95fr) minmax(490px, 1.05fr);
}
.login-brand-side {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(45px, 6vw, 80px);
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(241,205,94,.16), transparent 24%),
        radial-gradient(circle at 85% 80%, rgba(16,141,199,.28), transparent 28%),
        linear-gradient(145deg, #0b3c5b, #082f49 55%, #05263b);
}
.login-brand-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.07);
    pointer-events: none;
}
.login-brand-decoration-one {
    width: 380px;
    height: 380px;
    right: -165px;
    bottom: -140px;
    box-shadow: 0 0 0 55px rgba(255,255,255,.02), 0 0 0 110px rgba(255,255,255,.012);
}
.login-brand-decoration-two {
    width: 180px;
    height: 180px;
    left: -95px;
    top: -70px;
    box-shadow: 0 0 0 35px rgba(240,202,87,.025);
}
.login-brand-content {
    position: relative;
    z-index: 2;
    max-width: 570px;
}
.login-brand-icon {
    width: 70px;
    height: 70px;
    border-radius: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #83600e;
    background: linear-gradient(145deg, #fff1a8, #d7aa3d);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
    font-size: 27px;
    margin-bottom: 25px;
}
.login-kicker {
    display: block;
    color: #e5c767;
    font-size: 10px;
    letter-spacing: .15em;
    font-weight: 800;
    margin-bottom: 10px;
}
.login-brand-side h1 {
    max-width: 560px;
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 55px);
    line-height: 1.06;
    letter-spacing: -.04em;
    font-weight: 800;
}
.login-brand-side p {
    max-width: 530px;
    margin: 0;
    color: #c8d7df;
    font-size: 14px;
    line-height: 1.8;
}
.login-points {
    display: grid;
    gap: 11px;
    margin-top: 30px;
}
.login-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d8e5eb;
    font-size: 12px;
}
.login-points i {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b3c5b;
    background: #e5c767;
    font-size: 9px;
}
.login-form-side {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 72px);
}
.login-card { width: min(100%, 430px); }
.login-mini-brand {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--sp-navy);
    margin-bottom: 36px;
}
.login-heading-kicker {
    color: var(--sp-blue);
    font-size: 9px;
    letter-spacing: .14em;
    font-weight: 800;
}
.login-card h2 {
    margin: 7px 0 7px;
    color: var(--sp-navy);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.025em;
}
.login-subtitle {
    color: #7c8d99;
    font-size: 12px;
    margin: 0 0 28px;
}
.login-input { position: relative; }
.login-input > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8ea0ac;
    z-index: 2;
}
.login-input .form-control {
    height: 49px;
    padding-left: 42px;
    padding-right: 44px;
    border-radius: 9px;
}
.password-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8ea0ac;
}
.password-toggle:hover { background: #f1f6f9; color: var(--sp-blue); }
.login-btn { height: 49px; border-radius: 9px; font-size: 13px; }
.login-footer-note {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e1e9ef;
    color: #93a0aa;
    font-size: 9px;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .admin-main-nav { margin-top: 13px; margin-bottom: 13px; }
    .admin-header-right { margin-bottom: 12px; }
    .settings-card { position: static !important; }
}

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand-side { display: none; }
    .login-form-side { padding: 38px 28px; }
    .login-mini-brand { display: flex; }
}

@media (max-width: 767.98px) {
    .page-title-wrap { align-items: flex-start; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1 1 auto; }
    .dashboard-table th,
    .dashboard-table td { padding-left: 13px !important; padding-right: 13px !important; }
    div.dt-container .dt-layout-row {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        gap: 9px;
    }
    div.dt-container .dt-search input { width: 100%; min-width: 0; }
}

@media (max-width: 575.98px) {
    .admin-container { padding-left: 13px; padding-right: 13px; }
    .admin-navbar { min-height: 68px; }
    .brand-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .brand-copy strong { font-size: 14px; }
    .card-body { padding-left: 16px !important; padding-right: 16px !important; }
    .card-header { padding-left: 15px; padding-right: 15px; }
    .admin-footer { padding: 11px 0; }
    .subscription-dates { gap: 5px; }
}
