/* ==========================================================================
   KUI component layer for RE-KYC  (visual only)
   Add code kingshuk 22/10/2026
   --------------------------------------------------------------------------
   - Loaded AFTER the CORK / Bootstrap styles and Content/Ekyc.css, so it only re-skins.
   - Nothing here renames, hides or removes a control; no IDs / JS hooks are touched.
   - Selectors are prefixed "html body" so they win over the template without relying on stylesheet order.
   - To roll back the look, remove the <link> to this file (and kui-tokens.css) from the layouts.
   ========================================================================== */

/* ---------- Base ---------- */
html body {
    font-size: 15px;
    line-height: 1.55;
    color: var(--kui-text);
    background: var(--kui-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html body.layout-boxed { background: var(--kui-bg) !important; }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .card-title, html body .modal-title, html body .swal2-title {
    color: var(--kui-heading);
    font-weight: 700;
    letter-spacing: -.01em;
}
/* Add code kingshuk 22/10/2026 : the template hard-codes #515365 on text; inherit the theme colour instead (needed for dark mode) */
html body p, html body td, html body th, html body li, html body small, html body .form-check-label { color: inherit; }
html body a { color: var(--kui-brand-600); }
html body a:hover { color: var(--kui-brand-700); }
html body .text-primary { color: var(--kui-brand-600) !important; }
html body .bg-primary { background-color: var(--kui-btn) !important; color: var(--kui-on-brand); }
html body .border-primary { border-color: var(--kui-brand-600) !important; }
html body .text-black { color: var(--kui-text) !important; }
html body .text-info { color: var(--kui-brand-600) !important; }
html body .text-muted { color: var(--kui-text-muted) !important; }
html body :focus-visible { outline: 3px solid var(--kui-focus); outline-offset: 2px; }

/* ---------- Bootstrap colour variables (Infinity teal primary) ---------- */
html:root {
    --bs-primary: #147994;
    --bs-primary-rgb: 20, 121, 148;
    --bs-link-color: #147994;
    --bs-link-hover-color: #105f75;
}

/* ---------- Layout shell ---------- */
html body .layout-px-spacing { background: transparent; }
html body .header-container,
html body .header-container .header.navbar { background: var(--kui-surface) !important; }
html body .header-container { border-bottom: 1px solid var(--kui-border); }
html body .footer-wrapper { color: var(--kui-text-muted); }
html body .footer-wrapper p, html body .footer-wrapper a { font-size: 13px; }

/* Sidebar (step rail) */
html body .sidebar-wrapper { background: var(--kui-surface); border-right: 1px solid var(--kui-border); }
html body #sidebar { background: var(--kui-surface); }
html body #sidebar .theme-brand { background: var(--kui-surface); border-bottom: 1px solid var(--kui-border); }
html body .sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading {
    font-family: var(--kui-font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--kui-text-faint);
}
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle {
    color: var(--kui-text);
    font-size: 14.5px;
    font-weight: 500;
    border-radius: var(--kui-radius);
}
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle svg:not(.badge-icon) { color: var(--kui-text-muted); }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle:hover {
    color: var(--kui-brand-600);
    background: var(--kui-brand-50);
}
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle:hover svg:not(.badge-icon) {
    color: var(--kui-brand-600);
    fill: rgba(20, 121, 148, .06);
}
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle,
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle[aria-expanded="true"],
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] {
    background: var(--kui-btn); /* filled state uses the button colour so white text keeps AA contrast in both themes */
    color: var(--kui-on-brand);
}
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle svg:not(.badge-icon),
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] svg:not(.badge-icon) { color: var(--kui-on-brand); }

/* ---------- Cards and panels ---------- */
html body .card {
    background: var(--kui-surface);
    border: 1px solid var(--kui-border);
    border-radius: var(--kui-radius-lg);
    box-shadow: var(--kui-shadow-1);
}
html body .card-body { padding: 24px; }
html body .card-header {
    background: var(--kui-surface-2);
    border-bottom: 1px solid var(--kui-border);
    border-radius: var(--kui-radius-lg) var(--kui-radius-lg) 0 0;
}
html body .info-box-1 { border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); background: var(--kui-surface); }
html body .modal-content { background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); box-shadow: var(--kui-shadow-3); }
html body .modal-header { border-bottom: 1px solid var(--kui-border); }
html body .modal-footer { border-top: 1px solid var(--kui-border); }

