:root {
    --nv-bg: #eef6ff;
    --nv-bg-soft: #f6fbff;
    --nv-surface: rgba(255, 255, 255, 0.92);
    --nv-surface-strong: #ffffff;
    --nv-border: #cfe3f7;
    --nv-border-strong: #b7d8f3;
    --nv-blue-950: #08203c;
    --nv-blue-900: #0b2b50;
    --nv-blue-850: #0f3765;
    --nv-blue-800: #124a83;
    --nv-blue-700: #1769b1;
    --nv-blue-600: #1f88db;
    --nv-cyan: #14d8ff;
    --nv-cyan-strong: #00bfff;
    --nv-text: #173452;
    --nv-text-soft: #5c7390;
    --nv-shadow: 0 20px 55px rgba(10, 64, 110, 0.12);
    --nv-shadow-soft: 0 10px 30px rgba(12, 68, 116, 0.08);
    --nv-radius: 18px;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 85% 5%, rgba(20, 216, 255, 0.11), transparent 26rem),
        radial-gradient(circle at 15% 25%, rgba(31, 136, 219, 0.08), transparent 24rem),
        linear-gradient(180deg, var(--nv-bg-soft) 0%, var(--nv-bg) 100%);
    color: var(--nv-text);
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font: inherit;
}

.site-shell {
    display: flex;
    min-height: 100vh;
}

.side-panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: 278px;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 15% 0%, rgba(20, 216, 255, 0.18), transparent 20rem),
        linear-gradient(180deg, #0d315b 0%, #092541 100%);
    color: #f1f8ff;
    box-shadow: 14px 0 45px rgba(6, 39, 70, 0.16);
    z-index: 20;
}

.brand-block {
    padding: 2px 8px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-emblem {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 5px rgba(137, 226, 255, 0.55)) 
        drop-shadow(0 0 14px rgba(20, 216, 255, 0.28));
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    letter-spacing: 0.18em;
    font-size: 13px;
}

.brand-wordmark strong {
    font-size: 16px;
    letter-spacing: 0.14em;
}

.brand-wordmark span {
    margin-top: 6px;
    color: #74dfff;
    font-size: 11px;
}

.brand-tagline {
    margin-top: 13px;
    font-size: 9px;
    letter-spacing: 0.24em;
    color: rgba(215, 237, 255, 0.58);
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-group-label {
    padding: 10px 11px 8px;
    font-size: 9px;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: rgba(208, 235, 255, 0.42);
}

.nav-group-spaced {
    margin-top: 8px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(236, 247, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    transition: 160ms ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.07);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(20, 216, 255, 0.14), rgba(31, 136, 219, 0.12));
    border-color: rgba(20, 216, 255, 0.24);
    color: #fff;
    box-shadow: inset 0 0 28px rgba(20,216,255,0.04);
}

.nav-link.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--nv-cyan);
    box-shadow: 0 0 14px rgba(20,216,255,0.8);
}

.nav-icon {
    width: 23px;
    text-align: center;
    color: #74dfff;
    font-size: 16px;
}

.side-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 11px 4px;
    color: rgba(216, 239, 255, 0.62);
    font-size: 11px;
}

.status-dot,
.signal-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    flex: none;
    border-radius: 50%;
    background: #45f3c0;
    box-shadow: 0 0 12px rgba(69,243,192,0.8);
}

.main-column {
    min-width: 0;
    flex: 1;
    margin-left: 278px;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 38px;
    border-bottom: 1px solid rgba(19, 91, 150, 0.10);
    background: rgba(246, 251, 255, 0.80);
    backdrop-filter: blur(14px);
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nv-blue-600);
}

.top-bar-title {
    margin-left: 12px;
    color: #7a8ea4;
    font-size: 12px;
}

.top-bar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #c7e8e0;
    border-radius: 999px;
    background: rgba(255,255,255,0.74);
    color: #2d7e6b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.main-content {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 24px;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.narrow-page {
    max-width: 1060px;
}

.page-header {
    padding: 8px 4px 4px;
}

.page-header h1 {
    margin: 8px 0 4px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--nv-blue-950);
}

.page-header p {
    margin: 0;
    max-width: 760px;
    color: var(--nv-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: 24px;
    padding: 48px 52px;
    border: 1px solid rgba(52, 138, 203, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 45%, rgba(20, 216, 255, 0.16), transparent 18rem),
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(226,243,255,0.88));
    box-shadow: var(--nv-shadow);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(31,136,219,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31,136,219,0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.75) 42%, transparent 78%);
}

.hero-copy, .hero-emblem-wrap {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #2a708e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    color: var(--nv-blue-950);
    font-size: clamp(2.8rem, 5.2vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.hero-copy h1 span {
    color: var(--nv-blue-600);
    text-shadow: 0 0 32px rgba(20,216,255,0.15);
}

.hero-lead {
    max-width: 640px;
    margin: 24px 0 30px;
    color: var(--nv-text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-emblem-wrap {
    display: grid;
    place-items: center;
    min-height: 330px;
}

.hero-emblem-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,216,255,0.28), rgba(31,136,219,0.10) 46%, transparent 72%);
    filter: blur(12px);
}

.hero-emblem {
    position: relative;
    width: min(340px, 80%);
    height: auto;
    filter: drop-shadow(0 22px 32px rgba(10, 76, 125, 0.20));
}

.nv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid var(--nv-border-strong);
    background: rgba(255,255,255,0.86);
    color: var(--nv-blue-800);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 22px rgba(18, 74, 131, 0.08);
    cursor: pointer;
    transition: 160ms ease;
}

.nv-button:hover {
    transform: translateY(-1px);
    border-color: rgba(20,216,255,0.54);
    box-shadow: 0 10px 26px rgba(18, 74, 131, 0.12);
}

.nv-button-primary {
    border-color: #147fd0;
    background: linear-gradient(135deg, #1769b1, #1f93e6);
    color: #fff;
    box-shadow: 0 12px 28px rgba(21, 103, 173, 0.25), 0 0 26px rgba(20,216,255,0.12);
}

.nv-button-secondary {
    background: rgba(255,255,255,0.65);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-card,
.panel-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-soft);
}

.stat-card {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-label {
    color: #6d84a1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.stat-card strong {
    margin-top: 12px;
    font-size: 22px;
    color: var(--nv-blue-950);
}

.stat-meta {
    margin-top: 4px;
    color: var(--nv-text-soft);
    font-size: 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
    margin-top: 18px;
}

.three-column {
    grid-template-columns: repeat(3, minmax(0,1fr));
    margin-top: 0;
}

.panel-card h2 {
    margin: 8px 0 8px;
    color: var(--nv-blue-950);
    font-size: 22px;
}

.panel-card p {
    margin: 0;
    color: var(--nv-text-soft);
    line-height: 1.7;
}

.panel-card-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.panel-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid rgba(20,216,255,0.22);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(31,136,219,0.08), rgba(20,216,255,0.08));
    color: var(--nv-cyan-strong);
    font-size: 19px;
}

.text-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--nv-blue-600);
    font-size: 12px;
    font-weight: 800;
}

.text-link:hover {
    color: var(--nv-cyan-strong);
}

