:root {
    --bg: #07111f;
    --surface: rgba(9, 17, 30, 0.78);
    --line: rgba(148, 163, 184, 0.16);
    --text: #edf3ff;
    --muted: #9fb0cd;
    --brand-a: #4fd1c5;
    --brand-b: #60a5fa;
    --brand-c: #f59e0b;
    --success: #4ade80;
    --danger: #fb7185;
    --mono: "IBM Plex Mono", monospace;
    --display: "Space Grotesk", sans-serif;
    --shell-header-height: 3.375rem;
    --shell-footer-height: 2.45rem;
}        
/* Enable vertical sliding */
.vertical-carousel .carousel-inner {
    position: relative;
    overflow: hidden;
} 

.vertical-carousel .carousel-item {
    display: block;
    transition: transform .6s ease-in-out;
}

    /* Override Bootstrap's horizontal transforms */
    .vertical-carousel .carousel-item-next,
    .vertical-carousel .carousel-item-prev,
    .vertical-carousel .carousel-item.active {
        display: block;
    }

        .vertical-carousel .carousel-item-next.carousel-item-start,
        .vertical-carousel .carousel-item-prev.carousel-item-end {
            transform: translateY(-100%);
        }

.vertical-carousel .carousel-item-start:not(.carousel-item-next),
.vertical-carousel .carousel-item-end:not(.carousel-item-prev) {
    transform: translateY(0);
}

/* When sliding backwards */
.vertical-carousel .carousel-item-prev.carousel-item-start {
    transform: translateY(100%);
}
/* ==============================
   BASE
================================*/
html, body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--display);
    background: radial-gradient(circle at top left, rgba(79, 209, 197, 0.2), transparent 28%), radial-gradient(circle at top right, rgba(96, 165, 250, 0.22), transparent 30%), linear-gradient(160deg, #07111f 0%, #0d1a2f 52%, #111827 100%);
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2500;
    padding: 0.65rem 0.9rem;
    border-radius: 0.8rem;
    background: #f8fafc;
    color: #07111f;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0.75rem;
}

:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
    outline: 3px solid rgba(125, 211, 252, 0.95);
    outline-offset: 3px;
}

.trade-tile-card:focus-visible,
tr[role="button"]:focus-visible,
.trade-flyout-panel:focus-visible,
.notification-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.28);
}

a {
    color: inherit;
}

/* ==============================
   SHELL / LAYOUT
================================*/
.shell {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: clip;
}

.shell-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 17, 31, 0.9);
    backdrop-filter: blur(24px);
}

.shell-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.15rem;
    min-height: var(--shell-header-height);
    padding: 0.35rem 0.9rem;
    width: min(100%, 1480px);
    margin: 0 auto;
}

.brand {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.shell-brandmark {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    text-decoration: none;
    flex: 1 1 auto;
}

.shell-brand-copy {
    min-width: 0;
}
 
.shell-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 0.4rem;
    box-shadow: 0 8px 18px rgba(2, 8, 23, 0.22);
}

.shell-header-panel {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1 1 auto;
    min-width: 0;
}

.shell-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.shell-nav-link {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.shell-nav-link:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.14);
}

.shell-nav-link.active {
    color: #04111d;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.96), rgba(96, 165, 250, 0.94));
    border-color: rgba(96, 165, 250, 0.38);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.shell-nav-dropdown {
    position: relative;
}

.shell-nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
}

.shell-nav-dropdown-toggle::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.8;
}

.shell-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 14rem;
    display: none;
    padding: 0.45rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(7, 13, 24, 0.98);
    box-shadow: 0 20px 40px rgba(2, 8, 23, 0.32);
}

.shell-nav-dropdown-menu.open {
    display: grid;
    gap: 0.3rem;
}

.shell-nav-dropdown-link {
    width: 100%;
    text-align: left;
}

.shell-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.18rem;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.7rem;
    background: rgba(148, 163, 184, 0.08);
    color: var(--text);
}

.shell-menu-toggle span {
    width: 0.9rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
  
.shell-userbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
    text-align: center;
    flex: 0 0 auto;
    white-space: nowrap;
}

.shell-alert-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.shell-alert-zone-header {
    margin-left: auto;
    margin-right: 0.3rem;
}

.shell-usercopy {
    display: grid;
    justify-items: center;
    gap: 0.08rem;
    min-width: 7rem;
}

.shell-userlabel,
.shell-username {
    display: block;
}

.shell-userlabel {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shell-username {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.shell-logout {
    text-decoration: none;
    align-self: center;
    padding: 0.24rem 0.56rem;
    font-size: 0.62rem;
    line-height: 1.1;
}

.shell-passkeys-link {
    align-self: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shell-passkeys-link:hover {
    color: var(--brand-a);
}

.shell-content {
    padding-top: calc(var(--shell-header-height) + 0.45rem);
    padding-bottom: calc(var(--shell-footer-height) + 0.9rem);
}

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

.security-card {
    display: grid;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(9, 16, 29, 0.9));
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.security-card:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 18px 32px rgba(2, 8, 23, 0.24);
}

.security-card-copy {
    display: grid;
    gap: 0.45rem;
}

.security-card-copy h3 {
    margin: 0;
    font-size: 1.05rem;
}

.security-card-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.security-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.security-actions .btn {
    pointer-events: none;
}

.notification-stack {
    position: fixed;
    top: calc(var(--shell-header-height) + 1rem);
    right: 1rem;
    z-index: 2100;
    display: grid;
    gap: 0.75rem;
    width: min(24rem, calc(100vw - 2rem));
}

.notification-toast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.97), rgba(9, 17, 30, 0.92));
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 40px rgba(2, 8, 23, 0.32);
    border-left-width: 6px;
    overflow: hidden;
}

.notification-copy {
    min-width: 0;
}

.notification-tag {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
}

.notification-copy strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.notification-copy p {
    margin: 0;
    color: rgba(237, 243, 255, 0.88);
    font-size: 0.8rem;
    line-height: 1.45;
}

.notification-member-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.42rem;
    padding: 0.24rem 0.55rem 0.24rem 0.22rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.18);
    max-width: 100%;
}

.notification-member-party-icon {
    width: 1.08rem;
    height: 1.08rem;
    object-fit: contain;
    border-radius: 999px;
    flex: 0 0 auto;
}

