:root {
    --ecp-primary: #1677ff;
    --ecp-primary-2: #20b7e8;
    --ecp-accent: #19c6b3;
    --ecp-bg: #f4f7fc;
    --ecp-card: rgba(255, 255, 255, .96);
    --ecp-text: #17233f;
    --ecp-muted: #77819a;
    --ecp-border: #e5e9f3;
    --ecp-shadow: 0 12px 32px rgba(39, 52, 93, .075);
}

html body {
    background: var(--ecp-bg);
    color: var(--ecp-text);
}

.app-content,
.content-wrapper,
.content-body {
    position: relative;
}

.app-content::before {
    content: "";
    position: fixed;
    inset: 0 0 auto auto;
    width: 38rem;
    height: 38rem;
    pointer-events: none;
    opacity: .55;
    background: radial-gradient(circle, rgba(22, 119, 255, .14), transparent 68%);
    transform: translate(30%, -38%);
    z-index: 0;
}

.card {
    border: 1px solid rgba(229, 233, 243, .9) !important;
    border-radius: 18px !important;
    background: var(--ecp-card);
    box-shadow: var(--ecp-shadow) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    border-color: rgba(22, 119, 255, .16) !important;
    box-shadow: 0 16px 38px rgba(39, 52, 93, .11) !important;
}

.card-header,
.card-footer {
    background: transparent !important;
    border-color: var(--ecp-border) !important;
}

.main-menu {
    background: #fff !important;
    border-left: 1px solid var(--ecp-border) !important;
    box-shadow: -8px 0 32px rgba(39, 52, 93, .07) !important;
}

.main-menu .navbar-header,
.main-menu-content,
.main-menu .navigation,
.main-menu.menu-accordion.expanded,
.main-menu.menu-accordion.expanded .navigation {
    background: #fff !important;
}

/* Match the legacy RTL selector specificity as well, so an older cached
   stylesheet can never restore the former purple sidebar. */
html body .menu-collapsed .main-menu.menu-accordion.expanded,
html body .menu-collapsed .main-menu.menu-accordion.expanded .navigation,
html body.vertical-overlay-menu .main-menu.menu-accordion.expanded,
html body.vertical-overlay-menu .main-menu.menu-accordion.expanded .navigation,
html body.vertical-overlay-menu.menu-open .main-menu.menu-accordion,
html body.vertical-overlay-menu.menu-open .main-menu.menu-accordion .navigation,
html body .main-menu.menu-accordion .navigation {
    background: #fff !important;
}

.main-menu .navbar-header {
    border-bottom: 1px solid #eef1f7;
    min-height: 86px;
}

.ecp-sidebar-brand-image {
    display: block;
    width: 176px;
    max-width: 100%;
    height: 58px;
    object-fit: contain;
    object-position: right center;
}

.main-menu .main-menu-content {
    padding-top: 20px;
}

html body.menu-collapsed .main-menu .ecp-sidebar-brand-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    object-position: left center;
}

.main-menu .navbar-header .navbar-brand .brand-logo {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px;
    border-radius: 13px;
    background-color: #00132f !important;
    background-image: url("../images/logo/logo-mark.svg") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    box-shadow: 0 8px 18px rgba(0, 43, 94, .18);
}

.auth-wrapper img[src*="images/logo/logo.png"],
.authentication-wrapper img[src*="images/logo/logo.png"] {
    width: min(78%, 420px) !important;
    max-width: 420px !important;
    height: auto !important;
    border-radius: 10px;
}

.main-menu .navigation > li > a,
.main-menu .navigation li a,
.main-menu .navbar-header .navbar-brand .brand-text {
    color: #56627b !important;
}

.main-menu .navbar-header .navbar-brand .brand-text {
    color: var(--ecp-text) !important;
    font-weight: 800;
    letter-spacing: -.3px;
}

.main-menu .modern-nav-toggle svg,
.main-menu .modern-nav-toggle i {
    color: var(--ecp-primary) !important;
}

.main-menu .navigation > li > a {
    margin: 4px 12px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    font-weight: 500;
}

