/* Tejus Ventures — design system */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --lp-bg: #02161a;
    --lp-bg-elevated: #052026;
    --lp-surface: #0A2C31;
    --lp-surface-2: #0f3a41;
    --lp-ink: #ffffff;
    --lp-muted: rgba(255, 255, 255, .62);
    --lp-faint: rgba(255, 255, 255, .4);
    --lp-blue: #027B84;
    --lp-blue-deep: #00464D;
    --lp-blue-soft: rgba(2, 123, 132, .22);
    --lp-blue-glow: rgba(2, 123, 132, .35);
    --lp-gold: #F9A101;
    --lp-gold-bright: #ffc44d;
    --lp-gold-soft: rgba(249, 161, 1, .16);
    --lp-border: rgba(255, 255, 255, .1);
    --lp-border-strong: rgba(255, 255, 255, .18);
    --lp-danger: #e85d5d;
    --lp-success: #3cb98a;
    --lp-warning: #e6b35a;
    --lp-info: #4db8c4;
    --lp-radius: 18px;
    --lp-radius-sm: 12px;
    --lp-shadow:
        0 1px 0 rgba(255, 255, 255, .06) inset,
        0 18px 48px rgba(0, 0, 0, .38),
        0 0 0 1px rgba(2, 123, 132, .08);
    --lp-shadow-sm:
        0 1px 0 rgba(255, 255, 255, .05) inset,
        0 8px 24px rgba(0, 0, 0, .28);
    --lp-shadow-hover:
        0 1px 0 rgba(255, 255, 255, .08) inset,
        0 22px 56px rgba(0, 0, 0, .42),
        0 0 40px rgba(2, 123, 132, .12);
    --lp-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --lp-sidebar: 268px;
    --lp-ease: .22s cubic-bezier(.22, 1, .36, 1);
    --lp-glass: rgba(10, 44, 49, .62);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--lp-font);
    background: var(--lp-bg);
    color: var(--lp-ink);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--lp-gold-bright);
    text-decoration: none;
    transition: color var(--lp-ease);
}

a:hover {
    color: var(--lp-gold);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5 {
    letter-spacing: -.025em;
    font-weight: 750;
    line-height: 1.18;
}

/* ========== Animated background ========== */

.tv-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(180deg, #04222a 0%, #02171c 45%, #010e11 100%);
}

/* Slow panning technical grid */
.tv-bg::before {
    content: '';
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(120, 220, 230, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 220, 230, .05) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 10%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 10%, transparent 78%);
    animation: tvGridPan 38s linear infinite;
}

/* Depth vignette above the moving layers */
.tv-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, transparent 30%, rgba(1, 12, 15, .55) 100%),
        radial-gradient(ellipse 60% 50% at 50% 115%, rgba(0, 70, 77, .35), transparent 60%);
}

.tv-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}

.tv-bg-orb.orb-1 {
    width: 46vw;
    height: 46vw;
    min-width: 380px;
    min-height: 380px;
    top: -14vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(2, 168, 180, .38), rgba(2, 123, 132, .1) 55%, transparent 72%);
    animation: tvFloatA 26s ease-in-out infinite alternate;
}

.tv-bg-orb.orb-2 {
    width: 38vw;
    height: 38vw;
    min-width: 320px;
    min-height: 320px;
    top: 8vh;
    right: -12vw;
    background: radial-gradient(circle, rgba(249, 161, 1, .22), rgba(249, 161, 1, .06) 55%, transparent 72%);
    animation: tvFloatB 32s ease-in-out infinite alternate;
}

.tv-bg-orb.orb-3 {
    width: 42vw;
    height: 42vw;
    min-width: 340px;
    min-height: 340px;
    bottom: -18vw;
    left: 32vw;
    background: radial-gradient(circle, rgba(0, 118, 128, .32), rgba(0, 70, 77, .1) 55%, transparent 72%);
    animation: tvFloatC 30s ease-in-out infinite alternate;
}