.notification-member-name {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-member-party {
    padding: 0.15rem 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    font-family: var(--mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.92);
}

.notification-member-signal {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(250, 204, 21, 1) 0%, rgba(234, 179, 8, 0.9) 55%, rgba(234, 179, 8, 0) 100%);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.7), 0 0 22px rgba(245, 158, 11, 0.4);
    animation: member-activity-signal-pulse 1.6s ease-in-out infinite;
}

.validation-list {
    padding-left: 1rem;
}

.notification-close {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.notification-info {
    border-left: 4px solid var(--brand-b);
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-warning {
    border-left: 4px solid var(--brand-c);
}

.notification-alert {
    border-left: 4px solid var(--danger);
}

.notification-member {
    border-color: rgba(59, 130, 246, 0.48);
    border-left-color: #60a5fa;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.36), rgba(7, 17, 31, 0.96) 70%);
}

.notification-member .notification-tag {
    background: rgba(96, 165, 250, 0.22);
}

.notification-special-member {
    border-color: rgba(245, 158, 11, 0.55);
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.42), rgba(88, 28, 135, 0.18), rgba(7, 17, 31, 0.96) 72%);
    box-shadow: 0 22px 48px rgba(180, 83, 9, 0.22);
}

.notification-special-member .notification-tag {
    background: rgba(245, 158, 11, 0.22);
}

.notification-whale {
    border-color: rgba(244, 63, 94, 0.48);
    border-left-color: #fb7185;
    background: linear-gradient(135deg, rgba(159, 18, 57, 0.4), rgba(7, 17, 31, 0.96) 72%);
}

.notification-whale .notification-tag {
    background: rgba(251, 113, 133, 0.2);
}

.notification-portfolio {
    border-color: rgba(20, 184, 166, 0.48);
    border-left-color: #2dd4bf;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.38), rgba(7, 17, 31, 0.96) 72%);
}

.notification-portfolio .notification-tag {
    background: rgba(45, 212, 191, 0.2);
}

.notification-portfolio-pulse {
    border-color: rgba(248, 113, 113, 0.58);
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.5), rgba(69, 10, 10, 0.28), rgba(7, 17, 31, 0.96) 72%);
    box-shadow: 0 22px 48px rgba(239, 68, 68, 0.22);
}

.notification-portfolio-pulse .notification-tag {
    background: rgba(239, 68, 68, 0.22);
}

.notification-gainer {
    border-color: rgba(74, 222, 128, 0.46);
    border-left-color: #4ade80;
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.36), rgba(7, 17, 31, 0.96) 72%);
}

.notification-gainer .notification-tag {
    background: rgba(74, 222, 128, 0.2);
}

.notification-loser {
    border-color: rgba(248, 113, 113, 0.48);
    border-left-color: #f87171;
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.4), rgba(7, 17, 31, 0.96) 72%);
}

.notification-loser .notification-tag {
    background: rgba(248, 113, 113, 0.18);
}

.shell-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
    background: rgba(7, 17, 31, 0.94);
    backdrop-filter: blur(24px);
    z-index: 2000;
    transform: translateZ(0);
    will-change: transform;
}

.shell-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem 0.8rem;
    min-height: var(--shell-footer-height);
    padding: 0.28rem 0.9rem;
    width: min(100%, 1480px);
    margin: 0 auto;
}

.shell-footer-copy,
.shell-footer-links {
    color: var(--muted);
    font-size: 0.62rem;
}

.shell-footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
}

.eyebrow {
    color: var(--brand-a);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    margin-bottom: 0.45rem;
}

.login-screen {
    min-height: calc(100vh - var(--shell-header-height) - var(--shell-footer-height) - 2rem);
    display: grid;
    place-items: center;
    padding: 2rem 1rem 3rem;
}

.login-card {
    width: min(28rem, 100%);
    padding: 1.5rem;
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.96), rgba(7, 13, 24, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 48px rgba(2, 8, 23, 0.42);
}

.login-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: min(64rem, 100%);
}

.login-card-qr,
.login-card-mobile {
    width: 100%;
}

.login-card h1 {
    margin: 0.25rem 0 0.6rem;
}

.login-card h2 {
    margin: 0.25rem 0 0.6rem;
    font-size: 1.7rem;
}

.login-copy {
    color: var(--muted);
    margin-bottom: 1rem;
}

.login-form {
    display: grid;
}

.login-error {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.32);
    border: 1px solid rgba(248, 113, 113, 0.24);
}

.login-success {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    color: #d1fae5;
    background: rgba(6, 95, 70, 0.3);
    border: 1px solid rgba(74, 222, 128, 0.24);
}

.login-qr-panel {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.5);
}

.login-qr-placeholder {
    min-height: 18rem;
    display: grid;
    place-items: center;
    width: 100%;
    color: var(--muted);
    text-align: center;
    padding: 1rem;
}

.login-qr-image {
    width: min(18rem, 100%);
    aspect-ratio: 1;
    padding: 0.8rem;
    border-radius: 1rem;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.login-qr-status {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.login-qr-link {
    color: var(--brand-a);
    font-family: var(--mono);
    font-size: 0.82rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-qr-link:hover {
    color: var(--text);
}

.invite-summary {
    margin-top: 1rem;
}

.invite-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.invite-qr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    padding: 0.3rem;
    background: rgba(8, 15, 28, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.invite-qr-thumb {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.7rem;
    display: block;
    background: #f8fafc;
}

.login-warning {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.32);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.login-passkey {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.login-passkey-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.login-passkey-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-passkey-note {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.passkey-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: min(68rem, 100%);
}

.passkey-card {
    width: 100%;
}

.passkey-register {
    margin-top: 1.1rem;
}

.passkey-empty {
    min-height: 14rem;
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    color: var(--muted);
    text-align: center;
}

.shell-alert-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.84);
    color: #f8fafc;
    appearance: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.shell-alert-bell:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.24);
}

.shell-alert-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
}

.shell-alert-bell-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.96;
}

.shell-alert-bell-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px rgba(7, 17, 31, 0.9);
}

.shell-alert-bell.is-active {
    border-color: rgba(248, 113, 113, 0.62);
    background: linear-gradient(135deg, rgba(69, 10, 10, 0.92), rgba(127, 29, 29, 0.9), rgba(31, 41, 55, 0.94));
    color: #ffe4e6;
    box-shadow: 0 0 16px rgba(248, 113, 113, 0.34);
    animation: shell-alert-bell-flash 1.05s ease-in-out infinite;
}

