.bg-body-secondary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-secondary-bg-rgb), var(--bs-bg-opacity)) !important;
    background-image: url(../img/bg-medussi.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

/* Background for mobile devices */
@media only screen and (max-width: 768px) {
    .bg-body-secondary {
        background-image: url(../img/bg-medussi-mobile.jpg); /* Path to the mobile background image */
        background-repeat: no-repeat;
        background-size: cover; /* Ensures the image covers the entire background */
        background-position: center; /* Centers the background image */
    }
}

/* Animated mesh background (sign-up + SCP login; no photo) */
.login-page.bg-body-secondary.auth-mesh-bg {
    background-color: #0a0f1a !important;
    background-image: none !important;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.login-page.auth-mesh-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 80% at 15% 20%, rgba(59, 130, 246, 0.5), transparent 55%),
        radial-gradient(ellipse 100% 70% at 90% 15%, rgba(168, 85, 247, 0.42), transparent 52%),
        radial-gradient(ellipse 90% 60% at 50% 95%, rgba(45, 212, 191, 0.32), transparent 48%),
        radial-gradient(ellipse 60% 50% at 70% 55%, rgba(236, 72, 153, 0.18), transparent 45%),
        linear-gradient(160deg, #0a0f1a 0%, #111827 40%, #0f172a 100%);
    animation: reg-bg-mesh 20s ease-in-out infinite alternate;
}

.login-page.auth-mesh-bg::after {
    content: "";
    position: fixed;
    inset: -30%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background:
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.05), transparent 38%);
    animation: reg-bg-shimmer 32s ease-in-out infinite alternate-reverse;
}

@keyframes reg-bg-mesh {
    0% {
        transform: translate(0, 0) scale(1);
        filter: hue-rotate(0deg) saturate(1);
    }
    100% {
        transform: translate(-4%, 3%) scale(1.06);
        filter: hue-rotate(18deg) saturate(1.08);
    }
}

@keyframes reg-bg-shimmer {
    0% {
        transform: translate(6%, -4%) rotate(0deg);
    }
    100% {
        transform: translate(-6%, 4%) rotate(2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page.auth-mesh-bg::before,
    .login-page.auth-mesh-bg::after {
        animation: none;
    }

    .login-page.auth-mesh-bg::before {
        transform: none;
        filter: none;
    }
}

.login-page.auth-mesh-bg .login-box {
    position: relative;
    z-index: 1;
}

/* Colletra wordmark (PNG has light artwork on transparent — keep on dark UI only) */
.colletra-brand-logo {
    display: block;
    height: auto;
    width: auto;
    max-width: min(220px, 88vw);
    max-height: 2.5rem;
    object-fit: contain;
    object-position: left center;
}

.colletra-brand-logo--reg {
    max-height: 2.55rem;
    margin-bottom: 0.85rem;
}

.reg-page-logo-wrap {
    margin-bottom: 0.15rem;
}

.reg-page-logo-link {
    display: inline-block;
    line-height: 0;
}

.reg-page-logo-link:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.9);
    outline-offset: 4px;
    border-radius: 0.35rem;
}

@media (max-width: 991.98px) {
    .reg-page-logo-wrap {
        text-align: center;
    }

    .colletra-brand-logo--reg {
        margin-left: auto;
        margin-right: auto;
        object-position: center;
    }
}

.colletra-brand-logo--scp {
    margin: 0 auto;
    max-height: 2.55rem;
    object-position: center;
}

.customer-area__logo,
.support-page__logo {
    display: block;
    max-height: 1.9rem;
    width: auto;
    max-width: min(200px, 70vw);
    object-fit: contain;
    margin-bottom: 0.45rem;
}

.customer-area__logo-link:focus-visible,
.support-page__logo-link:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.45);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

.login-page.auth-mesh-bg .scp-login-logo {
    text-align: center;
    margin-bottom: 0.75rem;
}

.login-page.auth-mesh-bg .scp-login-logo__link {
    text-decoration: none;
}

.login-page.auth-mesh-bg .scp-login-logo__title {
    margin: 0.5rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* ——— Client KYC login (login.php) — same grid as sign-up: reg-layout ——— */
.client-login-page .client-login-shell.reg-layout {
    padding-bottom: 1.75rem;
}

/* Longer heading than “Sign up” — slightly smaller gradient title */
.client-login-page .reg-page-title__text.client-login-page-title-text {
    font-size: clamp(1.45rem, 3.6vw, 2.2rem);
    line-height: 1.12;
}

@media (min-width: 992px) {
    .client-login-page .reg-layout__title-col .reg-page-title__accent {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 991.98px) {
    .client-login-page .reg-layout__title-col {
        text-align: center;
    }

    .client-login-page .reg-layout__title-col .reg-page-heading {
        margin-bottom: 0.25rem;
    }

    .client-login-page .reg-layout__title-col .reg-page-title__accent {
        margin-left: auto;
        margin-right: auto;
    }
}

.client-login-page .client-login-card-body {
    padding-top: 1.5rem;
}

.client-login-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
}

.client-login-back {
    text-align: left;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.client-login-lang {
    flex: 0 0 auto;
    min-width: 7.5rem;
}

.client-login-lang__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin-bottom: 0.35rem;
}

.client-login-lang__select {
    min-width: 7.5rem;
    border-radius: 0.5rem;
    border-color: rgba(var(--bs-secondary-rgb), 0.35);
    font-weight: 500;
}

.client-login-lang__select:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

.client-login-back__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.client-login-back__link:hover {
    color: var(--bs-primary);
}

.client-login-back__link:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.45);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