.main-menu .navigation > li > a > svg,
.main-menu .navigation > li > a > i {
    width: 35px !important;
    height: 35px !important;
    padding: 8px;
    border-radius: 11px;
    color: var(--ecp-primary) !important;
    background: #f0f4ff;
    stroke-width: 1.8;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-menu .navigation > li.active > a,
.main-menu .navigation > li > a:hover,
.main-menu .navigation li.open > a {
    color: var(--ecp-primary) !important;
    background: linear-gradient(90deg, #eef2ff, #f2f9ff) !important;
    box-shadow: inset 3px 0 0 var(--ecp-primary);
}

.main-menu .navigation > li.active > a > svg,
.main-menu .navigation > li.active > a > i,
.main-menu .navigation > li > a:hover > svg,
.main-menu .navigation > li > a:hover > i {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ecp-primary), var(--ecp-primary-2));
    box-shadow: 0 7px 16px rgba(22, 119, 255, .22);
    transform: translateY(-1px);
}

.main-menu .navigation .menu-content {
    background: transparent !important;
    padding: 2px 17px 5px 8px !important;
}

.main-menu .navigation .menu-content li a {
    color: #6f7b93 !important;
    border-radius: 10px;
}

.main-menu .navigation .menu-content li.active > a,
.main-menu .navigation .menu-content li > a:hover {
    color: var(--ecp-primary) !important;
    background: #f3f6ff !important;
}

.main-menu .navigation-header,
.main-menu .navigation-header span {
    color: #a2aabd !important;
}

.main-menu.menu-accordion .navigation > li.active::before,
.main-menu.menu-accordion .navigation > li.active::after {
    display: none !important;
}

.header-navbar.navbar-shadow,
.header-navbar.floating-nav {
    border: 1px solid rgba(229, 233, 243, .85);
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .9) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--ecp-shadow) !important;
}

/* User identity in the top navigation */
.header-navbar .ecp-user-menu {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .3rem .45rem !important;
    border-radius: 14px;
    transition: background .2s ease, transform .2s ease;
}

.header-navbar .ecp-user-menu:hover {
    background: #f2f7ff;
    transform: translateY(-1px);
}

.header-navbar .ecp-user-menu .user-nav {
    gap: .12rem;
    padding: 0 !important;
    text-align: left;
}

.header-navbar .ecp-user-menu .user-name {
    color: #172b4d;
    font-size: .86rem;
    line-height: 1.4;
}

.header-navbar .ecp-user-menu .user-status {
    color: #8391a7;
    font-size: .7rem;
    direction: ltr;
}

.header-navbar .ecp-navbar-quick-link .nav-link {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin: 0 .1rem;
    padding: 0 !important;
    border-radius: 12px;
    color: #315372;
    background: #f2f7fc;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.header-navbar .ecp-navbar-quick-link .nav-link:hover {
    color: #087cff;
    background: #e6f3ff;
    transform: translateY(-1px);
}

.ecp-user-avatar {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 3px solid #fff;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,.34), transparent 27%),
        linear-gradient(145deg, #0b4385, #1677ff 58%, #18b9e6);
    box-shadow: 0 8px 20px rgba(22,119,255,.28), 0 0 0 1px rgba(22,119,255,.12);
    transform: rotate(-3deg);
}

.ecp-user-avatar::before {
    position: absolute;
    inset: 4px;
    content: "";
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 11px;
    pointer-events: none;
}

.ecp-user-avatar-initials {
    position: relative;
    z-index: 1;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: -.05em;
    transform: rotate(3deg);
}

.ecp-user-avatar-status {
    position: absolute;
    right: -3px;
    bottom: -3px;
    z-index: 2;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #20c997;
    box-shadow: 0 2px 7px rgba(32,201,151,.45);
}

.dropdown-menu,
.modal-content,
.offcanvas,
.swal2-popup {
    border: 1px solid var(--ecp-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 52px rgba(35, 55, 100, .14) !important;
}

.btn {
    border-radius: 11px !important;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn svg,
.btn i {
    vertical-align: -3px;
}

.btn:not(:disabled):not(.disabled):hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--ecp-primary), var(--ecp-primary-2)) !important;
    box-shadow: 0 8px 18px rgba(81, 91, 238, .24) !important;
}