@keyframes shell-alert-bell-flash {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(248, 113, 113, 0.14);
    }

    50% {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 0 24px rgba(248, 113, 113, 0.52);
    }
}

.passkey-list {
    display: grid;
    gap: 0.85rem;
}

.passkey-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.48);
}

.passkey-copy {
    min-width: 0;
}

.passkey-name {
    font-size: 1rem;
    font-weight: 600;
}

.passkey-meta {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ==============================
   HERO PANEL
================================*/
.hero-panel {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.14), rgba(96, 165, 250, 0.14)), rgba(8, 14, 26, 0.75);
    box-shadow: 0 30px 80px rgba(2, 8, 23, 0.35);
}

    .hero-panel h1 {
        font-size: clamp(2.3rem, 4vw, 4rem);
        line-height: 1;
        letter-spacing: -0.05em;
        max-width: 11ch;
        margin-bottom: 1rem;
    }

.hero-metrics {
    display: grid;
    gap: 1rem;
}

.hero-text,
.section-head p,
.table-meta,
.stat-sub,
.empty-state {
    color: var(--muted);
}

.hero-text {
    font-size: 0.95rem !important;
    line-height: 1.1 !important;
}

/* ==============================
   MARKET BOARD
================================*/
.market-board {
    padding: 1.5rem;
    background: radial-gradient(circle at top left, rgba(79, 209, 197, 0.16), transparent 28%), linear-gradient(180deg, rgba(17, 26, 45, 0.95), rgba(7, 13, 24, 0.95));
}

.market-board-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.market-board-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    width: min(100%, 38rem);
}

.market-kpi-title {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: var(--mono);
    margin-bottom: 0.15rem !important;
}

.compact-metric {
    padding: 1rem 1.1rem;
}

    .compact-metric strong {
        font-size: 1.45rem;
    }

/* ==============================
   CANVAS / CHART WRAPS
================================*/
.market-canvas-wrap,
.chart-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 19rem;
    height: 19rem;
    padding: 0.75rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(8, 14, 26, 0.66), rgba(11, 19, 35, 0.9));
}

.market-canvas-wrap {
    min-height: 8.5rem;
    max-height: 8.5rem;
}

.chart-surface .chart-canvas-wrap {
    min-height: 20rem;
    height: 20rem;
}

.chart-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.chart-canvas-lg {
    min-height: 8.5rem;
    max-height: 8.5rem;
}

.compact-chart-wrap {
    min-height: 14rem;
    height: 14rem;
}

/* ==============================
   CARDS & SURFACES
================================*/
.metric-card,
.surface-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17, 26, 45, 0.92), rgba(7, 13, 24, 0.92));
    border-radius: 1.5rem;
    padding: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

    .metric-card span,
    .stat-label {
        display: block;
        color: var(--muted);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }

    .metric-card strong,
    .stat-value {
        display: block;
        margin: 0.35rem 0;
        font-size: 2rem;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .metric-card small {
        color: rgba(237, 243, 255, 0.72);
    }

.stat-grid .surface-card {
    height: 100%;
}

.stat-surface {
    position: relative;
    overflow: hidden;
}

    .stat-surface::after {
        content: "";
        position: absolute;
        inset: auto -20% -35% auto;
        width: 8rem;
        height: 8rem;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(96, 165, 250, 0.2), transparent 70%);
    }

/* ==============================
   SECTION HEAD
================================*/
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h2 {
        margin: 0;
        font-family: var(--display);
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.05;
        letter-spacing: -0.03em;
    }

.dashboard-search-card,
.chart-surface {
    height: 100%;
}

.dashboard-search-form {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.dashboard-search-input {
    align-items: stretch;
}

.dashboard-search-actions {
    display: flex;
    justify-content: flex-end;
}

.dashboard-head-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.dashboard-range-picker {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.dashboard-search-empty {
    padding-top: 1rem;
}

.dashboard-search-results tbody td:first-child,
.dashboard-feed-table tbody td:last-child {
    white-space: nowrap;
}

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

.chart-surface {
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(9, 16, 29, 0.88));
}

.chart-card-head {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 0.75rem;
}

.chart-card-head h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.dashboard-signal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.dashboard-signal-special {
    color: #1b1304;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.98), rgba(251, 191, 36, 0.92));
}

.dashboard-signal-portfolio {
    color: #fff2f5;
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(251, 113, 133, 0.42);
}

.dashboard-signal-member {
    color: #e0f2fe;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.42);
}

.dashboard-signal-whale {
    color: #d1fae5;
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(45, 212, 191, 0.42);
}

.dashboard-signal-tracked {
    color: #dbeafe;
    background: rgba(148, 163, 184, 0.18);
}

.activity-date-note {
    margin-top: 0.35rem;
}

.search-flyout-panel {
    width: min(46rem, calc(100vw - 1rem));
}

.search-flyout-toolbar {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.search-result-row {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.34);
}

.portfolio-section-title {
    font-size: 1.12rem !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.portfolio-subsection-title {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ==============================
   BUTTONS
================================*/
.btn-gradient,
.btn-glass {
    border-radius: 999px;
    padding-inline: 1rem;
}

.btn-gradient {
    color: #08111f;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b), var(--brand-c));
    border: none;
    font-weight: 700;
}

.btn-glass {
    color: var(--text);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

/* ==============================
   TABLE
================================*/
.rich-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: rgba(96, 165, 250, 0.08);
    --bs-table-border-color: rgba(148, 163, 184, 0.12);
    margin-bottom: 0;
}

#filings .rich-table {
    font-size: 0.74rem;
}

#filings .rich-table thead th {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#filings .rich-table tbody td {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 0.7rem;
}

#filings .rich-table .fw-semibold,
#filings .rich-table .mono,
#filings .rich-table .pill {
    font-size: 0.66rem;
}

#filings .rich-table .table-meta,
#filings .rich-table .party-badge {
    font-size: 0.58rem;
}

.member-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.whale-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.whale-dashboard-tile {
    align-content: start;
}

.whale-dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

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

.whale-dashboard-tickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.whale-dashboard-chip {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--text);
}

.whale-dashboard-row,
.portfolio-signal-row {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.58);
    color: inherit;
    text-align: left;
}

.whale-dashboard-row:hover,
.portfolio-signal-row:hover,
.whale-dashboard-chip:hover {
    border-color: rgba(79, 209, 197, 0.32);
    background: rgba(15, 23, 42, 0.82);
}