/* ---------- Forms ---------- */
html body label, html body .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--kui-text);
}
html body .form-control,
html body .form-select {
    min-height: var(--kui-control-h);
    padding: 10px 14px;
    font-size: 15px;
    color: var(--kui-text);
    background-color: var(--kui-surface);
    border: 1.5px solid var(--kui-border-strong);
    border-radius: var(--kui-radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
html body .form-control-sm { min-height: var(--kui-btn-h-sm); padding: 6px 12px; font-size: 14px; }
html body textarea.form-control { min-height: 96px; }
html body .form-control::placeholder { color: var(--kui-text-faint); }
html body .form-control:focus,
html body .form-select:focus {
    border-color: var(--kui-brand-600);
    box-shadow: 0 0 0 3px var(--kui-focus);
    outline: 0;
}
html body .form-control[readonly]:not(.flatpickr-input),
html body .form-control:disabled,
html body .form-select:disabled {
    background-color: var(--kui-surface-2);
    color: var(--kui-text-muted);
}
html body .form-check-input:checked { background-color: var(--kui-btn); border-color: var(--kui-btn); }

html body .form-check-input:focus { border-color: var(--kui-brand-600); box-shadow: 0 0 0 3px var(--kui-focus); }
html body .form-switch .form-check-input:checked { background-color: var(--kui-btn); border-color: var(--kui-btn); }

/* Validation messages (jquery.validate and Bootstrap) keep their markup; only the look changes */
html body label.error,
html body .field-validation-error,
html body span.error,
html body .invalid-feedback {
    color: var(--kui-danger-text);
    font-size: 12.5px;
    font-weight: 500;
}
html body .form-control.error,
html body .form-control.is-invalid,
html body .form-select.is-invalid { border-color: var(--kui-danger); }

/* ---------- Buttons (36 / 44 / 48, 8px radius, flat) ---------- */
html body .btn {
    min-height: var(--kui-btn-h);
    padding: 0 20px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    border-width: 1.5px;
    border-radius: var(--kui-btn-radius);
    box-shadow: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
html body .btn-sm { min-height: var(--kui-btn-h-sm); padding: 0 14px; font-size: 13.5px; }
html body .btn-lg { min-height: var(--kui-btn-h-lg); padding: 0 24px; }

html body .btn-primary,
html body .btn-primary:focus {
    --bs-btn-bg: var(--kui-btn);
    --bs-btn-border-color: var(--kui-btn);
    --bs-btn-hover-bg: var(--kui-btn-hover);
    --bs-btn-hover-border-color: var(--kui-btn-hover);
    --bs-btn-active-bg: var(--kui-btn-hover);
    --bs-btn-active-border-color: var(--kui-btn-hover);
    --bs-btn-disabled-bg: var(--kui-btn);
    --bs-btn-disabled-border-color: var(--kui-btn);
    background-color: var(--kui-btn) !important;
    border-color: var(--kui-btn) !important;
    color: var(--kui-on-brand) !important;
    box-shadow: none !important;
}
html body .btn-primary:hover,
html body .btn-primary:active {
    background-color: var(--kui-btn-hover) !important;
    border-color: var(--kui-btn-hover) !important;
}
html body .btn-primary:disabled, html body .btn-primary.disabled { opacity: .55; }

html body .btn-outline-primary,
html body .btn-secondary,
html body .btn-light {
    background: var(--kui-surface);
    border-color: var(--kui-border-strong) !important;
    color: var(--kui-brand-700) !important;
}
html body .btn-outline-primary:hover,
html body .btn-secondary:hover,
html body .btn-light:hover {
    background: var(--kui-brand-50) !important;
    border-color: var(--kui-brand-600) !important;
    color: var(--kui-brand-700) !important;
}
html body .btn-outline-primary:disabled, html body .btn-outline-primary.disabled { opacity: .5; background: var(--kui-surface-2); color: var(--kui-text-muted) !important; }
html body .btn-success { background-color: var(--kui-success) !important; border-color: var(--kui-success) !important; color: #fff !important; }
html body .btn-danger { background-color: var(--kui-danger) !important; border-color: var(--kui-danger) !important; color: #fff !important; }
html body .btn-outline-danger { background: var(--kui-surface); border-color: var(--kui-danger) !important; color: var(--kui-danger-text) !important; }
html body .btn-outline-danger:hover { background: var(--kui-danger-bg) !important; }
html body .btn-warning { background-color: var(--kui-warning-bg) !important; border-color: var(--kui-warning-line) !important; color: var(--kui-warning-text) !important; }

/* Changer pages: the Back / Logout round icon buttons are sized by Shared/Changer.cshtml (min-height reset there) */

/* ---------- Alerts and badges ---------- */
html body .alert { border-radius: var(--kui-radius); border-width: 1px; font-size: 14px; }
html body .alert-success { background: var(--kui-success-bg); color: var(--kui-success-text); border-color: color-mix(in srgb, var(--kui-success) 25%, transparent); }
html body .alert-warning { background: var(--kui-warning-bg); color: var(--kui-warning-text); border-color: var(--kui-warning-line); }
html body .alert-danger { background: var(--kui-danger-bg); color: var(--kui-danger-text); border-color: color-mix(in srgb, var(--kui-danger) 25%, transparent); }
html body .alert-info, html body .alert-primary { background: var(--kui-info-bg); color: var(--kui-info); border-color: color-mix(in srgb, var(--kui-info) 25%, transparent); }
html body .badge.bg-primary, html body .badge-primary { background-color: var(--kui-btn) !important; color: var(--kui-on-brand); }
html body .text-success { color: var(--kui-success-text) !important; }
html body .text-danger { color: var(--kui-danger-text) !important; }
html body .text-warning { color: var(--kui-warning-text) !important; }

/* ---------- Tables (DataTables and plain) ---------- */
html body .table { color: var(--kui-text); --bs-table-border-color: var(--kui-border); }
html body .table > thead > tr > th {
    background: var(--kui-surface-2);
    color: var(--kui-text-subtle);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--kui-border-strong);
}
html body .table > tbody > tr:hover > td { background: var(--kui-brand-50); }
html body .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html body .dataTables_wrapper .page-item.active .page-link {
    background: var(--kui-btn) !important;
    border-color: var(--kui-brand-600) !important;
    color: var(--kui-on-brand) !important;
}

/* ---------- Dropdowns / popovers / date picker ---------- */
html body .dropdown-menu { border: 1px solid var(--kui-border); border-radius: var(--kui-radius); box-shadow: var(--kui-shadow-2); }
html body .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section .media .media-body p { color: var(--kui-brand-600); }
html body .navbar .navbar-item .nav-item.dropdown .dropdown-menu .dropdown-item:hover a { color: var(--kui-brand-600); background: var(--kui-brand-50); }
html body .popover { border: 1px solid var(--kui-border); border-radius: var(--kui-radius); box-shadow: var(--kui-shadow-2); }
html body .mc-calendar, html body .mc-calendar * { font-family: var(--kui-font); }
html body .ui-datepicker .ui-state-active,
html body .ui-widget-content .ui-state-active { background: var(--kui-btn); border-color: var(--kui-btn); color: var(--kui-on-brand); }

/* ---------- SweetAlert2 ---------- */
html body .swal2-popup { background: var(--kui-surface); border-radius: var(--kui-radius-lg); box-shadow: var(--kui-shadow-3); padding: 28px 24px; font-family: var(--kui-font); }
html body .swal2-html-container, html body .swal2-content { color: var(--kui-text-muted); }
html body .swal2-styled { border-radius: var(--kui-btn-radius); font-weight: 600; }
html body .swal2-confirm { background-color: var(--kui-btn) !important; color: var(--kui-on-brand) !important; }
html body .swal2-confirm:hover { background-color: var(--kui-btn-hover) !important; color: var(--kui-on-brand) !important; }
html body .swal2-styled:focus { box-shadow: 0 0 0 3px var(--kui-focus) !important; }

/* ---------- Loader ---------- */
html body #load_screen .spinner-grow,
html body #load_screen1 .spinner-grow { color: var(--kui-brand-600); background-color: var(--kui-brand-600); }

/* ---------- Landing / sign-in (Home/Index, Resume, OTP pages) ---------- */
html body .auth-overlay { background: var(--kui-hero-bg) !important; }
html body .auth-cover h2, html body .auth-cover p { color: #ffffff !important; }
html body .auth-container .card {
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(5, 31, 56, .05), 0 14px 34px rgba(5, 31, 56, .08);
}
html body .auth-container .card-body { padding: 32px; }
html body .auth-container a.text-warning { color: var(--kui-brand-600) !important; font-weight: 600; }
html body .auth-container .input-group-text { background: var(--kui-surface-2) !important; border: 1.5px solid var(--kui-border-strong); color: var(--kui-text-muted); }

/* ---------- Step indicator (CustomCSS.css) ---------- */
html body .step-active .step-indicator,
html body .step-active:hover .step-indicator { background-color: var(--kui-btn); color: var(--kui-on-brand); }
html body .step-active .step-icon,
html body .step-active:hover .step-icon { color: var(--kui-brand-600); }
html body .step-completed .step-indicator,
html body .step-completed:hover .step-indicator { background-color: var(--kui-success-bg); color: var(--kui-success-text); }

/* ==========================================================================
   Add code kingshuk 22/10/2026 : eKYC-style shell, dark-safe components, logo pair, theme toggle
   ========================================================================== */

/* Bootstrap 5 variables follow the tokens, so every Bootstrap component picks up dark mode */
html:root {
    --bs-body-bg: var(--kui-bg);
    --bs-body-color: var(--kui-text);
    --bs-heading-color: var(--kui-heading);
    --bs-border-color: var(--kui-border);
    --bs-secondary-color: var(--kui-text-muted);
    --bs-secondary-bg: var(--kui-surface-2);
    --bs-tertiary-bg: var(--kui-surface-2);
    --bs-emphasis-color: var(--kui-text);
}
html body .bg-white { background-color: var(--kui-surface) !important; }
html body .bg-light { background-color: var(--kui-surface-2) !important; }
html body .text-dark { color: var(--kui-text) !important; }
html body .dropdown-menu { background: var(--kui-surface); color: var(--kui-text); }
html body .dropdown-item { color: var(--kui-text); }
html body .dropdown-item:hover, html body .dropdown-item:focus { background: var(--kui-brand-50); color: var(--kui-brand-600); }
html body .table { --bs-table-bg: transparent; --bs-table-color: var(--kui-text); }
html body .list-group-item { background: var(--kui-surface); color: var(--kui-text); border-color: var(--kui-border); }
html body .ui-widget-content, html body .ui-widget.ui-widget-content { background: var(--kui-surface); color: var(--kui-text); border-color: var(--kui-border); }
html body .ui-widget-header { background: var(--kui-surface-2); color: var(--kui-text); border-color: var(--kui-border); }
html body .btn-close { filter: none; }
:root[data-kui-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
html body .form-control:-webkit-autofill { -webkit-text-fill-color: var(--kui-text); box-shadow: 0 0 0 1000px var(--kui-surface) inset; }

/* Auth-style (body.form) pages that keep the CORK markup: OTP pages */
html body.form, html body.form .auth-container { background: var(--kui-bg); color: var(--kui-text); }
html body.form .auth-container { min-height: 100dvh; }

/* Logo pair: colour logo in light, white logo in dark */
.kui-logo-dark { display: none; }
:root[data-kui-theme="dark"] .kui-logo-light { display: none; }
:root[data-kui-theme="dark"] .kui-logo-dark { display: inline-block; }

/* Icon button + theme toggle (wired by kui-theme.js through [data-kui-home-toggle]) */
.kui-iconbtn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--kui-border); background: var(--kui-surface);
    color: var(--kui-text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
    transition: background .15s, color .15s, border-color .15s;
}
.kui-iconbtn:hover { background: var(--kui-brand-50); color: var(--kui-brand-600); border-color: var(--kui-brand-100); }
.kui-iconbtn svg { width: 20px; height: 20px; }
.kui-iconbtn .kui-ico-sun { display: none; }
html[data-kui-theme="dark"] .kui-iconbtn .kui-ico-sun { display: block; }
html[data-kui-theme="dark"] .kui-iconbtn .kui-ico-moon { display: none; }
.kui-float-theme { position: fixed; right: 18px; bottom: 18px; z-index: 1035; box-shadow: var(--kui-shadow-2); }

/* ---------- App shell (rail + top bar), CSS only: the CORK DOM and its app.js hooks are untouched ---------- */
@media (min-width: 992px) {
    html body .sidebar-wrapper { width: var(--kui-rail-w); box-shadow: none; border-right: 1px solid var(--kui-border); background: var(--kui-surface); }
    html body #sidebar .theme-brand { padding: 20px 20px 16px; justify-content: flex-start; background: var(--kui-surface); border-radius: 0; }
    html body #sidebar ul.menu-categories { padding: 8px 14px 24px; }
    html body .sidebar-wrapper ul.menu-categories li.menu.menu-heading { height: auto; }
    html body .sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading { padding: 18px 10px 10px; }
    html body #content { width: auto; flex-grow: 1; margin-left: var(--kui-rail-w); margin-top: var(--kui-header-h); }
    html body .header-container,
    html body .header-container.container-xxl {
        left: var(--kui-rail-w); width: calc(100% - var(--kui-rail-w)); max-width: none; margin-top: 0; top: 0;
        min-height: var(--kui-header-h); padding: 0 24px; background: var(--kui-surface) !important; border-bottom: 1px solid var(--kui-border);
    }
    html body .header-container .header.navbar { min-height: var(--kui-header-h); align-items: center; }
    html body .layout-px-spacing { padding: 24px 32px 0 !important; }
}
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle { padding: 11px 14px; margin: 2px 0; }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div { display: flex; align-items: center; gap: 10px; }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div > i[data-feather],
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div > svg { flex: none; }
html body .header-container .navbar-item .nav-item.dropdown .dropdown-menu { background: var(--kui-surface); border: 1px solid var(--kui-border); box-shadow: var(--kui-shadow-3); }
html body .header-container .sidebarCollapse svg { color: var(--kui-text-muted); }

/* ==========================================================================
   Add code kingshuk 22/10/2026 : premium accents (colour only, no layout change)
   Sky cyan marks "where you are" and highlights; teal carries actions and structure; navy carries headings.
   ========================================================================== */
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle,
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] { box-shadow: inset 4px 0 0 var(--kui-accent-500); }
html body .table > thead > tr > th { background: var(--kui-brand-50); border-bottom: 2px solid var(--kui-brand-100); }
html body hr { border-color: var(--kui-border); opacity: 1; }
html body ::selection { background: var(--kui-brand-100); color: var(--kui-brand-700); }
html body .alert-info, html body .alert-primary { border-left: 4px solid var(--kui-brand-500); }
html body .kui-iconbtn:hover { border-color: var(--kui-accent-600); }
/* ==========================================================================
   Add code kingshuk 23/10/2026 : smooth buttons + date picker in the project palette (CSS only, no JS change)
   ========================================================================== */
/* ---------- Smooth buttons: gentle hover lift, quick press, clear focus ring, no tap delay ---------- */
html body .btn, html body .kui-iconbtn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html body .btn:not(:disabled):not(.disabled):hover { transform: translateY(-1px); }
html body .btn:not(:disabled):not(.disabled):active { transform: translateY(0) scale(.985); transition-duration: .08s; }
html body .btn-primary:not(:disabled):not(.disabled):hover { box-shadow: 0 8px 18px rgba(20, 121, 148, .28) !important; }
html body .btn-primary:not(:disabled):not(.disabled):active { box-shadow: 0 2px 6px rgba(20, 121, 148, .26) !important; }
html body .btn-outline-primary:not(:disabled):not(.disabled):hover,
html body .btn-secondary:not(:disabled):not(.disabled):hover,
html body .btn-light:not(:disabled):not(.disabled):hover { box-shadow: 0 6px 14px rgba(5, 31, 56, .10); }
html body .btn:focus-visible { outline: 3px solid var(--kui-focus); outline-offset: 2px; }
html body .btn:disabled, html body .btn.disabled { cursor: not-allowed; transform: none; }
html body .kui-iconbtn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
html body .kui-iconbtn:active { transform: scale(.94); }
/* the round Back / Logout buttons keep their size; the lift is enough */
html body .btn-outline-primary:not(:disabled):hover, html body .btn-outline-danger:not(:disabled):hover { transform: translateY(-1px); }

/* ---------- Date picker (mc-calendar): the page script passes its own #4361ee violet, so the variables are re-pointed here ---------- */
html body .mc-calendar, html body .mc-calendar * {
    --mc-theme-color: var(--kui-brand-600) !important;
    --mc-main-bg: var(--kui-surface) !important;
    --mc-active-text-color: var(--kui-text) !important;
    --mc-inactive-text-color: var(--kui-text-muted) !important;
    --mc-display-foreground: rgba(255, 255, 255, .92) !important;
    --mc-display-background: var(--kui-btn) !important;
    --mc-picker-foreground: var(--kui-text) !important;
    --mc-picker-background: var(--kui-surface) !important;
    --mc-picker-header-active: var(--kui-text-muted) !important;
    --mc-picker-header-inactive: var(--kui-border-strong) !important;
    --mc-weekday-foreground: var(--kui-brand-600) !important;
    --mc-btn-success-foreground: var(--kui-brand-600) !important;
    --mc-btn-danger-foreground: var(--kui-danger-text) !important;
    --mc-date-active-def-foreground: var(--kui-text) !important;
    --mc-date-active-pick-foreground: var(--kui-on-brand) !important;
    --mc-date-active-pick-background: var(--kui-btn) !important;
    --mc-date-active-today-foreground: var(--kui-brand-700) !important;
    --mc-date-active-today-background: var(--kui-brand-100) !important;
    --mc-date-inactive-def-foreground: var(--kui-text-faint) !important;
    --mc-date-inactive-pick-foreground: var(--kui-brand-600) !important;
    --mc-date-inactive-pick-background: var(--kui-brand-100) !important;
    --mc-date-inactive-today-foreground: var(--kui-text-faint) !important;
    --mc-date-inactive-today-background: var(--kui-brand-50) !important;
    --mc-date-marcked-foreground: var(--kui-brand-600) !important;
    --mc-prev-active-def-foreground: var(--kui-text) !important;
    --mc-prev-active-pick-foreground: var(--kui-brand-700) !important;
    --mc-prev-active-pick-background: var(--kui-brand-100) !important;
    --mc-prev-inactive-def-foreground: var(--kui-text-faint) !important;
    --mc-prev-inactive-pick-foreground: var(--kui-text-faint) !important;
    --mc-prev-inactive-pick-background: var(--kui-brand-50) !important;
}
html body .mc-calendar, html body .mc-calendar * { font-family: var(--kui-font) !important; }   /* the picker brings its own font (Maven Pro): keep to Roboto */
/* Add code kingshuk 27/10/2026 : date picker shaped like the eKYC page (owner request, whole project): the extra rounding, inner card shadow, rounded padded buttons and hover / focus effects that were here were removed, so the picker keeps the library's own flat layout. Colours above are unchanged. */
html body .mc-calendar .mc-display, html body .mc-calendar .mc-display * { color: var(--mc-display-foreground) !important; }   /* the navy heading rule must not reach into the teal date panel */
html body .mc-calendar .mc-display__day, html body .mc-calendar .mc-display__month, html body .mc-calendar .mc-display__year { font-family: var(--kui-font-heading) !important; }
/* ==========================================================================
   Add code kingshuk 23/10/2026 : professional step pages (Personal Info ... e-Sign) + animated icons, light and dark
   CSS only: no markup, id, name, script or workflow change. All colours come from the kui tokens, so dark mode follows.
   ========================================================================== */

/* ---------- Page surface: the step content sits on one calm card ---------- */
html body #content { background: var(--kui-bg); }
html body .middle-content {
    background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: 16px;
    padding: 28px 36px 8px !important; margin: 4px auto 24px; box-shadow: 0 1px 2px rgba(5, 31, 56, .05), 0 14px 34px rgba(5, 31, 56, .06);
    animation: kuiPageIn .45s ease-out backwards; /* backwards, not both: a filling transform animation keeps a stacking context on this card, which trapped the Bootstrap modals below their backdrop (dimmed, unclickable) */
}
html body .middle-content .card { box-shadow: none; }
@keyframes kuiPageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* page title: Montserrat, accent bar, step badge as a pill on the right */
html body .middle-content :is(h2.my-5, h2.mt-5) {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin: 0 0 28px !important; padding: 0 0 18px; border-bottom: 1px solid var(--kui-border); position: relative;
    font-family: var(--kui-font-heading); font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--kui-heading);
}
html body .middle-content :is(h2.my-5, h2.mt-5)::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--kui-brand-600), var(--kui-accent-500)); }
html body .middle-content :is(h2.my-5, h2.mt-5) .text-primary { color: var(--kui-brand-600) !important; }
html body .middle-content :is(h2.my-5, h2.mt-5) .float-end {
    float: none !important; margin-left: auto; padding: 6px 14px; border-radius: 999px; background: var(--kui-brand-50); border: 1px solid var(--kui-brand-100);
    color: var(--kui-brand-600); font-family: var(--kui-font); font-size: 12.5px !important; font-weight: 600; letter-spacing: .06em; white-space: nowrap;
}