.metric-panel {
    min-height: 152px;
    display: flex;
    flex-direction: column;
}

.metric-panel strong {
    margin-top: 10px;
    color: var(--nv-blue-950);
    font-size: 24px;
}

.metric-panel p {
    margin-top: 12px;
    font-size: 13px;
}

.metric-accent {
    display: block;
    width: 80px;
    height: 3px;
    margin-top: 10px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--nv-blue-600), var(--nv-cyan));
    box-shadow: 0 0 14px rgba(20,216,255,0.35);
}

.table-card {
    overflow: hidden;
    padding: 0;
}

.table-header, .table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.8fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    font-size: 12px;
}

.table-header {
    color: #6e849d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(232,245,255,0.7);
}

.table-row {
    border-top: 1px solid rgba(29, 101, 157, 0.08);
    color: var(--nv-text-soft);
}

.table-row > span:first-child {
    color: var(--nv-text);
    font-weight: 700;
}

.tag {
    justify-self: start;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.tag.success {
    color: #1a785f;
    background: #e6faf4;
    border: 1px solid #c9efe4;
}

.tag.neutral {
    color: #5f738c;
    background: #edf3f8;
    border: 1px solid #dce6ef;
}

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

.status-list {
    padding: 8px 18px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(29, 101, 157, 0.08);
    color: var(--nv-text-soft);
    font-size: 13px;
}

.status-row:last-child {
    border-bottom: 0;
}

.status-row span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--nv-text);
    font-weight: 650;
}

.status-row strong {
    color: #2e876f;
    font-size: 12px;
}

.prose-card {
    max-width: 900px;
}

.prose-card h2 {
    margin-top: 24px;
}

.prose-card h2:first-child {
    margin-top: 0;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.feature-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(29, 101, 157, 0.08);
    border-radius: 12px;
    background: #f8fcff;
    color: var(--nv-text);
    font-size: 13px;
    font-weight: 700;
}

.feature-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--nv-blue-700);
    background: #e7f5ff;
    font-size: 9px;
    letter-spacing: 0.08em;
}

.form-card {
    max-width: 930px;
}

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

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grid label span {
    color: #65809b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.form-grid input,
.form-grid textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--nv-border);
    border-radius: 12px;
    outline: none;
    background: rgba(255,255,255,0.95);
    color: var(--nv-text);
    padding: 12px 13px;
    transition: 160ms ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
    border-color: rgba(20,216,255,0.68);
    box-shadow: 0 0 0 4px rgba(20,216,255,0.10);
}

.form-card .nv-button {
    margin-top: 18px;
}

.notice-success {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #c9efe4;
    border-radius: 13px;
    background: #eefbf7;
    color: #2b6d5c;
    font-size: 12px;
}

.empty-state {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    border: 1px dashed #bcd9ee;
    border-radius: var(--nv-radius);
    background: rgba(255,255,255,0.62);
}

.empty-state.compact {
    min-height: 300px;
}

.empty-state-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 24px;
    background: linear-gradient(145deg, #e7f5ff, #f7fdff);
    border: 1px solid #cfe7fa;
    color: var(--nv-blue-600);
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 0 0 35px rgba(20,216,255,0.10);
}

.empty-state h1,
.empty-state h2 {
    margin: 0;
    color: var(--nv-blue-950);
}

