:root {
    --vc-primary: #4f46e5;
    --vc-primary-dark: #3730a3;
    --vc-cyan: #06b6d4;
    --vc-success: #059669;
    --vc-warning: #d97706;
    --vc-danger: #dc2626;
    --vc-ink: #172033;
    --vc-muted: #667085;
    --vc-border: #e5eaf2;
    --vc-canvas: #f5f7fb;
    --vc-surface: #ffffff;
    --vc-radius-sm: 10px;
    --vc-radius: 16px;
    --vc-radius-lg: 24px;
    --vc-shadow: 0 12px 34px rgba(23, 32, 51, 0.07);
    --vc-shadow-lg: 0 24px 60px rgba(23, 32, 51, 0.13);
}

body.dark-mode {
    --vc-ink: #ffffff;
    --vc-muted: #d1d5db;
    --vc-border: #2b2b2b;
    --vc-canvas: #000000;
    --vc-surface: #000000;
    --vc-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    --vc-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);
}

body.dark-mode,
body.dark-mode .wrapper,
body.dark-mode .content-wrapper,
body.dark-mode .main-footer {
    color: var(--vc-ink);
    background: #000000 !important;
}

body.dark-mode .content-wrapper {
    background: #000000 !important;
}

body.dark-mode .main-header {
    border-color: var(--vc-border) !important;
    background: #000000 !important;
}

body.dark-mode .main-header .nav-link {
    color: #cbd5e1 !important;
}

body.dark-mode .main-header .nav-link:hover {
    color: #fff !important;
    background: #293548;
}

body.dark-mode .card,
body.dark-mode .card-body,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode .list-group-item {
    color: var(--vc-ink);
    border-color: var(--vc-border);
    background: #000000 !important;
}

body.dark-mode .card-header,
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    color: var(--vc-ink);
    border-color: var(--vc-border);
    background: #000000 !important;
}

body.dark-mode .table {
    color: var(--vc-ink);
}

body.dark-mode .table td,
body.dark-mode .table th {
    border-color: var(--vc-border);
}

body.dark-mode .table-hover tbody tr:hover {
    color: #fff;
    background-color: rgba(99, 102, 241, 0.12);
}

body.dark-mode .form-control,
body.dark-mode .custom-select,
body.dark-mode .select2-selection,
body.dark-mode .input-group-text {
    color: var(--vc-ink);
    border-color: #3f3f46;
    background-color: #080808;
}

body.dark-mode .form-control::placeholder {
    color: #7f8b9e;
}

body.dark-mode .dropdown-item {
    color: var(--vc-ink);
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    color: #fff;
    background-color: #171717;
}

body.dark-mode .text-primary,
body.dark-mode a:not(.btn):not(.nav-link):not(.page-link),
body.dark-mode .vc-eyebrow,
body.dark-mode .voucher-card-kicker,
body.dark-mode .card-title,
body.dark-mode .vc-table-primary {
    color: #ffffff !important;
}

body.dark-mode .text-muted,
body.dark-mode .vc-page-copy,
body.dark-mode .vc-table-subtitle {
    color: var(--vc-muted) !important;
}

body.dark-mode .pagination .page-link {
    color: #c7d2fe;
    border-color: var(--vc-border);
    background-color: var(--vc-surface);
}

body.dark-mode .pagination .page-item.active .page-link {
    color: #fff;
    border-color: var(--vc-primary);
    background-color: var(--vc-primary);
}

body.dark-mode .pagination .page-item.disabled .page-link {
    color: #64748b;
    background-color: #111827;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    color: var(--vc-ink);
    background: var(--vc-canvas);
}

a,
button,
.btn,
.form-control,
.custom-select,
.select2-selection {
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease,
        background-color 160ms ease, transform 160ms ease;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.custom-select:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.24);
    outline-offset: 2px;
}

.content-wrapper {
    background:
        radial-gradient(circle at 92% 2%, rgba(99, 102, 241, 0.08), transparent 27rem),
        radial-gradient(circle at 18% 98%, rgba(6, 182, 212, 0.07), transparent 24rem),
        var(--vc-canvas);
}

.content-header {
    padding: 28px 28px 12px;
}

.content {
    padding: 0 28px 36px;
}