/* ---------- Form: tidy labels, roomy fields, clear states ---------- */
html body .middle-content .form-group { margin-bottom: 4px; }
html body .middle-content label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--kui-text-subtle); }
html body .middle-content .form-control,
html body .middle-content .form-select { min-height: 46px; border-width: 1px; border-radius: 10px; font-size: 14.5px; letter-spacing: 0; }
html body .middle-content .form-control:hover:not(:disabled):not([readonly]),
html body .middle-content .form-select:hover:not(:disabled) { border-color: var(--kui-brand-500); }
html body .middle-content .form-control[readonly], html body .middle-content .form-control:disabled { cursor: default; }
html body .middle-content .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html body .middle-content .input-group-text { min-height: 46px; background: var(--kui-surface-2) !important; border: 1px solid var(--kui-border-strong); border-left: 0; border-radius: 0 10px 10px 0; color: var(--kui-text-muted); }
html body .middle-content input[type="checkbox"]:not(.form-check-input),
html body .middle-content input[type="radio"]:not(.form-check-input) { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -4px; accent-color: var(--kui-btn); cursor: pointer; }
html body .middle-content input[type="checkbox"] + label, html body .middle-content input[type="radio"] + label { display: inline; font-weight: 500; color: var(--kui-text); cursor: pointer; }
html body .middle-content a.text-danger { color: var(--kui-brand-600) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html body .middle-content .alert { border-radius: 12px; }
html body .middle-content .defaultBtnSubmit, html body .middle-content #btnSubmit { min-width: 200px; min-height: 48px; padding: 0 32px; letter-spacing: .03em; }

/* select arrow follows the theme */
html[data-kui-theme="dark"] body .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a9bdd1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* ---------- Header: search pill, calmer badge ---------- */
html body .header-container .search-animated .badge { background: var(--kui-surface-2); color: var(--kui-text-muted); border: 1px solid var(--kui-border); border-radius: 8px; font-weight: 600; }
html body .header-container .search-bar .search-form-control { background: var(--kui-surface-2); border-radius: 10px; color: var(--kui-text); }
html body .header-container .search-animated svg { color: var(--kui-text-muted); transition: color .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
html body .header-container .search-animated:hover svg { color: var(--kui-brand-600); transform: scale(1.12) rotate(-8deg); }
html body .header-container .user-profile-dropdown .avatar img { transition: box-shadow .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
html body .header-container .user-profile-dropdown .nav-link:hover .avatar img { box-shadow: 0 0 0 3px var(--kui-focus); transform: scale(1.06); }

/* ---------- Step rail: pill items, icon tiles ---------- */
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle { border-radius: 12px; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div { width: 100%; }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div > span { flex: 1; }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle:hover { transform: translateX(3px); }
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle:hover { transform: none; }

/* ---------- Animated icons ---------- */
html body svg.feather, html body .kui-iconbtn svg, html body .btn svg { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), color .2s ease; }
/* sidebar step icon: lift and tilt on hover, gentle pulse ring on the current step */
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle:hover > div > svg:first-child { transform: scale(1.18) rotate(-6deg); }
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle > div > svg:first-child { animation: kuiIconBeat 2.6s ease-in-out 1s 3; }
@keyframes kuiIconBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
/* completed / pending marks pop in when the rail loads */
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div > svg.text-success,
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div > svg.text-danger { margin-left: auto; width: 20px; height: 20px; animation: kuiMarkPop .5s cubic-bezier(.34, 1.56, .64, 1) .3s both; }
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle > div > svg.text-success,
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle > div > svg.text-danger { color: #ffffff !important; }
@keyframes kuiMarkPop { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* theme toggle: the moon / sun spins in and tilts on hover */
html body .kui-iconbtn:hover svg { transform: rotate(18deg) scale(1.12); }
html body .kui-iconbtn:active svg { transform: rotate(60deg) scale(.9); }
html[data-kui-theme="dark"] .kui-iconbtn .kui-ico-sun, html:not([data-kui-theme="dark"]) .kui-iconbtn .kui-ico-moon { animation: kuiSpinIn .5s cubic-bezier(.34, 1.56, .64, 1) backwards; }
@keyframes kuiSpinIn { from { transform: rotate(-120deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
/* menu / hamburger, dropdown icons, round Back and Logout buttons */
html body .header-container .sidebarCollapse:hover svg { color: var(--kui-brand-600); transform: scale(1.12); }
html body .dropdown-item:hover svg { transform: translateX(3px) scale(1.1); }
html body .btn-outline-primary:hover svg, html body .btn-outline-danger:hover svg { transform: scale(1.15) rotate(-8deg); }
/* any button that carries an icon: the icon nudges on hover, sinks on press */
html body .btn:not(:disabled):hover svg, html body .btn:not(:disabled):hover i { transform: translateX(3px) scale(1.1); }
html body .btn:not(:disabled):active svg, html body .btn:not(:disabled):active i { transform: scale(.9); }
/* Continue: soft shine sweep on hover (pseudo-element on the wrapper-free input is impossible, so the glow uses the shadow ring) */
html body .middle-content #btnSubmit:not(:disabled):hover { box-shadow: 0 10px 22px rgba(20, 121, 148, .32), 0 0 0 4px var(--kui-focus) !important; }

/* ==========================================================================
   Add code kingshuk 23/10/2026 : step pages round 2. Layout ideas studied from the E-KYC step pages (two-column field grid, stepper rail,
   option cards, upload cards, review panels) and re-drawn here in the RE-KYC Infinity Sky look. CSS only: markup, ids, scripts untouched.
   ========================================================================== */

/* ---------- Two-column field grid for the "one field per row" forms (Personal Info, Bank Proof, Offline Aadhaar) ---------- */
html body .middle-content form:has(> .row.my-2 .form-group):not(.modal *):not(.card *) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
html body .middle-content form:has(> .row.my-2 .form-group) > * { grid-column: 1 / -1; }
html body .middle-content form:has(> .row.my-2 .form-group) > .row.my-2 { display: contents; }
html body .middle-content form:has(> .row.my-2 .form-group) > .row.my-2 > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; margin: 0; grid-column: auto; }
html body .middle-content form:has(> .row.my-2 .form-group) > .row.my-2:not(:has(.form-group)) > [class*="col-"] { grid-column: 1 / -1; }
html body .middle-content form:has(> .row.my-2 .form-group) > .row.my-2:has(textarea, [id*="Addr"]) > [class*="col-"] { grid-column: 1 / -1; }
html body .middle-content form:has(> .row.my-2 .form-group) .form-group { margin-bottom: 16px; }
html body .middle-content form:has(> .row.my-2 .form-group) > input.btn { justify-self: start; margin: 8px 0 0 !important; }
html body .middle-content form:has(> .row.my-2 .form-group) > input.btn[hidden] { display: none; }
@media (max-width: 767.98px) { html body .middle-content form:has(> .row.my-2 .form-group):not(.modal *):not(.card *) { grid-template-columns: 1fr; } }

/* consent lines read as a quiet panel under the fields */
html body .middle-content form:has(> .row.my-2 .form-group) > .row.my-2:not(:has(.form-group)) > [class*="col-"] > .mb-3 { padding: 12px 16px; margin-bottom: 10px !important; border: 1px solid var(--kui-border); border-radius: 12px; background: var(--kui-surface-2); }

/* ---------- Step rail: icon tiles joined by a dotted line; done = green tile, current = filled pill ---------- */
html body #sidebar ul.menu-categories li.menu:not(.menu-heading) { position: relative; }
html body #sidebar ul.menu-categories li.menu:not(.menu-heading):not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 47px; bottom: -3px; border-left: 2px dashed var(--kui-border-strong); z-index: 0; }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle { position: relative; z-index: 1; }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div > svg:first-child {
    box-sizing: content-box; flex: none; width: 18px; height: 18px; padding: 8px; border-radius: 11px;
    background: var(--kui-surface-2); border: 1px solid var(--kui-border); color: var(--kui-text-muted);
}
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle { padding-right: 10px; }
html body #sidebar ul.menu-categories li.menu > .dropdown-toggle > div > span { min-width: 0; white-space: normal; line-height: 1.25; font-size: 14px; }
html body #sidebar ul.menu-categories li.menu:has(> .dropdown-toggle > div > svg.text-success) > .dropdown-toggle > div > svg:first-child { background: var(--kui-success-bg); border-color: var(--kui-success); color: var(--kui-success-text); }
html body #sidebar ul.menu-categories li.menu:has(> .dropdown-toggle > div > svg.text-danger) > .dropdown-toggle > div > svg:first-child { background: var(--kui-danger-bg); border-color: var(--kui-danger); color: var(--kui-danger-text); }
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle > div > svg:first-child { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); color: #ffffff; }

/* ---------- Alerts: token colours so they read in both themes ---------- */
html body .middle-content .alert { border: 1px solid transparent; padding: 14px 18px; font-size: 14px; }
html body .middle-content .alert-light-danger, html body .middle-content .alert-danger { background: var(--kui-danger-bg); color: var(--kui-danger-text); border-color: color-mix(in srgb, var(--kui-danger) 28%, transparent) !important; }
html body .middle-content .alert-light-success, html body .middle-content .alert-success { background: var(--kui-success-bg); color: var(--kui-success-text); border-color: color-mix(in srgb, var(--kui-success) 28%, transparent) !important; }
html body .middle-content .alert-light-warning, html body .middle-content .alert-warning { background: var(--kui-warning-bg); color: var(--kui-warning-text); border-color: color-mix(in srgb, var(--kui-warning) 30%, transparent) !important; }
html body .middle-content .alert-light-info, html body .middle-content .alert-info, html body .middle-content .alert-light-primary { background: var(--kui-info-bg); color: var(--kui-brand-600); border-color: color-mix(in srgb, var(--kui-brand-500) 30%, transparent) !important; }
html body .middle-content .alert ul { margin: 6px 0 0; padding-left: 18px; }
html body .middle-content #divObjections { box-shadow: inset 4px 0 0 var(--kui-danger); }

/* ---------- Address proof: choice cards ---------- */
html body .labl { display: block; margin: 0; }
html body .labl > input + div.card { cursor: pointer; border: 1.5px solid var(--kui-border); box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease; }
html body .labl > input + div.card:hover { border-color: var(--kui-brand-500); transform: translateY(-2px); box-shadow: var(--kui-shadow-2); }
html body .labl > input:checked + div.card { border: 1.5px solid var(--kui-brand-600) !important; background: var(--kui-brand-50); box-shadow: 0 0 0 3px var(--kui-focus); color: var(--kui-text) !important; }
html body .labl .card-body { padding: 16px 18px; }
html body .labl .card-title { font-size: 13px; letter-spacing: .04em; margin-bottom: 6px; }

/* ---------- Documents: upload cards with tile icon buttons ---------- */
html body .middle-content .statbox.widget.box { border: 0; box-shadow: none; background: transparent; }
html body .middle-content .card.style-3 { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--kui-border); border-radius: 14px; background: var(--kui-surface); box-shadow: none; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
html body .middle-content .card.style-3:hover { transform: translateY(-3px); box-shadow: var(--kui-shadow-2); border-color: var(--kui-brand-100); }
html body .middle-content .card.style-3 > img.card-img-top, html body .middle-content .card.style-3 > iframe.card-img-top { width: 100%; height: 210px; object-fit: contain; padding: 12px; border-radius: 0; background: var(--kui-surface-2); border-bottom: 1px solid var(--kui-border); }
html body .middle-content .card.style-3 > iframe.card-img-top { padding: 0; }
html body .middle-content .card.style-3 .card-body { padding: 16px !important; text-align: left; }
html body .middle-content .card.style-3 .card-title { font-size: 16px; margin: 0; }
html body .middle-content .card.style-3 .card-category { margin-bottom: 12px !important; font-size: 13px; color: var(--kui-text-muted); }
html body .middle-content .card.style-3 .media { margin: 0 !important; padding: 0 !important; }
html body .middle-content .card.style-3 .media-text { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
html body .middle-content .card.style-3 .media-text img { width: 40px !important; height: 40px; padding: 8px; border: 1px solid var(--kui-border-strong); border-radius: 12px; background: var(--kui-surface); object-fit: contain; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
html body .middle-content .card.style-3 .media-text img:hover { background: var(--kui-brand-50); border-color: var(--kui-brand-600); transform: scale(1.12) rotate(-5deg); }
html body .middle-content .card.style-3 label.label { margin: 0; display: inline-flex; }
html body .modal .modal-footer img[id^="rotate"], html body .modal .modal-footer img[id^="crop"], html body .modal .modal-footer img#captureSig { width: 36px !important; height: 36px; padding: 8px; border: 1px solid var(--kui-border-strong); border-radius: 10px; background: var(--kui-surface); cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .2s ease; }
html body .modal .modal-footer img[id^="rotate"]:hover, html body .modal .modal-footer img[id^="crop"]:hover, html body .modal .modal-footer img#captureSig:hover { transform: scale(1.12); border-color: var(--kui-brand-600); }

/* ---------- IPV: the video sits in a calm dark frame ---------- */
html body .device { border-radius: 16px !important; padding: 0 !important; margin: 16px 0 !important; border: 1px solid var(--kui-border); background: #07182b !important; box-shadow: var(--kui-shadow-2) !important; overflow: hidden; transform: none !important; max-width: 720px; }
html body .device::before, html body .device::after { display: none !important; }
html body .device video.device-screen, html body .device .video-js { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; background: #000; }
html body .device video[hidden] { display: none; }
html body #txtOtp { display: inline-block; padding: 14px 18px; font-size: 20px; letter-spacing: .12em; background: var(--kui-brand-50); border: 1px dashed var(--kui-brand-600); border-radius: 12px; }
html body #divBtn { display: flex; flex-wrap: wrap; gap: 10px; }
html body #divBtn .btn[hidden] { display: none; }

/* ---------- Review and e-Sign: document frame + info panels ---------- */
html body .middle-content .pdfobject-container, html body .middle-content .containerIfram4by3 { border: 1px solid var(--kui-border) !important; border-radius: 12px; overflow: hidden; background: var(--kui-surface-2); }
html body .middle-content .info-box-1 { background: var(--kui-surface) !important; border: 1px solid var(--kui-border); border-radius: 16px; box-shadow: var(--kui-shadow-1) !important; padding: 24px !important; text-align: left; }
html body .info-box-1 .info-box-1-icon { background: var(--kui-brand-100) !important; color: var(--kui-brand-600) !important; border-radius: 50% !important; }
html body .info-box-1 .info-box-1-title { font-size: 18px; margin: 8px 0; }
html body .info-box-1 .info-box-1-content { color: var(--kui-text-muted); }
html body .middle-content a.btn.disabled, html body .middle-content .btn:disabled, html body .middle-content .btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Offline Aadhaar upload ---------- */
html body ul.custom_a { margin: 0 0 16px; padding: 16px 20px !important; list-style: none; background: var(--kui-surface-2) !important; border: 1px solid var(--kui-border); border-radius: 12px !important; }
html body ul.custom_a li { margin-left: 0 !important; padding: 4px 0 !important; background: transparent !important; color: var(--kui-text) !important; }
html body input[type="file"]#fileUpload { width: 100% !important; max-width: 460px; margin: 0 !important; padding: 8px !important; border: 1.5px dashed var(--kui-border-strong); border-radius: 10px; background: var(--kui-surface-2); }
html body input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 8px; background: var(--kui-brand-100); color: var(--kui-brand-600); font-weight: 600; cursor: pointer; transition: background-color .2s ease; }
html body input[type="file"]::file-selector-button:hover { background: var(--kui-brand-50); }

/* ---------- Nominee ---------- */
html body .middle-content #NoNominee label { font-weight: 500; }

/* ==========================================================================
   Add code kingshuk 23/10/2026 : profile menu + Trading Preference (Products) page + footer. CSS only.
   ========================================================================== */

/* ---------- Profile menu: a clear card with avatar, name, application id pill and a Log Out row ---------- */
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu {
    min-width: 290px; padding: 0; overflow: hidden; border: 1px solid var(--kui-border); border-radius: 16px; background: var(--kui-surface);
    box-shadow: 0 18px 40px rgba(5, 31, 56, .18); z-index: 1100;
}
html body .header-container .user-profile-dropdown .user-profile-section { padding: 18px 20px 16px; margin: 0; background: linear-gradient(135deg, var(--kui-brand-50), var(--kui-surface)); border-bottom: 1px solid var(--kui-border); }
html body .header-container .user-profile-dropdown .user-profile-section .media { display: flex; align-items: center; gap: 14px; margin: 0 !important; }
html body .header-container .user-profile-dropdown .user-profile-section .media img { flex: none; width: 52px; height: 52px; margin: 0 !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--kui-brand-100); box-shadow: 0 0 0 3px var(--kui-focus); background: var(--kui-surface); }
html body .header-container .user-profile-dropdown .user-profile-section .media-body { min-width: 0; }
html body .header-container .user-profile-dropdown .user-profile-section .media-body h5 { margin: 0; font-family: var(--kui-font-heading); font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--kui-heading); word-break: break-word; text-transform: capitalize; }
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section p {
    display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0 !important; padding: 6px 12px; border: 1px solid var(--kui-border); border-radius: 999px;
    background: var(--kui-surface); font-size: 12.5px !important; font-weight: 600; letter-spacing: .04em; color: var(--kui-brand-600) !important;
}
html body .header-container .user-profile-dropdown .user-profile-section p::before { content: "Application ID"; font-weight: 500; letter-spacing: 0; color: var(--kui-text-muted); }
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item { padding: 6px; margin: 0; background: transparent; }
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--kui-text); font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item a svg { width: 18px; height: 18px; flex: none; }
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item:hover a { background: var(--kui-danger-bg); color: var(--kui-danger-text); }

/* ---------- Trading Preference (Products): intro callout, plan pills, segment option rows ---------- */
html body .middle-content form#ProductSegment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: stretch; }
html body .middle-content form#ProductSegment > * { grid-column: 1 / -1; margin: 0; }
html body .middle-content form#ProductSegment h5:empty { display: none; }
html body .middle-content form#ProductSegment > h6 {
    padding: 14px 18px; border: 1px solid var(--kui-brand-100); border-left: 4px solid var(--kui-brand-500); border-radius: 12px; background: var(--kui-brand-50);
    font-family: var(--kui-font); font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--kui-heading);
}
html body .middle-content form#ProductSegment > .row { margin: 0 !important; }
html body .middle-content form#ProductSegment > .row > [class*="col-"] { padding: 0; }
html body .middle-content form#ProductSegment > .row:has(> .col-lg-12 > label[for]:not(.form-check-label)) { grid-column: auto; }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > br { display: none; }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > p { margin: 0 0 16px; color: var(--kui-text-muted); font-size: 14px; }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label:not([for]) { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kui-text-muted); }
html body .middle-content form#ProductSegment hr { margin: 8px 0 4px; border-top: 1px solid var(--kui-border); opacity: 1; }
/* plan choice: pill cards */
html body .middle-content form#ProductSegment .form-check-inline { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 12px 0 0; padding: 10px 18px; border: 1.5px solid var(--kui-border-strong); border-radius: 12px; background: var(--kui-surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
html body .middle-content form#ProductSegment .form-check-inline:hover { border-color: var(--kui-brand-500); }
html body .middle-content form#ProductSegment .form-check-inline:has(.form-check-input:checked) { border-color: var(--kui-brand-600); background: var(--kui-brand-50); box-shadow: 0 0 0 3px var(--kui-focus); }
html body .middle-content form#ProductSegment .form-check-inline .form-check-input { float: none; flex: none; margin: 0; width: 18px; height: 18px; }
html body .middle-content form#ProductSegment .form-check-inline .form-check-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--kui-text); cursor: pointer; }
/* segment rows: bordered option rows, two per line */
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label) {
    display: flex; align-items: center; gap: 10px; height: 100%; margin: 0; padding: 14px 16px; border: 1px solid var(--kui-border); border-radius: 12px; background: var(--kui-surface);
    font-size: 14px; font-weight: 600; color: var(--kui-text); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label):hover { border-color: var(--kui-brand-500); transform: translateY(-1px); }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label):has(input:checked) { border-color: var(--kui-brand-600); background: var(--kui-brand-50); box-shadow: 0 0 0 3px var(--kui-focus); }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label) input { margin: 0; flex: none; }
html body .middle-content form#ProductSegment input[onclick*="return false"] { cursor: not-allowed; opacity: .8; }
/* "latest ITR required" reads as an amber notice */
html body .middle-content form#ProductSegment > p.text-danger { padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--kui-warning) 30%, transparent); border-left: 4px solid var(--kui-warning); border-radius: 12px; background: var(--kui-warning-bg); color: var(--kui-warning-text) !important; font-size: 13.5px; font-weight: 600; }
html body .middle-content #BtnSubmit { min-width: 200px; min-height: 48px; padding: 0 32px; margin-bottom: 20px; letter-spacing: .03em; }
@media (max-width: 767.98px) { html body .middle-content form#ProductSegment { grid-template-columns: 1fr; } html body .middle-content form#ProductSegment > .row:has(> .col-lg-12 > label[for]:not(.form-check-label)) { grid-column: 1 / -1; } }

/* ---------- Personal Info polish: section headings, locked-field icon, consent rows, calmer profile header ---------- */
html body .middle-content .kui-section {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; font-family: var(--kui-font-heading); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kui-brand-600);
}
html body .middle-content .kui-section::before { content: ""; flex: none; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--kui-brand-600), var(--kui-accent-500)); }
html body .middle-content .kui-section::after { content: ""; flex: 1; height: 1px; background: var(--kui-border); }
html body .middle-content .kui-section:first-child { margin-top: 0; }
/* read-only fields (filled from PAN) carry a small lock */
html body .middle-content .form-group > .form-control[readonly] {
    padding-right: 42px; background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='11' width='18' height='11' rx='2'/%3e%3cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3e%3c/svg%3e");
}
html[data-kui-theme="dark"] body .middle-content .form-group > .form-control[readonly] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b93ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='11' width='18' height='11' rx='2'/%3e%3cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3e%3c/svg%3e");
}
/* "(As in PAN)" hint reads as a quiet tag */
html body .middle-content form#PersonalInfoValid label .text-danger { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--kui-danger-bg); color: var(--kui-danger-text) !important; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
html body .middle-content form#PersonalInfoValid label a.text-danger { padding: 0; background: transparent; margin: 0; font-size: inherit; }
/* consent rows: checkbox and text on one line, in every case */
html body .middle-content form > .row.my-2 .mb-3:has(> input[type="checkbox"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
html body .middle-content form > .row.my-2 .mb-3:has(> input[type="checkbox"]) > input[type="checkbox"] { margin: 0; flex: none; }
html body .middle-content form > .row.my-2 .mb-3:has(> input[type="checkbox"]) > label { display: block; flex: 1; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--kui-text); }
html body .middle-content form > .row.my-2 .mb-3:has(> input[type="checkbox"]) > .invalid-feedback { flex-basis: 100%; margin-top: 6px; }
/* profile header: neutral and light, "Signed in as" caption, no heavy ring on the photo */
html body .header-container .user-profile-dropdown .user-profile-section { background: var(--kui-surface); }
html body .header-container .user-profile-dropdown .user-profile-section .media img { box-shadow: none; border: 1px solid var(--kui-border); }
html body .header-container .user-profile-dropdown .user-profile-section .media-body::before { content: "Signed in as"; display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--kui-text-faint); }