.portfolio-signal-list {
    gap: 0.85rem;
}

.portfolio-signal-ticker {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

.member-tile {
    display: grid;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem 1.05rem;
    text-align: left;
    color: var(--text);
    background: linear-gradient(180deg, rgba(17, 26, 45, 0.92), rgba(7, 13, 24, 0.92));
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.member-tile-head,
.member-tile-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.member-tile-count {
    color: var(--brand-c);
    font-family: var(--mono);
    font-size: 0.68rem;
    white-space: nowrap;
}

.member-tile-meta {
    color: var(--muted);
    font-size: 0.62rem;
    font-family: var(--mono);
}

.member-tile-activity {
    color: var(--text);
    font-size: 0.7rem;
    line-height: 1.35;
}

.member-tile-filings {
    display: grid;
    gap: 0.45rem;
    max-height: 16rem;
    overflow-y: auto;
    padding-top: 0.2rem;
}

.member-tile-filing {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    text-align: left;
    color: var(--text);
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.9rem;
}

.member-tile-filing-main,
.member-tile-filing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.member-tile-filing-meta {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.6rem;
}

/* ==============================
   PILLS
================================*/
.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pill-buy {
    background: rgba(74, 222, 128, 0.14);
    color: var(--success);
}

.pill-sell {
    background: rgba(251, 113, 133, 0.14);
    color: var(--danger);
}

.pill-neutral {
    background: rgba(148, 163, 184, 0.14);
    color: var(--muted);
}

/* ==============================
   QUOTE / MEMBER CARDS
================================*/
.quote-card,
.member-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.08), rgba(96, 165, 250, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.quote-card {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
}

.quote-card-main {
    min-width: 0;
}

.quote-card-side {
    min-width: 5.5rem;
}

.member-card {
    grid-template-columns: auto 1fr auto;
}

.member-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    color: #08111f;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.member-count {
    color: var(--brand-c);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.member-flag {
    text-align: right;
}

.member-hit {
    margin-top: 0.35rem;
    color: var(--success);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

/* ==============================
   TICKER
================================*/
.ticker-ribbon {
    overflow: hidden;
}

.ticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.ticker-stack {
    display: grid;
    grid-template-columns: repeat(10, 84px);
    gap: 0.35rem;
    justify-content: space-between;
    align-content: flex-start;
}

.hot-ticker-stack {
    margin-bottom: 0.85rem;
}

.watchlist-input {
    min-width: 13rem;
}

.ticker-chip {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0.04rem;
    width: 95px;
    min-width: 95px;
    height: 65px;
    padding: 0.11rem 0.12rem;
    border-radius: 0.38rem;
    background: linear-gradient(180deg, rgba(17, 26, 45, 0.92), rgba(7, 13, 24, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    box-sizing: border-box;
}

.ticker-chip-neutral {
    border-left: 4px solid rgba(148, 163, 184, 0.4);
}

.ticker-chip-member-dem {
    border-color: rgba(96, 165, 250, 0.55);
    border-left: 4px solid #60a5fa;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.14);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(17, 26, 45, 0.92));
}

.ticker-chip-member-rep {
    border-color: rgba(251, 113, 133, 0.55);
    border-left: 4px solid #fb7185;
    box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.14);
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.24), rgba(17, 26, 45, 0.92));
}

.ticker-chip-member-other {
    border-color: rgba(245, 158, 11, 0.55);
    border-left: 4px solid #f59e0b;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.14);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(17, 26, 45, 0.92));
}

.ticker-chip .text-end {
    text-align: left !important;
}

.ticker-chip .quote-symbol {
    font-size: 0.43rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-chip .table-meta {
    font-size: 0.28rem;
    line-height: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-chip .mono.fw-semibold {
    font-size: 0.43rem;
    line-height: 1;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ticker-kpi-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.08rem;
    line-height: 1;
    min-width: 0;
}

.ticker-symbol-group {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}

.ticker-action {
    display: inline-flex;
    align-items: center;
    margin-left: 0.03rem;
    padding: 0.01rem 0.06rem;
    border-radius: 999px;
    font-size: 0.21rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    flex: 0 0 auto;
}

.ticker-action-buy {
    color: var(--success);
    background: rgba(74, 222, 128, 0.12);
}

.ticker-action-sell {
    color: var(--danger);
    background: rgba(251, 113, 133, 0.12);
}

.ticker-action-other {
    color: var(--muted);
    background: rgba(148, 163, 184, 0.12);
}

.ticker-filer-line {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.04rem;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

    .ticker-filer-line > span:first-child {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ticker-member-party {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.4rem;
    height: 0.32rem;
    padding: 0 0.07rem;
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 0.18rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.ticker-filer-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-kpi-metrics {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.03rem;
    justify-content: space-between;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.22rem;
    line-height: 1;
    min-width: 0;
}

    .ticker-kpi-metrics span {
        min-width: 0;
        max-width: 48%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ticker-party-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.03rem 0.14rem;
    border-radius: 999px;
    font-size: 0.32rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ticker-party-dem {
    color: #dbeafe;
    background: rgba(96, 165, 250, 0.22);
}

.ticker-party-rep {
    color: #ffe4e6;
    background: rgba(251, 113, 133, 0.22);
}

.ticker-party-other {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.22);
}

.ticker-chip-glow-buy {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(74, 222, 128, 0.18), 0 0 22px rgba(74, 222, 128, 0.18);
}

.ticker-chip-glow-sell {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(251, 113, 133, 0.18), 0 0 22px rgba(251, 113, 133, 0.18);
}

.ticker-chip-flash-buy {
    animation: ticker-flash-buy 1.8s ease-in-out infinite;
    will-change: box-shadow, transform;
}

.ticker-chip-flash-sell {
    animation: ticker-flash-sell 1.8s ease-in-out infinite;
    will-change: box-shadow, transform;
}

.ticker-chip-flash-neutral {
    animation: ticker-flash-neutral 1.8s ease-in-out infinite;
    will-change: box-shadow, transform;
}

@keyframes ticker-flash-buy {
    0%, 100% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(74, 222, 128, 0.18), 0 0 0 0 rgba(74, 222, 128, 0.1);
        transform: translateY(0);
    }

    50% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(74, 222, 128, 0.48), 0 0 14px rgba(74, 222, 128, 0.42);
        transform: translateY(-1px);
    }
}

@keyframes ticker-flash-sell {
    0%, 100% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(251, 113, 133, 0.18), 0 0 0 0 rgba(251, 113, 133, 0.1);
        transform: translateY(0);
    }

    50% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(251, 113, 133, 0.48), 0 0 14px rgba(251, 113, 133, 0.42);
        transform: translateY(-1px);
    }
}

@keyframes ticker-flash-neutral {
    0%, 100% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(245, 158, 11, 0.18), 0 0 0 0 rgba(245, 158, 11, 0.1);
        transform: translateY(0);
    }

    50% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(245, 158, 11, 0.44), 0 0 12px rgba(245, 158, 11, 0.38);
        transform: translateY(-1px);
    }
}

/* ==============================
   MOVER CARD / HEADER
================================*/
.mover-card {
    display: flex;
    flex-direction: column;
    padding: 0.5rem !important;
}

    .mover-card .list-group {
        flex-grow: 1;
    }

.mover-header {
    background: linear-gradient(135deg, #1a1f2b, #0d1117);
    padding: 0.35rem 0.5rem !important;
    border-bottom: 2px solid rgba(0, 150, 255, 0.4);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 4px 10px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

    .mover-header::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #00aaff55, #6610f255);
        filter: blur(2px);
    }

.mover-symbol {
    font-size: 1.15rem;
    text-shadow: 0 0 8px rgba(0, 150, 255, 0.7);
}

.mover-price {
    opacity: 0.85;
}

.mover-change {
    font-size: 1.15rem;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}
  
 
/* ==============================
   LIVE PULSE DOT
================================*/
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-left: 8px;
    animation: pulseLive 1.4s infinite ease-in-out;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #ff3;
    border-radius: 50%;
    animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes pulseLive {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.4;
    }
}

/* ==============================
   PARTY FRAME / GLOW
================================*/
.party-frame {
    position: relative;
    overflow: visible !important;
    background-color: transparent !important;
    border-radius: 8px;
    z-index: 2;
}

    .party-frame::before {
        content: "";
        position: absolute;
        inset: -6px;
        border-radius: inherit;
        z-index: -1;
        filter: blur(12px);
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

.party-glow-rep::before {
    background: rgba(239, 68, 68, 0.7);
    animation: pulse-rep 2.5s infinite ease-in-out;
}

.party-glow-dem::before {
    background: rgba(59, 130, 246, 0.7);
    animation: pulse-dem 2.5s infinite ease-in-out;
}

.party-glow-ind::before {
    background: rgba(168, 85, 247, 0.7);
    animation: pulse-ind 2.5s infinite ease-in-out;
}

.party-frame.list-group-item {
    padding: 0.35rem 0.75rem !important;
    min-height: unset !important;
}

.party-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.75rem !important;
}

.party-badge-icon {
    width: 1.22rem;
    height: 1.22rem;
    object-fit: contain;
    border-radius: 999px;
    flex: 0 0 auto;
}

/* ==============================
   CHART COLUMNS
================================*/
.chart-columns {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: end;
    min-height: 230px;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.chart-value,
.chart-label,
.activity-symbol,
.activity-count {
    font-family: var(--mono);
}

.chart-value {
    color: var(--muted);
    font-size: 0.75rem;
}

.chart-bar-track {
    height: 160px;
    width: 100%;
    display: flex;
    align-items: end;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
}

.chart-bar-fill {
    width: 100%;
    border-radius: 999px;
    min-height: 10%;
    background: linear-gradient(180deg, var(--brand-c), var(--brand-b), var(--brand-a));
    box-shadow: 0 12px 32px rgba(96, 165, 250, 0.2);
}

.chart-label {
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
}

/* ==============================
   ACTIVITY
================================*/
.activity-list {
    display: grid;
    gap: 0.95rem;
}

.activity-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
}

.activity-detail-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.activity-symbol {
    min-width: 3.5rem;
    color: var(--text);
    font-weight: 600;
}

.activity-track {
    height: 0.8rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.08);
}

