/* Global layout styles moved from app.blade */
/* Slightly smaller root (14px) so Bootstrap rem utilities and typography read denser site-wide. */
html {
    overflow-x: hidden;
    max-width: 100%;
    font-size: 14px;
}

body {
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    max-width: 100%;
}

.navbar {
    background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.05rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.nav-link:hover {
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 15px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #e9ecef;
    color: #0f2027;
    transform: translateX(4px);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -10px;
    min-width: 220px;
}

.dropdown-menu > li:hover > .dropdown-submenu {
    display: block;
}

@media (max-width: 991px) {
    .dropdown-submenu {
        position: static;
        display: none;
        padding-left: 20px;
        box-shadow: none;
        border: none;
    }

    .dropdown-menu > li:hover > .dropdown-submenu {
        display: block;
    }
}

.nav-link-spa,
.public-filter-link,
.view-product-btn {
    cursor: pointer;
}

/* Placeholder font-weight */
::placeholder {
    font-weight: 300;
    opacity: 0.85;
}

:-ms-input-placeholder {
    font-weight: 300;
    opacity: 0.85;
}

::-ms-input-placeholder {
    font-weight: 300;
    opacity: 0.85;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
    font-weight: 300;
}

/* CIBIL steps styles moved from user_cibil_check */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 15px;
    font-weight: bold;
    color: #adb5bd;
    transition: 0.3s;
}

.step-item.active {
    color: #0d6efd;
}

.step-item.completed {
    color: #198754;
}

.otp-input-box {
    letter-spacing: 15px;
    font-size: 2rem;
    text-align: center;
    border: 2px solid #0d6efd;
    border-radius: 15px;
    font-weight: bold;
}

/* Register page specific */
.register-card {
    background: #f5f7fb;
}

.register-header {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 100%) !important;
}