/* ---------- Trading Preference, refinement: three tidy columns, light selected state, "Required" tags ---------- */
html body .middle-content form#ProductSegment { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .middle-content form#ProductSegment hr { display: none; }
html body .middle-content form#ProductSegment > .kui-section { margin: 12px 0 0; }
html body .middle-content form#ProductSegment > h6 { font-size: 14px; font-weight: 600; }
html body .middle-content form#ProductSegment .form-check-inline:has(.form-check-input:checked),
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label):has(input:checked) {
    border-color: var(--kui-brand-600); background: color-mix(in srgb, var(--kui-brand-50) 70%, var(--kui-surface)); box-shadow: inset 0 0 0 1px var(--kui-brand-600);
}
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label):hover { transform: none; box-shadow: var(--kui-shadow-1); }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label):has(input:checked):hover { box-shadow: inset 0 0 0 1px var(--kui-brand-600); }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label) { min-height: 60px; line-height: 1.35; }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:has(input[onclick*="return false"]) { background: var(--kui-surface-2); cursor: default; }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:has(input[onclick*="return false"]) > .text-danger { display: none; }
html body .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:has(input[onclick*="return false"])::after {
    content: "Required"; margin-left: auto; flex: none; padding: 2px 10px; border-radius: 999px; background: var(--kui-brand-100); color: var(--kui-brand-600); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
@media (max-width: 1099.98px) { html body .middle-content form#ProductSegment { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { html body .middle-content form#ProductSegment { grid-template-columns: 1fr; } }

/* ---------- Proof of Bank: banking identifiers read as data (tabular figures, light tracking), IFSC shown in capitals ---------- */
html body .middle-content #txtAccNo, html body .middle-content #txtReAccNo, html body .middle-content #txtIfsc, html body .middle-content #txtMicr, html body .middle-content #txtPinCode {
    font-variant-numeric: tabular-nums; letter-spacing: .06em; font-weight: 500;
}
html body .middle-content #txtIfsc { text-transform: uppercase; }
html body .middle-content #txtAccNo::placeholder, html body .middle-content #txtReAccNo::placeholder, html body .middle-content #txtIfsc::placeholder, html body .middle-content #txtMicr::placeholder, html body .middle-content #txtPinCode::placeholder { letter-spacing: 0; font-weight: 400; }
html body .middle-content form#verificationForm > input.btn { margin-top: 12px !important; }
html body .middle-content form#verificationForm > input.btn[hidden] { display: none; }

/* ---------- Buttons: label always centred (links and inputs used as buttons sat at the top of the box), icons aligned ---------- */
html body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.25; text-align: center; text-decoration: none; }
html body .btn[hidden] { display: none !important; }
html body .btn i.fa-2x, html body .btn i[class*="fa-"] { font-size: 1.15em; line-height: 1; }
html body .btn.btn-sm { min-height: 40px; }

/* ---------- Address Proof: the "Fetch Aadhaar Address" consent becomes a panel ---------- */
html body .middle-content .row > [class*="col-lg-"]:has(> #chkDigi, > label > #chkDigi) { padding: 24px 28px; border: 1px solid var(--kui-border); border-radius: 16px; background: var(--kui-surface); box-shadow: var(--kui-shadow-1); }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > h5 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--kui-border); font-family: var(--kui-font-heading); font-size: 18px; color: var(--kui-heading); }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > h5 b { font-weight: 700; }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; color: var(--kui-text-muted); }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > p:nth-of-type(3) { padding: 10px 14px; border-left: 4px solid var(--kui-warning); border-radius: 8px; background: var(--kui-warning-bg); color: var(--kui-warning-text); font-weight: 600; }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border: 1.5px solid var(--kui-border-strong); border-radius: 12px; background: var(--kui-surface-2); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label:hover { border-color: var(--kui-brand-500); }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label:has(#chkDigi:checked) { border-color: var(--kui-brand-600); background: color-mix(in srgb, var(--kui-brand-50) 70%, var(--kui-surface)); }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label input { margin: 0; flex: none; }
html body .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label .text-primary { color: var(--kui-text) !important; font-size: 14px; font-weight: 600; }
html body .middle-content #digiaddrYes { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--kui-border-strong); }
html body .middle-content #digiaddrYes > .my-4 { margin: 0 0 18px !important; }
html body .middle-content #digiaddrYes p { margin: 0 0 6px; font-size: 14px; color: var(--kui-text-muted); }
html body .middle-content #digiaddrYes a.text-danger { font-weight: 600; }
html body .middle-content #continueBtn { min-width: 200px; min-height: 48px; margin: 4px 0 20px; padding: 0 32px; }

/* ---------- Offline Aadhaar upload: numbered-style steps, one clean file picker ---------- */
html body ul.custom_a { font-weight: 600; color: var(--kui-heading); }
html body ul.custom_a li { position: relative; list-style: none; padding: 7px 0 7px 22px !important; font-weight: 400; font-size: 14.5px; line-height: 1.55; color: var(--kui-text) !important; }
html body ul.custom_a li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--kui-brand-600), var(--kui-accent-500)); }
html body input[type="file"]#fileUpload::before, html body input[type="file"]#fileUpload::after { display: none !important; }
html body input[type="file"]#fileUpload::file-selector-button { width: auto !important; height: 40px; padding: 0 18px; color: var(--kui-brand-600); }
html body #OfflineAdharXML label .text-danger { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--kui-danger-bg); color: var(--kui-danger-text) !important; font-size: 11px; font-weight: 600; }
html body #OfflineAdharXML .btn-sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
html body #OfflineAdharXML > .row > .row.my-4 { margin-bottom: 12px !important; }