/* Slow diagonal light sweep */
.tv-bg-beam {
    position: absolute;
    top: -60%;
    left: -40%;
    width: 60%;
    height: 220%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(160, 240, 245, .045) 45%,
        rgba(255, 214, 138, .05) 55%,
        transparent 100%
    );
    filter: blur(28px);
    animation: tvBeam 22s ease-in-out infinite;
}

@keyframes tvGridPan {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(68px, 68px, 0); }
}

@keyframes tvFloatA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(6vw, 7vh, 0) scale(1.12); }
}

@keyframes tvFloatB {
    from { transform: translate3d(0, 0, 0) scale(1.06); }
    to { transform: translate3d(-7vw, 10vh, 0) scale(.94); }
}

@keyframes tvFloatC {
    from { transform: translate3d(0, 0, 0) scale(.96); }
    to { transform: translate3d(-8vw, -6vh, 0) scale(1.1); }
}

@keyframes tvBeam {
    0% { transform: translateX(0) rotate(18deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(240%) rotate(18deg); opacity: 0; }
}

@media (max-width: 767.98px) {
    .tv-bg-orb {
        filter: blur(52px);
    }

    .tv-bg-orb.orb-3,
    .tv-bg-beam {
        display: none;
    }

    .tv-surface,
    .tv-panel,
    .tv-stat,
    .tv-sidebar,
    .tv-auth-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* ========== Shell ========== */

.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    background: transparent;
}

.site-main {
    flex: 1 0 auto;
}

.tv-footer {
    flex-shrink: 0;
}

/* ========== Public navbar ========== */

.tv-navbar {
    background: rgba(2, 22, 26, .78);
    backdrop-filter: blur(18px) saturate(1.15);
    border-bottom: 1px solid var(--lp-border);
    padding: .8rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

.tv-brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--lp-ink) !important;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.tv-brand em {
    font-style: normal;
    color: var(--lp-muted);
    font-weight: 500;
}

.tv-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(145deg, #05a8b4 0%, var(--lp-blue) 45%, var(--lp-blue-deep) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-gold);
    font-size: .95rem;
    font-weight: 800;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 8px 20px rgba(2, 123, 132, .35);
    position: relative;
}

.tv-brand-mark::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.tv-brand-mark::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: radial-gradient(circle, rgba(2, 168, 180, .45), transparent 70%);
    filter: blur(6px);
    pointer-events: none;
    animation: tvBrandPulse 4.5s ease-in-out infinite;
}

@keyframes tvBrandPulse {
    0%, 100% { opacity: .35; transform: scale(.96); }
    50% { opacity: .8; transform: scale(1.05); }
}

.tv-navbar .nav-link {
    color: var(--lp-muted) !important;
    font-weight: 500;
    font-size: .92rem;
    padding: .45rem .8rem !important;
    border-radius: 8px;
    transition: background var(--lp-ease), color var(--lp-ease);
}

.tv-navbar .nav-link:hover,
.tv-navbar .nav-link.active {
    color: var(--lp-ink) !important;
    background: var(--lp-blue-soft);
}