.client-login-hero {
    text-align: center;
    margin-bottom: 1.4rem;
}

.client-login-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3.6vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--bs-body-color);
}

.client-login-hero__brand {
    font-weight: 800;
    color: var(--bs-primary);
    letter-spacing: -0.02em;
}

.client-login-hero__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--bs-secondary-color);
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.client-login-msg:empty {
    display: none;
}

.client-login-msg:not(:empty) {
    margin-bottom: 0.75rem;
}

.client-login-page .alert {
    border-radius: 0.55rem;
    margin-top: 0 !important;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.client-login-field {
    margin-bottom: 1.1rem;
}

.client-login-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--bs-body-color);
}

.client-login-select,
.client-login-input {
    border-radius: 0.55rem;
    border-color: rgba(var(--bs-secondary-rgb), 0.32);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.client-login-select:focus,
.client-login-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.18);
}

.client-login-phone-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .client-login-phone-row {
        flex-direction: row;
        align-items: stretch;
    }

    .client-login-phone-group {
        flex: 1 1 auto;
        min-width: 0;
    }

    .client-login-btn-send {
        flex: 0 0 auto;
        align-self: stretch;
        min-width: 9.25rem;
    }
}

.client-login-phone-group {
    border-radius: 0.55rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.client-login-phone-group .client-login-dial {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-body-color);
    background: rgba(var(--bs-secondary-rgb), 0.12);
    border-color: rgba(var(--bs-secondary-rgb), 0.28);
    min-width: 3.25rem;
    justify-content: center;
}

.client-login-btn-send {
    font-weight: 600;
    border-radius: 0.55rem;
    padding: 0.6rem 1.1rem;
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.client-login-btn-send:disabled,
.client-login-btn-send.disabled {
    box-shadow: none;
    opacity: 0.65;
}

.client-login-otp__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 1rem;
}

.client-login-otp__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(145deg, var(--bs-primary) 0%, #2563eb 100%);
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.35);
}

.client-login-otp__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    line-height: 1.25;
    color: var(--bs-body-color);
}

.client-login-otp__hint {
    font-size: 0.86rem;
    color: var(--bs-secondary-color);
    line-height: 1.4;
}

.client-login-otp__inputs {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.client-login-btn-verify {
    border-radius: 0.55rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
}

.registration-flow.client-login-page #smsOtp.reg-otp-panel {
    text-align: left;
}

.registration-flow.client-login-page #smsOtp.reg-otp-panel .otp-field {
    justify-content: center;
}