/* ==========================================================================
   Add code kingshuk 23/10/2026 : Nominee page (Nominee 1 / 2 / 3). CSS only: every id, name, onclick and script is untouched.
   ========================================================================== */

/* Yes / No question: a quiet panel with two pill choices; the same pills style every radio pair on the page */
html body .middle-content .row > .col-lg-12 > .form-group.d-flex:has(input[name="OptedForNomination"]) { padding: 16px 20px; border: 1px solid var(--kui-border); border-radius: 14px; background: var(--kui-surface-2); }
html body .middle-content .form-group.d-flex { flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 0; }
html body .middle-content .form-group.d-flex > label { margin: 0 8px 0 0; font-size: 14.5px; font-weight: 600; color: var(--kui-heading); }
html body .middle-content .form-group.d-flex > .form-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 !important; padding: 8px 16px; border: 1.5px solid var(--kui-border-strong); border-radius: 12px; background: var(--kui-surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
html body .middle-content .form-group.d-flex > .form-check:hover { border-color: var(--kui-brand-500); }
html body .middle-content .form-group.d-flex > .form-check:has(.form-check-input:checked) { border-color: var(--kui-brand-600); background: color-mix(in srgb, var(--kui-brand-50) 70%, var(--kui-surface)); box-shadow: inset 0 0 0 1px var(--kui-brand-600); }
html body .middle-content .form-group.d-flex > .form-check .form-check-input { float: none; flex: none; width: 18px; height: 18px; margin: 0; }
html body .middle-content .form-group.d-flex > .form-check .form-check-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--kui-text); cursor: pointer; }

/* "No nominee" declaration */
html body .middle-content #NoNominee .form-group > label { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 18px 20px; border: 1px solid var(--kui-brand-100); border-left: 4px solid var(--kui-brand-500); border-radius: 12px; background: var(--kui-brand-50); cursor: pointer; }
html body .middle-content #NoNominee .form-group > label input { flex: none; margin-top: 3px; }
html body .middle-content #NoNominee .form-group > label span { margin: 0 !important; font-size: 13.5px; font-weight: 500; line-height: 1.65; color: var(--kui-text); }

/* number-of-nominees selector */
html body .middle-content #nominationYes > .row.mb-4 { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin: 0 0 20px !important; padding: 16px 20px; border: 1px solid var(--kui-brand-100); border-radius: 14px; background: var(--kui-brand-50); }
html body .middle-content #nominationYes > .row.mb-4 > [class*="col-md-"] { width: auto; max-width: none; flex: 0 1 320px; padding: 0; }
html body .middle-content #nominationYes > .row.mb-4 > #EquallyShareNominees { flex: 0 1 auto; }
html body .middle-content #EquallyShareNominees br { display: none; }
html body .middle-content #EquallyShareNominees label { display: inline; margin: 0 0 0 4px; font-weight: 500; cursor: pointer; }