.empty-state p {
    max-width: 590px;
    margin: 10px 0 18px;
    color: var(--nv-text-soft);
    line-height: 1.7;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 38px 28px;
    color: #7890aa;
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a:hover {
    color: var(--nv-blue-600);
}

@media (max-width: 1080px) {
    .side-panel {
        width: 228px;
    }

    .main-column {
        margin-left: 228px;
    }

    .top-bar, .site-footer {
        padding-left: 26px;
        padding-right: 26px;
    }

    .main-content {
        width: min(100% - 36px, 1280px);
    }

    .hero-card {
        padding: 38px;
        grid-template-columns: minmax(0,1fr) 260px;
    }
}

@media (max-width: 820px) {
    .side-panel {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .site-shell {
        display: block;
    }

    .main-column {
        margin-left: 0;
    }

    .side-nav {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 4px;
        max-height: none;
    }

    .nav-group-label {
        grid-column: 1 / -1;
    }

    .nav-group-spaced {
        margin-top: 4px;
    }

    .hero-card,
    .content-grid,
    .three-column,
    .stat-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .hero-emblem-wrap {
        min-height: 240px;
    }

    .top-bar {
        position: static;
    }
}

@media (max-width: 560px) {
    .top-bar-title {
        display: none;
    }

    .main-content {
        width: min(100% - 24px, 100%);
        padding-top: 20px;
    }

    .top-bar, .site-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .table-card {
        overflow-x: auto;
    }

    .table-header, .table-row {
        min-width: 700px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full-width {
        grid-column: auto;
    }
}

h1:focus {
    outline: none;
}

/* ==============================================================
   NEXON VAULT — ASP.NET CORE IDENTITY UI
   First-pass visual layer

   This block intentionally styles the generated Identity components
   without changing their authentication/validation behaviour.
   ==============================================================
*/

.account-main {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
    padding: 8px 0 44px;
}

    .account-main h1 {
        margin: 0 0 22px;
        color: var(--nv-blue-950);
        font-size: clamp(2rem, 3.6vw, 3rem);
        line-height: 1.08;
        letter-spacing: -0.045em;
        font-weight: 800;
        outline: none;
    }

        .account-main h1:focus {
            outline: none;
        }

    .account-main h2 {
        margin: 0 0 18px;
        color: var(--nv-blue-900);
        font-size: 1.35rem;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .account-main h3 {
        margin: 0 0 14px;
        color: var(--nv-blue-900);
        font-size: 1.05rem;
        line-height: 1.35;
        letter-spacing: -0.01em;
    }

    .account-main p,
    .account-main li {
        color: var(--nv-text-soft);
        line-height: 1.65;
    }

    .account-main .row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 24px;
        margin: 0;
    }

        .account-main .row > [class*="col-"] {
            box-sizing: border-box;
            min-width: 0;
        }

    /* Main login/register panel */
    .account-main > .row > .col-lg-6 {
        flex: 1 1 600px;
        max-width: 700px;
    }

    /* Secondary login/register panel */
    .account-main > .row > .col-lg-4 {
        flex: 0 1 370px;
        max-width: 370px;
    }

    .account-main > .row > .col-md-4,
    .account-main > .row > .col-md-6,
    .account-main > .row > .col-md-12 {
        flex: 1 1 560px;
        max-width: 760px;
    }

    .account-main > .row > .col-md-12 {
        flex-basis: 100%;
        max-width: none;
    }

    .account-main > div > .row > .col-lg-3,
    .account-main > div > .row > .col-lg-3 {
        flex: 0 1 245px;
        max-width: 245px;
    }

    .account-main > div > .row > .col-lg-9 {
        flex: 1 1 620px;
        max-width: 820px;
    }

    .account-main > div > .row > .col-xl-6 {
        flex: 1 1 620px;
        max-width: 760px;
    }

    .account-main .col-lg-offset-2 {
        margin-left: auto;
    }

    /* Nexon Vault glass/security panels */
    .account-main > .row > [class*="col-"],
    .account-main > div > .row > [class*="col-"] {
        padding: 26px;
        border: 1px solid rgba(31, 136, 219, 0.16);
        border-radius: 20px;
        background: radial-gradient(circle at 100% 0%, rgba(20, 216, 255, 0.09), transparent 15rem), linear-gradient(145deg, rgba(255,255,255,0.96), rgba(240,248,255,0.90));
        box-shadow: var(--nv-shadow-soft);
    }

    .account-main section {
        margin: 0;
    }

    .account-main hr {
        margin: 18px 0 22px;
        border: 0;
        border-top: 1px solid rgba(31, 108, 171, 0.14);
    }

    /* Generated Bootstrap-ish form classes, kept local to Identity UI */
    .account-main form {
        width: 100%;
    }

    .account-main .form-floating {
        position: relative;
        margin-bottom: 16px;
    }

    .account-main .form-control {
        width: 100%;
        min-height: 56px;
        box-sizing: border-box;
        padding: 21px 14px 7px;
        border: 1px solid var(--nv-border);
        border-radius: 12px;
        outline: none;
        background: rgba(255, 255, 255, 0.96);
        color: var(--nv-text);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
        transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

        .account-main .form-control::placeholder {
            color: transparent;
        }

        .account-main .form-control:hover {
            border-color: var(--nv-border-strong);
        }

        .account-main .form-control:focus {
            border-color: rgba(20, 216, 255, 0.72);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.10), 0 8px 22px rgba(20, 95, 160, 0.07);
        }

    .account-main .form-floating > label {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        padding: 17px 14px;
        box-sizing: border-box;
        color: #66809a;
        font-size: 13px;
        line-height: 1;
        pointer-events: none;
        transform-origin: 0 0;
        transition: transform 150ms ease, color 150ms ease;
    }

    .account-main .form-floating > .form-control:focus ~ label,
    .account-main .form-floating > .form-control:not(:placeholder-shown) ~ label {
        color: #28749f;
        transform: translateY(-2px) scale(0.76);
    }

    .account-main .form-label {
        color: var(--nv-text-soft);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    .account-main .text-danger {
        color: #b44c59;
    }

    .account-main .validation-message {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.4;
    }

    .account-main .text-secondary {
        color: #7890a7;
    }

    .account-main .text-info {
        color: #2b759b;
    }

    .account-main .text-success {
        color: #25846c;
    }

    .account-main .font-weight-bold {
        font-weight: 800;
    }

    /* Buttons */
    .account-main .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        box-sizing: border-box;
        padding: 11px 17px;
        border: 1px solid transparent;
        border-radius: 11px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.045em;
        cursor: pointer;
        text-decoration: none;
        transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
    }

        .account-main .btn:hover {
            transform: translateY(-1px);
        }

        .account-main .btn:active {
            transform: translateY(0);
        }

    .account-main .btn-primary {
        border-color: rgba(17, 111, 180, 0.50);
        background: linear-gradient(135deg, #1769b1 0%, #0f4f88 100%);
        color: #fff;
        box-shadow: 0 9px 20px rgba(23, 105, 177, 0.18), 0 0 18px rgba(20, 216, 255, 0.08);
    }

        .account-main .btn-primary:hover {
            border-color: rgba(20, 216, 255, 0.50);
            box-shadow: 0 11px 24px rgba(23, 105, 177, 0.24), 0 0 22px rgba(20, 216, 255, 0.12);
        }

    .account-main .btn-danger {
        border-color: rgba(173, 74, 87, 0.36);
        background: linear-gradient(135deg, #a84d5b 0%, #8c3746 100%);
        color: #fff;
        box-shadow: 0 9px 20px rgba(140, 55, 70, 0.15);
    }

        .account-main .btn-danger:hover {
            border-color: rgba(173, 74, 87, 0.58);
        }

    .account-main .btn-link {
        min-height: auto;
        padding: 4px 0;
        border: 0;
        background: transparent;
        color: var(--nv-blue-700);
        box-shadow: none;
    }

        .account-main .btn-link:hover {
            color: var(--nv-blue-600);
            text-decoration: underline;
        }

    .account-main .w-100 {
        width: 100%;
    }

    .account-main .btn-lg {
        min-height: 48px;
        font-size: 13px;
    }

    /* Links */
    .account-main a:not(.nav-link):not(.btn) {
        color: var(--nv-blue-700);
        text-decoration: none;
    }

        .account-main a:not(.nav-link):not(.btn):hover {
            color: var(--nv-blue-600);
            text-decoration: underline;
        }

    /* Checkbox / remember-me */
    .account-main .checkbox {
        margin: 3px 0 18px;
    }

        .account-main .checkbox label {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            color: var(--nv-text-soft);
            font-size: 13px;
            cursor: pointer;
        }

    .account-main .form-check-input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: var(--nv-blue-700);
    }

    /* Alerts / Identity status */
    .account-main .alert {
        margin: 0 0 18px;
        padding: 13px 15px;
        border: 1px solid rgba(31, 108, 171, 0.16);
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.55;
    }

        .account-main .alert p:last-child {
            margin-bottom: 0;
        }

    .account-main .alert-success {
        border-color: #c7eadf;
        background: #effbf7;
        color: #256c59;
    }

    .account-main .alert-danger {
        border-color: #efcbd0;
        background: #fff4f5;
        color: #96414e;
    }

    .account-main .alert-warning {
        border-color: #ead9b8;
        background: #fff9ed;
        color: #7c6330;
    }

    .account-main .alert-info {
        border-color: #c6e5f5;
        background: #eff9ff;
        color: #2f6d8d;
    }

    /* Manage navigation */
    .account-main .nav.nav-pills {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .account-main .nav-item {
        margin: 0;
    }

    .account-main .nav-pills .nav-link {
        display: flex;
        align-items: center;
        min-height: 42px;
        box-sizing: border-box;
        padding: 0 13px;
        border: 1px solid transparent;
        border-radius: 11px;
        color: #52708d;
        font-size: 12px;
        font-weight: 700;
        transition: 150ms ease;
    }

        .account-main .nav-pills .nav-link:hover {
            border-color: rgba(20, 216, 255, 0.16);
            background: rgba(20, 216, 255, 0.055);
            color: var(--nv-blue-800);
            text-decoration: none;
        }

        .account-main .nav-pills .nav-link.active {
            border-color: rgba(20, 216, 255, 0.24);
            background: linear-gradient(90deg, rgba(20, 216, 255, 0.13), rgba(31, 136, 219, 0.08));
            color: var(--nv-blue-800);
            box-shadow: inset 3px 0 0 var(--nv-cyan);
        }

    /* Tables used by Identity (external logins / passkeys) */
    .account-main table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        overflow: hidden;
        border: 1px solid var(--nv-border);
        border-radius: 12px;
        background: rgba(255,255,255,0.82);
        font-size: 12px;
    }

    .account-main thead th {
        padding: 11px 13px;
        border-bottom: 1px solid var(--nv-border);
        background: #f2f8fd;
        color: #55728e;
        font-size: 10px;
        text-align: left;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    .account-main tbody td {
        padding: 12px 13px;
        border-bottom: 1px solid rgba(31, 108, 171, 0.09);
        color: var(--nv-text);
        vertical-align: middle;
    }

    .account-main tbody tr:last-child td {
        border-bottom: 0;
    }

    /* Recovery codes */
    .account-main .recovery-code {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 125px;
        margin: 4px 6px 4px 0;
        padding: 9px 11px;
        border: 1px solid var(--nv-border);
        border-radius: 9px;
        background: #f5faff;
        color: var(--nv-blue-900);
        font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
        font-size: 12px;
        letter-spacing: 0.05em;
    }

    /* Input groups and authenticator setup */
    .account-main .input-group {
        display: flex;
        align-items: stretch;
    }

        .account-main .input-group .form-control {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

    .account-main .input-group-text {
        display: inline-flex;
        align-items: center;
        min-height: 56px;
        padding: 0 13px;
        border: 1px solid var(--nv-border);
        border-left: 0;
        border-radius: 0 12px 12px 0;
        background: #eef9f6;
    }

    .account-main .input-group-append {
        display: flex;
    }

    /* Lists, code, and security helpers */
    .account-main ol,
    .account-main ul {
        padding-left: 20px;
    }

    .account-main code {
        padding: 2px 6px;
        border: 1px solid rgba(31, 136, 219, 0.12);
        border-radius: 7px;
        background: #eef7fd;
        color: #195b87;
        font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
        font-size: 0.9em;
    }

    .account-main .control-label {
        display: inline-block;
        margin-bottom: 7px;
    }

    .account-main .form-horizontal p:last-child {
        margin-bottom: 0;
    }

    .account-main .d-flex {
        display: flex;
    }

    .account-main .flex-column {
        flex-direction: column;
    }

    .account-main .mx-auto {
        margin-left: auto;
        margin-right: auto;
    }

    .account-main .mt-2 {
        margin-top: 8px;
    }

    .account-main .mb-3 {
        margin-bottom: 16px;
    }

/* Small-screen behaviour */
@media (max-width: 820px) {
    .account-main {
        width: min(100%, 680px);
    }

        .account-main > .row > .col-lg-6,
        .account-main > .row > .col-lg-4,
        .account-main > .row > .col-md-4,
        .account-main > .row > .col-md-6,
        .account-main > .row > .col-md-12,
        .account-main > div > .row > .col-lg-3,
        .account-main > div > .row > .col-lg-9,
        .account-main > div > .row > .col-xl-6 {
            flex-basis: 100%;
            max-width: none;
            margin-left: 0;
        }

        .account-main > .row > [class*="col-"],
        .account-main > div > .row > [class*="col-"] {
            padding: 22px;
        }
}

@media (max-width: 560px) {
    .account-main {
        width: min(100%, calc(100% - 4px));
        padding-bottom: 28px;
    }

        .account-main > .row > [class*="col-"],
        .account-main > div > .row > [class*="col-"] {
            padding: 18px;
            border-radius: 16px;
        }

        .account-main h1 {
            font-size: 2rem;
        }

        .account-main h2 {
            font-size: 1.2rem;
        }
}

/* ==============================================================
   NEXON VAULT — IDENTITY UI PASS 1.1
   Header account actions + wider Manage forms
   ============================================================== */

/* Header account controls */
.top-bar-meta {
    gap: 8px;
    flex-wrap: wrap;
}

.account-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.account-link,
.account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1px solid rgba(20, 216, 255, 0.28);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.account-link {
    background: linear-gradient(135deg, #ffffff 0%, #edf8ff 100%);
    color: var(--nv-blue-900) !important;
    box-shadow: 0 5px 15px rgba(12, 68, 116, 0.08);
}

    .account-link::before {
        content: "◈";
        color: var(--nv-cyan-strong);
        font-size: 12px;
        line-height: 1;
    }

    .account-link:hover {
        border-color: rgba(20, 216, 255, 0.62);
        background: linear-gradient(135deg, #ffffff 0%, #e6f7ff 100%);
        color: var(--nv-blue-800) !important;
        box-shadow: 0 7px 18px rgba(12, 68, 116, 0.12), 0 0 16px rgba(20, 216, 255, 0.10);
        text-decoration: none !important;
        transform: translateY(-1px);
    }

.account-button {
    appearance: none;
    background: linear-gradient(135deg, #10365f 0%, #0a2747 100%);
    color: #ffffff;
    border-color: rgba(20, 216, 255, 0.22);
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(8, 32, 60, 0.16);
}

    .account-button::before {
        content: "↪";
        color: var(--nv-cyan);
        font-size: 13px;
        line-height: 1;
    }

    .account-button:hover {
        border-color: rgba(20, 216, 255, 0.58);
        background: linear-gradient(135deg, #12436f 0%, #0a2d51 100%);
        box-shadow: 0 7px 18px rgba(8, 32, 60, 0.22), 0 0 18px rgba(20, 216, 255, 0.10);
        transform: translateY(-1px);
    }

    .account-link:active,
    .account-button:active {
        transform: translateY(0);
    }

    .account-link:focus-visible,
    .account-button:focus-visible {
        outline: none;
        border-color: rgba(20, 216, 255, 0.72);
        box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.11);
    }

.account-name {
    max-width: 260px;
    overflow: hidden;
    color: #55708b;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Manage pages: give the main form the full available width.
   This is especially useful for long email/username values. */
.account-main .col-lg-9 > .row > .col-xl-6 {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
}

.account-main #username,
.account-main #email,
.account-main #Input_NewEmail,
.account-main #Input\.NewEmail {
    width: 100%;
}

.account-main #username,
.account-main #email {
    font-size: 14px;
    letter-spacing: 0;
}

@media (max-width: 680px) {
    .account-name {
        display: none;
    }

    .account-link,
    .account-button {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 9px;
    }
}

.nv-investment-manage {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .nv-investment-manage .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: -6px;
        margin-right: -6px;
    }

        .nv-investment-manage .row > [class*="col-"] {
            box-sizing: border-box;
            min-width: 0;
            padding-left: 6px;
            padding-right: 6px;
        }

    .nv-investment-manage .g-3 {
        row-gap: 12px;
    }

    .nv-investment-manage .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .nv-investment-manage .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .nv-investment-manage .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .nv-investment-manage .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .nv-investment-manage .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .nv-investment-manage .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .nv-investment-manage .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .nv-investment-manage .col-xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .nv-investment-manage .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .nv-investment-manage .align-items-end {
        align-items: flex-end;
    }

    .nv-investment-manage .w-100 {
        width: 100%;
    }

    .nv-investment-manage .mt-3 {
        margin-top: 1rem;
    }

    .nv-investment-manage .mb-2 {
        margin-bottom: 0.5rem;
    }

    .nv-investment-manage .mb-3 {
        margin-bottom: 1rem;
    }

    .nv-investment-manage .px-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .nv-investment-manage .pb-1 {
        padding-bottom: 0.25rem;
    }

@media (max-width: 991px) {
    .nv-investment-manage .col-lg-2,
    .nv-investment-manage .col-lg-3,
    .nv-investment-manage .col-lg-4,
    .nv-investment-manage .col-lg-5,
    .nv-investment-manage .col-lg-6,
    .nv-investment-manage .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .nv-investment-manage .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .nv-investment-manage .col-xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .nv-investment-manage .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .nv-investment-manage .col-xl-2.col-md-6,
    .nv-investment-manage .col-xl-3.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

    /* ============================================================
   Status messages
   ============================================================ */

    .nv-investment-manage .alert {
        margin: 0;
        padding: 13px 16px;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.55;
    }

    .nv-investment-manage .alert-success {
        border: 1px solid #c7eadf;
        background: #effbf7;
        color: #256c59;
    }

    .nv-investment-manage .alert-danger {
        border: 1px solid #efcbd0;
        background: #fff4f5;
        color: #96414e;
    }

/* ============================================================
   Toolbar
   ============================================================ */

.nv-manage-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nv-manage-toolbar-note {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf2fb;
    color: #35506b;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}

.nv-investment-manage .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.035em;
    cursor: pointer;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

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

    .nv-investment-manage .btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .nv-investment-manage .btn:disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }

.nv-investment-manage .btn-primary {
    border-color: rgba(17, 111, 180, 0.50);
    background: linear-gradient( 135deg, var(--nv-blue-700) 0%, var(--nv-blue-850) 100%);
    color: #fff;
    box-shadow: 0 9px 20px rgba(23, 105, 177, 0.18), 0 0 18px rgba(20, 216, 255, 0.08);
}

    .nv-investment-manage .btn-primary:hover:not(:disabled) {
        border-color: rgba(20, 216, 255, 0.50);
        box-shadow: 0 11px 24px rgba(23, 105, 177, 0.24), 0 0 22px rgba(20, 216, 255, 0.12);
    }

.nv-investment-manage .btn-secondary {
    border-color: var(--nv-border);
    background: #f4f8fc;
    color: var(--nv-blue-850);
}

    .nv-investment-manage .btn-secondary:hover:not(:disabled) {
        border-color: var(--nv-border-strong);
        background: #edf5fb;
    }

.nv-investment-manage .btn-outline-primary {
    border-color: rgba(31, 136, 219, 0.30);
    background: rgba(31, 136, 219, 0.04);
    color: var(--nv-blue-700);
}

    .nv-investment-manage .btn-outline-primary:hover:not(:disabled) {
        border-color: rgba(20, 216, 255, 0.48);
        background: rgba(20, 216, 255, 0.08);
        color: var(--nv-blue-800);
    }

.nv-investment-manage .btn-outline-danger {
    border-color: rgba(168, 77, 91, 0.30);
    background: rgba(168, 77, 91, 0.035);
    color: #9b4351;
}

    .nv-investment-manage .btn-outline-danger:hover:not(:disabled) {
        border-color: rgba(168, 77, 91, 0.52);
        background: rgba(168, 77, 91, 0.075);
    }

.nv-investment-manage .btn-danger {
    border-color: rgba(173, 74, 87, 0.40);
    background: linear-gradient( 135deg, #a84d5b 0%, #8c3746 100%);
    color: #fff;
    box-shadow: 0 9px 20px rgba(140, 55, 70, 0.15);
}

.nv-investment-manage .btn-sm {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 11px;
}

/* ============================================================
   Add / Edit / Delete panel
   ============================================================ */

.nv-manage-editor {
    position: relative;
    padding: 24px;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-soft);
    overflow: hidden;
}

    .nv-manage-editor::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient( 90deg, var(--nv-blue-600), var(--nv-cyan));
    }

    .nv-manage-editor h2 {
        margin: 0 0 22px;
        color: var(--nv-blue-950);
        font-size: 21px;
        font-weight: 800;
    }

    .nv-manage-editor p {
        margin: 0 0 13px;
        color: var(--nv-text-soft);
        font-size: 13px;
        line-height: 1.65;
    }

        .nv-manage-editor p strong {
            color: var(--nv-blue-950);
        }

    /* ============================================================
   Form controls
   ============================================================ */

    .nv-manage-editor .mb-3 {
        margin-bottom: 17px !important;
    }

    .nv-manage-editor .form-label {
        display: block;
        margin-bottom: 7px;
        color: #526f8b;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .nv-manage-editor .form-control,
    .nv-manage-editor .form-select {
        width: 100%;
        box-sizing: border-box;
        min-height: 43px;
        padding: 10px 12px;
        border: 1px solid var(--nv-border);
        border-radius: 11px;
        outline: none;
        background: rgba(255, 255, 255, 0.96);
        color: var(--nv-text);
        font-size: 13px;
        transition: border-color 150ms ease, box-shadow 150ms ease;
    }

    .nv-manage-editor textarea.form-control {
        min-height: 90px;
        resize: vertical;
    }

    .nv-manage-editor .form-control:focus,
    .nv-manage-editor .form-select:focus {
        border-color: rgba(20, 216, 255, 0.68);
        box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.10);
    }

    .nv-manage-editor .form-check {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .nv-manage-editor .form-check-input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: var(--nv-blue-700);
    }

    .nv-manage-editor .form-check-label {
        color: var(--nv-text);
        font-size: 13px;
        font-weight: 600;
    }

/* ============================================================
   Portfolio table
   ============================================================ */

.table-responsive {
    overflow: hidden;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-soft);
}

.nv-investment-manage .table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: transparent;
    color: var(--nv-text);
    font-size: 13px;
}

    .nv-investment-manage .table thead th {
        padding: 13px 16px;
        border: 0;
        border-bottom: 1px solid var(--nv-border);
        background: #f2f8fd;
        color: #55728e;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.09em;
        text-align: left;
        text-transform: uppercase;
    }

    .nv-investment-manage .table tbody td {
        padding: 15px 16px;
        border: 0;
        border-bottom: 1px solid rgba(31, 108, 171, 0.09);
        vertical-align: middle;
    }

    .nv-investment-manage .table tbody tr:last-child td {
        border-bottom: 0;
    }

    .nv-investment-manage .table tbody tr {
        transition: background 140ms ease;
    }

        .nv-investment-manage .table tbody tr:hover {
            background: rgba(20, 216, 255, 0.035);
        }

    .nv-investment-manage .table tbody td:first-child {
        color: var(--nv-blue-950);
        font-weight: 800;
    }

    .nv-investment-manage .table th:last-child,
    .nv-investment-manage .table td:last-child {
        width: 1%;
        white-space: nowrap;
        text-align: right;
    }

        .nv-investment-manage .table td:last-child > .d-flex {
            justify-content: flex-end;
        }

/* ============================================================
   Badges
   ============================================================ */

.nv-portfolio-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.045em;
}

.nv-portfolio-badge-real {
    border-color: rgba(31, 136, 219, 0.24);
    background: rgba(31, 136, 219, 0.08);
    color: var(--nv-blue-700);
}

.nv-portfolio-badge-simulation {
    border-color: rgba(100, 119, 143, 0.22);
    background: rgba(100, 119, 143, 0.07);
    color: #627891;
}

.nv-asset-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.045em;
}

.nv-asset-badge-crypto {
    border-color: rgba(31, 136, 219, 0.24);
    background: rgba(31, 136, 219, 0.08);
    color: var(--nv-blue-700);
}

.nv-asset-badge-stablecoin {
    border-color: rgba(48, 157, 119, 0.24);
    background: rgba(48, 157, 119, 0.08);
    color: #31785f;
}

.nv-portfolio-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
}

    .nv-portfolio-status::before {
        content: "";
        width: 7px;
        height: 7px;
        flex: none;
        border-radius: 50%;
    }

.nv-portfolio-status-active {
    color: #347761;
}

    .nv-portfolio-status-active::before {
        background: #40b58c;
        box-shadow: 0 0 8px rgba(64, 181, 140, 0.30);
    }

.nv-portfolio-status-inactive {
    color: #78899b;
}

    .nv-portfolio-status-inactive::before {
        background: #a5b0bb;
    }

/* ============================================================
   Empty state
   ============================================================ */

.nv-manage-empty {
    display: flex;
    min-height: 210px;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 1px dashed #bcd9ee;
    border-radius: var(--nv-radius);
    background: rgba(255, 255, 255, 0.62);
    text-align: center;
}

    .nv-manage-empty p {
        max-width: 520px;
        margin: 0;
        color: var(--nv-text-soft);
        font-size: 13px;
        line-height: 1.7;
    }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 820px) {
    .table-responsive {
        overflow-x: auto;
    }

    .nv-investment-manage .table {
        min-width: 720px;
    }

    .nv-manage-editor {
        padding: 20px;
    }
}

.nv-portfolio-selector {
    width: min(100%, 520px);
    cursor: pointer;
}

    .nv-portfolio-selector option {
        background: #ffffff;
        color: var(--nv-text);
    }

.nv-field-help {
    margin-top: 6px;
    color: var(--nv-text-soft);
    font-size: 11px;
    line-height: 1.5;
}

.nv-calculation-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--nv-border);
    border-radius: 11px;
    background: rgba(31, 136, 219, 0.045);
    color: var(--nv-text-soft);
    font-size: 12px;
}

    .nv-calculation-summary strong {
        color: var(--nv-blue-950);
        font-size: 15px;
    }

    .nv-calculation-summary.nv-calculation-summary-compact {
        min-height: 43px;
        margin: 0;
        padding: 10px 12px;
        box-sizing: border-box;
        justify-content: flex-start;
        font-size: 13px;
    }

        .nv-calculation-summary.nv-calculation-summary-compact strong {
            font-size: 13px;
            font-weight: 800;
        }