.activity-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
}

.activity-count {
    color: var(--muted);
    font-size: 0.78rem;
}

/* ==============================
   WATCHLIST
================================*/
.watchlist-transactions {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.watchlist-transaction {
    padding-top: 0.45rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.watchlist-transaction-head,
.watchlist-transaction-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.watchlist-transaction-meta {
    margin-top: 0.2rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.watchlist-filer {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ==============================
   TRADE TILES / FLYOUT
================================*/
.trade-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.trade-tile-card {
    width: 100%;
    text-align: left;
    color: var(--text) !important;
    background: #212529 !important;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    min-height: 0;
    cursor: pointer;
    overflow: hidden;
    font-size: 0.82rem;
}

.trade-tile-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 117, 125, 0.85) !important;
    box-shadow: 0 18px 40px rgba(2, 8, 23, 0.28);
}

.trade-tile-card.is-up {
    box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.85);
}

.trade-tile-card.is-down {
    box-shadow: inset 3px 0 0 rgba(251, 113, 133, 0.85);
}

.trade-tile-status-row,
.trade-event-top,
.trade-event-meta,
.trade-flyout-symbol-row,
.trade-flyout-highlight-top,
.trade-flyout-highlight-meta,
.trade-flyout-kpis {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.trade-tile-symbol-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.trade-tile-flag,
.trade-tile-status,
.trade-tile-action {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trade-tile-flag {
    color: #08111f;
    background: linear-gradient(135deg, var(--brand-c), #ffd166);
}

.trade-tile-company,
.trade-flyout-header p,
.trade-event-meta,
.trade-flyout-highlight-meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.trade-tile-main {
    min-width: 0;
    flex: 1 1 auto;
}

.trade-tile-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
}

.trade-tile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.trade-kpi-label,
.trade-flyout-kpi span {
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.trade-mini-badge {
    font-size: 0.6rem !important;
    padding: 0.18rem 0.38rem !important;
}

.trade-tile-company {
    font-size: 0.67rem;
    line-height: 1.2;
}

.trade-tile-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.35rem;
    align-items: stretch;
}

.trade-tile-kpi-chip {
    display: grid;
    gap: 0.15rem;
    padding: 0.38rem 0.45rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(108, 117, 125, 0.45);
    min-width: 0;
    overflow: hidden;
}

.trade-tile-kpi-chip-full {
    grid-column: 1 / -1;
}

.trade-tile-kpi-chip strong {
    color: var(--text);
    font-size: 0.72rem;
    font-family: var(--mono);
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.15;
}

.trade-tile-kpi-chip-alert {
    position: relative;
    overflow: hidden;
}

.trade-tile-kpi-chip-alert::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
}

.trade-ribbon-gainer {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
}

.trade-ribbon-gainer::before {
    background: var(--success);
}

.trade-ribbon-loser {
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.35);
}

.trade-ribbon-loser::before {
    background: var(--danger);
}

.trade-tile-yahoo {
    font-size: 0.68rem !important;
    color: var(--text) !important;
}

.trade-tile-chart {
    height: 2rem;
    padding: 0.2rem 0.3rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(108, 117, 125, 0.45);
}

.trade-sparkline-canvas {
    width: 100%;
    height: 100%;
}

.trade-sparkline-canvas-lg {
    min-height: 100%;
}

.mover-gainer {
    color: var(--success);
    background: rgba(74, 222, 128, 0.14);
}

.mover-loser {
    color: var(--danger);
    background: rgba(251, 113, 133, 0.14);
}

.mover-none {
    color: var(--muted);
    background: rgba(148, 163, 184, 0.12);
}

.action-buy {
    color: var(--success);
    background: rgba(74, 222, 128, 0.14);
}

.action-sell {
    color: var(--danger);
    background: rgba(251, 113, 133, 0.14);
}

.action-neutral {
    color: var(--muted);
    background: rgba(148, 163, 184, 0.12);
}

.trade-flyout-shell {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.trade-flyout-shell.open {
    pointer-events: auto;
}

.trade-flyout-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, 0.52);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.trade-flyout-shell.open .trade-flyout-backdrop {
    opacity: 1;
}

.trade-flyout-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(42rem, calc(100vw - 1rem));
    height: 100vh;
    padding: 1.25rem 1.25rem calc(var(--shell-footer-height) + env(safe-area-inset-bottom, 0px) + 3.4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.72) rgba(15, 23, 42, 0.68);
    scroll-padding-top: 1rem;
    scroll-padding-bottom: calc(var(--shell-footer-height) + env(safe-area-inset-bottom, 0px) + 2.6rem);
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(7, 13, 24, 0.98));
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.25rem 0 0 1.25rem;
    box-shadow: -24px 0 80px rgba(2, 8, 23, 0.5);
    transform: translateX(100%);
    transition: transform 0.22s ease, opacity 0.22s ease;
    visibility: hidden;
}