/* each nominee is one numbered card; fields sit on a three-column grid */
html body .middle-content #nominationYes { counter-reset: kuinom; }
html body .middle-content form[id$="BasicForm"] {
    counter-increment: kuinom; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; align-items: start;
    margin: 0 0 24px !important; padding: 24px 28px; border: 1px solid var(--kui-border); border-radius: 16px; background: var(--kui-surface-2);
}
html body .middle-content form[id$="BasicForm"] > * { grid-column: 1 / -1; margin: 0; }
html body .middle-content form[id$="BasicForm"] > hr { display: none; }
html body .middle-content form[id$="BasicForm"] > .row { display: contents; }
html body .middle-content form[id$="BasicForm"] > .row > [class*="col-md-"] { grid-column: auto; width: auto; max-width: none; flex: none; padding: 0; margin: 0; }
html body .middle-content form[id$="BasicForm"] > .row > .col-lg-12 { grid-column: 1 / -1; width: auto; max-width: none; padding: 0; margin: 0; }
html body .middle-content form[id$="BasicForm"] .col-lg-12 > .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
html body .middle-content form[id$="BasicForm"] .col-lg-12 > .row > [class*="col-md-"] { width: auto; max-width: none; flex: none; padding: 0; margin: 0; }
html body .middle-content form[id$="BasicForm"] [id$="AddressBlock"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; margin-top: 14px !important; }
html body .middle-content form[id$="BasicForm"] [id$="AddressBlock"] > .row { display: contents; }
html body .middle-content form[id$="BasicForm"] [id$="AddressBlock"] > .row > [class*="col-md-"] { width: auto; max-width: none; flex: none; padding: 0; margin: 0; }
html body .middle-content form[id$="BasicForm"] [id$="AddressBlock"] > .row > .col-md-8 { grid-column: 1 / -1; }
html body .middle-content form[id$="BasicForm"] .form-group { margin-bottom: 0; }
html body .middle-content form[id$="BasicForm"] .form-group.d-flex { margin-top: 12px !important; }
/* inner section headings */
html body .middle-content form[id$="BasicForm"] h5 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--kui-font-heading); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kui-brand-600); }
html body .middle-content form[id$="BasicForm"] h5 b { font-weight: 700; }
html body .middle-content form[id$="BasicForm"] h5::before { content: ""; flex: none; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--kui-brand-600), var(--kui-accent-500)); }
html body .middle-content form[id$="BasicForm"] h5::after { content: ""; flex: 1; height: 1px; background: var(--kui-border); }
/* card title: "First Nominee" with a numbered badge */
html body .middle-content form[id$="BasicForm"] > h5 { gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--kui-border); font-size: 17px; letter-spacing: -.005em; text-transform: none; color: var(--kui-heading); }
html body .middle-content form[id$="BasicForm"] > h5::before { content: counter(kuinom); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--kui-brand-600), var(--kui-brand-500)); color: #ffffff; font-family: var(--kui-font); font-size: 14px; font-weight: 700; letter-spacing: 0; }
html body .middle-content form[id$="BasicForm"] > h5::after { display: none; }
@media (max-width: 991.98px) {
    html body .middle-content form[id$="BasicForm"], html body .middle-content form[id$="BasicForm"] .col-lg-12 > .row, html body .middle-content form[id$="BasicForm"] [id$="AddressBlock"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    html body .middle-content form[id$="BasicForm"], html body .middle-content form[id$="BasicForm"] .col-lg-12 > .row, html body .middle-content form[id$="BasicForm"] [id$="AddressBlock"] { grid-template-columns: 1fr; }
    html body .middle-content form[id$="BasicForm"] { padding: 18px 16px; }
}

/* ==========================================================================
   Add code kingshuk 23/10/2026 : Documents page. Animated action buttons (camera / upload / sign / rotate / save, drawn as inline SVG),
   drawn "not uploaded" placeholders, calmer upload cards, signature pad. Ids and handlers are unchanged; only the icon elements were replaced.
   ========================================================================== */

/* ---------- Action buttons ---------- */
html body .kui-act {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px 0 16px; border: 1.5px solid transparent; border-radius: 12px;
    font-family: var(--kui-font); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: .01em; cursor: pointer; user-select: none; text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease, transform .2s ease;
}
html body .kui-act .kui-ico { flex: none; width: 21px; height: 21px; overflow: visible; }
html body .kui-act--solid { background: var(--kui-btn); color: var(--kui-on-brand); box-shadow: 0 2px 6px rgba(20, 121, 148, .22); }
html body .kui-act--solid:hover { background: var(--kui-btn-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(20, 121, 148, .30); }
html body .kui-act--tint { background: var(--kui-brand-50); color: var(--kui-brand-600); border-color: var(--kui-brand-100); }
html body .kui-act--tint:hover { background: var(--kui-brand-100); border-color: var(--kui-brand-500); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(5, 31, 56, .10); }
html body .kui-act:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
html body .kui-act:focus-visible { outline: 3px solid var(--kui-focus); outline-offset: 2px; }
html body .kui-act--round { width: 44px; padding: 0; }
label.custom-file-upload:focus-within .kui-act { outline: 3px solid var(--kui-focus); outline-offset: 2px; }

/* icon motion on hover / keyboard focus; every animation ends in the drawn state */
html body .kui-act:hover .kui-ico-cam .lens, html body .kui-act:focus-visible .kui-ico-cam .lens { transform-box: fill-box; transform-origin: center; animation: kuiLens .65s ease; }
html body .kui-act:hover .kui-ico-cam .body { animation: kuiShake .5s ease; }
html body .kui-act:hover .kui-ico-up .arr, html body .kui-act:focus-visible .kui-ico-up .arr { animation: kuiArrow .7s ease; }
html body .kui-act:hover .kui-ico-sign .sc, html body .kui-act:focus-visible .kui-ico-sign .sc { stroke-dasharray: 100; animation: kuiScribble .9s ease-out; }
html body .kui-act:hover .kui-ico-sign .ul { animation: kuiFade .9s ease; }
html body .kui-ico-rot { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
html body .kui-act:hover .kui-ico-rot { transform: rotate(-200deg); }
html body .kui-act:hover .kui-ico-chk .tick, html body .kui-act:focus-visible .kui-ico-chk .tick { stroke-dasharray: 100; animation: kuiScribble .5s ease-out; }
@keyframes kuiLens { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } 70% { transform: scale(.9); } }
@keyframes kuiShake { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 60% { transform: rotate(2deg); } }
@keyframes kuiArrow { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-4px); } 65% { transform: translateY(1px); } }
@keyframes kuiScribble { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes kuiFade { from { opacity: .2; } to { opacity: 1; } }

/* ---------- Upload cards ---------- */
html body .middle-content .card.style-3 > img.card-img-top, html body .middle-content .card.style-3 > iframe.card-img-top {
    width: calc(100% - 32px); height: 210px; margin: 16px 16px 0; padding: 14px; object-fit: contain; border: 1.5px dashed var(--kui-border-strong); border-radius: 12px; background: var(--kui-surface-2);
}
/* an uploaded picture or signature sits on white "paper" in both themes (signatures are dark ink on a transparent background) */
html body .middle-content .card.style-3 > img.card-img-top:not([src*="noimage"]):not([src*="nopdf"]) { border-style: solid; border-color: var(--kui-border); background: #ffffff; }
html body .middle-content .card.style-3 > iframe.card-img-top { padding: 0; }
html body .middle-content .card.style-3 .card-body { align-self: stretch !important; text-align: center; padding: 18px 20px 22px !important; }
html body .middle-content .card.style-3 .card-title { font-family: var(--kui-font-heading); font-size: 16px; font-weight: 700; color: var(--kui-heading); }
html body .middle-content .card.style-3 .card-category { margin: 2px 0 14px !important; font-size: 13px; color: var(--kui-text-muted); }
html body .middle-content .card.style-3 .media { margin: 0 !important; }
html body .middle-content .card.style-3 .media-text { justify-content: center; gap: 12px; margin: 0; }
html body .middle-content .card.style-3 .media-body > p { margin: 0 0 10px; }
/* the drawn "nothing here yet" placeholders replace the grey "NO IMAGE" pictures; an uploaded picture replaces them again */
html body .middle-content .card.style-3 > img.card-img-top[src*="noimage"] {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='220' height='150' viewBox='0 0 220 150'%3e%3crect x='70' y='20' width='80' height='62' rx='10' fill='none' stroke='%2395b7c8' stroke-width='3' stroke-dasharray='7 6'/%3e%3cpath d='M82 70l17-20 14 14 10-11 15 17' fill='none' stroke='%2395b7c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3e%3ccircle cx='126' cy='38' r='5' fill='%2395b7c8'/%3e%3ctext x='110' y='112' text-anchor='middle' font-family='Roboto,Segoe UI,Arial,sans-serif' font-size='14' font-weight='600' fill='%237f9fb2'%3eNot uploaded yet%3c/text%3e%3ctext x='110' y='132' text-anchor='middle' font-family='Roboto,Segoe UI,Arial,sans-serif' font-size='11.5' fill='%2395b7c8'%3eUse the buttons below%3c/text%3e%3c/svg%3e");
}
html body .middle-content .card.style-3 > img.card-img-top[src*="nopdf"] {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='220' height='150' viewBox='0 0 220 150'%3e%3cpath d='M84 18h36l22 22v46a6 6 0 0 1-6 6H84a6 6 0 0 1-6-6V24a6 6 0 0 1 6-6z' fill='none' stroke='%2395b7c8' stroke-width='3' stroke-linejoin='round' stroke-dasharray='7 6'/%3e%3cpath d='M120 18v22h22' fill='none' stroke='%2395b7c8' stroke-width='3' stroke-linejoin='round'/%3e%3ctext x='110' y='72' text-anchor='middle' font-family='Roboto,Segoe UI,Arial,sans-serif' font-size='15' font-weight='700' fill='%237f9fb2'%3ePDF%3c/text%3e%3ctext x='110' y='112' text-anchor='middle' font-family='Roboto,Segoe UI,Arial,sans-serif' font-size='14' font-weight='600' fill='%237f9fb2'%3eNot uploaded yet%3c/text%3e%3ctext x='110' y='132' text-anchor='middle' font-family='Roboto,Segoe UI,Arial,sans-serif' font-size='11.5' fill='%2395b7c8'%3eUse the button below%3c/text%3e%3c/svg%3e");
}
html body .middle-content #FinalSubmitBtn { min-width: 200px; min-height: 48px; margin: 8px 0 24px !important; padding: 0 32px; }

/* ---------- Crop / camera / signature dialogs ---------- */
html body .modal .modal-footer { gap: 10px; }
html body .modal .modal-footer .kui-act { min-height: 42px; }
html body .modal .modal-footer .kui-act--round { width: 42px; }
html body .modal .img-container img { max-width: 100%; border-radius: 8px; }
html body #top-signaturepad .img-container > p { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--kui-warning); border-radius: 8px; background: var(--kui-warning-bg); color: var(--kui-warning-text) !important; font-size: 13px; font-weight: 600; }
html body #top-signaturepad canvas.signature-pad { background: #ffffff; border-radius: 12px; outline: 1.5px dashed var(--kui-brand-500); outline-offset: -1px; cursor: crosshair; }
html body #top-signaturepad #sign_prev { max-width: 100%; border-radius: 8px; background: #ffffff; }

/* ---------- Pop-up alerts (SweetAlert2) follow the theme: the template forces a white popup with !important ---------- */
html body .swal2-popup { background-color: var(--kui-surface) !important; color: var(--kui-text); border: 1px solid var(--kui-border); }
html body .swal2-title { color: var(--kui-heading); }
html body .swal2-html-container { color: var(--kui-text-muted); }
html body .swal2-icon.swal2-success [class^="swal2-success-circular-line"], html body .swal2-icon.swal2-success .swal2-success-fix { background: var(--kui-surface) !important; }
html body .swal2-icon.swal2-success .swal2-success-ring { border-color: color-mix(in srgb, var(--kui-success) 28%, var(--kui-surface)); }
html body .swal2-icon.swal2-success [class^="swal2-success-line"] { background-color: var(--kui-success); }
html body .swal2-icon.swal2-error { border-color: color-mix(in srgb, var(--kui-danger) 35%, var(--kui-surface)); color: var(--kui-danger); }
html body .swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background-color: var(--kui-danger); }
html body .swal2-icon.swal2-warning { border-color: color-mix(in srgb, var(--kui-warning) 40%, var(--kui-surface)); color: var(--kui-warning); }
html body .swal2-icon.swal2-info { border-color: color-mix(in srgb, var(--kui-info) 40%, var(--kui-surface)); color: var(--kui-info); }
html body .swal2-popup .swal2-timer-progress-bar { background: var(--kui-brand-500); }

/* ---------- Signature dialog: a large, clear signing board ---------- */
html body #top-signaturepad .modal-dialog { width: min(780px, calc(100vw - 24px)) !important; max-width: none !important; margin-left: auto; margin-right: auto; }
html body #top-signaturepad .modal-header { padding: 20px 28px; }
html body #top-signaturepad .modal-title { font-family: var(--kui-font-heading); font-size: 20px; font-weight: 700; color: var(--kui-heading); }
html body #top-signaturepad .modal-body { padding: 24px 28px 8px; }
html body #top-signaturepad .img-container > p { font-size: 13.5px; }
html body #top-signaturepad #signature {
    position: relative; width: 100%; height: min(320px, 46vh); margin: 0; border: 0 !important; border-radius: 16px; overflow: hidden; background: #ffffff;
    box-shadow: inset 0 0 0 1.5px var(--kui-brand-500), 0 6px 20px rgba(5, 31, 56, .12);
}
html body #top-signaturepad #signature canvas.signature-pad { display: block; width: 100%; height: 100%; border-radius: 0; outline: 0; background: transparent; }
html body #top-signaturepad #signature::before { content: "\2715  Sign here"; position: absolute; left: 28px; bottom: 64px; z-index: 1; color: #9db3c4; font-family: var(--kui-font); font-size: 14px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
html body #top-signaturepad #signature::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 58px; z-index: 1; border-bottom: 2px dashed #cbd8e3; pointer-events: none; }
html body #top-signaturepad #sign_prev { display: block; width: 100%; max-height: min(320px, 46vh); object-fit: contain; border-radius: 16px; background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--kui-brand-500); }
html body #top-signaturepad .modal-footer { justify-content: flex-end; flex-wrap: wrap; padding: 16px 28px 24px; gap: 12px; border-top: 0; }
html body #top-signaturepad .modal-footer .btn { min-width: 120px; min-height: 46px; padding: 0 22px; }
html body #top-signaturepad .modal-footer .kui-act { margin-right: auto; min-height: 46px; }
html body #top-signaturepad .modal-footer .btn[hidden] { display: none !important; }
@media (max-width: 575.98px) { html body #top-signaturepad .modal-body { padding: 18px 16px 6px; } html body #top-signaturepad .modal-footer { padding: 12px 16px 18px; } html body #top-signaturepad .modal-footer .kui-act { margin-right: 0; } }

/* ==========================================================================
   Add code kingshuk 23/10/2026 : profile menu in dark mode + In-Person Verification (IPV) page. CSS only; ids, buttons and scripts untouched.
   ========================================================================== */

/* ---------- Profile menu: the template colours the name dark, which vanished on the dark card ---------- */
html body .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section .media .media-body h5 { color: var(--kui-heading) !important; text-transform: none; }
html body .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section .media .media-body::before { color: var(--kui-text-faint); }
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu { box-shadow: 0 0 0 1px var(--kui-border-strong), 0 18px 40px rgba(5, 31, 56, .22); background: var(--kui-surface); }
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section { background: linear-gradient(180deg, var(--kui-brand-50), var(--kui-surface)); }
html body .header-container .user-profile-dropdown .user-profile-section .media img { border: 1.5px solid var(--kui-border-strong); }
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section p { background: var(--kui-surface-2); color: var(--kui-brand-600) !important; }
html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item a { color: var(--kui-text); }

/* ---------- IPV: instructions + controls on the left, camera on the right ---------- */
html body .middle-content #recordbody > #txtRecordText { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid var(--kui-warning); border-radius: 10px; background: var(--kui-warning-bg); color: var(--kui-warning-text) !important; font-size: 14px; font-weight: 600; }
html body .middle-content #recordbody > .row { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 14px 32px; align-items: start; margin: 0; }
html body .middle-content #recordbody > .row > [class*="col-"] { width: auto; max-width: none; padding: 0; margin: 0 !important; }
html body .middle-content #recordbody > .row > [class*="col-"]:first-child { grid-column: 1; grid-row: 1; }
html body .middle-content #recordbody > .row > [class*="col-"]:last-child { display: contents; }
html body .middle-content #recordbody #countdown { grid-column: 1; grid-row: 2; margin: 0 !important; }
html body .middle-content #recordbody #divBtn { grid-column: 1; grid-row: 3; }
html body .middle-content #recordbody #DeviceChange { grid-column: 2; grid-row: 1 / span 4; position: relative; width: 100%; max-width: none !important; margin: 0 !important; }

/* the line to read aloud */
html body #txtOtp { position: relative; display: block; margin: 0; padding: 40px 22px 22px; border: 1.5px solid var(--kui-brand-100); border-left: 4px solid var(--kui-brand-600); border-radius: 14px; background: var(--kui-brand-50); font-family: var(--kui-font-heading); font-size: 22px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; color: var(--kui-heading) !important; box-shadow: var(--kui-shadow-1); }
html body #txtOtp::before { content: "Say this line aloud"; position: absolute; top: 14px; left: 22px; font-family: var(--kui-font); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kui-text-muted); }
html body #txtOtp b { font-weight: 700; color: var(--kui-brand-600); }

/* status line */
html body .middle-content #recordbody #countdown:not(:empty) { padding: 10px 14px; border-radius: 10px; background: var(--kui-success-bg); color: var(--kui-success-text) !important; font-size: 13.5px; font-weight: 600; line-height: 1.45; }

/* buttons: Record has a pulsing red dot, Stop is red, Retake is the quiet one */
html body .middle-content #divBtn { gap: 10px; }
html body .middle-content #divBtn .btn { flex: 1 1 150px; min-height: 48px; }
html body .middle-content #divBtn .btn[hidden] { display: none !important; }
html body #divBtn #buttonStart::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #FF6262; /* Add code kingshuk 05/11/2026 */ box-shadow: 0 0 0 0 rgba(255, 98, 98, .6); animation: kuiRec 1.8s ease-out infinite; }
html body #divBtn #buttonStop.btn.btn-primary { background-color: var(--kui-danger) !important; border-color: var(--kui-danger) !important; color: #ffffff !important; }
html body #divBtn #buttonStop::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: #ffffff; }
html body #divBtn #buttonRetake.btn.btn-primary { background-color: var(--kui-brand-50) !important; border-color: var(--kui-brand-500) !important; color: var(--kui-brand-600) !important; }
@keyframes kuiRec { 0% { box-shadow: 0 0 0 0 rgba(255, 98, 98, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 98, 98, 0); } }

/* camera frame: LIVE / RECORDED tag and framing corners (the page's tablet mock-up styles are reset first: they size and place these pseudo-elements in %) */
html body #DeviceChange::before, html body #DeviceChange::after { display: none !important; }
html body #DeviceChange:has(#videoLive:not([hidden]))::before, html body #DeviceChange:has(#videoRecorded:not([hidden]))::before {
    display: flex !important; align-items: center; content: "LIVE"; position: absolute; z-index: 3; top: 14px !important; left: 14px !important; right: auto !important; bottom: auto !important; width: auto !important; height: auto !important;
    margin: 0 !important; padding: 6px 14px 6px 28px !important; border-radius: 999px !important; transform: none !important; box-shadow: none !important; border: 0;
    background: rgba(5, 31, 56, .74) radial-gradient(circle at 14px 50%, #FF6262 4.5px /* Add code kingshuk 05/11/2026 */, transparent 5.5px) no-repeat; color: #ffffff; font-family: var(--kui-font); font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; pointer-events: none;
    animation: kuiLivePulse 1.8s ease-in-out infinite;
}
html body #DeviceChange:has(#videoRecorded:not([hidden]))::before { content: "RECORDED"; animation: none; background: rgba(5, 31, 56, .74) radial-gradient(circle at 14px 50%, #34d399 4.5px, transparent 5.5px) no-repeat; }
html body #DeviceChange:has(#videoLive:not([hidden]))::after {
    display: block !important; content: ""; position: absolute; z-index: 2; inset: 22px !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 0 !important; transform: none !important; box-shadow: none !important; pointer-events: none; opacity: .9;
    background:
        linear-gradient(#fff, #fff) top left / 30px 3px no-repeat, linear-gradient(#fff, #fff) top left / 3px 30px no-repeat,
        linear-gradient(#fff, #fff) top right / 30px 3px no-repeat, linear-gradient(#fff, #fff) top right / 3px 30px no-repeat,
        linear-gradient(#fff, #fff) bottom left / 30px 3px no-repeat, linear-gradient(#fff, #fff) bottom left / 3px 30px no-repeat,
        linear-gradient(#fff, #fff) bottom right / 30px 3px no-repeat, linear-gradient(#fff, #fff) bottom right / 3px 30px no-repeat;
}
html body #DeviceChange { border-radius: 18px !important; overflow: hidden; }
html body #DeviceChange video.device-screen, html body #DeviceChange .video-js { aspect-ratio: 16 / 10 !important; object-fit: cover; }
html body .middle-content #recordbody #DeviceChange { max-width: 780px !important; }
@keyframes kuiLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

/* icons and motion on the page's own elements (drawn as masks, so no files and no markup changes) */
html body .middle-content #recordbody > #txtRecordText { display: flex; align-items: center; gap: 12px; }
html body .middle-content #recordbody > #txtRecordText::before {
    content: ""; flex: none; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3z'/%3e%3cpath d='M19 11a7 7 0 0 1-14 0M12 18v3M8.5 21h7'/%3e%3c/svg%3e") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3z'/%3e%3cpath d='M19 11a7 7 0 0 1-14 0M12 18v3M8.5 21h7'/%3e%3c/svg%3e") center / contain no-repeat;
    animation: kuiMicNod 2.4s ease-in-out infinite;
}
html body #divBtn .btn::before, html body #divBtn .btn::after { content: none; }
html body #divBtn #buttonStart::before, html body #divBtn #buttonRetake::before, html body #divBtn #btnSubmit::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; border-radius: 0; box-shadow: none; animation: none; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
html body #divBtn #buttonStart::before { -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='6' width='13' height='12' rx='2.5'/%3e%3cpath d='M16 10.5l5-3v9l-5-3z'/%3e%3c/svg%3e") center / contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='6' width='13' height='12' rx='2.5'/%3e%3cpath d='M16 10.5l5-3v9l-5-3z'/%3e%3c/svg%3e") center / contain no-repeat; }
html body #divBtn #buttonRetake::before { -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M20 12a8 8 0 1 1-2.6-5.9'/%3e%3cpath d='M20 4v5h-5'/%3e%3c/svg%3e") center / contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M20 12a8 8 0 1 1-2.6-5.9'/%3e%3cpath d='M20 4v5h-5'/%3e%3c/svg%3e") center / contain no-repeat; }
html body #divBtn #btnSubmit::before { -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M7 18a4.5 4.5 0 0 1-.6-8.96A6 6 0 0 1 18 8.5a4 4 0 0 1-.5 7.97'/%3e%3cpath d='M12 12v8M9 15l3-3 3 3'/%3e%3c/svg%3e") center / contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M7 18a4.5 4.5 0 0 1-.6-8.96A6 6 0 0 1 18 8.5a4 4 0 0 1-.5 7.97'/%3e%3cpath d='M12 12v8M9 15l3-3 3 3'/%3e%3c/svg%3e") center / contain no-repeat; }
html body #divBtn #btnContinue::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; transition: transform .3s ease; -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M5 12h14M13 6l6 6-6 6'/%3e%3c/svg%3e") center / contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M5 12h14M13 6l6 6-6 6'/%3e%3c/svg%3e") center / contain no-repeat; }
html body #divBtn #buttonStop::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: #ffffff; animation: kuiBlink 1.2s ease-in-out infinite; }
html body #divBtn #buttonStart:hover::before { transform: scale(1.18) rotate(-6deg); }
html body #divBtn #buttonRetake:hover::before { transform: rotate(-200deg); }
html body #divBtn #btnSubmit:hover::before { transform: translateY(-3px); }
html body #divBtn #btnContinue:hover::after { transform: translateX(5px); }
html body #divBtn #buttonStart { animation: kuiRingPulse 2.4s ease-out infinite; }
html body #divBtn #buttonStart:hover, html body #divBtn #buttonStart:active { animation: none; }
/* status line: a pulsing dot */
html body .middle-content #recordbody #countdown:not(:empty) { display: flex; align-items: center; gap: 10px; }
html body .middle-content #recordbody #countdown:not(:empty)::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: kuiBlink 1.2s ease-in-out infinite; }
@keyframes kuiBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes kuiMicNod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes kuiRingPulse { 0% { box-shadow: 0 0 0 0 rgba(20, 121, 148, .45); } 70%, 100% { box-shadow: 0 0 0 11px rgba(20, 121, 148, 0); } }@media (max-width: 991.98px) {
    html body .middle-content #recordbody > .row { grid-template-columns: 1fr; }
    html body .middle-content #recordbody #DeviceChange { grid-column: 1; grid-row: auto; }
}

/* ==========================================================================
   Add code kingshuk 23/10/2026 : desktop shell as three floating panels (step rail, top bar, page) on the soft grey background,
   with an even 16px gutter all round. Search becomes a proper field; alerts get an icon. CSS only.
   ========================================================================== */
@media (min-width: 992px) {
    html body .sidebar-wrapper { left: 16px; top: 16px; height: calc(100vh - 32px); width: var(--kui-rail-w); border: 1px solid var(--kui-border); border-radius: 18px; overflow: hidden; background: var(--kui-surface); box-shadow: 0 1px 2px rgba(5, 31, 56, .05), 0 12px 30px rgba(5, 31, 56, .07); }
    html body .sidebar-wrapper:hover { width: var(--kui-rail-w); }
    html body #sidebar { position: relative; height: 100%; overflow-y: auto; padding-bottom: 84px; }
    html body #sidebar::after {
        content: "Secure session"; position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 13px 14px 13px 44px; border: 1px solid var(--kui-border); border-radius: 12px; background-color: var(--kui-surface-2);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a150' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='11' width='18' height='11' rx='2'/%3e%3cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3e%3c/svg%3e");
        background-repeat: no-repeat; background-position: 15px center; background-size: 18px; color: var(--kui-text-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; pointer-events: none;
    }
    html body .header-container, html body .header-container.container-xxl {
        top: 16px; right: 16px; left: calc(var(--kui-rail-w) + 32px); width: auto; max-width: none; min-height: var(--kui-header-h); padding: 0 16px;
        border: 1px solid var(--kui-border); border-radius: 18px; background: var(--kui-surface) !important; box-shadow: 0 1px 2px rgba(5, 31, 56, .05), 0 12px 30px rgba(5, 31, 56, .06);
    }
    html body #content { margin-left: calc(var(--kui-rail-w) + 32px); margin-top: calc(var(--kui-header-h) + 32px); }
    html body .layout-px-spacing { padding: 0 16px 0 0 !important; }
    html body .middle-content { max-width: none; margin-left: 0 !important; margin-right: 0 !important; min-height: calc(100vh - 290px); }
    html body .footer-wrapper { margin-right: 16px; }
    /* search: a real field with a magnifier and the shortcut tag inside it */
    html body .header-container .search-animated { display: flex; align-items: center; }
    html body .header-container .form-inline.search .search-form-control {
        width: 340px; height: 42px; padding: 0 78px 0 44px; border: 1px solid var(--kui-border); border-radius: 12px; background-color: var(--kui-surface-2); color: var(--kui-text); cursor: text;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'/%3e%3cpath d='M21 21l-4.35-4.35'/%3e%3c/svg%3e");
        background-repeat: no-repeat; background-position: 14px center; background-size: 18px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    }
    html body .header-container .form-inline.search .search-form-control:focus { border-color: var(--kui-brand-600); box-shadow: 0 0 0 3px var(--kui-focus); background-color: var(--kui-surface); outline: 0; }
    html body .header-container .search-animated > svg { display: none; }
    html body .header-container .search-animated > .badge { top: 50%; right: 10px; transform: translateY(-50%); }
}
/* alerts without a list get a leading icon (the objection alert keeps its list layout) */
html body .middle-content .alert:not(:has(ul)):not([hidden]) { display: flex; align-items: center; gap: 12px; }
html body .middle-content .alert:not(:has(ul)):not([hidden])::before {
    content: ""; flex: none; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='9'/%3e%3cpath d='M12 8v5M12 16.5v.01'/%3e%3c/svg%3e") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='9'/%3e%3cpath d='M12 8v5M12 16.5v.01'/%3e%3c/svg%3e") center / contain no-repeat;
}
html body .middle-content .alert-light-success:not(:has(ul))::before, html body .middle-content .alert-success:not(:has(ul))::before {
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='9'/%3e%3cpath d='M8 12.5l3 3 5-6'/%3e%3c/svg%3e");
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='9'/%3e%3cpath d='M8 12.5l3 3 5-6'/%3e%3c/svg%3e");
}
html body .middle-content .row > .col-12.my-5 { margin-top: 4px !important; margin-bottom: 4px !important; }

/* ==========================================================================
   Add code kingshuk 23/10/2026 : phone and tablet shell. The template turns the top bar into a floating two-row card that covers the page title;
   here it becomes one clean, full-width bar (menu | logo | search | theme | profile) and the page starts below it. CSS only.
   ========================================================================== */
@media (max-width: 991.98px) {
    html body .header-container, html body .header-container.container-xxl {
        left: 0; right: 0; top: 0; width: 100%; max-width: none; margin: 0; min-height: 60px; padding: 0 14px; border-radius: 0;
        background: var(--kui-surface) !important; border-bottom: 1px solid var(--kui-border); box-shadow: var(--kui-shadow-1);
    }
    html body .header-container .header.navbar { flex-wrap: nowrap; align-items: center; gap: 10px; min-height: 60px; padding: 0; }
    html body .header-container .sidebarCollapse { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--kui-border); border-radius: 12px; background: var(--kui-surface); color: var(--kui-text-muted); }
    html body .header-container .theme-toggle { display: none; }
    html body .header-container a.d-lg-none { flex: none; margin: 0 !important; padding: 0; }
    html body .header-container a.d-lg-none img { width: 128px; height: auto; }
    html body .header-container .search-animated { flex: none; margin-left: auto; }
    html body .header-container .search-animated > svg { display: inline-flex; width: 40px; height: 40px; padding: 9px; margin: 0; border: 1px solid var(--kui-border); border-radius: 12px; background: var(--kui-surface); color: var(--kui-text-muted); }
    html body .header-container .search-animated > .badge { display: none; }
    html body .header-container .navbar-item { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0 !important; }
    html body .header-container .navbar-item > .nav-item { margin: 0 !important; }
    html body .header-container .navbar-item .avatar img { width: 38px; height: 38px; }
    html body .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu { right: 0; left: auto; max-width: calc(100vw - 24px); min-width: min(290px, calc(100vw - 24px)); }
    html body #content { margin-top: 60px; }
    html body .layout-px-spacing { padding: 16px 12px 0 !important; min-height: calc(100vh - 140px) !important; }
    html body .footer-wrapper { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 20px; text-align: center; }
}
@media (max-width: 575.98px) {
    html body .middle-content { padding: 18px 16px 4px !important; margin-bottom: 16px; }
    html body .middle-content :is(h2.my-5, h2.mt-5) { font-size: 21px; margin-bottom: 22px !important; padding-bottom: 14px; }
    html body .middle-content :is(h2.my-5, h2.mt-5) .float-end { margin-left: 0; }
    html body .middle-content .form-control, html body .middle-content .form-select { min-height: 48px; font-size: 16px; }
    html body .middle-content .btn, html body .middle-content #btnSubmit, html body .middle-content #BtnSubmit, html body .middle-content #continueBtn, html body .middle-content #FinalSubmitBtn { width: 100%; }
    html body .middle-content .kui-section { margin-top: 6px; }
}

/* ==========================================================================
   Add code kingshuk 23/10/2026 : PREMIUM PASS. Atmosphere, depth, a progress card in the rail, gradient headline, sheen buttons, glass top bar.
   Layered on top of the earlier rules (later wins). CSS only, plus the read-only progress card markup in Views/Ekyc/_LoadMenu.cshtml.
   ========================================================================== */

/* ---------- Atmosphere: soft teal light from the corners behind the floating panels ---------- */
html body.layout-boxed { background: radial-gradient(1100px 640px at 4% -8%, rgba(49, 189, 227, .20), transparent 62%), radial-gradient(900px 560px at 104% 2%, rgba(20, 121, 148, .14), transparent 58%), var(--kui-bg) !important; background-attachment: fixed !important; }
html[data-kui-theme="dark"] body.layout-boxed { background: radial-gradient(1100px 640px at 4% -8%, rgba(49, 189, 227, .11), transparent 62%), radial-gradient(900px 560px at 104% 2%, rgba(25, 147, 179, .13), transparent 58%), var(--kui-bg) !important; background-attachment: fixed !important; }
html body #content { background: transparent; }

/* ---------- Depth: layered shadows and a fine inner highlight on every panel ---------- */
html body .middle-content, html body .sidebar-wrapper, html body .header-container {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 1px 2px rgba(8, 50, 89, .05), 0 18px 40px -14px rgba(8, 50, 89, .18);
}
html[data-kui-theme="dark"] body .middle-content, html[data-kui-theme="dark"] body .sidebar-wrapper, html[data-kui-theme="dark"] body .header-container {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 1px 2px rgba(0, 0, 0, .3), 0 20px 44px -14px rgba(0, 0, 0, .55);
}
html body .middle-content { border-radius: 22px; padding: 34px 42px 14px !important; }
html body .header-container { backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); background: color-mix(in srgb, var(--kui-surface) 86%, transparent) !important; }