.nv-manage-editor .nv-single-line-note {
    min-height: 40px;
    height: 40px;
}

.nv-specific-selected {
    margin-left: 2ch;
}

.nv-date-input,
.nv-time-input {
    border: 1px solid var(--nv-border-strong) !important;
    background-color: #ffffff !important;
    color: var(--nv-text);
}

    .nv-date-input:hover,
    .nv-time-input:hover {
        border-color: rgba(31, 136, 219, 0.48) !important;
    }

    .nv-date-input:focus,
    .nv-time-input:focus {
        border-color: rgba(20, 216, 255, 0.68) !important;
        box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.10);
    }

    .nv-date-input::-webkit-calendar-picker-indicator,
    .nv-time-input::-webkit-calendar-picker-indicator {
        cursor: pointer;
        opacity: 0.68;
    }

.nv-transaction-history {
    margin-top: 22px;
}

.nv-table-subtext {
    color: var(--nv-text-soft);
    font-size: 11px;
}

/* ============================================================
   External authentication providers
   ============================================================ */

.nv-external-login-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
}

.nv-provider-button {
    position: relative;
    display: flex;
    min-height: 44px;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 16px 0 44px;
    border: 1px solid #747775;
    border-radius: 4px;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .nv-provider-button:hover {
        background: #f8f9fa;
        color: #1f1f1f;
    }

    .nv-provider-button:active {
        background: #f1f3f4;
    }

    .nv-provider-button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(31, 136, 219, 0.18);
    }