.trade-flyout-panel::-webkit-scrollbar {
    width: 0.78rem;
}

.trade-flyout-panel::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.72);
    border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.trade-flyout-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 0.18rem solid rgba(15, 23, 42, 0.72);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.95), rgba(79, 209, 197, 0.88));
}

.trade-flyout-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.98), rgba(45, 212, 191, 0.92));
}

.trade-flyout-panel > :last-child {
    margin-bottom: calc(var(--shell-footer-height) + env(safe-area-inset-bottom, 0px) + 1rem);
}

.portfolio-flyout-panel .trade-event-row {
    text-decoration: none;
}

.portfolio-trade-row {
    cursor: default;
}

.trade-flyout-shell.open .trade-flyout-panel {
    transform: translateX(0);
    visibility: visible;
}

.trade-flyout-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trade-flyout-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.trade-flyout-close {
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    padding: 0.45rem 0.8rem;
}

.page-alert-card {
    margin: 1rem 0 1.1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.42);
}

.page-alert-card.is-focused {
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25), 0 0 32px rgba(245, 158, 11, 0.12);
}

.page-alert-card-head h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.page-alert-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.page-alert-entry {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.85rem;
}

.page-alert-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

@media (max-width: 768px) {
    .page-alert-entry {
        grid-template-columns: 1fr;
    }
}

.alert-inbox-shell {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10020;
}

.alert-inbox-shell.open {
    pointer-events: auto;
}

.alert-inbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, 0.58);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.alert-inbox-shell.open .alert-inbox-backdrop {
    opacity: 1;
}

.alert-inbox-panel {
    position: absolute;
    top: calc(var(--shell-header-height) + 0.5rem);
    right: 0.5rem;
    bottom: calc(var(--shell-footer-height) + 0.5rem);
    width: min(30rem, calc(100vw - 1rem));
    padding: 1rem 1rem calc(var(--shell-footer-height) + 1.25rem);
    overflow-y: auto;
    border-radius: 1.2rem 0 0 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(7, 13, 24, 0.98));
    box-shadow: -24px 0 80px rgba(2, 8, 23, 0.5);
    transform: translateX(110%);
    transition: transform 0.22s ease;
}

.alert-inbox-shell.open .alert-inbox-panel {
    transform: translateX(0);
}

.alert-inbox-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.alert-inbox-head h3 {
    margin: 0;
}

.alert-inbox-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.alert-inbox-item {
    display: grid;
    gap: 0.6rem;
}

.alert-inbox-item-actions {
    display: flex;
    justify-content: flex-end;
}

.theme-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.theme-label-grid {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.theme-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.9rem;
}

.theme-color-field {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.44);
}

.theme-color-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-color-input .form-control-color {
    width: 3.25rem;
    min-width: 3.25rem;
    height: 2.5rem;
    padding: 0.18rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.8rem;
    background: rgba(9, 17, 30, 0.88);
}

.trade-flyout-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.trade-flyout-kpi,
.trade-flyout-highlight,
.trade-event-row {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: rgba(148, 163, 184, 0.06);
}

.trade-flyout-kpi {
    padding: 0.85rem 0.95rem;
}

.trade-flyout-kpi strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
}

.trade-flyout-sparkline {
    height: 6.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.trade-flyout-section {
    margin-bottom: 1rem;
}

.trade-flyout-section h4 {
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.trade-flyout-highlight {
    padding: 0.9rem 1rem;
}

.stock-flyout-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.portfolio-alerts-section.is-focused .trade-flyout-highlight {
    border-color: rgba(251, 191, 36, 0.38);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18), 0 0 24px rgba(245, 158, 11, 0.14);
}

.portfolio-alerts-banner {
    margin-bottom: 0.9rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.42), rgba(15, 23, 42, 0.92));
    color: #fde68a;
    font-size: 0.8rem;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.14);
}

.trade-event-list {
    display: grid;
    gap: 0.7rem;
}

.trade-event-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
}

.trade-event-filer {
    font-weight: 600;
    color: var(--text);
    font-size: 0.68rem;
}

.member-label {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    vertical-align: middle;
}

.member-label-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}

.member-label-button:hover {
    color: inherit;
}