/* ---------- Headline: larger, with a gradient on the highlighted word; the step tag gets a gradient edge ---------- */
html body .middle-content :is(h2.my-5, h2.mt-5) { font-size: 30px; letter-spacing: -.022em; }
html body .middle-content :is(h2.my-5, h2.mt-5) .text-primary {
    background: linear-gradient(90deg, var(--kui-brand-700), var(--kui-brand-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent !important;
}
html[data-kui-theme="dark"] body .middle-content :is(h2.my-5, h2.mt-5) .text-primary { background: linear-gradient(90deg, #8bdcf2, #31bde3); -webkit-background-clip: text; background-clip: text; }
html body .middle-content :is(h2.my-5, h2.mt-5) .float-end {
    border: 1.5px solid transparent; color: var(--kui-brand-600);
    background: linear-gradient(var(--kui-surface), var(--kui-surface)) padding-box, linear-gradient(135deg, var(--kui-brand-600), var(--kui-accent-600)) border-box;
    box-shadow: 0 6px 16px -8px rgba(20, 121, 148, .55);
}

/* ---------- Step rail: progress card, gradient current step, staggered entrance ---------- */
html body #sidebar .theme-brand { padding: 22px 22px 14px; border-bottom: 0; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
html body .kui-rail-summary { display: flex; align-items: center; gap: 14px; margin: 2px 14px 8px; padding: 14px 16px; border: 1px solid var(--kui-border); border-radius: 16px; background: var(--kui-surface-2); }
html body .kui-ring {
    position: relative; flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--kui-accent-600), var(--kui-brand-600) calc(var(--p) * 1%), var(--kui-border) 0);
    animation: kuiRingIn 1.1s cubic-bezier(.22, .8, .3, 1) backwards;
}
html body .kui-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--kui-surface-2); }
html body .kui-ring > span { position: relative; font-family: var(--kui-font-heading); font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--kui-heading); }
html body .kui-rs-text { min-width: 0; line-height: 1.25; }
html body .kui-rs-text strong { display: block; font-family: var(--kui-font-heading); font-size: 16px; font-weight: 700; color: var(--kui-heading); }
html body .kui-rs-text small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--kui-text-muted); }
@keyframes kuiRingIn { from { --p: 0; } }
@keyframes kuiStepIn { from { opacity: 0; transform: translateX(-10px); } }
html body #sidebar ul.menu-categories li.menu:not(.menu-heading) { animation: kuiStepIn .5s ease-out backwards; }
html body #sidebar ul.menu-categories li.menu:nth-child(2) { animation-delay: .05s; }
html body #sidebar ul.menu-categories li.menu:nth-child(3) { animation-delay: .10s; }
html body #sidebar ul.menu-categories li.menu:nth-child(4) { animation-delay: .15s; }
html body #sidebar ul.menu-categories li.menu:nth-child(5) { animation-delay: .20s; }
html body #sidebar ul.menu-categories li.menu:nth-child(6) { animation-delay: .25s; }
html body #sidebar ul.menu-categories li.menu:nth-child(7) { animation-delay: .30s; }
html body #sidebar ul.menu-categories li.menu:nth-child(8) { animation-delay: .35s; }
html body #sidebar ul.menu-categories li.menu:nth-child(9) { animation-delay: .40s; }
html body #sidebar ul.menu-categories li.menu.active > .dropdown-toggle, html body #sidebar ul.menu-categories li.menu > .dropdown-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #0e5f78, #16849f); box-shadow: 0 12px 24px -10px rgba(20, 121, 148, .75), inset 4px 0 0 var(--kui-accent-500);
}