.nv-provider-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    flex: none;
}

.nv-provider-button-google {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
}

.nv-provider-button-microsoft {
    border-color: #8c8c8c;
    border-radius: 2px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #5e5e5e;
}

    .nv-provider-button-microsoft:hover {
        border-color: #666666;
        color: #333333;
    }

.nv-provider-button-generic {
    padding-left: 16px;
}

.nv-external-remember {
    margin-top: 12px;
}

/* ============================================================
   Trade confirmation modal
   ============================================================ */

.nv-investment-manage .modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nv-investment-manage .modal-dialog {
    position: relative;
    z-index: 1056;
    width: min(760px, 100%);
    margin: auto;
}

.nv-investment-manage .modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--nv-border);
    border-radius: 16px;
    background: var(--nv-surface);
    box-shadow: 0 28px 70px rgba(9, 35, 58, 0.28), 0 0 35px rgba(20, 216, 255, 0.08);
}

.nv-investment-manage .modal-header {
    flex: 0 0 auto;
    padding: 20px 24px;
    border-bottom: 1px solid var(--nv-border);
    background: linear-gradient( 135deg, rgba(31, 136, 219, 0.06), rgba(20, 216, 255, 0.035));
}

.nv-investment-manage .modal-title {
    margin: 0;
    color: var(--nv-blue-950);
    font-size: 21px;
    font-weight: 800;
}