.navbar-toggler {
    border-color: var(--lp-border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== Buttons ========== */

.btn {
    transition:
        background var(--lp-ease),
        border-color var(--lp-ease),
        color var(--lp-ease),
        transform var(--lp-ease),
        box-shadow var(--lp-ease);
}

.btn-tv-primary {
    background: linear-gradient(180deg, #04919c 0%, var(--lp-blue) 55%, var(--lp-blue-deep) 100%);
    border: 1px solid rgba(143, 219, 226, .25);
    color: #fff;
    font-weight: 650;
    border-radius: var(--lp-radius-sm);
    padding: .68rem 1.25rem;
    box-shadow: 0 8px 22px rgba(2, 123, 132, .28);
}

.btn-tv-primary:hover,
.btn-tv-primary:focus {
    background: linear-gradient(180deg, #05a3af 0%, #028a94 100%);
    border-color: rgba(143, 219, 226, .4);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(2, 123, 132, .38);
}

.btn-tv-gold {
    background: linear-gradient(180deg, #ffd06a 0%, var(--lp-gold-bright) 35%, var(--lp-gold) 100%);
    border: 1px solid rgba(255, 220, 140, .45);
    color: #02161a;
    font-weight: 750;
    border-radius: var(--lp-radius-sm);
    padding: .68rem 1.25rem;
    box-shadow: 0 10px 28px rgba(249, 161, 1, .28);
}

.btn-tv-gold:hover,
.btn-tv-gold:focus {
    background: linear-gradient(180deg, #ffe08a, var(--lp-gold-bright));
    border-color: rgba(255, 220, 140, .65);
    color: #02161a;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(249, 161, 1, .36);
}

/* Sheen sweep on primary actions */
.btn-tv-primary,
.btn-tv-gold {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-tv-primary::after,
.btn-tv-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-20deg);
    opacity: 0;
    z-index: -1;
}

.btn-tv-primary:hover::after,
.btn-tv-gold:hover::after {
    animation: tvSheen .85s ease-out;
}

.btn-tv-outline {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--lp-border-strong);
    color: var(--lp-ink);
    font-weight: 650;
    border-radius: var(--lp-radius-sm);
    padding: .68rem 1.25rem;
    backdrop-filter: blur(8px);
}

.btn-tv-outline:hover,
.btn-tv-outline:focus {
    background: var(--lp-blue-soft);
    border-color: rgba(2, 123, 132, .55);
    color: var(--lp-ink);
    transform: translateY(-1px);
}

/* ========== Surfaces ========== */

.tv-surface,
.tv-panel {
    position: relative;
    background:
        linear-gradient(155deg, rgba(20, 68, 76, .72) 0%, rgba(10, 44, 49, .8) 48%, rgba(6, 31, 35, .86) 100%);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-sm);
    overflow: hidden;
}

.tv-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 232, 240, .45), rgba(255, 214, 138, .35), transparent);
    background-size: 220% 100%;
    background-position: 0 0;
    pointer-events: none;
}

.tv-panel-hover:hover::before,
.tv-stock-card:hover::before,
.tv-order-card:hover::before {
    animation: tvHairline 1.5s cubic-bezier(.22, 1, .36, 1);
}

@keyframes tvHairline {
    from { background-position: -120% 0; }
    to { background-position: 120% 0; }
}

.tv-panel {
    padding: 1.4rem;
    height: auto;
    transition:
        border-color var(--lp-ease),
        transform var(--lp-ease),
        box-shadow var(--lp-ease);
}

.tv-panel-hover:hover,
.tv-stat:hover,
.tv-stock-card:hover,
.tv-order-card:hover {
    border-color: rgba(2, 123, 132, .5);
    transform: translateY(-3px);
    box-shadow: var(--lp-shadow-hover);
}

.tv-glass {
    background: var(--lp-glass);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow-sm);
}

.tv-section {
    padding: 4rem 0;
}

.tv-section-title {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 750;
    margin-bottom: .55rem;
}

.tv-section-lead {
    color: var(--lp-muted);
    max-width: 36rem;
    margin-bottom: 2rem;
}

.tv-muted { color: var(--lp-muted); }
.tv-gold { color: var(--lp-gold); }
.tv-faint { color: var(--lp-faint); }

.tv-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: var(--lp-blue-soft);
    color: var(--lp-gold-bright);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tv-badge-hot {
    background: rgba(249, 161, 1, .16);
    color: var(--lp-gold-bright);
}

.tv-badge-featured {
    background: rgba(249, 161, 1, .22);
    color: var(--lp-gold);
    border: 1px solid rgba(249, 161, 1, .3);
}

/* ========== Pills / status ========== */

.tv-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .55rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    white-space: nowrap;
}

.tv-pill-xs {
    font-size: .65rem;
    padding: .15rem .4rem;
    margin-left: auto;
}