.container-fluid {
    max-width: 1540px;
}

.main-header {
    min-height: 68px;
    border: 0 !important;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(16px);
}

.main-header .nav-link {
    min-width: 42px;
    height: 42px !important;
    margin: 7px 3px;
    border-radius: 11px;
    color: #475467 !important;
}

.main-header .nav-link:hover {
    color: var(--vc-primary) !important;
    background: #eef2ff;
}

.main-sidebar {
    background: #111827 !important;
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.12) !important;
}

.brand-link {
    min-height: 68px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.08));
}

.brand-link .brand-image {
    width: 38px;
    height: 38px;
    margin-left: 0.5rem;
    margin-right: 0.7rem;
    margin-top: 0;
    object-fit: contain;
    opacity: 1;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.32);
}

.brand-text {
    color: #fff;
    font-size: 1.08rem;
    letter-spacing: -0.025em;
}

.brand-text span {
    color: #67e8f9;
}

.sidebar {
    padding: 18px 12px;
}

.user-panel {
    margin: 0 4px 18px !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.nav-sidebar > .nav-item {
    margin-bottom: 5px;
}

.nav-sidebar > .nav-item > .nav-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    color: #aeb8ca;
    font-weight: 600;
}

.nav-sidebar > .nav-item > .nav-link .nav-icon {
    width: 28px;
    margin-right: 7px;
    font-size: 0.95rem;
}

.nav-sidebar > .nav-item > .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-sidebar > .nav-item > .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--vc-primary), #6366f1);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.34);
}

.card {
    overflow: hidden;
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    box-shadow: var(--vc-shadow);
}

.card[class*="card-outline"] {
    border-top: 1px solid var(--vc-border);
}

.card-header {
    min-height: 62px;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #edf0f5;
    background: rgba(255, 255, 255, 0.92);
}

.card-title {
    color: var(--vc-ink);
    font-size: 1rem;
    font-weight: 700;
}

.card-body {
    padding: 22px;
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.58rem 1rem;
    border-radius: 11px;
    font-weight: 700;
    box-shadow: none !important;
}

.btn-sm {
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    border-radius: 9px;
}

