:root {
    --bg: #06020e;
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.74);
    --muted2: rgba(255,255,255,.56);
    --line: rgba(255,255,255,.12);
    --shadow: 0 18px 50px rgba(0,0,0,.55);
    --radius: 22px;
    --accent1: #c65bff;
    --accent2: #6dd6ff;
    --hero-img: url("https://the-pod-father.com/assets/photo_6037227926907981066_y.jpg");
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 700px at 50% 20%, rgba(198,91,255,.14), rgba(0,0,0,0) 65%), radial-gradient(900px 550px at 30% 30%, rgba(109,214,255,.10), rgba(0,0,0,0) 60%), radial-gradient(700px 500px at 70% 30%, rgba(255,255,255,.06), rgba(0,0,0,0) 60%), var(--bg);
    overflow-x: hidden;
}

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

.grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    opacity: .08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wrap {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto
}

/* Topnav */
.top {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(6,2,14,.92), rgba(6,2,14,.58));
    border-bottom: 1px solid var(--line);
}

.topInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 780;
    letter-spacing: .2px;
    min-width: 0
}

.brandName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw
}

.brandSym {
    color: var(--muted);
    font-weight: 700
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
    background: radial-gradient(circle at 30% 30%, #ffd1ff, var(--accent1) 55%, #5c1cff);
    box-shadow: 0 0 0 6px rgba(198,91,255,.14);
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

    .nav a {
        padding: 9px 12px;
        border-radius: 999px;
        color: var(--muted);
        border: 1px solid transparent;
        transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
        font-size: 14px;
    }

        .nav a:hover {
            color: var(--text);
            background: rgba(255,255,255,.06);
            border-color: rgba(255,255,255,.10);
            transform: translateY(-1px);
        }

/* Hero */
.hero {
    padding: 22px 0 10px
}

.heroCard {
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,.20);
}

.heroBg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 82% 30%;
    transform: scale(1.04);
    filter: saturate(1.10) contrast(1.08);
    opacity: .92;
}

.heroBloom {
    position: absolute;
    inset: -20px;
    background-image: var(--hero-img);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 82% 30%;
    filter: blur(10px) saturate(1.15) contrast(1.05);
    opacity: .35;
    transform: scale(1.08);
    pointer-events: none;
}

.heroShade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,2,14,.92) 0%, rgba(6,2,14,.82) 35%, rgba(6,2,14,.45) 62%, rgba(6,2,14,.18) 78%, rgba(6,2,14,.05) 100%), radial-gradient(900px 520px at 18% 10%, rgba(198,91,255,.22), transparent 60%), radial-gradient(900px 520px at 75% 30%, rgba(109,214,255,.14), transparent 62%), linear-gradient(180deg, rgba(6,2,14,.10) 0%, rgba(6,2,14,.68) 70%, rgba(6,2,14,.90) 100%);
    backdrop-filter: blur(2px);
}

.heroGrid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    padding: 26px 22px 18px;
    align-items: stretch;
}

.heroLeft {
    min-width: 0
}

.heroRight {
    display: flex;
    align-items: stretch
}

.heroImage {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
    background: rgba(0,0,0,.25);
}

    .heroImage img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: 50% 18%;
        filter: saturate(1.10) contrast(1.06);
    }

.heroTitle {
    margin: 0;
    font-size: clamp(28px, 3.1vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.6px;
    text-shadow: 0 18px 50px rgba(0,0,0,.55);
}

.heroSub {
    margin: 10px 0 0;
    max-width: 78ch;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.6;
    text-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.pillRow {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.22);
    color: var(--muted);
    font-size: 13px;
    backdrop-filter: blur(10px);
}

section {
    padding: 22px 0
}

/* Cards + layout */
.card {
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
    box-shadow: var(--shadow);
    width: 100%;
}

.pad {
    padding: 18px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch
}

.sectionTitle {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px
}

    .sectionTitle h2 {
        margin: 0;
        font-size: 22px;
        letter-spacing: -0.3px
    }

.hint {
    margin: 0;
    color: var(--muted2);
    font-size: 13px
}

.kv {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

.kvRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(0,0,0,.18);
}

    .kvRow span:first-child {
        color: var(--muted);
        font-size: 13px
    }

    .kvRow span:last-child {
        font-weight: 700;
        font-size: 13px;
        color: var(--text);
        text-align: right;
        max-width: 64%;
        overflow: hidden;
        text-overflow: ellipsis
    }

details {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    padding: 12px 14px;
}

    details + details {
        margin-top: 10px
    }

summary {
    cursor: pointer;
    font-weight: 780;
    color: var(--text);
    list-style: none;
}

    summary::-webkit-details-marker {
        display: none
    }

details p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.ctaRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.22);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    user-select: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

    .btn:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.22);
        background: rgba(0,0,0,.28);
    }

    .btn.primary {
        border-color: rgba(198,91,255,.32);
        background: radial-gradient(120% 160% at 20% 20%, rgba(198,91,255,.22), rgba(109,214,255,.10) 55%, rgba(0,0,0,.22));
    }