.otp-field {
  flex-direction: row;
  column-gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otp-field input {
  height: 45px;
  width: 42px;
  border-radius: 6px;
  outline: none;
  font-size: 1.125rem;
  text-align: center;
  border: 1px solid #ddd;
}
.otp-field input:focus {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.otp-field input::-webkit-inner-spin-button,
.otp-field input::-webkit-outer-spin-button {
  display: none;
}

.resend {
  font-size: 12px;
}

/* Customer Uploaded Image Section */
.image-div {
  width: 150px;
  max-height: 200px;
  margin: 2% 1%;
  padding: 0.1%;
  border-radius: 3%;
}

.image-div img{
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 3%;
}

.bg-purple {
    background: purple;
}

/* ——— Registration wizard (sign-up steps) ——— */
.registration-flow.login-page .login-box.reg-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1100px, 100%);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 576px) {
    .registration-flow.login-page .login-box.reg-layout {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.registration-flow .reg-layout__title-col {
    text-align: left;
}

@media (min-width: 992px) {
    .registration-flow .reg-layout__title-col {
        padding-top: 0.35rem;
    }
}

.registration-flow .reg-page-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    animation: reg-heading-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.registration-flow .reg-page-title {
    margin: 0;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.registration-flow .reg-page-title__text {
    display: inline-block;
    font-size: clamp(2.35rem, 6.5vw, 3.65rem);
    background: linear-gradient(
        110deg,
        #f8fafc 0%,
        #e0e7ff 18%,
        #7dd3fc 42%,
        #a5b4fc 58%,
        #f8fafc 85%,
        #e2e8f0 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.38));
    animation:
        reg-title-shimmer 10s ease-in-out 0.5s infinite,
        reg-title-float 6s ease-in-out 0.5s infinite;
}

@keyframes reg-heading-enter {
    from {
        opacity: 0;
        transform: translateX(-1.35rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reg-title-shimmer {
    0%,
    100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes reg-title-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.registration-flow .reg-page-title__accent {
    display: block;
    width: 4.5rem;
    max-width: 100%;
    height: 5px;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.95), rgba(167, 139, 250, 0.95), rgba(45, 212, 191, 0.75));
    transform-origin: left center;
    animation: reg-accent-grow 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes reg-accent-grow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.registration-flow .reg-page-step-kicker {
    margin: 1.1rem 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.55);
}

.registration-flow .reg-page-step-name {
    margin: 0;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #f1f5f9;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .registration-flow .reg-page-title__text {
        color: #f8fafc;
        -webkit-text-fill-color: #f8fafc;
        background: none;
        filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
    }
}

@media (prefers-reduced-motion: reduce) {
    .registration-flow .reg-page-heading {
        animation: none;
    }

    .registration-flow .reg-page-title__text {
        animation: none;
        background-position: 50% center;
    }

    .registration-flow .reg-page-title__accent {
        animation: none;
        transform: none;
    }
}

.registration-flow .reg-card {
    position: relative;
    border: none;
    border-radius: 1rem;
    box-shadow:
        0 0.25rem 1rem rgba(15, 23, 42, 0.08),
        0 1.5rem 2.5rem rgba(15, 23, 42, 0.06) !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
}

.registration-flow .reg-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, #5c9dff 45%, #6ee7b7 100%);
}

/* Post-registration thank-you (/success) */
.reg-success-page.registration-flow.login-page .login-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.reg-success-icon-wrap {
    margin-bottom: 1.15rem;
}

.reg-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(4.25rem, 18vw, 5.25rem);
    height: clamp(4.25rem, 18vw, 5.25rem);
    border-radius: 50%;
    font-size: clamp(2.1rem, 9vw, 2.85rem);
    line-height: 1;
    color: #fff;
    background: linear-gradient(145deg, #34d399 0%, #059669 48%, #047857 100%);
    box-shadow:
        0 10px 36px rgba(5, 150, 105, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    animation: reg-success-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reg-success-pop {
    from {
        transform: scale(0.5) rotate(-12deg);
        opacity: 0;
    }
    55% {
        transform: scale(1.06) rotate(3deg);
        opacity: 1;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.reg-success-title {
    font-size: clamp(1.45rem, 4.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.65rem;
    color: var(--bs-body-color);
}

.reg-success-lead {
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

.reg-success-detail {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .reg-success-icon {
        animation: none;
    }
}

.registration-flow .login-card-body {
    padding: 1.35rem 1.25rem 1.5rem;
}

@media (min-width: 576px) {
    .registration-flow .login-card-body {
        padding: 1.6rem 1.85rem 1.85rem;
    }
}

.registration-flow .reg-lang-select {
    min-width: 7.5rem;
    border-radius: 0.5rem;
    border-color: rgba(var(--bs-secondary-rgb), 0.35);
}

.registration-flow .reg-signup-kicker {
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 600;
}

.registration-flow .reg-step-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Step hero */
.reg-step-hero {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0.5rem 0 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.07) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
}

.reg-step-hero__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(145deg, var(--bs-primary) 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.35);
}

.reg-step-hero__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--bs-emphasis-color);
}

.reg-step-hero__hint {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--bs-secondary-color);
}

.registration-flow .reg-step-msg:empty {
    display: none;
}

.registration-flow .reg-step-msg:not(:empty) {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: rgba(var(--bs-danger-rgb), 0.08);
    border: 1px solid rgba(var(--bs-danger-rgb), 0.25);
    color: var(--bs-danger);
}

/* Form fields */
.registration-flow #stepForm .form-control,
.registration-flow #stepForm .form-select,
.registration-flow .reg-form-block .form-control,
.registration-flow .reg-form-block .form-select {
    border-radius: 0.55rem;
    border-color: rgba(var(--bs-secondary-rgb), 0.35);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.registration-flow #stepForm .form-control:focus,
.registration-flow #stepForm .form-select:focus,
.registration-flow .reg-form-block .form-control:focus,
.registration-flow .reg-form-block .form-select:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.65);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

.registration-flow label.fw-bold {
    font-size: 0.875rem;
    color: var(--bs-emphasis-color);
}

.registration-flow .input-group-text {
    border-radius: 0.55rem 0 0 0.55rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.registration-flow .reg-phone-input .form-control {
    border-radius: 0 0.55rem 0.55rem 0;
}

/* Actions */
.registration-flow .reg-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

@media (min-width: 576px) {
    .registration-flow .reg-actions:not(.reg-actions--split) {
        align-items: center;
    }

    .registration-flow .reg-actions--split {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
    }

    .registration-flow .reg-actions--split .reg-btn-next,
    .registration-flow .reg-actions--split .btn-primary:not(.btn-outline-primary) {
        margin-left: auto;
    }
}

@media (max-width: 575.98px) {
    .registration-flow .reg-actions--split {
        flex-direction: column;
        align-items: stretch;
    }

    .registration-flow .reg-actions--split .btn {
        width: 100%;
    }

    .registration-flow .reg-actions--split .reg-btn-next,
    .registration-flow .reg-actions--split .btn-primary:not(.btn-outline-primary) {
        margin-left: 0;
        order: 3;
    }

    .registration-flow .reg-actions--split .btn-outline-secondary:first-of-type {
        order: 1;
    }

    .registration-flow .reg-actions--split .btn-outline-secondary:nth-of-type(2) {
        order: 2;
    }
}

/* Step 1 — link to login for users who already have an account */
.registration-flow .reg-existing-account {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.35rem;
    padding: 1rem 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--bs-secondary-color);
    border-radius: 0.85rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.16);
    background: linear-gradient(
        165deg,
        rgba(var(--bs-primary-rgb), 0.07) 0%,
        rgba(255, 255, 255, 0.55) 45%,
        rgba(255, 255, 255, 0.35) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 4px 18px rgba(15, 23, 42, 0.04);
}

.registration-flow .reg-existing-account__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.05rem;
    border-radius: 0.55rem;
    font-size: 1rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

.registration-flow .reg-existing-account__body {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.registration-flow .reg-existing-account__text {
    margin-right: 0.25rem;
}

.registration-flow .reg-existing-account__link {
    display: inline-block;
    font-weight: 700;
    color: var(--bs-primary);
    text-decoration: none;
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.35);
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.registration-flow .reg-existing-account__link:hover {
    color: var(--bs-primary-text-emphasis, #052c65);
    border-bottom-color: currentColor;
}

.registration-flow .reg-existing-account__link:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.45);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (min-width: 576px) {
    .registration-flow .reg-existing-account {
        justify-content: flex-start;
    }

    .registration-flow .reg-existing-account__body {
        text-align: left;
    }
}

.registration-flow .reg-btn-next {
    min-height: 2.85rem;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    border-radius: 0.55rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.25);
}

.registration-flow .reg-btn-next--wide {
    width: 100%;
    max-width: 22rem;
}

@media (min-width: 576px) {
    .registration-flow .reg-btn-next--wide {
        width: auto;
        min-width: 14rem;
    }
}

.registration-flow .btn-outline-secondary {
    border-radius: 0.55rem;
    font-weight: 600;
}

.registration-flow .btn-success.reg-btn-next {
    box-shadow: 0 2px 8px rgba(var(--bs-success-rgb), 0.3);
}

.reg-upload-toolbar {
    margin-bottom: 0.75rem;
}

.registration-flow .reg-step5-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

@media (min-width: 576px) {
    .registration-flow .reg-step5-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .registration-flow .reg-step5-actions .reg-btn-next--wide {
        flex: 1 1 auto;
        max-width: 18rem;
        margin-left: auto;
    }
}

.reg-stepper {
    margin: 0.25rem 0 1.15rem;
    padding-bottom: 0.35rem;
}

.reg-stepper__progress {
    height: 5px;
    margin: 0 2px 0;
    border-radius: 999px;
    background: rgba(var(--bs-secondary-rgb), 0.35);
    overflow: hidden;
}

.reg-stepper__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bs-primary) 0%, #5c9dff 100%);
    transition: width 0.4s ease;
}

.reg-stepper__list {
    display: flex;
    justify-content: space-between;
    gap: 0.2rem;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.reg-stepper__item {
    flex: 1 1 0;
    min-width: 3.1rem;
    max-width: 5.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

/* Glass stepper — adapted from CodePen “Liquid Glass UI” stepper (Margarita-the-solid / NPRPBjd) */
.registration-flow .reg-stepper--glass {
    overflow: visible;
}

.registration-flow .reg-stepper__progress--glass {
    height: 6px;
    margin: 0 2px 0;
    border-radius: 999px;
    background: rgba(var(--bs-secondary-rgb), 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    overflow: hidden;
}

.registration-flow .reg-glass-stepper {
    --rg-aqua: 94, 231, 223;
    --rg-violet: 180, 144, 245;
    --rg-glass-border: rgba(15, 23, 42, 0.14);
    --rg-glass-border-subtle: rgba(15, 23, 42, 0.1);
    --rg-glass-fill: rgba(255, 255, 255, 0.58);
    --rg-blur: blur(10px);
    --rg-ease-liquid: cubic-bezier(0.34, 1.56, 0.64, 1);

    display: flex;
    align-items: center;
    gap: 0;
    margin: 0.9rem 0 0;
    width: 100%;
    min-width: 0;
}

.registration-flow .reg-glass-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
}

.registration-flow .reg-glass-step:last-child {
    flex: none;
}

.registration-flow .reg-glass-step__connector {
    flex: 1;
    height: 2px;
    min-width: 0.35rem;
    margin: 0 2px;
    align-self: center;
    border-radius: 999px;
    background: var(--rg-glass-border-subtle);
    transition: background 0.36s var(--rg-ease-liquid), box-shadow 0.36s var(--rg-ease-liquid);
}

.registration-flow .reg-glass-step.is-complete .reg-glass-step__connector {
    background: rgba(var(--rg-aqua), 0.5);
    box-shadow: 0 0 12px rgba(var(--rg-aqua), 0.22);
}

.registration-flow .reg-glass-step__node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--rg-glass-border);
    background: var(--rg-glass-fill);
    backdrop-filter: var(--rg-blur);
    -webkit-backdrop-filter: var(--rg-blur);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    color: var(--bs-secondary-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition:
        background 0.36s var(--rg-ease-liquid),
        border-color 0.36s var(--rg-ease-liquid),
        box-shadow 0.36s var(--rg-ease-liquid),
        transform 0.36s var(--rg-ease-liquid),
        color 0.2s ease;
}

.registration-flow .reg-glass-step__node .fa-check {
    font-size: 0.68rem;
}

.registration-flow .reg-glass-step.is-complete .reg-glass-step__node {
    background: rgba(var(--rg-aqua), 0.22);
    border-color: rgba(var(--rg-aqua), 0.62);
    color: #0d9488;
    box-shadow: 0 0 16px rgba(var(--rg-aqua), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.registration-flow .reg-glass-step.is-active .reg-glass-step__node {
    background: rgba(var(--rg-violet), 0.2);
    border-color: rgba(var(--rg-violet), 0.62);
    color: #6d28d9;
    box-shadow: 0 0 18px rgba(var(--rg-violet), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: reg-glass-step-pulse 2s ease infinite;
}

@keyframes reg-glass-step-pulse {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(var(--rg-violet), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 26px rgba(var(--rg-violet), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.registration-flow .reg-glass-step__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
    font-size: 0.7rem;
    line-height: 1.15;
    font-weight: 500;
    color: var(--bs-secondary-color);
    opacity: 0.55;
    white-space: nowrap;
    transition: opacity 0.25s ease, font-weight 0.25s ease, color 0.25s ease;
}

.registration-flow .reg-glass-step__icon {
    font-size: 0.68rem;
    opacity: 0.75;
}

.registration-flow .reg-glass-step.is-active .reg-glass-step__label {
    opacity: 1;
    font-weight: 600;
    color: var(--bs-primary);
}

.registration-flow .reg-glass-step.is-complete .reg-glass-step__label {
    opacity: 0.72;
    color: var(--bs-body-color);
}

@supports not (backdrop-filter: blur(1px)) {
    .registration-flow .reg-glass-step__node {
        background: rgba(255, 255, 255, 0.92);
    }
}

@media (prefers-reduced-motion: reduce) {
    .registration-flow .reg-glass-step.is-active .reg-glass-step__node {
        animation: none;
    }
}

@media (max-width: 400px) {
    .registration-flow .reg-glass-step__node {
        width: 32px;
        height: 32px;
        font-size: 0.68rem;
    }

    .registration-flow .reg-glass-step__label {
        font-size: 0.62rem;
    }

    .registration-flow .reg-glass-step {
        gap: 0.35rem;
    }
}

.reg-stepper__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
    border: 2px solid rgba(var(--bs-secondary-rgb), 0.45);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.reg-stepper__item.is-current .reg-stepper__dot {
    color: #fff;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.22);
}

.reg-stepper__item.is-done .reg-stepper__dot {
    color: #fff;
    background: var(--bs-success);
    border-color: var(--bs-success);
    font-size: 0.65rem;
}

.reg-stepper__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.62rem;
    line-height: 1.15;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

@media (min-width: 768px) {
    .reg-stepper__label {
        font-size: 0.7rem;
    }
}

.reg-stepper__item.is-current .reg-stepper__label {
    color: var(--bs-primary);
    font-weight: 600;
}

.reg-stepper__item.is-done .reg-stepper__text {
    color: var(--bs-body-color);
    opacity: 0.85;
}

.reg-stepper__icon {
    font-size: 0.75rem;
    opacity: 0.85;
}

.registration-flow .reg-form-block {
    padding: 0;
}

.registration-flow #smsOtp.reg-otp-panel,
.registration-flow #emailOtp.reg-otp-panel {
    margin-top: 1rem;
    padding: 1.15rem 0.75rem !important;
    border-radius: 0.65rem;
    background: rgba(var(--bs-primary-rgb), 0.06);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
}

.registration-flow #smsOtp.reg-otp-panel h4,
.registration-flow #emailOtp.reg-otp-panel h4,
.registration-flow #smsOtp.reg-otp-panel .client-login-otp__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.registration-flow #smsOtp.reg-otp-panel p,
.registration-flow #emailOtp.reg-otp-panel p,
.registration-flow #smsOtp.reg-otp-panel .client-login-otp__hint {
    margin-bottom: 0.75rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.registration-flow .btn-otp {
    min-width: 8rem;
    border-radius: 0.55rem;
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.2);
}

.registration-flow .reg-otp-panel .otp-field {
    column-gap: 0.5rem;
}

.registration-flow .reg-otp-panel .otp-field input {
    height: 48px;
    width: 1.85rem;
    min-width: 2.5rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(var(--bs-secondary-rgb), 0.25);
    font-weight: 600;
}

.registration-flow .reg-otp-panel .otp-field input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
}

.reg-upload-intro {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.registration-flow .dropzone.reg-dropzone,
.registration-flow .dropzone.reg-dropzone.dz-clickable {
    border-radius: 0.75rem !important;
    border: 2px dashed rgba(var(--bs-primary-rgb), 0.4) !important;
    background: rgba(var(--bs-light-rgb), 0.75) !important;
    min-height: 160px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.registration-flow .dropzone.reg-dropzone:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.65) !important;
    background: rgba(var(--bs-primary-rgb), 0.04) !important;
}

/* ——— Registration final step (terms, referral, submit) ——— */
.registration-flow .reg-final-step {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-width: 40rem;
    margin: 0 auto;
}

.registration-flow .reg-final-step__card {
    padding: 1.2rem 1.3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 8px 32px rgba(15, 23, 42, 0.07);
}

.registration-flow .reg-final-step__card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.registration-flow .reg-final-step__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

.registration-flow .reg-final-step__card-head-text {
    min-width: 0;
}

.registration-flow .reg-final-step__card-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
    color: var(--bs-body-color);
    line-height: 1.25;
}

.registration-flow .reg-final-step__card-hint {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--bs-secondary-color);
    margin: 0;
}

.registration-flow .reg-final-step__input {
    border-radius: 0.65rem;
    border: 1px solid rgba(var(--bs-secondary-rgb), 0.22);
    font-weight: 500;
}

.registration-flow .reg-final-step__input:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.18);
}

.registration-flow .reg-final-step__checks {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.registration-flow .reg-final-step__check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.95rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.registration-flow .reg-final-step__check:has(.form-check-input:focus-visible) {
    border-color: rgba(var(--bs-primary-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}

.registration-flow .reg-final-step__check .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.2rem;
    flex-shrink: 0;
    cursor: pointer;
}

.registration-flow .reg-final-step__check .form-check-label {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
    color: var(--bs-body-color);
}

.registration-flow .reg-final-step__check .form-check-label a {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.registration-flow .reg-final-step__check .form-check-label a:hover {
    color: var(--bs-primary-text-emphasis, #052c65);
}

.registration-flow .reg-final-step__pos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.15rem;
    border-radius: 0.9rem;
    background: linear-gradient(
        135deg,
        rgba(var(--bs-info-rgb), 0.14) 0%,
        rgba(var(--bs-primary-rgb), 0.08) 55%,
        rgba(255, 255, 255, 0.5) 100%
    );
    border: 1px solid rgba(var(--bs-info-rgb), 0.28);
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.06);
}

.registration-flow .reg-final-step__pos-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 12rem;
    min-width: 0;
}

.registration-flow .reg-final-step__pos-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    flex-shrink: 0;
    color: var(--bs-info);
    background: rgba(var(--bs-info-rgb), 0.15);
    border: 1px solid rgba(var(--bs-info-rgb), 0.25);
}

.registration-flow .reg-final-step__pos-check {
    margin: 0;
    padding: 0;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.registration-flow .reg-final-step__pos-check .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.15rem;
    flex-shrink: 0;
    cursor: pointer;
}

.registration-flow .reg-final-step__pos-check .form-check-label {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
}

.registration-flow .reg-final-step__pos-info {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.registration-flow .reg-final-step__submit {
    display: flex;
    justify-content: center;
    padding-top: 0.35rem;
}

.registration-flow .reg-final-step__submit-btn {
    width: 100%;
    max-width: 22rem;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 0.8rem;
    border: none;
    box-shadow:
        0 4px 14px rgba(25, 135, 84, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.registration-flow .reg-final-step__submit-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 28px rgba(25, 135, 84, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.registration-flow .reg-final-step__submit-btn:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .registration-flow .reg-final-step__submit-btn:hover,
    .registration-flow .reg-final-step__submit-btn:active {
        transform: none;
    }
}

.registration-flow .d-flex.justify-content-around.gap-1,
.registration-flow .d-flex.justify-content-around {
    flex-wrap: wrap;
    gap: 0.5rem !important;
}

.registration-flow .row.justify-content-center .col-4,
.registration-flow .row.justify-content-center .col-6 {
    flex: 1 1 auto;
    min-width: min(100%, 11rem);
}

.registration-flow .row.justify-content-center .d-grid {
    width: 100%;
}

.registration-flow .btn-primary {
    border-radius: 0.5rem;
}

/* ——— Customer portal (views/customer.php) ——— */
.customer-area__header {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.06) 0%, transparent 100%);
}

.customer-area__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 0.35rem;
}

.customer-area__title {
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--bs-body-color);
}

.customer-area__title--admin {
    font-weight: 700;
}

.customer-area__subtitle {
    font-size: 0.92rem;
    max-width: 36rem;
    line-height: 1.45;
}

.customer-area__status-label {
    font-weight: 600;
}

.customer-area__content {
    padding-bottom: 2rem;
}

.customer-area__toolbar {
    padding: 0.65rem 0;
}

.customer-area__toolbar-hint {
    max-width: 32rem;
    line-height: 1.45;
}

.customer-area__btn-upload {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.22);
}