.btn-primary {
    border-color: var(--vc-primary);
    background: linear-gradient(135deg, var(--vc-primary), #6366f1);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--vc-primary-dark);
    background: linear-gradient(135deg, var(--vc-primary-dark), var(--vc-primary));
    transform: translateY(-1px);
}

.btn-success {
    border-color: var(--vc-success);
    background: var(--vc-success);
}

.btn-danger {
    border-color: var(--vc-danger);
    background: var(--vc-danger);
}

.btn-warning {
    border-color: #f59e0b;
    color: #422006;
    background: #fbbf24;
}

.btn-light,
.btn-default,
.btn-secondary {
    border: 1px solid #d9dfeb;
    color: #344054;
    background: #fff;
}

.btn-light:hover,
.btn-default:hover,
.btn-secondary:hover {
    border-color: #c6cedc;
    color: var(--vc-primary);
    background: #f8faff;
}

label {
    margin-bottom: 0.5rem;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-control,
.custom-select,
.select2-container--bootstrap4 .select2-selection {
    min-height: 46px;
    border: 1px solid #d6dce8;
    border-radius: 11px;
    color: var(--vc-ink);
    background: #fff;
}

.form-control:focus,
.custom-select:focus,
.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 13px;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    top: 50%;
    height: 20px;
    transform: translateY(-50%);
}

.form-hint {
    display: block;
    margin-top: 7px;
    color: var(--vc-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.table {
    margin-bottom: 0;
    color: #344054;
}

.table thead th {
    padding: 13px 14px;
    border-top: 0;
    border-bottom: 1px solid #dfe4ec;
    color: #667085;
    background: #f8fafc;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.table td {
    padding: 15px 14px;
    border-top-color: #edf0f5;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(248, 250, 252, 0.72);
}

.table-hover tbody tr:hover,
.table-striped tbody tr:hover {
    background: #f5f7ff;
}

.badge {
    padding: 0.42rem 0.62rem;
    border-radius: 999px;
    font-weight: 700;
}

.alert {
    border: 0;
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.alert-success {
    color: #065f46;
    background: #dff8ed;
}

.alert-danger {
    color: #991b1b;
    background: #fee7e7;
}

.alert-warning {
    color: #92400e;
    background: #fff3d6;
}

.vc-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.vc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--vc-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vc-page-title {
    margin: 0;
    color: var(--vc-ink);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.vc-page-copy {
    max-width: 680px;
    margin: 7px 0 0;
    color: var(--vc-muted);
    line-height: 1.65;
}

.vc-header-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #dfe4ec;
    border-radius: 999px;
    color: #475467;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
}

.vc-header-chip i {
    color: var(--vc-success);
}

.vc-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}

.vc-alert > i {
    margin-top: 3px;
}

.vc-alert p,
.vc-alert ul {
    margin-bottom: 0;
}

.voucher-card {
    height: 100%;
    margin-bottom: 0;
    border-radius: 20px;
}

.voucher-card .card-body {
    padding: clamp(20px, 3vw, 30px);
}

.voucher-card-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: var(--vc-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.voucher-card-title {
    margin: 0;
    color: var(--vc-ink);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.voucher-card-copy {
    margin: 7px 0 24px;
    color: var(--vc-muted);
    line-height: 1.6;
}

.voucher-code-input {
    min-height: 52px;
    padding-left: 46px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.vc-input-icon {
    position: relative;
}

.vc-input-icon > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    color: #98a2b3;
    transform: translateY(-50%);
}

.voucher-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.voucher-actions .btn {
    min-height: 48px;
}

.voucher-safety {
    display: flex;
    gap: 11px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    color: #4f5681;
    background: #f7f7ff;
    font-size: 0.8rem;
    line-height: 1.55;
}

.voucher-safety i {
    margin-top: 3px;
    color: var(--vc-primary);
}

.voucher-status-modal .modal-dialog {
    max-width: 860px;
}

.voucher-status-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.voucher-status-modal .modal-header {
    align-items: flex-start;
    padding: 18px 22px;
    border-bottom: 1px solid #edf0f5;
    background: linear-gradient(135deg, #f8faff, #f0fdff);
}

.voucher-status-modal .modal-title {
    color: var(--vc-ink);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.voucher-status-modal .modal-header .close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: -5px -8px -5px auto;
    padding: 0;
    border-radius: 12px;
    color: #475467;
    opacity: 1;
}

.voucher-status-modal .modal-header .close:hover,
.voucher-status-modal .modal-header .close:focus {
    color: var(--vc-ink);
    background: #e9eef7;
}

.voucher-status-modal .modal-body {
    padding: 22px;
}

.modal-backdrop.show {
    opacity: 0.58;
}

.voucher-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
}

.voucher-result-code {
    margin: 4px 0 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.status-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.status-pill::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-pill.is-success {
    color: #047857;
    background: #dff8ed;
}

.status-pill.is-danger {
    color: #b42318;
    background: #fee4e2;
}

.status-pill.is-warning {
    color: #b54708;
    background: #fef0c7;
}

.status-pill.is-neutral {
    color: #475467;
    background: #f2f4f7;
}

.expiry-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 17px;
    border: 1px solid #e6eaf0;
    border-radius: 15px;
    background: #fafbfc;
}

.expiry-panel.is-valid {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.expiry-panel.is-expired {
    border-color: #fecaca;
    background: #fff1f2;
}

.expiry-panel.is-warning {
    border-color: #fedf89;
    background: #fffaeb;
}

.expiry-panel-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--vc-primary);
    background: #fff;
    box-shadow: 0 7px 18px rgba(23, 32, 51, 0.08);
}

.expiry-panel.is-valid .expiry-panel-icon {
    color: var(--vc-success);
}

.expiry-panel.is-expired .expiry-panel-icon {
    color: var(--vc-danger);
}

.expiry-panel.is-warning .expiry-panel-icon {
    color: #b54708;
}

.expiry-panel small {
    display: block;
    margin-bottom: 2px;
    color: var(--vc-muted);
    font-weight: 700;
}

.expiry-panel strong {
    display: block;
    font-size: 1rem;
}

.expiry-panel span {
    display: block;
    margin-top: 2px;
    color: var(--vc-muted);
    font-size: 0.8rem;
}

.voucher-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 20px;
}

.voucher-metric {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e8ecf2;
    border-radius: 13px;
    background: #fff;
}

.voucher-metric-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--vc-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.voucher-metric-value {
    color: var(--vc-ink);
    font-size: 0.96rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.voucher-metric-subvalue {
    margin-top: 5px;
    color: var(--vc-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.73rem;
    overflow-wrap: anywhere;
}

.voucher-history-metrics .voucher-metric {
    background: linear-gradient(145deg, #fff, #f8faff);
}

.vc-progress {
    height: 7px;
    overflow: hidden;
    margin-top: 10px;
    border-radius: 99px;
    background: #eaecf0;
}

.vc-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--vc-primary), var(--vc-cyan));
}

.vc-progress.is-danger > span {
    background: linear-gradient(90deg, #f97316, var(--vc-danger));
}

.voucher-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.voucher-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.voucher-detail-list span {
    color: var(--vc-muted);
    font-size: 0.82rem;
}

.voucher-detail-list strong {
    font-size: 0.84rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.voucher-comment {
    margin-top: 18px;
    padding: 14px 15px;
    border-left: 3px solid #818cf8;
    border-radius: 0 11px 11px 0;
    color: #475467;
    background: #f8f9ff;
    font-size: 0.84rem;
    line-height: 1.6;
}

.voucher-history-comment {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.voucher-history-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 14px 15px;
    border: 1px solid #c7d7fe;
    border-radius: 12px;
    color: #364152;
    background: #f4f7ff;
    font-size: 0.82rem;
    line-height: 1.6;
}

.voucher-history-disclaimer > i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--vc-primary);
}

.voucher-history-disclaimer strong,
.voucher-history-disclaimer span {
    display: block;
}

.voucher-history-disclaimer strong {
    margin-bottom: 2px;
    color: var(--vc-ink);
}

.voucher-lookup-note {
    margin-bottom: 18px;
    padding: 14px 15px;
    border: 1px solid #fedf89;
    border-radius: 12px;
    color: #7a2e0e;
    background: #fffdf5;
    font-size: 0.84rem;
    line-height: 1.65;
}

.voucher-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #edf0f5;
}

.voucher-result-footer {
    margin-top: 16px;
    color: #98a2b3;
    font-size: 0.74rem;
}

.vc-section-card .card-header {
    justify-content: space-between;
}

.vc-section-card .card-header::before {
    display: none;
}

.vc-table-primary {
    color: var(--vc-ink);
    font-weight: 750;
}

.vc-table-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--vc-muted);
    font-size: 0.77rem;
    font-weight: 500;
}