.tv-pill-success { background: rgba(60, 185, 138, .18); color: #9aebc8; }
.tv-pill-danger { background: rgba(232, 93, 93, .16); color: #ffb3b3; }
.tv-pill-warning { background: rgba(230, 179, 90, .16); color: #ffd999; }
.tv-pill-info { background: rgba(77, 184, 196, .16); color: #a8e8ef; }
.tv-pill-muted { background: rgba(255, 255, 255, .08); color: var(--lp-muted); }
.tv-pill-buy { background: rgba(2, 123, 132, .28); color: #8fdbe2; }
.tv-pill-sell { background: rgba(249, 161, 1, .18); color: var(--lp-gold-bright); }

.tv-status {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--lp-blue-soft);
    color: var(--lp-ink);
}

.tv-status-available {
    background: rgba(60, 185, 138, .18);
    color: #9aebc8;
}

.tv-status-unavailable {
    background: rgba(232, 93, 93, .15);
    color: #ffb3b3;
}

/* ========== Forms ========== */

.tv-form-label {
    color: var(--lp-muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: .4rem;
}

.tv-form-control,
.form-control.tv-form-control,
.form-select.tv-form-control {
    background: rgba(2, 22, 26, .65);
    border: 1px solid var(--lp-border);
    color: var(--lp-ink);
    border-radius: var(--lp-radius-sm);
    padding: .75rem .95rem;
    min-height: 46px;
    transition: border-color var(--lp-ease), box-shadow var(--lp-ease), background var(--lp-ease);
}

.tv-form-control:focus {
    background: rgba(2, 22, 26, .85);
    border-color: var(--lp-blue);
    color: var(--lp-ink);
    box-shadow: 0 0 0 .2rem var(--lp-blue-soft);
}

.tv-form-control::placeholder {
    color: rgba(255, 255, 255, .32);
}

.form-select.tv-form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* ========== Tables ========== */

.tv-table {
    color: var(--lp-ink);
    --bs-table-bg: transparent;
    --bs-table-color: var(--lp-ink);
    --bs-table-border-color: var(--lp-border);
    --bs-table-hover-bg: rgba(2, 123, 132, .1);
    --bs-table-hover-color: var(--lp-ink);
    margin-bottom: 0;
}

.tv-table thead th {
    color: var(--lp-faint);
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom-color: var(--lp-border);
    padding: .9rem 1rem;
    background: rgba(0, 0, 0, .18);
}

.tv-table td {
    padding: .95rem 1rem;
    vertical-align: middle;
    border-color: var(--lp-border);
}

.tv-table .tv-money {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
}

.tv-table th.tv-money {
    text-align: right;
}

/* ========== Alerts ========== */

.tv-alert {
    border-radius: var(--lp-radius-sm);
    border: 1px solid var(--lp-border);
    padding: .9rem 1.05rem;
}

.tv-alert-success { background: rgba(60, 185, 138, .14); color: #9aebc8; }
.tv-alert-danger { background: rgba(232, 93, 93, .14); color: #ffb3b3; }
.tv-alert-info { background: var(--lp-blue-soft); color: #b8e4e8; }
.tv-alert-warning { background: rgba(230, 179, 90, .14); color: #ffd999; }

/* ========== Hero / page intro ========== */

.tv-hero {
    padding: 4.75rem 0 3.75rem;
    position: relative;
}

.tv-hero h1 {
    font-size: clamp(2.05rem, 4.6vw, 3.35rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
    max-width: 18ch;
    margin-bottom: 1.15rem;
    background: linear-gradient(120deg, #ffffff 10%, #d7f4f7 55%, #ffe0a0 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tv-hero .lead {
    color: var(--lp-muted);
    font-size: 1.05rem;
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.tv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.tv-hero-aside {
    background: linear-gradient(160deg, rgba(2, 150, 161, .3), rgba(10, 44, 49, .8));
}

.tv-hero-aside::after {
    content: '';
    position: absolute;
    top: -35%;
    right: -18%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 161, 1, .16), transparent 68%);
    pointer-events: none;
    animation: tvOrb 11s ease-in-out infinite alternate;
}

.tv-page-intro {
    padding: 2.25rem 0 1.25rem;
}

.tv-page-intro h1 {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 750;
    margin-bottom: .4rem;
}

/* ========== Stats / dashboard ========== */

.tv-stat {
    position: relative;
    background:
        linear-gradient(160deg, rgba(22, 74, 82, .74) 0%, rgba(10, 44, 49, .82) 55%, rgba(6, 30, 34, .9) 100%);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 1.25rem 1.3rem;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--lp-shadow-sm);
    transition:
        border-color var(--lp-ease),
        transform var(--lp-ease),
        box-shadow var(--lp-ease);
}

.tv-stat::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 168, 180, .26), transparent 70%);
    pointer-events: none;
    animation: tvOrb 9s ease-in-out infinite alternate;
}

/* Light sweep across stat cards on hover */
.tv-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .07), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
}

.tv-stat:hover::before {
    animation: tvSheen 1.1s ease-out;
}

@keyframes tvSheen {
    0% { left: -60%; opacity: 0; }
    25% { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

.tv-stat .label {
    color: var(--lp-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    position: relative;
}

.tv-stat .value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: .4rem;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    position: relative;
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .78));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tv-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(2, 123, 132, .35), rgba(0, 70, 77, .5));
    color: var(--lp-gold-bright);
    font-size: 1.1rem;
    margin-bottom: .8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    position: relative;
}

.tv-stat-icon.gold {
    background: linear-gradient(145deg, rgba(249, 161, 1, .28), rgba(249, 161, 1, .1));
    color: var(--lp-gold);
}

.tv-portfolio-hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--lp-radius) + 4px);
    border: 1px solid rgba(2, 123, 132, .42);
    background:
        linear-gradient(125deg, rgba(2, 150, 161, .42) 0%, rgba(10, 44, 49, .82) 35%, rgba(4, 28, 33, .9) 68%, rgba(249, 161, 1, .14) 100%);
    background-size: 180% 180%;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    padding: 1.9rem 1.85rem 1.65rem;
    box-shadow: var(--lp-shadow);
    animation:
        tvFadeUp .55s cubic-bezier(.22, 1, .36, 1) both,
        tvHeroShift 20s ease-in-out infinite alternate;
}