.customer-area__status-select {
    min-width: min(100%, 12rem);
}

.customer-area__notes-form textarea {
    border-radius: 0.5rem;
}

.cust-card {
    border: 1px solid rgba(var(--bs-secondary-rgb), 0.15);
    border-radius: 0.85rem;
    overflow: hidden;
}

.cust-card .card-header {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.12);
    padding: 1rem 1.15rem;
}

.cust-card__head-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.cust-card__icon {
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(145deg, var(--bs-primary) 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.25);
}

.cust-card__icon--docs {
    background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
}

.cust-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bs-body-color);
}

.cust-card__kicker {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

.cust-detail-list__item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.1);
    align-items: flex-start;
}

.cust-detail-list__item:last-child {
    border-bottom: none;
}

.cust-detail-list__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    font-size: 0.85rem;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.cust-detail-list__text {
    min-width: 0;
    flex: 1;
}

.cust-detail-list__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin-bottom: 0.2rem;
}

.cust-detail-list__value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bs-body-color);
    word-break: break-word;
}

.cust-card__body--table {
    padding: 1rem 1.15rem 1.25rem;
}

.customer-area .cust-card__body--table .table {
    margin-bottom: 0;
    vertical-align: middle;
}

.customer-area .cust-card__body--table .table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--bs-secondary-color);
    border-bottom-width: 1px;
}