/* ---------- Buttons: a soft sheen over the brand colour and a coloured glow on hover ---------- */
html body .btn-primary:not(:disabled):not(.disabled) { background-image: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 62%); }
html body .btn-primary:not(:disabled):not(.disabled):hover { background-image: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 62%); }

/* ---------- Fields: softer, rounder, with a calm focus glow ---------- */
html body .middle-content .form-control, html body .middle-content .form-select { border-radius: 12px; box-shadow: inset 0 1px 2px rgba(8, 50, 89, .05); }
html body .middle-content .form-control:focus, html body .middle-content .form-select:focus { box-shadow: 0 0 0 4px var(--kui-focus), inset 0 1px 2px rgba(8, 50, 89, .04); }
html body .middle-content .kui-section { font-size: 12px; letter-spacing: .14em; }
/* the premium sizes above must not override the phone and tablet sizes */
@media (max-width: 991.98px) {
    html body .middle-content { padding: 22px 20px 6px !important; border-radius: 16px; }
    html body .middle-content :is(h2.my-5, h2.mt-5) { font-size: 24px; }
}
@media (max-width: 575.98px) {
    html body .middle-content { padding: 18px 16px 4px !important; }
    html body .middle-content :is(h2.my-5, h2.mt-5) { font-size: 21px; }
}

/* ---------- Step rail: tighter rows so the list fits without an inner scrollbar; thin scrollbar when the window is short ---------- */
@media (min-width: 992px) {
    html body #sidebar { padding-bottom: 76px; scrollbar-width: thin; scrollbar-color: var(--kui-border-strong) transparent; }
    html body #sidebar ul.menu-categories li.menu > .dropdown-toggle { padding: 8px 12px; margin: 1px 0; }
    html body #sidebar ul.menu-categories li.menu:not(.menu-heading):not(:last-child)::after { left: 29px; top: 44px; bottom: -2px; }
    html body .sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading { padding: 12px 10px 8px; }
    html body #sidebar .theme-brand { padding: 20px 22px 10px; }
}

/* on shorter windows the rail goes compact (no secure-session note, tighter rows) so all steps fit without scrolling */
@media (min-width: 992px) and (max-height: 1000px) {
    html body #sidebar::after { display: none; }
    html body #sidebar { padding-bottom: 12px; }
    html body #sidebar ul.menu-categories li.menu > .dropdown-toggle { padding: 5px 12px; margin: 0; }
    html body #sidebar ul.menu-categories li.menu:not(.menu-heading):not(:last-child)::after { top: 41px; bottom: -1px; }
    html body .kui-rail-summary { padding: 10px 14px; margin-bottom: 2px; }
    html body .kui-ring { width: 52px; height: 52px; }
    html body .kui-ring::before { inset: 5px; }
    html body #sidebar .theme-brand { padding: 14px 22px 4px; }
    html body .sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading { padding: 8px 10px 6px; }
}

/* ==========================================================================
   Add code kingshuk 23/10/2026 : Review & e-Sign pages (KYC form and KRA form). CSS only; ids, links and scripts untouched.
   ========================================================================== */

/* consent line: a clear row with a tick box, on both e-Sign pages */
html body .middle-content form label[for="EquityDerivative"] {
    display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 16px 18px; border: 1.5px solid var(--kui-border-strong); border-radius: 14px; background: var(--kui-surface-2);
    font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--kui-text); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
html body .middle-content form label[for="EquityDerivative"]:hover { border-color: var(--kui-brand-500); }
html body .middle-content form label[for="EquityDerivative"]:has(input:checked) { border-color: var(--kui-brand-600); background: color-mix(in srgb, var(--kui-brand-50) 70%, var(--kui-surface)); box-shadow: inset 0 0 0 1px var(--kui-brand-600); }
html body .middle-content form label[for="EquityDerivative"] input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }
html body .middle-content form label[for="EquityDerivative"] .text-primary { font-weight: 700; color: var(--kui-brand-600) !important; }
html body .middle-content form #btnKYC, html body .middle-content form #btnKRA { min-width: 240px; min-height: 50px; margin-top: 20px !important; padding: 0 28px; }
html body .middle-content form #btnKYC:disabled, html body .middle-content form #btnKRA.disabled { opacity: .5; cursor: not-allowed; }
html body .middle-content form #btnKRA::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; transition: transform .3s ease; -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M5 12h14M13 6l6 6-6 6'/%3e%3c/svg%3e") center / contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M5 12h14M13 6l6 6-6 6'/%3e%3c/svg%3e") center / contain no-repeat; }
html body .middle-content form #btnKRA:hover::after { transform: translateX(5px); }
html body .middle-content form #btnKYC::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; transition: transform .3s ease; -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M5 12h14M13 6l6 6-6 6'/%3e%3c/svg%3e") center / contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M5 12h14M13 6l6 6-6 6'/%3e%3c/svg%3e") center / contain no-repeat; }
html body .middle-content form #btnKYC:hover:not(:disabled)::after { transform: translateX(5px); }

/* KRA page: message and button on the left, the document and consent on the right */
html body .middle-content .info-box-1 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 48px; row-gap: 6px; align-items: start; width: 100%; max-width: none !important; padding: 34px 38px !important; border-radius: 20px; }
html body .middle-content .info-box-1 > .info-box-1-icon-wrapper { grid-column: 1; grid-row: 1; margin: 0 0 8px; }
html body .middle-content .info-box-1 > .info-box-1-content-wrapper { grid-column: 1; grid-row: 2; margin: 0; }
html body .middle-content .info-box-1 > .col-12 { grid-column: 2; grid-row: 1 / span 3; width: auto; max-width: none; margin: 0 !important; padding: 0; }
html body .middle-content .info-box-1 > a.btn { grid-column: 1; grid-row: 3; justify-self: start; align-self: start; }
html body .middle-content .info-box-1 .info-box-1-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px !important; color: #ffffff !important;
    background: linear-gradient(135deg, #0e5f78, #16849f) !important; box-shadow: 0 14px 26px -12px rgba(20, 121, 148, .8) !important;
}
html body .middle-content .info-box-1 .info-box-1-icon svg { width: 28px; height: 28px; stroke-width: 1.9; color: #ffffff; }
html body .middle-content .info-box-1 .info-box-1-title { margin: 6px 0 8px; font-family: var(--kui-font-heading); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--kui-heading); }
html body .middle-content .info-box-1 .info-box-1-content { font-size: 15px; line-height: 1.65; color: var(--kui-text-muted); }
html body .middle-content .info-box-1 .info-box-1-content .text-danger { padding: 2px 8px; border-radius: 6px; background: var(--kui-brand-50); color: var(--kui-brand-600) !important; font-weight: 700; }
html body .middle-content .info-box-1 > .col-12 > br { display: none; }
html body .middle-content .info-box-1 > .col-12 > a { display: flex; align-items: center; justify-content: center; margin: 0 0 16px; padding: 34px 20px 26px; border: 1.5px dashed var(--kui-border-strong); border-radius: 18px; background: var(--kui-surface-2); transition: border-color .2s ease, background-color .2s ease, transform .25s ease, box-shadow .25s ease; }
html body .middle-content .info-box-1 > .col-12 > a:hover { border-color: var(--kui-brand-600); background: var(--kui-brand-50); transform: translateY(-3px); box-shadow: var(--kui-shadow-2); }
html body .middle-content .info-box-1 > .col-12 > a::after { content: "Open the unsigned document"; display: block; margin-left: 16px; font-size: 13.5px; font-weight: 600; color: var(--kui-brand-600); }
html body .middle-content .info-box-1 > .col-12 > a img { width: 84px !important; margin: 0 !important; border: 0; border-radius: 0; }
html body .middle-content .info-box-1 > .col-12 > a img[src*="pdf.png"] {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='84' height='100' viewBox='0 0 84 100'%3e%3cpath d='M10 4h46l18 18v68a6 6 0 0 1-6 6H10a6 6 0 0 1-6-6V10a6 6 0 0 1 6-6z' fill='%23e5faff' stroke='%23147994' stroke-width='3' stroke-linejoin='round'/%3e%3cpath d='M56 4v18h18' fill='%23d3f1f9' stroke='%23147994' stroke-width='3' stroke-linejoin='round'/%3e%3crect x='16' y='56' width='52' height='22' rx='5' fill='%23147994'/%3e%3ctext x='42' y='72' text-anchor='middle' font-family='Roboto,Segoe UI,Arial,sans-serif' font-size='13' font-weight='800' fill='%23ffffff'%3ePDF%3c/text%3e%3cpath d='M42 28v16M35 38l7 7 7-7' fill='none' stroke='%23147994' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
    html body .middle-content .info-box-1 { grid-template-columns: 1fr; padding: 24px 20px !important; }
    html body .middle-content .info-box-1 > .col-12 { grid-column: 1; grid-row: auto; }
    html body .middle-content .info-box-1 > a.btn { grid-column: 1; grid-row: auto; justify-self: stretch; }
}

/* ---------- Footer: quiet, aligned with the content card ---------- */
html body .footer-wrapper .footer-section p, html body .footer-wrapper .footer-section p a { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--kui-text-muted); }
html body .footer-wrapper .footer-section p a { font-weight: 600; }
html body .footer-wrapper .footer-section p svg { width: 14px; height: 14px; color: var(--kui-danger); fill: var(--kui-danger); vertical-align: -2px; }
html body .footer-wrapper { padding: 16px 0 22px; border-top: 1px solid var(--kui-border); background: transparent; }
html body .footer-wrapper p, html body .footer-wrapper a { margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--kui-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    html body .middle-content { padding: 20px 18px 4px !important; border-radius: 12px; }
    html body .middle-content :is(h2.my-5, h2.mt-5) { font-size: 22px; }
}
@media (max-width: 991.98px) {
    html body .card-body { padding: 20px; }
}
@media (max-width: 575.98px) {
    html body .card-body { padding: 16px; }
    html body .btn { padding: 0 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html body *, html body *::before, html body *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Add code kingshuk 05/11/2026 : one red - #FF6262 - in Light and Dark mode.
   The bundled template / Bootstrap red utilities (text, button, badge, alert, border, validation, SweetAlert error)
   are pointed at the same value. Colour only: no layout, spacing, font or size is touched.
   ========================================================================== */
html body :is(.text-danger, .text-red, .invalid-feedback, label.error, em.error, span.error, .field-validation-error, .validation-summary-errors) { color: #FF6262 !important; }
html body :is(.badge-danger, .bg-danger, .btn-danger, .badge.badge-danger) { background-color: #FF6262 !important; border-color: #FF6262 !important; color: #ffffff !important; }
html body .btn-outline-danger { color: #FF6262 !important; border-color: #FF6262 !important; }
html body .btn-outline-danger:hover, html body .btn-danger:hover { background-color: rgba(255, 98, 98, .14) !important; border-color: #FF6262 !important; color: #FF6262 !important; }
html body :is(.alert-danger, .alert-light-danger, .alert-warning-red) { background-color: rgba(255, 98, 98, .12) !important; border-color: #FF6262 !important; color: #FF6262 !important; }
html body :is(.is-invalid, .form-control.is-invalid, .form-select.is-invalid, .form-control.error, .border-danger) { border-color: #FF6262 !important; }
html body .form-control.is-invalid:focus, html body .form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(255, 98, 98, .22) !important; }
html body .swal2-icon.swal2-error { border-color: #FF6262 !important; color: #FF6262 !important; }
html body .swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background-color: #FF6262 !important; }
html body .swal2-styled.swal2-confirm[style*="221, 51, 51"], html body .swal2-styled.swal2-confirm[style*="#d33"], html body .swal2-styled.swal2-cancel[style*="221, 51, 51"] { background-color: #FF6262 !important; }
html body :is([style*="color:red"], [style*="color: red"]) { color: #FF6262 !important; }