.nv-investment-manage .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 24px;
    overflow-y: auto;
}

    .nv-investment-manage .modal-body > p {
        margin: 0 0 20px;
        color: var(--nv-text-soft);
        font-size: 13px;
        line-height: 1.55;
    }

    .nv-investment-manage .modal-body dl.row {
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr);
        column-gap: 24px;
        row-gap: 0;
        margin: 0;
    }

    .nv-investment-manage .modal-body dt,
    .nv-investment-manage .modal-body dd {
        box-sizing: border-box;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(22, 62, 91, 0.08);
        line-height: 1.45;
    }

    .nv-investment-manage .modal-body dt {
        color: var(--nv-text-soft);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.045em;
        text-transform: uppercase;
    }

    .nv-investment-manage .modal-body dd {
        color: var(--nv-blue-950);
        font-size: 13px;
        font-weight: 650;
    }

    /* ============================================================
   Modal form controls
   ============================================================ */

    .nv-investment-manage .modal-body .nv-edit-transaction-fields {
        margin-top: 6px;
        margin-left: 0;
        margin-right: 0;
    }

        .nv-investment-manage .modal-body .nv-edit-transaction-fields > [class*="col-"] {
            padding-left: 6px;
            padding-right: 6px;
        }

    .nv-investment-manage .modal-body .nv-edit-transaction-field {
        margin-left: 6px;
        margin-right: 6px;
    }

    .nv-investment-manage .modal-body .nv-edit-transaction-support {
        margin-left: 6px;
        margin-right: 6px;
    }

    .nv-investment-manage .modal-body .nv-edit-transaction-error {
        margin-top: 12px;
        margin-right: 6px;
        margin-bottom: 0;
        margin-left: 6px;
    }

    .nv-investment-manage .modal-body .form-label {
        display: block;
        margin-bottom: 7px;
        color: #526f8b;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .nv-investment-manage .modal-body .form-control,
    .nv-investment-manage .modal-body .form-select {
        width: 100%;
        min-height: 43px;
        box-sizing: border-box;
        padding: 10px 12px;
        border: 1px solid var(--nv-border);
        border-radius: 11px;
        outline: none;
        background: rgba(255, 255, 255, 0.96);
        color: var(--nv-text);
        font-size: 13px;
        transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
    }

        .nv-investment-manage .modal-body .form-control:hover,
        .nv-investment-manage .modal-body .form-select:hover {
            border-color: var(--nv-border-strong);
        }

        .nv-investment-manage .modal-body .form-control:focus,
        .nv-investment-manage .modal-body .form-select:focus {
            border-color: rgba(20, 216, 255, 0.68);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.10), 0 6px 18px rgba(20, 95, 160, 0.06);
        }

    .nv-investment-manage .modal-body textarea.form-control {
        min-height: 105px;
        resize: vertical;
        line-height: 1.5;
    }