.customer-area .cust-card__body--table .table td {
    font-size: 0.9rem;
}

.customer-area__modal .modal-header {
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.12);
}

.customer-area__modal .modal-body {
    padding-top: 1.25rem;
}

/* ——— Staff / admin main content (header.php body.staff-portal) ——— */
.customer-portal .app-header.navbar,
.staff-portal .app-header.navbar {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.staff-portal .app-content-header {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.06) 0%, transparent 100%);
    border-bottom: 0;
    padding-bottom: 0.35rem;
}

.staff-portal .app-content-header h3 {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--bs-body-color);
}

.staff-portal .app-content {
    padding-bottom: 2rem;
}

.staff-portal .app-content .breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.staff-portal .app-content .card {
    border: 1px solid rgba(var(--bs-secondary-rgb), 0.15);
    border-radius: 0.85rem;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.staff-portal .app-content .card .card-header {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.12);
    font-weight: 700;
}

.staff-portal .small-box {
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.staff-portal .section .card .card-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.staff-portal .settings-page__card .card-header {
    padding: 1rem 1.15rem;
}

.staff-portal .settings-page__table {
    font-size: 0.92rem;
}

.staff-portal .settings-page__table code {
    font-size: 0.88em;
}

/* ——— Portal sidebars: mesh (header.php .portal-sidebar + .cust-sidebar | .admin-sidebar) ——— */
.app-sidebar.portal-sidebar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0a0f1a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

/* Animated mesh (same language as sign-in mesh, scaled to narrow column) */
.app-sidebar.portal-sidebar::before {
    content: "";
    position: absolute;
    /* Extra bleed so translate/scale never uncovers the solid sidebar fill */
    inset: -12%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 140% 90% at 10% 15%, rgba(59, 130, 246, 0.42), transparent 52%),
        radial-gradient(ellipse 120% 80% at 95% 10%, rgba(168, 85, 247, 0.38), transparent 48%),
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(45, 212, 191, 0.28), transparent 45%),
        radial-gradient(ellipse 80% 60% at 70% 45%, rgba(236, 72, 153, 0.12), transparent 42%),
        linear-gradient(175deg, #0a0f1a 0%, #111827 45%, #0c1424 100%);
    animation: cust-sidebar-mesh 22s ease-in-out infinite alternate;
}