@keyframes tvHeroShift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

.tv-portfolio-hero::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -8%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 161, 1, .18), transparent 68%);
    pointer-events: none;
    animation: tvOrb 12s ease-in-out infinite alternate;
}

.tv-portfolio-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 123, 132, .28), transparent 70%);
    pointer-events: none;
    animation: tvOrb 14s ease-in-out infinite alternate-reverse;
}

.tv-portfolio-hero .hero-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--lp-muted);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.tv-portfolio-hero .hero-value {
    font-size: clamp(2.1rem, 4.2vw, 2.95rem);
    font-weight: 800;
    letter-spacing: -.04em;
    margin: .4rem 0 .95rem;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
    background: linear-gradient(105deg, #ffffff 20%, #c9f3f6 55%, var(--lp-gold-bright) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tv-portfolio-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.85rem;
    position: relative;
    z-index: 1;
}

.tv-portfolio-hero .hero-meta div span {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--lp-faint);
    font-weight: 600;
}

.tv-portfolio-hero .hero-meta div strong {
    font-size: 1.05rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.tv-dash-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #05a8b4, var(--lp-blue-deep));
    color: var(--lp-gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .2),
        0 6px 16px rgba(2, 123, 132, .35);
    transition: transform var(--lp-ease), box-shadow var(--lp-ease);
}

.tv-avatar:hover {
    transform: translateY(-1px) scale(1.03);
}

.tv-kyc-card {
    border: 1px solid rgba(249, 161, 1, .3);
    background: linear-gradient(145deg, rgba(249, 161, 1, .14), rgba(10, 44, 49, .95));
    box-shadow: 0 12px 36px rgba(249, 161, 1, .08);
}

.tv-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.tv-empty i {
    font-size: 2rem;
    color: var(--lp-faint);
    margin-bottom: .75rem;
}

/* ========== Stock cards ========== */

.tv-stock-card {
    display: flex;
    flex-direction: column;
    padding: 1.3rem;
}

.tv-stock-card.is-featured {
    border-color: rgba(249, 161, 1, .35);
    box-shadow:
        var(--lp-shadow-sm),
        0 0 0 1px rgba(249, 161, 1, .08),
        0 16px 40px rgba(249, 161, 1, .08);
}