.nv-investment-manage .modal-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--nv-border);
    background: #f8fbfd;
}

.nv-investment-manage .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(4, 18, 31, 0.58);
    backdrop-filter: blur(2px);
}

@media (max-width: 600px) {
    .nv-investment-manage .modal {
        padding: 12px;
    }

    .nv-investment-manage .modal-content {
        max-height: calc(100vh - 24px);
    }

    .nv-investment-manage .modal-header,
    .nv-investment-manage .modal-body,
    .nv-investment-manage .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

        .nv-investment-manage .modal-body dl.row {
            grid-template-columns: 1fr;
        }

        .nv-investment-manage .modal-body dt {
            padding-bottom: 2px;
            border-bottom: 0;
        }

        .nv-investment-manage .modal-body dd {
            padding-top: 2px;
        }

    .nv-investment-manage .modal-footer {
        flex-direction: column-reverse;
    }

        .nv-investment-manage .modal-footer .btn {
            width: 100%;
        }
}

/* ============================================================
   Market Asset Mapping
   ============================================================ */

.nv-investment-manage .nv-manage-editor .nv-market-cmc-input {
    width: 140px;
    min-width: 110px;
    max-width: 100%;
}

/* ============================================================
   Market Asset Mapping - Candidate Results
   ============================================================ */

.nv-investment-manage .nv-market-mapping-table {
    width: 100%;
    table-layout: fixed;
}

/* Main table column widths */

.nv-market-mapping-table thead th:nth-child(1) {
    width: 10%;
}

.nv-market-mapping-table thead th:nth-child(2) {
    width: 22%;
}

.nv-market-mapping-table thead th:nth-child(3) {
    width: 36%;
}

.nv-market-mapping-table thead th:nth-child(4) {
    width: 19%;
}

.nv-market-mapping-table thead th:nth-child(5) {
    width: 13%;
}

/* Prevent long values stretching the table */

.nv-market-mapping-table tbody td {
    overflow-wrap: anywhere;
}

/* Override the existing last-column rule for candidate rows */

.nv-investment-manage
.nv-market-mapping-table
tbody tr.nv-market-candidate-row td {
    width: auto;
    max-width: none;
    white-space: normal;
    text-align: left;
    padding: 14px 16px 20px;
    background: #f8fbfe;
}

/* Vertically stacked candidates */

.nv-market-candidate-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 100%;
    min-width: 0;
}

/* Individual candidate button */

.nv-investment-manage .nv-market-candidate-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 16px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

/* Cryptocurrency name */

.nv-market-candidate-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--nv-blue-950);
}

/* CMC ID, ranking and network */

.nv-market-candidate-details {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--nv-text-soft);
}

/* Contract address */

.nv-market-candidate-address {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--nv-text-soft);
    overflow-wrap: anywhere;
}

/* Instruction below results */

.nv-manage-editor .nv-market-candidate-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--nv-text-soft);
}

.nv-market-candidate-empty {
    font-size: 12px;
    color: var(--nv-text-soft);
}

/* ============================================================
   Market Asset Mapping - Table Width Corrections
   ============================================================ */

/* Allow scrolling instead of clipping the Action column */

.nv-investment-manage .nv-market-mapping-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Keep predictable column widths */

.nv-investment-manage .nv-market-mapping-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
}

    /* Override the generic 1% last-column rule */

    .nv-investment-manage .nv-market-mapping-table thead th:last-child,
    .nv-investment-manage .nv-market-mapping-table tbody tr:not(.nv-market-candidate-row) td:last-child {
        width: 13%;
        white-space: normal;
        text-align: center;
    }

    /* Full-width candidate rows must not inherit Action-column formatting */

    .nv-investment-manage .nv-market-mapping-table tbody tr.nv-market-candidate-row td:last-child {
        width: auto;
        max-width: none;
        min-width: 0;
        white-space: normal;
        text-align: left;
    }

    /* Keep the CMC ID field within its column */

    .nv-investment-manage .nv-market-mapping-table .nv-market-cmc-input {
        width: 140px;
        max-width: 100%;
        box-sizing: border-box;
    }


/* ============================================================
   Market & Portfolio - Allocation Chart
   ============================================================ */

.nv-allocation-panel {
    margin-top: 4px;
}

.nv-allocation-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
    align-items: center;
    gap: 36px;
}

.nv-allocation-visual {
    position: relative;
    width: min(100%, 360px);
    margin: 0 auto;
    aspect-ratio: 1;
}

.nv-allocation-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.nv-allocation-segment {
    cursor: pointer;
    transition: opacity 150ms ease;
}

    .nv-allocation-segment.is-dimmed {
        opacity: 0.23;
    }

.nv-allocation-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    pointer-events: none;
}