.app-sidebar.portal-sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.32;
    background:
        radial-gradient(circle at 35% 55%, rgba(255, 255, 255, 0.07), transparent 40%),
        radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.05), transparent 38%);
    animation: cust-sidebar-shimmer 28s ease-in-out infinite alternate-reverse;
}

@keyframes cust-sidebar-mesh {
    0% {
        transform: translate(0, 0) scale(1);
        filter: hue-rotate(0deg) saturate(1);
    }
    100% {
        transform: translate(-2%, 1.5%) scale(1.03);
        filter: hue-rotate(14deg) saturate(1.06);
    }
}

@keyframes cust-sidebar-shimmer {
    0% {
        transform: translate(5%, -3%) rotate(0deg);
    }
    100% {
        transform: translate(-5%, 3%) rotate(1.5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar.portal-sidebar::before,
    .app-sidebar.portal-sidebar::after {
        animation: none;
    }

    .app-sidebar.portal-sidebar::before {
        transform: none;
        filter: none;
    }
}

.app-sidebar.portal-sidebar .sidebar-brand,
.app-sidebar.portal-sidebar .cust-sidebar-account,
.app-sidebar.portal-sidebar .admin-sidebar-account,
.app-sidebar.portal-sidebar .sidebar-wrapper {
    position: relative;
    z-index: 1;
}

.app-sidebar.portal-sidebar .sidebar-wrapper {
    background-color: transparent !important;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.app-sidebar.portal-sidebar .sidebar-wrapper::-webkit-scrollbar {
    width: 6px;
}

.app-sidebar.portal-sidebar .sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* AdminLTE .sidebar-brand uses overflow:hidden + nowrap — clips taglines */
.app-sidebar.cust-sidebar .sidebar-brand.cust-sidebar-brand,
.app-sidebar.admin-sidebar .sidebar-brand.admin-sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
    white-space: normal;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-sidebar.cust-sidebar .sidebar-brand,
.app-sidebar.cust-sidebar .cust-sidebar-account,
.app-sidebar.admin-sidebar .sidebar-brand,
.app-sidebar.admin-sidebar .admin-sidebar-account {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cust-sidebar-brand,
.admin-sidebar-brand {
    padding: 1rem 0.85rem 0.95rem;
}

.cust-sidebar-brand__link,
.admin-sidebar-brand__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0;
    text-decoration: none;
    flex: 0 0 auto;
}

.cust-sidebar-brand__link--logo,
.admin-sidebar-brand__link--logo {
    display: block;
    padding: 0.2rem 0;
    line-height: 0;
}

.cust-sidebar-brand__logo,
.admin-sidebar-brand__logo {
    max-height: 2.35rem;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.cust-sidebar-brand__link--logo:focus-visible,
.admin-sidebar-brand__link--logo:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.65);
    outline-offset: 3px;
    border-radius: 0.35rem;
}

.cust-sidebar-brand__link:hover .cust-sidebar-brand__title,
.admin-sidebar-brand__link:hover .admin-sidebar-brand__title {
    color: #fff;
}

.cust-sidebar-brand__mark,
.admin-sidebar-brand__mark {
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 55%, #06b6d4 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.cust-sidebar-brand .cust-sidebar-brand__title,
.admin-sidebar-brand .admin-sidebar-brand__title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
    min-width: 0;
}

.cust-sidebar-brand__tagline,
.admin-sidebar-brand__tagline {
    margin: 0.55rem 0 0;
    padding: 0;
    width: 100%;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.55);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cust-sidebar-account,
.admin-sidebar-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.85rem;
    margin: 0;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cust-sidebar-account__avatar,
.admin-sidebar-account__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.35);
    font-size: 1rem;
}