.tv-auth-card {
    background:
        linear-gradient(165deg, rgba(20, 68, 76, .74) 0%, rgba(10, 44, 49, .82) 55%, rgba(5, 26, 30, .9) 100%);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 2.1rem;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--lp-shadow);
    position: relative;
    overflow: hidden;
}

.tv-auth-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 123, 132, .3), transparent 70%);
    pointer-events: none;
}

.tv-form-control:focus {
    background: rgba(2, 22, 26, .88);
    border-color: rgba(2, 123, 132, .75);
    color: var(--lp-ink);
    box-shadow:
        0 0 0 .2rem var(--lp-blue-soft),
        0 0 24px rgba(2, 123, 132, .18);
}

.tv-stock-logo,
.tv-stock-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform var(--lp-ease), box-shadow var(--lp-ease);
}

.tv-stock-card:hover .tv-stock-logo,
.tv-stock-card:hover .tv-stock-logo-fallback {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(2, 123, 132, .32);
}

.tv-stock-logo-fallback {
    background: var(--lp-blue-soft);
    color: var(--lp-gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
}

.tv-stock-logo-lg,
.tv-stock-logo-fallback.tv-stock-logo-lg {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    font-size: 1.5rem;
}

.tv-price {
    font-size: 1.35rem;
    font-weight: 750;
    color: var(--lp-gold);
    font-variant-numeric: tabular-nums;
}

.tv-metric {
    font-size: .85rem;
    color: var(--lp-muted);
}

.tv-metric strong {
    color: var(--lp-ink);
    font-weight: 600;
}

/* ========== App layout (sidebar) ========== */

body.tv-app {
    background: var(--lp-bg);
}

body.tv-app .site-wrap {
    background: transparent;
}

.tv-app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.tv-sidebar {
    width: var(--lp-sidebar);
    flex-shrink: 0;
    background:
        linear-gradient(180deg, rgba(6, 34, 40, .82) 0%, rgba(3, 19, 23, .88) 55%, rgba(2, 16, 20, .92) 100%);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    border-right: 1px solid var(--lp-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
    box-shadow: 12px 0 40px rgba(0, 0, 0, .25);
}

.tv-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: radial-gradient(ellipse at top left, rgba(2, 123, 132, .28), transparent 70%);
    pointer-events: none;
}

.tv-sidebar-brand {
    padding: 1.15rem 1.15rem .85rem;
    border-bottom: 1px solid var(--lp-border);
}

.tv-sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem .85rem;
    overscroll-behavior: contain;
}

.tv-nav-group {
    margin-bottom: 1.25rem;
}

.tv-nav-label {
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lp-faint);
    padding: 0 .65rem;
    margin-bottom: .4rem;
}

.tv-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--lp-muted) !important;
    padding: .58rem .75rem;
    border-radius: 11px;
    font-size: .9rem;
    font-weight: 550;
    margin-bottom: .18rem;
    transition:
        background var(--lp-ease),
        color var(--lp-ease),
        transform var(--lp-ease),
        box-shadow var(--lp-ease);
}

.tv-nav-link i {
    font-size: 1.05rem;
    opacity: .9;
    width: 1.15rem;
    text-align: center;
    transition: color var(--lp-ease);
}

.tv-nav-link:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--lp-ink) !important;
    transform: translateX(2px);
}

.tv-nav-link.active {
    background: linear-gradient(90deg, rgba(2, 123, 132, .32), rgba(2, 123, 132, .12));
    color: var(--lp-ink) !important;
    box-shadow: inset 2px 0 0 var(--lp-gold);
}

.tv-nav-link.active i {
    color: var(--lp-gold-bright);
}

.tv-sidebar-foot {
    padding: .9rem;
    border-top: 1px solid var(--lp-border);
}

.tv-sidebar-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .55rem;
    padding: .35rem .4rem;
}

.tv-sidebar-user-meta {
    min-width: 0;
}