.toast {
    margin-top: 10px;
    color: var(--muted2);
    font-size: 13px
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
}

.small {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55
}

.smallNote {
    color: var(--muted2);
    font-size: 13px
}

.u {
    text-decoration: underline
}

/* Chart */
.chartWrap {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18)
}

.chartFrame {
    width: 100%;
    height: 520px;
    border: 0;
    display: block;
    background: transparent
}

/* Feed */
.feedCard {
    border-radius: 14px;
    padding: 14px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.10);
}

.feedRow {
    display: grid;
    grid-template-columns: 92px 1fr 130px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

    .feedRow:first-child {
        border-top: 0
    }

.feedType {
    font-weight: 900;
    letter-spacing: .5px;
    font-size: 12px;
}

    .feedType.buy {
        color: #6bff8a
    }

    .feedType.sell {
        color: #ff6b6b
    }

.feedMain {
    min-width: 0
}

    .feedMain .line1 {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: baseline
    }

    .feedMain .amt {
        font-weight: 800
    }

    .feedMain .mut {
        color: var(--muted2);
        font-size: 12px
    }

.feedRight {
    text-align: right
}

    .feedRight .usd {
        font-weight: 900
    }

    .feedRight .time {
        color: var(--muted2);
        font-size: 12px;
        margin-top: 2px
    }

/* LP list */
.lpCard {
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
    box-shadow: var(--shadow);
    padding: 18px;
    width: 100%;
}

.lpHeadRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.lpGridHead {
    display: grid;
    grid-template-columns: 120px 1fr 140px 160px;
    gap: 12px;
    color: var(--muted2);
    font-size: 12px;
    letter-spacing: .4px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.lpList {
    display: flex;
    flex-direction: column
}

.lpItem {
    display: grid;
    grid-template-columns: 120px 1fr 140px 160px;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    align-items: center;
}

    .lpItem:last-child {
        border-bottom: 0
    }

.lpDex {
    color: var(--muted);
    font-size: 13px
}

.lpPair {
    min-width: 0
}

    .lpPair a {
        display: inline-flex;
        gap: 8px;
        align-items: center
    }

    .lpPair .addr {
        color: var(--muted2);
        font-size: 12px
    }

.lpVal {
    text-align: right;
    font-weight: 800;
    font-size: 13px
}

    .lpVal.muted {
        color: var(--muted2);
        font-weight: 700
    }

.lpTag {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.22);
    color: var(--muted);
    font-size: 13px;
    backdrop-filter: blur(10px);
}

/* Footer */
.footer {
    padding: 30px 0 44px;
    color: var(--muted2);
    font-size: 13px
}

.foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.10);
    padding-top: 16px;
}

.footBrand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 780;
    color: var(--text)
}

.footTag {
    margin-top: 6px
}

.footNote {
    max-width: 62ch
}

/* Responsive */
@media (max-width: 980px) {
    .heroGrid {
        grid-template-columns: 1fr;
        padding: 22px 16px 16px
    }

    .split {
        grid-template-columns: 1fr
    }

    .chartFrame {
        height: 420px
    }
}

@media (max-width: 620px) {
    .wrap {
        width: calc(100% - 28px)
    }

    .kvRow span:last-child {
        max-width: 55%
    }

    .feedRow {
        grid-template-columns: 76px 1fr;
    }

    .feedRight {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 76px
    }

    .lpGridHead, .lpItem {
        grid-template-columns: 92px 1fr 110px 130px
    }

    .chartFrame {
        height: 360px
    }
}
/* Modal base */
/* Modal base (REPLACE your current Modal base section with this) */
.legal-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000001; /* must be higher than pfPopupOverlay (999999) */
}

    .legal-modal[aria-hidden="true"] {
        display: none;
    }

    .legal-modal[aria-hidden="false"] {
        display: block;
    }

.legal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.legal-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: #111;
    color: #f2f2f2;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.6);
    text-align: left;
}

.legal-close {
    position: sticky;
    top: 0;
    float: right;
    border: 0;
    background: transparent;
    color: #f2f2f2;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}

body.legal-lock {
    overflow: hidden;
}

html.legal-lock {
    overflow: hidden;
}

.footRight {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footLinks {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footLink {
    color: var(--muted2);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .footLink:hover {
        color: var(--text);
    }

.footSep {
    color: rgba(255,255,255,.28);
    font-size: 12px;
}