.cust-sidebar-account__meta,
.admin-sidebar-account__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cust-sidebar-account__eyebrow,
.admin-sidebar-account__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.45);
}

.cust-sidebar-account__cta,
.admin-sidebar-account__cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: #93c5fd;
    text-decoration: none;
    line-height: 1.3;
}

.cust-sidebar-account__cta:hover,
.admin-sidebar-account__cta:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.cust-sidebar .cust-sidebar__nav-header,
.admin-sidebar .admin-sidebar__nav-header {
    margin-top: 0.5rem;
    padding: 0.65rem 1rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.4) !important;
}

.cust-sidebar .cust-sidebar__nav-header--spaced {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cust-sidebar .cust-sidebar__nav-link,
.admin-sidebar .admin-sidebar__nav-link {
    border-radius: 0.55rem;
    margin: 0.15rem 0.65rem;
    padding: 0.65rem 0.75rem;
    align-items: flex-start;
    color: rgba(248, 250, 252, 0.85) !important;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.cust-sidebar .cust-sidebar__nav-link:hover,
.admin-sidebar .admin-sidebar__nav-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

.cust-sidebar .cust-sidebar__nav-link.active,
.admin-sidebar .admin-sidebar__nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35);
}

.cust-sidebar .cust-sidebar__nav-link .nav-icon,
.admin-sidebar .admin-sidebar__nav-link .nav-icon {
    margin-top: 0.15rem;
    color: #93c5fd;
    opacity: 0.95;
}