.tv-sidebar-user-meta strong {
    display: block;
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-sidebar-user-meta span {
    font-size: .7rem;
    font-weight: 600;
}

.tv-nav-logout {
    color: #ffb3b3 !important;
}

.tv-app-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tv-app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid var(--lp-border);
    background: rgba(2, 22, 26, .72);
    backdrop-filter: blur(16px) saturate(1.15);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.tv-app-content {
    flex: 1 0 auto;
    padding: 1.6rem 1.6rem 2.6rem;
    background:
        radial-gradient(ellipse 80% 40% at 100% 0%, rgba(2, 123, 132, .1), transparent 50%);
}

.tv-app-footer {
    border-top: 1px solid var(--lp-border);
    padding: 1rem 1.5rem;
    color: var(--lp-faint);
    font-size: .8rem;
}

.tv-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--lp-border);
    color: var(--lp-ink);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

.tv-sidebar-backdrop {
    display: none;
}

/* ========== Order cards (mobile-friendly) ========== */

.tv-order-card {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    padding: 1.1rem 1.2rem;
    margin-bottom: .85rem;
    transition: border-color var(--lp-ease);
}

.tv-order-card:hover {
    border-color: rgba(2, 123, 132, .4);
}

.tv-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1rem;
    margin-top: .75rem;
}

.tv-order-grid .item span {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--lp-faint);
    font-weight: 600;
}

.tv-order-grid .item strong {
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
}

/* ========== Auth / misc ========== */

.tv-auth-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
}

.tv-footer {
    border-top: 1px solid var(--lp-border);
    background: rgba(2, 20, 24, .74);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.tv-footer h5 {
    font-size: .9rem;
    margin-bottom: 1rem;
}

.tv-footer a {
    color: var(--lp-muted);
    display: block;
    margin-bottom: .4rem;
}

.tv-footer a:hover { color: var(--lp-ink); }

.tv-footer-copy {
    color: var(--lp-muted);
    font-size: .85rem;
    border-top: 1px solid var(--lp-border);
    margin-top: 1.75rem;
    padding-top: 1.25rem;
}

.tv-trust-item {
    background: linear-gradient(155deg, rgba(20, 68, 76, .6), rgba(8, 36, 41, .78));
    backdrop-filter: blur(12px) saturate(1.12);
    -webkit-backdrop-filter: blur(12px) saturate(1.12);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 1rem 1.1rem;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .9rem;
}

.tv-trust-item i { color: var(--lp-gold); font-size: 1.15rem; }

.tv-icon-round {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--lp-blue-soft);
    color: var(--lp-gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.tv-steps .tv-step {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 1.25rem;
    height: 100%;
}

.tv-step-num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-blue);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .75rem;
}

.tv-breadcrumb { font-size: .85rem; color: var(--lp-muted); }
.tv-breadcrumb a { color: var(--lp-muted); }
.tv-breadcrumb a:hover { color: var(--lp-ink); }
.tv-breadcrumb span { margin: 0 .35rem; }

.tv-metric-list { list-style: none; padding: 0; margin: 0; }
.tv-metric-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--lp-border);
    font-size: .92rem;
}
.tv-metric-list li:last-child { border-bottom: 0; }
.tv-metric-list span { color: var(--lp-muted); }

.tv-plain-list { list-style: none; padding: 0; margin: 0; }
.tv-plain-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .65rem;
}