.member-label-party-icon {
    width: 1.02rem;
    height: 1.02rem;
    object-fit: contain;
    border-radius: 999px;
    display: block;
    background: transparent;
    filter: drop-shadow(0 0 3px rgba(7, 17, 31, 0.16));
}

.member-label-signal {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(250, 204, 21, 1) 0%, rgba(234, 179, 8, 0.9) 55%, rgba(234, 179, 8, 0) 100%);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.7), 0 0 22px rgba(245, 158, 11, 0.4);
    animation: member-activity-signal-pulse 1.6s ease-in-out infinite;
}

.member-label-signal-lg {
    width: 0.52rem;
    height: 0.52rem;
}

.member-activity-active {
    color: #ffe28a !important;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.7), 0 0 18px rgba(245, 158, 11, 0.35);
    animation: member-activity-name-pulse 1.6s ease-in-out infinite;
}

.member-shared-ticker {
    transition: text-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    vertical-align: middle;
}

.ticker-label-whale {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.55));
    animation: whale-indicator-float 1.8s ease-in-out infinite;
}

.ticker-label-whale-button {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ticker-label-whale-lg {
    width: 1.35rem;
    height: 1.35rem;
}

.ticker-label-whale-special {
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.72));
}

#filings .member-label-party-frame {
    width: 1.05rem;
    height: 1.05rem;
}

#filings .member-label-party-icon {
    width: 0.94rem;
    height: 0.94rem;
}

.ticker-label-mover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.8rem;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    animation: mover-indicator-pulse 1.7s ease-in-out infinite;
}

.ticker-label-mover-lg {
    font-size: 0.88rem;
}

.ticker-label-mover-gainer {
    color: #7dffb1;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.65);
}

.ticker-label-mover-loser {
    color: #ff9aab;
    text-shadow: 0 0 10px rgba(251, 113, 133, 0.65);
}

.ticker-label-mover-neutral {
    color: var(--muted);
}

.whale-flyout-panel {
    border-left: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: -24px 0 60px rgba(8, 145, 178, 0.18);
}

.whale-flyout-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.whale-flyout-copy {
    font-size: 0.95rem;
    line-height: 1.65;
}

.whale-alias-badge {
    letter-spacing: 0.04em;
}

.member-shared-ticker-active {
    color: #8fd3ff !important;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.65), 0 0 20px rgba(96, 165, 250, 0.35);
    animation: member-shared-ticker-pulse 1.8s ease-in-out infinite;
}

.mover-ticker-gainer-active {
    color: #7dffb1 !important;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.75), 0 0 22px rgba(74, 222, 128, 0.35);
}

.mover-ticker-loser-active {
    color: #ff9aab !important;
    text-shadow: 0 0 12px rgba(251, 113, 133, 0.75), 0 0 22px rgba(251, 113, 133, 0.35);
}

.whale-ticker-active {
    color: #9ff7ff !important;
    text-shadow: 0 0 12px rgba(45, 212, 191, 0.75), 0 0 24px rgba(45, 212, 191, 0.4);
    animation: whale-ticker-pulse 1.5s ease-in-out infinite;
}

.special-whale-ticker-active {
    color: #ffd29a !important;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.8), 0 0 24px rgba(249, 115, 22, 0.36);
    animation: special-whale-ticker-pulse 1.5s ease-in-out infinite;
}

.portfolio-filing-active {
    color: #ffd54a !important;
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.82), 0 0 24px rgba(239, 68, 68, 0.3);
    animation: portfolio-filing-pulse 1.7s ease-in-out infinite;
}

.portfolio-pulse-active {
    color: #ff8a8a !important;
    text-shadow: 0 0 12px rgba(248, 113, 113, 0.88), 0 0 26px rgba(220, 38, 38, 0.52);
    animation: portfolio-pulse-alert 1s ease-in-out infinite;
}

.portfolio-row-alert td {
    box-shadow: inset 0 1px 0 rgba(250, 204, 21, 0.08), inset 0 -1px 0 rgba(239, 68, 68, 0.06);
}

.whale-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.55));
    animation: whale-indicator-float 1.8s ease-in-out infinite;
}

.whale-indicator-lg {
    font-size: 1rem;
}

@keyframes member-shared-ticker-pulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(96, 165, 250, 0.45), 0 0 0 rgba(96, 165, 250, 0.2);
        transform: translateY(0);
    }

    50% {
        text-shadow: 0 0 14px rgba(96, 165, 250, 0.8), 0 0 24px rgba(96, 165, 250, 0.45);
        transform: translateY(-1px);
    }
}

@keyframes whale-ticker-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(45, 212, 191, 0.5), 0 0 0 rgba(45, 212, 191, 0.2);
        transform: translateY(0);
    }

    50% {
        text-shadow: 0 0 18px rgba(45, 212, 191, 0.95), 0 0 28px rgba(45, 212, 191, 0.55);
        transform: translateY(-1px);
    }
}

@keyframes special-whale-ticker-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.55), 0 0 0 rgba(249, 115, 22, 0.22);
        transform: translateY(0);
    }

    50% {
        text-shadow: 0 0 18px rgba(251, 191, 36, 0.95), 0 0 28px rgba(249, 115, 22, 0.48);
        transform: translateY(-1px);
    }
}

@keyframes portfolio-filing-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(250, 204, 21, 0.6), 0 0 0 rgba(239, 68, 68, 0.18);
        transform: translateY(0);
    }

    50% {
        text-shadow: 0 0 18px rgba(250, 204, 21, 0.92), 0 0 28px rgba(239, 68, 68, 0.38);
        transform: translateY(-1px);
    }
}

@keyframes portfolio-pulse-alert {
    0%, 100% {
        color: #ff9b9b;
        text-shadow: 0 0 10px rgba(248, 113, 113, 0.6), 0 0 0 rgba(220, 38, 38, 0.2);
        transform: translateY(0) scale(1);
    }

    50% {
        color: #ffd0d0;
        text-shadow: 0 0 18px rgba(248, 113, 113, 1), 0 0 30px rgba(220, 38, 38, 0.6);
        transform: translateY(-1px) scale(1.03);
    }
}

@keyframes whale-indicator-float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-1px) scale(1.06);
        opacity: 1;
    }
}

@keyframes mover-indicator-pulse {
    0%, 100% {
        transform: translateY(0) scale(0.98);
        opacity: 0.88;
    }

    50% {
        transform: translateY(-1px) scale(1.08);
        opacity: 1;
    }
}