.cust-sidebar .cust-sidebar__nav-link.active .nav-icon,
.admin-sidebar .admin-sidebar__nav-link.active .nav-icon {
    color: #e0e7ff;
}

.cust-sidebar .cust-sidebar__nav-link > p,
.admin-sidebar .admin-sidebar__nav-link > p {
    margin: 0;
    line-height: 1.25;
    font-weight: 600;
    font-size: 0.92rem;
}

.cust-sidebar__hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(248, 250, 252, 0.45);
    text-transform: none;
}

.cust-sidebar .cust-sidebar__nav-link.active .cust-sidebar__hint {
    color: rgba(248, 250, 252, 0.65);
}

.cust-sidebar__lang-item {
    margin: 0.35rem 0.85rem 1rem;
    padding: 0 0.15rem;
    list-style: none;
}

.cust-sidebar__lang-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.45);
    margin-bottom: 0.4rem;
}

.cust-sidebar__lang-select {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 0.45rem;
}

.cust-sidebar__lang-select:focus {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cust-sidebar__lang-select option {
    color: #0f172a;
}

.cust-sidebar__logout-item,
.admin-sidebar__logout-item {
    margin: 0.75rem 0.65rem 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

.cust-sidebar .cust-sidebar__nav-link--logout .nav-icon,
.admin-sidebar .admin-sidebar__nav-link--logout .nav-icon {
    color: rgba(248, 250, 252, 0.65);
}

.cust-sidebar .cust-sidebar__nav-link--logout:hover,
.admin-sidebar .admin-sidebar__nav-link--logout:hover {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fecaca !important;
}

.cust-sidebar .cust-sidebar__nav-link--logout:hover .nav-icon,
.admin-sidebar .admin-sidebar__nav-link--logout:hover .nav-icon {
    color: #fca5a5;
}

/* ——— Support page (views/support.php) ——— */
.support-page__header {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.06) 0%, transparent 100%);
}

.support-page__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 0.35rem;
}

.support-page__title {
    font-size: clamp(1.45rem, 3.2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--bs-body-color);
}

.support-page__title--simple {
    font-weight: 700;
}

.support-page__lead {
    font-size: 0.95rem;
    max-width: 36rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.support-page__content {
    padding-bottom: 2.5rem;
}

.support-card {
    border: 1px solid rgba(var(--bs-secondary-rgb), 0.15);
    border-radius: 0.85rem;
    overflow: hidden;
}

.support-card__head {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.12);
    padding: 1rem 1.2rem;
}

.support-card__head-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.support-card__icon {
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(145deg, var(--bs-primary) 0%, #2563eb 100%);
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.28);
}

.support-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bs-body-color);
}

.support-card__kicker {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--bs-secondary-color);
}

.support-card__body {
    padding: 1.35rem 1.25rem 1.5rem;
}

@media (min-width: 576px) {
    .support-card__body {
        padding: 1.5rem 1.65rem 1.65rem;
    }
}

.support-form__legend {
    width: 100%;
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.12);
}

.support-form__label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--bs-body-color);
}

.support-form__input-wrap {
    position: relative;
}

.support-form__input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    opacity: 0.75;
    pointer-events: none;
    z-index: 2;
}

.support-form__input {
    border-radius: 0.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    border-color: rgba(var(--bs-secondary-rgb), 0.28);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.support-form__input--readonly {
    padding-left: 2.5rem;
    background-color: rgba(var(--bs-secondary-rgb), 0.08);
    cursor: default;
}

.support-form__input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

.support-form__message {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(var(--bs-secondary-rgb), 0.12);
}

.support-form__textarea {
    border-radius: 0.55rem;
    min-height: 9rem;
    padding: 0.75rem 0.9rem;
    line-height: 1.5;
    border-color: rgba(var(--bs-secondary-rgb), 0.3);
    resize: vertical;
}

.support-form__textarea:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.18);
}

.support-form__hint {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--bs-secondary-color);
}

.support-form__actions {
    margin-top: 1.35rem;
}

.support-form__submit {
    font-weight: 600;
    border-radius: 0.55rem;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.22);
}

.support-page .alert {
    border-radius: 0.55rem;
    max-width: 100%;
}

.customer-portal .support-page .row.justify-content-center > .col-xl-7 > .alert {
    margin-bottom: 1rem;
}