.nv-allocation-center-label {
    color: var(--nv-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.nv-allocation-center-value {
    color: var(--nv-blue-950);
    font-size: clamp(15px, 1.65vw, 24px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.nv-allocation-center-detail {
    color: var(--nv-blue-600);
    font-size: 12px;
    font-weight: 700;
}

.nv-allocation-legend {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 420px;
    overflow-y: auto;
    padding: 2px;
}

.nv-allocation-legend-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    color: var(--nv-text-soft);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.nv-allocation-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--nv-text);
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

    .nv-allocation-legend-item:hover,
    .nv-allocation-legend-item.is-selected {
        background: #edf7ff;
        border-color: var(--nv-border);
    }

    .nv-allocation-legend-item:focus-visible {
        outline: 2px solid var(--nv-blue-600);
        outline-offset: 2px;
    }

.nv-allocation-legend-asset {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nv-allocation-swatch {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 4px;
    background: var(--allocation-color);
}

.nv-allocation-legend-name,
.nv-allocation-legend-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .nv-allocation-legend-name strong,
    .nv-allocation-legend-values strong {
        font-size: 12px;
        font-weight: 800;
    }

    .nv-allocation-legend-name small,
    .nv-allocation-legend-values small {
        color: var(--nv-text-soft);
        font-size: 10px;
    }

.nv-allocation-legend-values {
    flex-shrink: 0;
    text-align: right;
}

.nv-allocation-warning {
    margin-top: 18px !important;
    color: #a14b37 !important;
}

@media (max-width: 900px) {
    .nv-allocation-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nv-allocation-visual {
        width: min(100%, 320px);
    }

    .nv-allocation-legend {
        max-height: 360px;
    }
}

/* ============================================================
   Market & Portfolio - Open Position Performance
   ============================================================ */

.nv-positions-panel {
    margin-top: 4px;
}

.nv-positions-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
    color: var(--nv-text-soft);
    font-size: 12px;
}

    .nv-positions-summary strong {
        color: var(--nv-blue-950);
    }

.nv-position-group {
    margin-bottom: 10px;
    border: 1px solid var(--nv-border);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.nv-position-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    cursor: pointer;
    background: #f6fbff;
}

    .nv-position-group-header:hover {
        background: #edf7ff;
    }

    .nv-position-group-header:focus-visible {
        outline: 2px solid var(--nv-blue-600);
        outline-offset: -3px;
    }

.nv-position-group[open] > .nv-position-group-header {
    border-bottom: 1px solid var(--nv-border);
}

.nv-position-group-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

    .nv-position-group-name strong {
        color: var(--nv-blue-950);
        font-size: 14px;
        font-weight: 800;
    }

    .nv-position-group-name span {
        color: var(--nv-text);
        font-size: 12px;
    }

    .nv-position-group-name small {
        color: var(--nv-text-soft);
        font-size: 11px;
    }

.nv-position-group-totals {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    color: var(--nv-text);
    font-size: 12px;
    white-space: nowrap;
}

.nv-position-positive {
    color: #18845d !important;
}

.nv-position-negative {
    color: #bb4558 !important;
}

.nv-position-neutral {
    color: var(--nv-text-soft);
}

.nv-position-lot-detail {
    display: block;
    margin-top: 4px;
    color: var(--nv-text-soft);
    font-size: 10px;
    font-weight: 400;
}


.nv-investment-manage .nv-position-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.nv-investment-manage .nv-position-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 11px;
}

    .nv-investment-manage .nv-position-table thead th {
        padding: 10px 6px;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.025em;
        line-height: 1.3;
        text-align: right;
        white-space: nowrap;
    }

        .nv-investment-manage .nv-position-table thead th:first-child {
            text-align: left;
        }


    .nv-investment-manage .nv-position-table tbody td {
        padding: 10px 6px;
        font-size: 11px;
        line-height: 1.4;
        white-space: nowrap;
        vertical-align: middle;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        /* Right-align all numerical performance columns */
        .nv-investment-manage .nv-position-table tbody td:not(:first-child) {
            text-align: right;
        }



        /* Compact performance table alignment */

        .nv-investment-manage .nv-position-table thead th:first-child,
        .nv-investment-manage .nv-position-table tbody td:first-child {
            text-align: left;
        }

        .nv-investment-manage .nv-position-table thead th:last-child,
        .nv-investment-manage .nv-position-table tbody td:last-child {
            width: auto;
            text-align: right;
        }

.nv-position-number {
    font-variant-numeric: tabular-nums;
}

.nv-position-subvalue {
    display: block;
    margin-top: 3px;
    color: var(--nv-text-soft);
    font-size: 10px;
    font-weight: 400;
}

@media (max-width: 1100px) {
    .nv-investment-manage .nv-position-table {
        min-width: 1040px;
    }

    .nv-investment-manage .nv-position-table-scroll {
        overflow-x: auto;
    }
}


.nv-position-footnote {
    margin-top: 18px !important;
    font-size: 11px !important;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .nv-position-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nv-position-group-totals {
        justify-content: flex-start;
    }
}


/* ============================================================
   Market & Portfolio - Realised Position Performance
   ============================================================ */

.nv-realised-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.nv-realised-filter {
    padding: 8px 15px;
    border: 1px solid var(--nv-border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--nv-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

    .nv-realised-filter:hover {
        background: #edf7ff;
    }

    .nv-realised-filter.is-active {
        background: #e6f4ff;
        border-color: var(--nv-blue-600);
        color: var(--nv-blue-950);
    }

    .nv-realised-filter:focus-visible {
        outline: 2px solid var(--nv-blue-600);
        outline-offset: 2px;
    }

.nv-realised-note {
    display: block;
    margin-top: 4px;
    color: #b16d35;
    font-size: 10px;
    font-weight: 700;
}

/* Realised performance - local currency emphasis */

.nv-realised-local-line {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

/* Open positions - local currency performance */

.nv-position-local-result {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

/* Allow dual-currency asset totals to wrap on narrower screens */

.nv-investment-manage .nv-position-group-totals {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
}

/* Transaction History pagination */

.nv-history-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.nv-history-pager-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Compact cryptocurrency asset identity in investment tables */

.nv-asset-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.nv-asset-cell-detail {
    color: #55728e;
    font-size: 12px;
    font-weight: 400;
}

/* Entry price alert status and confirmation controls */

.nv-alert-status-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 6px;
    min-height: 32px;
}

    .nv-alert-status-line > button {
        margin-left: 12px;
        white-space: nowrap;
    }

.nv-entry-alert-confirm-cell {
    text-align: left !important;
    padding: 12px 16px !important;
}

.nv-entry-alert-confirm {
    text-align: left;
    padding: 16px 20px;
    background: #f7faff;
    border: 1px solid #d4e5f5;
    border-radius: 10px;
}

    .nv-entry-alert-confirm h3 {
        text-align: left;
        margin: 0 0 8px;
        font-size: 15px;
    }

    .nv-entry-alert-confirm p {
        text-align: left;
        margin: 0 0 14px;
        line-height: 1.5;
    }

.nv-entry-alert-confirm-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================================
   Exit Price Targets — inline editor
   ============================================================ */

.nv-investment-manage .table tbody td.nv-exit-target-edit-cell {
    width: auto !important;
    padding: 12px 16px !important;
    text-align: left !important;
    white-space: normal !important;
    font-weight: 400;
    color: var(--nv-text);
}

.nv-exit-target-edit-panel {
    padding: 18px 20px;
    background: #f7faff;
    border: 1px solid #d4e5f5;
    border-radius: 10px;
    text-align: left;
    white-space: normal;
}

    .nv-exit-target-edit-panel h3 {
        margin: 0 0 8px;
        font-size: 15px;
        text-align: left;
    }

    .nv-exit-target-edit-panel p {
        margin: 0 0 16px;
        text-align: left;
        line-height: 1.5;
    }

    .nv-exit-target-edit-panel .form-label {
        text-align: left;
    }

    .nv-exit-target-edit-panel .form-control {
        text-align: left;
    }

    .nv-exit-target-edit-panel .d-flex {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nv-exit-target-edit-panel .form-check {
        justify-content: flex-start;
    }

/* Exit alert status — aligned label, status and buttons */

.nv-alert-status-line.nv-exit-alert-status-line {
    display: grid;
    grid-template-columns: 70px 122px 124px;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    min-height: 44px;
    margin: 0;
}

.nv-exit-alert-status-line + .nv-exit-alert-status-line {
    margin-top: 8px;
}

.nv-exit-alert-status-line > strong,
.nv-exit-alert-status-line > span {
    white-space: nowrap;
}

.nv-exit-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

    .nv-exit-alert-actions .btn {
        width: 124px;
        margin: 0;
        white-space: nowrap;
        text-align: center;
    }