.tv-lifecycle { max-width: 420px; }
.tv-lifecycle-item {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: .85rem 1.1rem;
    font-weight: 600;
}
.tv-lifecycle-item.is-focus {
    border-color: var(--lp-gold);
    background: linear-gradient(135deg, rgba(249, 161, 1, .12), var(--lp-surface));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.tv-lifecycle-item.is-focus span {
    color: var(--lp-gold);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}
.tv-lifecycle-arrow { text-align: center; color: var(--lp-muted); padding: .25rem 0; }

.tv-prose { color: rgba(255, 255, 255, .82); }

.tv-kyc-banner {
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
}

.tv-kyc-banner.verified {
    border-color: rgba(60, 185, 138, .35);
    background: rgba(60, 185, 138, .08);
}

.tv-kyc-banner.submitted {
    border-color: rgba(230, 179, 90, .35);
    background: rgba(230, 179, 90, .08);
}

.tv-kyc-banner.rejected,
.tv-kyc-banner.pending {
    border-color: rgba(249, 161, 1, .28);
    background: rgba(249, 161, 1, .07);
}

.tv-section-card {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: linear-gradient(155deg, rgba(20, 68, 76, .68), rgba(8, 36, 41, .82));
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    box-shadow: var(--lp-shadow-sm);
    padding: 1.35rem;
    margin-bottom: 1rem;
}

.tv-section-card h3 {
    font-size: .95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tv-section-card h3 i { color: var(--lp-gold); }

.border-tv { border-color: var(--lp-border) !important; }
.text-muted-tv { color: var(--lp-muted) !important; }

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

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

@media (max-width: 991.98px) {
    .tv-menu-btn { display: inline-flex; }

    .tv-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: var(--lp-shadow);
    }

    .tv-sidebar.is-open {
        transform: translateX(0);
    }

    .tv-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .55);
        z-index: 1035;
    }

    .tv-sidebar-backdrop[hidden] {
        display: none !important;
    }

    .tv-app-content {
        padding: 1.15rem 1rem 2rem;
    }
}

@media (max-width: 767.98px) {
    .tv-hero { padding: 3rem 0 2.5rem; }
    .tv-section { padding: 3rem 0; }
    .tv-navbar .nav-link { padding: .7rem .85rem !important; }
    .tv-hero h1 { max-width: none; }
    .tv-hero-actions .btn,
    .btn-tv-primary,
    .btn-tv-gold,
    .btn-tv-outline { min-height: 44px; }
    .tv-stat .value { font-size: 1.2rem; }
    .tv-table { font-size: .85rem; }
    .tv-auth-card { padding: 1.35rem; }
    .tv-portfolio-hero { padding: 1.35rem; }
    .tv-order-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .tv-orders-desktop { display: block; }
    .tv-orders-mobile { display: none; }
}

@media (max-width: 767.98px) {
    .tv-orders-desktop { display: none; }
    .tv-orders-mobile { display: block; }
}

/* ========== Motion ========== */

@keyframes tvOrb {
    from { transform: translate(0, 0) scale(1); opacity: .9; }
    to { transform: translate(-18px, 14px) scale(1.08); opacity: 1; }
}

@keyframes tvFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tvSoftPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(2, 123, 132, .0); }
    50% { box-shadow: 0 0 0 6px rgba(2, 123, 132, .08); }
}

.tv-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity .45s cubic-bezier(.22, 1, .36, 1),
        transform .45s cubic-bezier(.22, 1, .36, 1);
}

.tv-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tv-reveal-delay-1 { transition-delay: .06s; }
.tv-reveal-delay-2 { transition-delay: .12s; }
.tv-reveal-delay-3 { transition-delay: .18s; }
.tv-reveal-delay-4 { transition-delay: .24s; }

.tv-hero h1,
.tv-dash-top h1 {
    animation: tvFadeUp .55s cubic-bezier(.22, 1, .36, 1) both;
}

.tv-badge {
    transition: transform var(--lp-ease), background var(--lp-ease);
}

.tv-badge:hover {
    transform: translateY(-1px);
}

.tv-pill {
    transition: transform var(--lp-ease), background var(--lp-ease);
}

.tv-table tbody tr {
    transition: background var(--lp-ease);
}

.tv-menu-btn {
    transition: background var(--lp-ease), border-color var(--lp-ease), transform var(--lp-ease);
}

.tv-menu-btn:hover {
    background: var(--lp-blue-soft);
    border-color: rgba(2, 123, 132, .5);
}

.tv-sidebar {
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.tv-price {
    text-shadow: 0 0 28px rgba(249, 161, 1, .18);
}

.tv-hero-aside,
.tv-section-card {
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .tv-reveal {
        opacity: 1;
        transform: none;
    }

    .tv-portfolio-hero,
    .tv-portfolio-hero::before,
    .tv-portfolio-hero::after,
    .tv-bg::before,
    .tv-bg-orb,
    .tv-bg-beam,
    .tv-stat::after {
        animation: none !important;
    }

    .tv-bg-beam {
        opacity: 0;
    }
}