@keyframes member-activity-name-pulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(250, 204, 21, 0.45), 0 0 0 rgba(245, 158, 11, 0.18);
        transform: translateY(0);
    }

    50% {
        text-shadow: 0 0 16px rgba(250, 204, 21, 0.9), 0 0 24px rgba(245, 158, 11, 0.42);
        transform: translateY(-1px);
    }
}

@keyframes member-activity-signal-pulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.14);
        opacity: 1;
    }
}

.trade-tile-bottom-meta {
    color: var(--muted);
    font-size: 0.62rem;
}

.trade-tile-card .card-body {
    padding: 0.55rem !important;
}

.trade-tile-card .list-group-item {
    padding: 0.45rem 0.55rem !important;
}

.trade-tile-card .pill {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
}

/* ==============================
   MISC
================================*/
.quote-symbol,
.mono {
    font-family: var(--mono);
}

.empty-state {
    padding: 2rem 0.5rem 1rem;
}

.form-control,
.form-select {
    border-radius: 1rem;
}

.small {
    font-size: 0.7rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.party-frame .mt-1 {
    margin-top: 0.15rem !important;
}

/* ==============================
   RESPONSIVE
================================*/
@media (max-width: 992px) {
    :root {
        --shell-header-height: 3.2rem;
        --shell-footer-height: 2.3rem;
    }

    .login-layout {
        grid-template-columns: 1fr;
        width: min(32rem, 100%);
    }

    .passkey-layout {
        grid-template-columns: 1fr;
        width: min(38rem, 100%);
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .market-board-stats {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }

    .shell {
        padding: 1rem;
    }

    .hero-panel,
    .surface-card {
        border-radius: 1.25rem;
    }

    .shell-header-inner,
    .shell-footer-inner {
        padding-inline: 1rem;
    }

    .shell-nav {
        justify-content: flex-start;
    }

    .brand {
        font-size: 0.94rem;
    }

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

    .ticker-stack {
        grid-template-columns: repeat(5, 84px);
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    :root {
        --shell-header-height: 3.05rem;
        --shell-footer-height: 2.25rem;
    }

    .login-screen {
        padding-inline: 0.75rem;
    }

    .login-passkey-head,
    .passkey-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-card,
    .member-card,
    .shell-footer-inner,
    .section-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shell-header-inner {
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        padding-block: 0.25rem;
    }

    .shell-menu-toggle {
        display: inline-flex;
        margin-left: 0;
    }

    .shell-header-panel {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding-top: 0.45rem;
    }

    .shell-header-panel.open {
        display: flex;
    }

    .shell-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 0.45rem;
        flex-direction: column;
        align-items: stretch;
    }

    .shell-nav-link {
        width: 100%;
        text-align: center;
        padding: 0.48rem 0.72rem;
        font-size: 0.68rem;
    }

    .shell-nav-dropdown {
        width: 100%;
    }

    .shell-nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 0.3rem;
    }

    .shell-nav-dropdown-link {
        text-align: center;
    }

    .notification-stack {
        top: calc(var(--shell-header-height) + 0.75rem);
        right: 0.75rem;
        width: calc(100vw - 1.5rem);
    }

    .shell-brandmark {
        width: auto;
        flex: 1 1 auto;
    }

    .shell-userbar,
    .shell-footer-links {
        margin-left: 0;
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
    }

    .shell-alert-zone-header {
        margin-left: auto;
        margin-right: 0.2rem;
        order: 2;
    }

    .shell-userbar {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.15rem;
    }

    .shell-usercopy {
        justify-items: start;
        min-width: 0;
    }

    .shell-brand-copy {
        min-width: 0;
    }

    .shell-brand-copy .brand {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shell-footer-inner {
        gap: 0.3rem;
        padding-block: 0.22rem;
    }

    .section-head {
        align-items: stretch;
    }

    .chart-columns {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .activity-row,
    .ticker-chip {
        grid-template-columns: 1fr;
    }

    .ticker-stack {
        max-height: none;
        grid-template-columns: repeat(3, 84px);
        justify-content: space-between;
    }

    .quote-card-side {
        min-width: 0;
    }

    .trade-flyout-kpis {
        grid-template-columns: 1fr;
    }

    .stock-flyout-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-search-actions {
        justify-content: flex-start;
    }

    .dashboard-head-actions {
        justify-content: flex-start;
    }

    .trade-tile-kpis {
        grid-template-columns: 1fr;
    }

    .trade-flyout-panel {
        width: calc(100vw - 1rem);
        padding: 1rem 1rem calc(var(--shell-footer-height) + env(safe-area-inset-bottom, 0px) + 3rem);
        border-radius: 1rem 0 0 1rem;
    }

    .shell-brandmark {
        align-items: flex-start;
    }

    .shell-logo {
        width: 1.8rem;
        height: 1.8rem;
    }

    .shell-footer-links {
        gap: 0.5rem 0.85rem;
    }

    .eyebrow {
        letter-spacing: 0.14em;
        font-size: 0.68rem;
    }

    .brand {
        font-size: 0.86rem;
    }
}

.news-track {
    display: flex;
    flex-direction: column;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.news-item {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.org-tree-list {
    display: grid;
    gap: 1rem;
}

.org-tree-node {
    position: relative;
    margin-left: calc(var(--tree-depth, 0) * 1.35rem);
    padding: 1rem 1rem 1rem 1.1rem;
    border: 1px solid rgba(159, 176, 205, 0.18);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(10, 19, 34, 0.92), rgba(7, 13, 24, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.org-tree-node::before {
    content: "";
    position: absolute;
    left: -0.8rem;
    top: 1.2rem;
    bottom: 1.2rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.5), rgba(79, 209, 197, 0.1));
    border-radius: 999px;
}

.org-tree-node[style*="--tree-depth:0"]::before {
    display: none;
}

.org-tree-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.org-tree-members {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.org-tree-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(159, 176, 205, 0.12);
}

.org-vote-banner {
    margin-top: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(127, 29, 29, 0.18);
    border: 1px solid rgba(251, 113, 133, 0.32);
}

@media (max-width: 767.98px) {
    .org-tree-node {
        margin-left: calc(var(--tree-depth, 0) * 0.8rem);
        padding: 0.9rem;
    }

    .org-tree-member,
    .org-tree-head {
        flex-direction: column;
        align-items: stretch;
    }
}