.btn-success {
    border-color: transparent !important;
    background: linear-gradient(135deg, #19b99f, #20c997) !important;
}

.btn-danger {
    border-color: transparent !important;
    background: linear-gradient(135deg, #f05d72, #ef476f) !important;
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.input-group-text {
    min-height: 43px;
    border-color: var(--ecp-border) !important;
    border-radius: 11px !important;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: rgba(22, 119, 255, .55) !important;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .1) !important;
}

.table {
    --bs-table-bg: transparent;
    color: var(--ecp-text);
}

.table thead th {
    color: var(--ecp-muted);
    background: #f7f8fc;
    border: 0 !important;
    font-weight: 600;
}

.table tbody td {
    border-color: #edf0f6 !important;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color .18s ease;
}

.table tbody tr:hover {
    background: rgba(22, 119, 255, .035);
}

.avatar,
.avatar-content,
.profit-icon,
.icon-card,
.stats-icon {
    box-shadow: 0 8px 20px rgba(45, 68, 118, .1);
}

.pagination .page-link {
    border: 0 !important;
    border-radius: 10px !important;
    color: #64708a;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, var(--ecp-primary), var(--ecp-primary-2)) !important;
    box-shadow: 0 7px 16px rgba(22, 119, 255, .22);
}

.nav-pills {
    border-radius: 16px;
}

.nav-pills .nav-link {
    border-radius: 11px !important;
    color: #556079;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(22, 119, 255, .07);
    transform: translateX(-2px);
}

.nav-pills .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ecp-primary), var(--ecp-primary-2)) !important;
    box-shadow: 0 8px 18px rgba(22, 119, 255, .22);
}

.alert {
    border: 0 !important;
    border-radius: 13px !important;
}

.badge {
    border-radius: 8px !important;
}

.page-heading h1,
.content-header-title,
.card-title {
    color: var(--ecp-text) !important;
}

.text-muted,
small.text-muted {
    color: var(--ecp-muted) !important;
}

.input-double .grouped {
    overflow: hidden;
    border-radius: 13px !important;
    border-color: var(--ecp-border) !important;
}

.footer,
.footer.footer-static {
    margin-top: 1.25rem;
    padding: 0 1.5rem 1.25rem !important;
    background: transparent !important;
    color: #65738c !important;
}

.ecp-footer-content {
    position: relative;
    gap: .75rem 1.5rem;
    min-height: 66px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--ecp-border);
    border-radius: 17px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 28px rgba(35, 55, 100, .07);
    backdrop-filter: blur(12px);
}

.ecp-footer-brand {
    color: var(--ecp-primary) !important;
    font-weight: 800;
}

.ecp-footer-note {
    color: var(--ecp-muted);
}

.ecp-footer-note svg {
    color: var(--ecp-accent);
}

.ecp-footer-content .scroll-top {
    position: static !important;
    flex: 0 0 auto;
}

.dashboard-summary-row > .dashboard-summary-item {
    display: flex;
}

.dashboard-summary-row > .dashboard-summary-item > .card,
.dashboard-summary-row #dashboard-wallet-card > .card {
    width: 100%;
    height: calc(100% - 1rem);
}

.dashboard-summary-row .card-body {
    width: 100%;
}

.dashboard-summary-row .dashboard-tab-thumb {
    flex: 0 0 96px;
    width: 96px;
}

.dashboard-summary-row .earning-date {
    overflow: hidden;
}

/* User dashboard: unified wallet, verification and daily-limit overview */
.dashboard-overview-card {
    overflow: hidden;
    width: 100%;
    margin: 0 auto 1.25rem;
    border: 0 !important;
    background: #fff;
}

.dashboard-overview-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 170px;
    padding: 2rem 2.25rem;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(73, 211, 255, .35), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(25, 198, 179, .28), transparent 34%),
        linear-gradient(125deg, #071c41 0%, #0b4385 52%, #1677ff 100%);
}

.dashboard-overview-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .14;
    background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, #000);
}

.dashboard-user-block,
.dashboard-balance-block {
    position: relative;
    z-index: 1;
}

.dashboard-user-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 22px;
    color: #fff;
    background: rgba(255,255,255,.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 16px 35px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
}