/* Panel sidebar embedded in the mobile offcanvas menu (dashboard pages) */
.ntpl-navbar-panel-heading {
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.ntpl-navbar-panel-wrap .ntpl-panel-sidebar {
    border-right: none;
    border-radius: 0.85rem;
    min-height: 0;
    overflow: visible;
}

.ntpl-navbar-panel-wrap .ntpl-panel-sidebar-inner {
    padding: 0.85rem 0.65rem 1rem;
}

.ntpl-panel-sidebar--embed .ntpl-panel-sidebar-inner {
    padding: 0.5rem 0.45rem 0.65rem;
}

/* Top nav — desktop uses a horizontal cluster; mobile uses an offcanvas menu. */
@media (max-width: 991.98px) {
    .ntpl-topnav {
        min-height: 58px;
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: max(0px, env(safe-area-inset-right, 0px));
    }

    .ntpl-topnav .navbar-brand {
        font-size: 1rem;
    }

    .ntpl-mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
    }

    .ntpl-topnav .nav-link:not(.ntpl-nav-cta) {
        text-transform: none;
        letter-spacing: 0.02em;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .ntpl-topnav .ntpl-nav-cta {
        text-transform: none;
        letter-spacing: 0;
    }
}

.ntpl-mobile-menu {
    --bs-offcanvas-width: min(88vw, 370px);
    color: #e2e8f0;
    background: linear-gradient(180deg, #0f172a 0%, #172033 48%, #111827 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.28);
}

.ntpl-mobile-menu__header {
    min-height: 58px;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ntpl-mobile-menu__body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.95rem max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ntpl-mobile-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ntpl-mobile-primary-nav {
    display: grid;
    gap: 0.45rem;
}

.ntpl-mobile-menu-heading {
    margin: 0.2rem 0 0.5rem;
    padding-left: 0.15rem;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ntpl-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.85rem;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    text-align: left;
}

.ntpl-mobile-menu-link:hover,
.ntpl-mobile-menu-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.ntpl-mobile-menu-link i {
    width: 1.25rem;
    text-align: center;
}

.ntpl-mobile-menu-link--cta {
    color: #ecfdf5;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.38), rgba(13, 148, 136, 0.28));
    border-color: rgba(74, 222, 128, 0.32);
}

.ntpl-mobile-menu-link--light {
    color: #0f172a;
    background: #fff;
}

.ntpl-mobile-menu-link--danger {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(248, 113, 113, 0.28);
}

.ntpl-mobile-token-card {
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ntpl-mobile-token-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-height: 40px;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 0.7rem;
    padding: 0.45rem 0.55rem;
}

.ntpl-mobile-token-row:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ntpl-mobile-token-row strong {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
    .ntpl-mobile-menu {
        --bs-offcanvas-width: 92vw;
    }
}

/* -------------------------------------------------------------------------- */
/* Credit Pro — “Pro” pill + shine (shared: admin, vendor, user, tables)    */
/* -------------------------------------------------------------------------- */
.ntpl-token-pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 0.15rem 0.5rem 0.12rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 8px rgba(79, 70, 229, 0.35);
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    line-height: 1;
}

.ntpl-token-pro-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -40%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    transform: rotate(18deg);
    animation: ntpl-token-pro-shine 2.4s ease-in-out infinite;
    pointer-events: none;
}

.ntpl-token-pro-badge.ntpl-token-pro-badge--sm {
    font-size: 0.58rem;
    padding: 0.1rem 0.38rem 0.08rem;
}

.ntpl-token-pro-badge.ntpl-token-pro-badge--sm::after {
    animation-duration: 3.2s;
    opacity: 0.55;
}

.ntpl-token-pro-tab .ntpl-token-pro-badge {
    margin-left: 0.35rem;
}

.ntpl-token-pro-tab:not(.ntpl-token-pro-tab--active) .ntpl-token-pro-badge {
    opacity: 0.92;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 1px 4px rgba(79, 70, 229, 0.2);
}

.ntpl-token-pro-tab:not(.ntpl-token-pro-tab--active) .ntpl-token-pro-badge::after {
    animation-duration: 3.6s;
    opacity: 0.85;
}

@keyframes ntpl-token-pro-shine {
    0% {
        left: -45%;
    }
    100% {
        left: 140%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ntpl-token-pro-badge::after {
        animation: none;
        left: 55%;
        opacity: 0.25;
    }
}

.ntpl-token-pro-tab.ntpl-token-pro-tab--active {
    background: linear-gradient(135deg, #312e81 0%, #5b21b6 55%, #6d28d9 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(91, 33, 182, 0.35);
}

.ntpl-token-pro-tab.ntpl-token-pro-tab--active .ntpl-token-pro-badge {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 0 14px rgba(255, 255, 255, 0.35);
}

/* Credit Pro toggle inside Bootstrap btn-check (user credit check page) */
.btn-check:checked + .btn .ntpl-token-pro-badge {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 12px rgba(255, 255, 255, 0.4);
}

.btn-check:not(:checked) + .btn .ntpl-token-pro-badge::after {
    animation-duration: 3.2s;
    opacity: 0.75;
}

/* Prefill — pill + tab (vendor / admin token type) */
.ntpl-prefill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    padding: 0.15rem 0.48rem 0.12rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 45%, #2dd4bf 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 8px rgba(13, 148, 136, 0.35);
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    line-height: 1;
}

.ntpl-prefill-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -40%;
    width: 42%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(16deg);
    animation: ntpl-token-pro-shine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.ntpl-prefill-tab > .ntpl-prefill-badge:first-child {
    margin-left: 0;
}

.ntpl-prefill-tab.ntpl-prefill-tab--active {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

.ntpl-prefill-tab.ntpl-prefill-tab--active .ntpl-prefill-badge {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 0 12px rgba(255, 255, 255, 0.28);
}

.ntpl-prefill-badge.ntpl-prefill-badge--sm {
    font-size: 0.55rem;
    padding: 0.08rem 0.32rem 0.06rem;
}

/* Vendor nav: token balances dropdown */
.ntpl-nav-token-dd-toggle {
    background: linear-gradient(145deg, #fef3c7 0%, #fcd34d 55%, #f59e0b 100%);
    box-shadow:
        0 4px 14px rgba(245, 158, 11, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ntpl-nav-token-dd-toggle:hover {
    filter: brightness(1.03);
}

.ntpl-nav-token-dd-toggle::after {
    margin-left: 0.1rem;
    vertical-align: 0.15em;
}

.ntpl-nav-token-dd-toggle__pill {
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .ntpl-nav-token-dd-toggle__pill {
        max-width: 6.5rem;
    }
}

.ntpl-nav-token-dd-menu {
    min-width: 15.5rem;
    border: 1px solid #e9eef5 !important;
}

.ntpl-tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Top nav: dashboard + account avatar (professional cluster) */
.ntpl-topnav .ntpl-navbar-actions .ntpl-nav-dashboard-link {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.ntpl-topnav .ntpl-navbar-actions .ntpl-nav-dashboard-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.ntpl-topnav .ntpl-nav-user-toggle {
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.ntpl-topnav .ntpl-nav-user-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.ntpl-topnav .ntpl-nav-user-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.ntpl-topnav .ntpl-nav-user-toggle.dropdown-toggle::after {
    margin-left: 0.15rem;
    opacity: 0.85;
    vertical-align: 0.2em;
}

.ntpl-topnav .ntpl-nav-user-avatar {
    object-fit: cover;
    background: rgba(255, 255, 255, 0.15);
}

.ntpl-topnav .ntpl-nav-user-menu {
    min-width: 15rem;
    border: 1px solid #e9eef5 !important;
}