.vc-empty-row {
    padding: 42px !important;
    color: var(--vc-muted);
    text-align: center;
}

.vc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.vc-form-grid .is-full {
    grid-column: 1 / -1;
}

.vc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #edf0f5;
}

.login-page,
.register-page {
    position: relative;
    overflow-x: hidden;
    padding: 28px 18px;
    background:
        radial-gradient(circle at 12% 10%, rgba(99, 102, 241, 0.32), transparent 25rem),
        radial-gradient(circle at 92% 88%, rgba(6, 182, 212, 0.24), transparent 28rem),
        #0f172a;
}

.login-box,
.register-box {
    width: min(420px, 100%);
}

.login-logo a,
.register-logo a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff !important;
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.login-logo a > span,
.register-logo a > span {
    color: #67e8f9;
}

.login-logo img,
.register-logo img {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.login-box .card,
.register-box .card {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    box-shadow: var(--vc-shadow-lg);
}

.login-box .card-body,
.register-box .card-body {
    padding: 28px;
}

.login-card-body .input-group .form-control,
.register-card-body .input-group .form-control {
    min-height: 48px;
}

.login-card-body .input-group-text,
.register-card-body .input-group-text {
    min-width: 48px;
    justify-content: center;
    border-color: #d6dce8;
    border-radius: 0 11px 11px 0;
    background: #f8fafc;
}

.login-box .btn-primary,
.register-box .btn-primary {
    min-height: 48px;
}

@media (max-width: 991.98px) {
    .content-header {
        padding: 22px 18px 10px;
    }

    .content {
        padding: 0 18px 28px;
    }

    .voucher-card {
        height: auto;
    }

    .voucher-workspace > [class*="col-"] + [class*="col-"] {
        margin-top: 18px;
    }
}

@media (max-width: 575.98px) {
    .content-header {
        padding: 18px 14px 9px;
    }

    .content {
        padding: 0 14px 22px;
    }

    .vc-page-header,
    .voucher-result-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .vc-header-chip {
        align-self: flex-start;
    }

    .voucher-actions,
    .voucher-metrics,
    .voucher-detail-list,
    .vc-form-grid {
        grid-template-columns: 1fr;
    }

    .voucher-actions .btn,
    .voucher-result-actions .btn,
    .voucher-result-actions form,
    .voucher-result-actions form .btn,
    .vc-form-actions .btn {
        width: 100%;
    }

    .status-pills {
        justify-content: flex-start;
    }

    .voucher-history-disclaimer {
        padding: 13px;
    }

    .voucher-status-modal .modal-dialog {
        min-height: calc(100% - 1rem);
        margin: 0.5rem;
    }

    .voucher-status-modal .modal-content {
        max-height: calc(100vh - 1rem);
        border-radius: 16px;
    }

    .voucher-status-modal .modal-header {
        padding: 14px 16px;
    }

    .voucher-status-modal .modal-body {
        padding: 16px;
    }

    .card-body {
        padding: 18px;
    }

    .table td,
    .table th {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Keep every content surface truly black when the saved dark theme is active. */
body.dark-mode .content-wrapper,
body.dark-mode .content,
body.dark-mode .wrapper,
body.dark-mode .main-header,
body.dark-mode .main-sidebar,
body.dark-mode .brand-link,
body.dark-mode .sidebar,
body.dark-mode .user-panel,
body.dark-mode .main-footer,
body.dark-mode .card,
body.dark-mode .card-header,
body.dark-mode .card-body,
body.dark-mode .modal-content,
body.dark-mode .voucher-status-modal .modal-header,
body.dark-mode .voucher-status-modal .modal-body,
body.dark-mode .voucher-result-header,
body.dark-mode .voucher-safety,
body.dark-mode .voucher-metric,
body.dark-mode .voucher-history-metrics .voucher-metric,
body.dark-mode .voucher-detail-list li,
body.dark-mode .voucher-comment,
body.dark-mode .voucher-history-comment,
body.dark-mode .voucher-history-disclaimer,
body.dark-mode .voucher-lookup-note,
body.dark-mode .expiry-panel,
body.dark-mode .expiry-panel.is-valid,
body.dark-mode .expiry-panel.is-expired,
body.dark-mode .expiry-panel.is-warning,
body.dark-mode .status-pill,
body.dark-mode .status-pill.is-success,
body.dark-mode .status-pill.is-danger,
body.dark-mode .status-pill.is-warning,
body.dark-mode .status-pill.is-neutral,
body.dark-mode .vc-header-chip,
body.dark-mode .table thead th,
body.dark-mode .table-striped tbody tr:nth-of-type(odd),
body.dark-mode .table-hover tbody tr:hover,
body.dark-mode .table-striped tbody tr:hover {
    background: #000000 !important;
}

body.dark-mode .main-header .nav-link:hover,
body.dark-mode .nav-sidebar > .nav-item > .nav-link:hover,
body.dark-mode .nav-sidebar > .nav-item > .nav-link.active {
    color: #ffffff !important;
    background: #000000 !important;
    box-shadow: none !important;
}

body.dark-mode .nav-sidebar > .nav-item > .nav-link.active {
    border: 1px solid #ffffff;
}

body.dark-mode .brand-link {
    border-color: #2b2b2b !important;
}

body.dark-mode .text-primary,
body.dark-mode .vc-eyebrow,
body.dark-mode .voucher-card-kicker,
body.dark-mode .voucher-safety,
body.dark-mode .voucher-result-code,
body.dark-mode .voucher-metric-value,
body.dark-mode .voucher-detail-list strong,
body.dark-mode .voucher-comment,
body.dark-mode .voucher-history-comment,
body.dark-mode .voucher-history-disclaimer,
body.dark-mode .voucher-lookup-note,
body.dark-mode .status-pill,
body.dark-mode .expiry-panel,
body.dark-mode .expiry-panel-icon {
    color: #ffffff !important;
}