.dashboard-user-avatar i { font-size: 2rem; }
.dashboard-eyebrow { display: block; margin-bottom: .4rem; color: #a9d8ff; font-size: .82rem; }
.dashboard-user-block h2 { margin: 0 0 .65rem; color: #fff; font-size: 1.35rem; font-weight: 800; }

.dashboard-kyc-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .7rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    color: #e7f5ff !important;
    background: rgba(255,255,255,.09);
}

.dashboard-kyc-link:hover { background: rgba(255,255,255,.17); }

.dashboard-balance-block {
    min-width: 260px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 18px;
    text-align: left;
    direction: rtl;
    background: rgba(2, 24, 58, .28);
    backdrop-filter: blur(12px);
}

.dashboard-balance-block span { display: block; margin-bottom: .35rem; color: #b9dcff; font-size: .82rem; }
.dashboard-balance-block strong { color: #fff; font-size: 2rem; font-weight: 900; letter-spacing: -.5px; }
.dashboard-balance-block small { margin-right: .35rem; color: #b9dcff; }

.dashboard-overview-content {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .85fr);
    gap: 1.25rem;
    padding: 1.5rem;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.dashboard-metric {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #edf1f7;
    border-radius: 15px;
    background: #fbfcff;
}

.dashboard-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    font-size: 1.15rem;
}

.dashboard-metric-icon.is-green { color: #0d9b77; background: #e7faf5; }
.dashboard-metric-icon.is-red { color: #e14862; background: #fff0f2; }
.dashboard-metric-icon.is-blue { color: #1677ff; background: #edf5ff; }
.dashboard-metric-icon.is-orange { color: #e88718; background: #fff6e7; }
.dashboard-metric small { display: block; margin-bottom: .25rem; color: var(--ecp-muted); }
.dashboard-metric strong { display: block; overflow: hidden; color: var(--ecp-text); text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; }

.dashboard-limit-panel {
    padding: 1.15rem;
    border: 1px solid #dfeafb;
    border-radius: 16px;
    background: linear-gradient(145deg, #f7fbff, #eef6ff);
}

.dashboard-limit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.dashboard-limit-head span { color: var(--ecp-muted); font-size: .82rem; }
.dashboard-limit-head strong { display: block; margin-top: .3rem; color: #0b3f7d; font-size: 1.25rem; }
.dashboard-limit-head strong small { color: #6482a7; font-size: .72rem; }
.dashboard-limit-percent { padding: .35rem .55rem; border-radius: 8px; color: #1677ff !important; background: #e3f0ff; white-space: nowrap; }
.dashboard-limit-track { height: 9px; overflow: hidden; margin: 1rem 0 1.2rem; border-radius: 99px; background: #dce8f6; }
.dashboard-limit-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #19c6b3, #1677ff); }
.dashboard-quick-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.dashboard-quick-actions .btn { flex: 1 1 125px; min-height: 42px; white-space: nowrap; }

/* Dashboard market list */
.market-list-toolbar {
    display: grid;
    grid-template-columns: auto minmax(380px, 1fr) minmax(210px, 300px);
    align-items: center;
    gap: 1rem;
    padding: .35rem .25rem 1.2rem;
}

.market-list-heading { display: flex; align-items: center; gap: .7rem; text-align: right; white-space: nowrap; }
.market-list-heading h3 { margin: 0 0 .18rem; color: var(--ecp-text); font-size: 1.05rem; font-weight: 800; }
.market-list-heading p { margin: 0; color: var(--ecp-muted); font-size: .72rem; }
.market-list-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; color: #1677ff; background: #edf5ff; }

.market-filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .3rem;
    border: 1px solid #edf0f6;
    border-radius: 13px;
    background: #f7f9fc;
}

.market-filter-btn {
    min-height: 38px;
    padding: .45rem .75rem;
    border: 0;
    border-radius: 9px;
    color: #6c7891;
    background: transparent;
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.market-filter-btn:hover { color: #1677ff; background: #fff; }
.market-filter-btn.active { color: #fff; background: linear-gradient(135deg, #1677ff, #20b7e8); box-shadow: 0 7px 16px rgba(22,119,255,.2); }
.market-filter-btn.is-gain.active { background: linear-gradient(135deg, #13a985, #20c997); }
.market-filter-btn.is-loss.active { background: linear-gradient(135deg, #e94d67, #f47787); }
.market-filter-btn.is-new.active { background: linear-gradient(135deg, #0f4f96, #1677ff); }

.market-search-wrap { position: relative; }
.market-search-wrap i { position: absolute; top: 50%; right: .9rem; z-index: 2; color: #8a96aa; transform: translateY(-50%); }
.market-search-wrap .form-control { padding-right: 2.35rem; }

.market-change-badge {
    display: inline-flex;
    align-items: center;
    direction: ltr;
    gap: .28rem;
    min-width: 76px;
    justify-content: center;
    padding: .38rem .55rem;
    border-radius: 9px;
    font-weight: 700;
}

.market-change-badge.is-positive { color: #0a9471; background: #e7faf5; }
.market-change-badge.is-negative { color: #df405c; background: #fff0f2; }
.market-change-empty { color: #aab2c1; }
.market-empty-state { padding: 3rem 1rem !important; color: var(--ecp-muted); }
.market-empty-state i { display: block; margin-bottom: .7rem; color: #aab8cc; font-size: 2rem; }
.market-empty-state strong { display: block; margin-bottom: .35rem; color: var(--ecp-text); }
.market-empty-state span { font-size: .82rem; }

.blank-page {
    background: var(--ecp-bg) !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ced6e7;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aebbd4;
}

@media (max-width: 767.98px) {
    .card { border-radius: 14px !important; }
    .header-navbar.floating-nav { border-radius: 13px !important; }
    .app-content::before { width: 24rem; height: 24rem; }
    .main-menu { box-shadow: -12px 0 45px rgba(35, 55, 100, .15) !important; }
    .footer,
    .footer.footer-static { padding: 0 .75rem 1rem !important; }
    .ecp-footer-content { padding: 1rem; }
    .dashboard-summary-row .dashboard-tab-thumb { flex-basis: 82px; width: 82px; }

    .auth-wrapper .btn[type="submit"],
    .authentication-wrapper .btn[type="submit"],
    body.blank-page form .btn[type="submit"] {
        min-height: 48px;
        min-width: 120px;
        padding: .75rem 1.1rem;
        touch-action: manipulation;
    }

    body.blank-page #goftino_w,
    #goftino_w {
        display: block !important;
        z-index: 1080 !important;
    }

    #navbar-mobile {
        min-width: 0;
        padding-right: .35rem !important;
        padding-left: .35rem !important;
    }

    #navbar-mobile .bookmark-wrapper {
        min-width: 0;
        gap: .15rem;
    }

    #navbar-mobile .bookmark-icons {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
    }

    #navbar-mobile .ecp-navbar-quick-link {
        display: block !important;
    }

    #navbar-mobile .ecp-navbar-quick-link .nav-link {
        width: 36px;
        height: 36px;
        margin: 0 .05rem;
        border-radius: 11px;
    }

    #navbar-mobile .mobile-menu .nav-link {
        padding-right: .45rem !important;
        padding-left: .45rem !important;
    }

    .dashboard-overview-card { width: 100%; }
    .dashboard-overview-hero { align-items: stretch; flex-direction: column; min-height: 0; padding: 1.2rem; }
    .dashboard-user-avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 18px; }
    .dashboard-user-block h2 { font-size: 1.05rem; }
    .dashboard-balance-block { min-width: 0; width: 100%; text-align: right; }
    .dashboard-balance-block strong { font-size: 1.65rem; }
    .dashboard-overview-content { grid-template-columns: 1fr; padding: 1rem; }
    .dashboard-metric-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .dashboard-metric { align-items: flex-start; flex-direction: column; padding: .8rem; }
    .dashboard-metric-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .dashboard-metric strong { white-space: normal; font-size: .78rem; }
    .dashboard-quick-actions .btn { flex-basis: 100%; min-height: 46px; }
    .market-list-toolbar { grid-template-columns: 1fr; padding: .8rem; }
    .market-filter-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .market-filter-tabs::-webkit-scrollbar { display: none; }
    .market-filter-btn { flex: 0 0 auto; min-height: 42px; }
    #dashboard_currencies .table-responsive { overflow-x: hidden; }
    #table_crypto_list {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed;
    }
    #table_crypto_list thead td:first-child { width: 40%; }
    #table_crypto_list thead td:nth-child(2),
    #table_crypto_list thead td:nth-child(3) { width: 30%; }
    #table_crypto_list tbody td {
        min-width: 0;
        padding: .55rem .3rem !important;
        white-space: normal !important;
        vertical-align: middle;
    }
    #table_crypto_list tbody td:first-child {
        display: table-cell !important;
        width: 40%;
        text-align: right;
    }
    #table_crypto_list tbody td:first-child img {
        width: 26px !important;
        margin-left: .35rem;
    }
    #table_crypto_list tbody td:first-child > div {
        display: inline-block;
        max-width: calc(100% - 36px);
        vertical-align: middle;
        overflow-wrap: anywhere;
    }
    #table_crypto_list tbody td:nth-child(2),
    #table_crypto_list tbody td:nth-child(3) {
        width: 30%;
        font-size: .78rem;
        text-align: center;
    }
    #table_crypto_list tbody td:nth-child(2) .btn,
    #table_crypto_list tbody td:nth-child(3) .btn {
        min-width: 48px;
        margin-top: .3rem;
        padding: .35rem .4rem;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .dashboard-overview-content { grid-template-columns: 1fr; }
    .market-list-toolbar { grid-template-columns: 1fr 1fr; }
    .market-list-heading { grid-column: 1 / -1; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #table_crypto_list thead td:first-child,
    #table_crypto_list tbody td:first-child { width: 33% !important; }
    #table_crypto_list thead td:nth-child(2),
    #table_crypto_list tbody td:nth-child(2),
    #table_crypto_list thead td:nth-child(3),
    #table_crypto_list tbody td:nth-child(3) { width: 21% !important; }
    #table_crypto_list thead td:nth-child(4),
    #table_crypto_list tbody td:nth-child(4) { width: 25% !important; }
    #table_crypto_list thead td { padding: .65rem .2rem !important; font-size: .72rem; }
    #table_crypto_list tbody td:nth-child(4) { padding: .4rem .2rem !important; text-align: center; }
    #table_crypto_list tbody td:nth-child(4) > div { display: block !important; margin: .2rem 0; }
    #table_crypto_list tbody td:nth-child(4) .btn {
        width: 100%;
        min-width: 0;
        padding: .32rem .2rem;
        font-size: .72rem;
    }
}

.admin-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1.6rem 1.75rem;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #071a33 0%, #0d4d8f 62%, #1597d4 100%);
    box-shadow: 0 18px 42px rgba(8, 57, 111, .2);
    overflow: hidden;
    position: relative;
}
.admin-dashboard-hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    left: -70px;
    top: -110px;
    border-radius: 50%;
    border: 42px solid rgba(255, 255, 255, .08);
}
.admin-dashboard-hero > * { position: relative; z-index: 1; }
.admin-dashboard-eyebrow { display: block; margin-bottom: .4rem; color: #8bdfff; font-size: .82rem; }
.admin-dashboard-hero h1 { margin: 0 0 .45rem; color: #fff; font-size: 1.55rem; font-weight: 800; }
.admin-dashboard-hero p { margin: 0; color: rgba(255,255,255,.78); }
.admin-dashboard-hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.admin-dashboard-hero-actions .btn { display: inline-flex; align-items: center; gap: .35rem; border-radius: 11px; }
.admin-dashboard-hero-actions svg { width: 16px; height: 16px; }
.admin-dashboard-kpis .card { border: 1px solid rgba(24, 116, 205, .08); box-shadow: 0 10px 30px rgba(18, 57, 98, .07); }
.admin-dashboard-kpis .card-header { min-height: 112px; }
.nobitex-setting-card { padding: 1.5rem; border: 1px solid #dcebf8; border-radius: 18px; background: linear-gradient(180deg, #fff, #f7fbff); }
.nobitex-price-preview > div > div { height: 100%; padding: 1rem; border: 1px solid #e1edf8; border-radius: 14px; background: #fff; text-align: center; }
.nobitex-price-preview span, .nobitex-price-preview small { display: block; color: #718096; }
.nobitex-price-preview strong { display: block; margin: .35rem 0; color: #0b4a84; font-size: 1.15rem; }
.exchange-nav-logo { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.exchange-section-logo { width: 46px; height: 46px; object-fit: contain; flex: 0 0 46px; box-shadow: 0 8px 22px rgba(11, 74, 132, .14); }

@media (max-width: 767.98px) {
    .admin-dashboard-hero { align-items: stretch; flex-direction: column; padding: 1.2rem; border-radius: 17px; }
    .admin-dashboard-hero h1 { font-size: 1.25rem; }
    .admin-dashboard-hero-actions .btn { flex: 1 1 30%; justify-content: center; min-width: 0; padding-right: .55rem; padding-left: .55rem; }
    .admin-dashboard-kpis > [class*="col-"] { width: 50%; }
    .admin-dashboard-kpis .card-header { min-height: 122px; padding: .9rem; }
    .admin-dashboard-kpis h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
    .admin-dashboard-kpis p { font-size: .76rem; }
    .nobitex-setting-card { padding: 1rem; }
}

/* Dashboard preview v2 — isolated until approved */
.dashboard-v3-preview {
    --v3-navy: #071a33;
    --v3-blue: #1687ff;
    --v3-cyan: #20c4e8;
    margin-bottom: 1rem;
}
.dashboard-v3-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
    padding: .65rem .9rem;
    border: 1px dashed rgba(22, 135, 255, .35);
    border-radius: 14px;
    color: #315372;
    background: rgba(230, 243, 255, .72);
    font-size: .82rem;
}
.dashboard-v3-preview-bar a { color: #0876db; font-weight: 700; }
.dashboard-v3-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 1.2fr) minmax(210px, .8fr) minmax(240px, 1fr);
    align-items: center;
    gap: 1.25rem;
    overflow: hidden;
    padding: 1.45rem;
    border-radius: 24px;
    border: 1px solid #e3edf7;
    color: #274a6d;
    background:
        radial-gradient(circle at 8% 0, rgba(32, 196, 232, .14), transparent 34%),
        linear-gradient(125deg, #ffffff 0%, #f7fbff 58%, #edf7ff 100%);
    box-shadow: 0 12px 30px rgba(30, 67, 105, .075);
}
.dashboard-v3-hero::after {
    content: '';
    position: absolute;
    inset: auto -60px -100px auto;
    width: 230px;
    height: 230px;
    border: 34px solid rgba(22, 135, 255, .055);
    border-radius: 50%;
    pointer-events: none;
}
.dashboard-v3-identity,
.dashboard-v3-actions { position: relative; z-index: 1; }
.dashboard-v3-identity { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.dashboard-v3-avatar {
    display: grid;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid rgba(22, 135, 255, .18);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, #178dff, #19bdda);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
    font-size: 1.15rem;
    font-weight: 800;
}
.dashboard-v3-identity small { color: #718498; }
.dashboard-v3-identity h1 { margin: .2rem 0 .5rem; color: var(--v3-navy); font-size: 1.25rem; }
.dashboard-v3-kyc {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #ffdc8a;
    font-size: .76rem;
}
.dashboard-v3-kyc.is-verified { color: #098b65; }
.dashboard-v3-balance {
    position: relative;
    z-index: 1;
    padding: .9rem 1rem;
    border-right: 1px solid #dce8f3;
    border-left: 1px solid #dce8f3;
    text-align: center;
}
.dashboard-v3-balance span,
.dashboard-v3-balance small { display: block; color: #718498; }
.dashboard-v3-balance strong { display: block; margin: .15rem 0; color: var(--v3-navy); font-size: clamp(1.45rem, 3vw, 2rem); }
.dashboard-v3-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.dashboard-v3-actions a {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .45rem;
    padding: .6rem .35rem;
    border: 1px solid #dce8f3;
    border-radius: 16px;
    color: #274a6d;
    background: #f5f9fd;
    text-align: center;
    font-size: .72rem;
    transition: transform .2s ease, background .2s ease;
}
.dashboard-v3-actions a:hover { transform: translateY(-2px); color: #087cff; background: #eaf5ff; }
.dashboard-v3-actions a.is-primary { border-color: transparent; background: linear-gradient(135deg, #0d88ff, #19badb); }
.dashboard-v3-actions a.is-primary,
.dashboard-v3-actions a.is-primary:hover { color: #fff; }
.dashboard-v3-actions i { font-size: 1.15rem; }
.dashboard-v3-grid {
    display: grid;
    grid-template-columns: minmax(330px, 1.2fr) minmax(260px, .9fr) minmax(250px, .9fr);
    gap: 1rem;
    margin-top: 1rem;
}
.dashboard-v3-limit-card,
.dashboard-v3-stats,
.dashboard-v3-shortcuts {
    border: 1px solid #e3edf7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(30, 67, 105, .075);
}
.dashboard-v3-limit-card { display: flex; align-items: center; gap: 1.1rem; padding: 1rem; }
.dashboard-v3-ring {
    display: grid;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    place-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 59%, transparent 60%), conic-gradient(var(--v3-blue) calc(var(--value) * 1%), #e9f1f8 0);
    text-align: center;
}
.dashboard-v3-ring span { color: var(--v3-navy); font-size: 1.2rem; font-weight: 800; }
.dashboard-v3-ring small { color: #7c8ea0; font-size: .66rem; }
.dashboard-v3-limit-copy { flex: 1; min-width: 0; }
.dashboard-v3-limit-copy > span { color: #718498; font-size: .75rem; }
.dashboard-v3-limit-copy > strong { display: block; margin: .15rem 0 .45rem; color: var(--v3-navy); font-size: 1rem; }
.dashboard-v3-limit-copy div { display: flex; justify-content: space-between; gap: .5rem; padding: .18rem 0; color: #718498; font-size: .72rem; }
.dashboard-v3-limit-copy b { color: #274a6d; }
.dashboard-v3-limit-copy button {
    width: 100%;
    margin-top: .45rem;
    padding: .5rem;
    border: 0;
    border-radius: 11px;
    color: #0876db;
    background: #eaf5ff;
    font-size: .72rem;
    font-weight: 700;
}
.dashboard-v3-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: .85rem; }
.dashboard-v3-stats article { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .4rem; min-width: 0; padding: .55rem .25rem; text-align: center; }
.dashboard-v3-stats article + article { border-right: 1px solid #edf2f7; }
.dashboard-v3-stats article > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; }
.dashboard-v3-stats .is-green { color: #0b9d6d; background: #e6f8f1; }
.dashboard-v3-stats .is-red { color: #e35463; background: #fff0f1; }
.dashboard-v3-stats .is-blue { color: #1687ff; background: #eaf4ff; }
.dashboard-v3-stats small { color: #718498; font-size: .67rem; }
.dashboard-v3-stats strong { color: var(--v3-navy); font-size: 1.05rem; }
.dashboard-v3-shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; padding: .85rem; }
.dashboard-v3-shortcuts a { display: flex; align-items: center; gap: .55rem; min-height: 52px; padding: .6rem; border-radius: 13px; color: #274a6d; background: #f5f9fd; font-size: .74rem; font-weight: 700; }
.dashboard-v3-shortcuts i { color: var(--v3-blue); font-size: 1rem; }

.ecp-pwa-install {
    position: fixed;
    z-index: 1055;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: .65rem .9rem;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #087cff, #17b9d8);
    box-shadow: 0 12px 28px rgba(8, 124, 255, .3);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
}
.ecp-pwa-install[hidden],
.ecp-pwa-guide[hidden] { display: none !important; }
.ecp-pwa-guide { position: fixed; z-index: 1090; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(2, 17, 34, .62); backdrop-filter: blur(5px); }
.ecp-pwa-guide-card { position: relative; width: min(100%, 390px); padding: 1.5rem; border-radius: 22px; color: #294965; background: #fff; text-align: center; box-shadow: 0 22px 70px rgba(0, 0, 0, .25); }
.ecp-pwa-guide-card h3 { margin: .75rem 0 .45rem; color: #071a33; }
.ecp-pwa-guide-card p { margin: 0; line-height: 2; }
.ecp-pwa-guide-icon { display: grid; width: 58px; height: 58px; margin: 0 auto; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #087cff, #17b9d8); font-size: 1.4rem; }
.ecp-pwa-guide-close { position: absolute; top: .65rem; left: .65rem; width: 34px; height: 34px; border: 0; border-radius: 10px; color: #607b93; background: #edf4fa; font-size: 1.2rem; }

@media (max-width: 1199.98px) {
    .main-menu .main-menu-content { padding-top: 16px !important; }
    .main-menu .navigation > li > a { margin: 3px 10px !important; padding: 8px 10px !important; border-radius: 11px !important; font-size: .88rem !important; }
    .main-menu .navigation > li > a > svg,
    .main-menu .navigation > li > a > i { width: 28px !important; height: 28px !important; padding: 6px !important; border-radius: 9px !important; }
    .main-menu .navigation .menu-content { padding: 2px 14px 4px 7px !important; }
    .main-menu .navigation .menu-content li a { padding-top: 7px !important; padding-bottom: 7px !important; font-size: .858rem !important; }
    .main-menu .navigation-header,
    .main-menu .navigation-header span { font-size: .72rem !important; }
    .dashboard-v3-hero { grid-template-columns: 1fr 1fr; }
    .dashboard-v3-actions { grid-column: 1 / -1; }
    .dashboard-v3-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-v3-shortcuts { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767.98px) {
    .dashboard-v3-preview-bar { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .dashboard-v3-hero { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; border-radius: 20px; }
    .dashboard-v3-balance { padding: .8rem 0; border: 0; border-top: 1px solid #dce8f3; border-bottom: 1px solid #dce8f3; text-align: right; }
    .dashboard-v3-actions { grid-column: auto; }
    .dashboard-v3-grid { grid-template-columns: 1fr; }
    .dashboard-v3-shortcuts { grid-column: auto; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
    .dashboard-v3-identity { align-items: flex-start; }
    .dashboard-v3-avatar { flex-basis: 52px; width: 52px; height: 52px; border-radius: 16px; }
    .dashboard-v3-identity h1 { font-size: 1.05rem; }
    .dashboard-v3-actions { grid-template-columns: 1fr; }
    .dashboard-v3-actions a { min-height: 48px; flex-direction: row; }
    .dashboard-v3-limit-card { align-items: stretch; flex-direction: column; }
    .dashboard-v3-ring { margin: 0 auto; }
    .dashboard-v3-stats { grid-template-columns: 1fr; }
    .dashboard-v3-stats article { flex-direction: row; justify-content: flex-start; text-align: right; }
    .dashboard-v3-stats article + article { border-top: 1px solid #edf2f7; border-right: 0; }
    .ecp-pwa-install { right: 12px; bottom: 12px; }
}
