:root {
    --p: #F2EBD9;
    /* cream body background */
    --p2: #E8DDCA;
    /* slightly darker cream */
    --p3: #DDD0B8;
    /* dark cream */
    --p4: #CFC09F;
    /* darker cream highlight */

    --eq-blue: #09162a;
    /* EquusChain primary blue */
    --eq-blue-dark: #050d1a;
    /* Deeper slate blue */
    --eq-blue-light: #162f55;
    /* Lighter navy for hovers */
    --eq-blue-fade: rgba(9, 22, 42, 0.08);
    /* Fade blue */

    --g: #8A6A35;
    /* gold */
    --g2: #A5814E;
    /* gold medium */
    --g3: #C19E6B;
    /* gold light */
    --g4: #D9BC8F;
    /* gold pale */

    --k: var(--eq-blue);
    /* Text color - EquusChain blue */
    --k2: var(--eq-blue-dark);
    /* Dark section background */
    --k3: var(--eq-blue-light);
    /* Highlight elements */
    --d: #4c5e75;
    /* Muted text - slate blue */
    --r: rgba(138, 106, 53, 0.15);
    /* Gold transparent */
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Enforce custom cursor globally */
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    /* Increased from 16px for readability */
}

body {
    background: var(--p);
    color: var(--k);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

/* ─── CUSTOM CURSOR ──────────────────────── */
#cur {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    transform: translate(-15px, -7px);
    display: block;
    will-change: transform;
    transition: transform 0.04s linear, opacity 0.3s ease;
    opacity: 0;
    /* Hidden initially to avoid top-left flash */
}

#cur,
#cur * {
    pointer-events: none !important;
}

.cursor-emblem {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

body.cursor-hovering #cur .cursor-emblem img {
    transform: scale(1.3) rotate(8deg);
}

/* Fallback for devices without fine pointers (touch screens) */
@media (hover: none) {
    #cur {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        cursor: auto !important;
    }
}

/* ─── PROGRESS LINE ──────────────────────── */
#prog {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--g);
    z-index: 1200;
    width: 0;
    transition: width 0.1s ease;
}

/* ─── NAV CONTAINER & HEADER ──────────────── */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 24px 72px;
    transition: background 0.35s ease, padding 0.35s ease, border-bottom 0.35s ease, box-shadow 0.35s ease;
    border-bottom: 1px solid transparent;
}

.nav-container.scrolled {
    background: rgba(9, 22, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 72px;
    border-bottom: 1px solid rgba(138, 106, 53, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--eq-blue);
    transition: color 0.35s ease;
}

.logo-text b {
    color: var(--g);
    font-weight: 500;
    transition: color 0.35s ease;
}

.nav-container.scrolled nav .logo-text {
    color: #F2EBD9;
}

.nav-container.scrolled nav .logo-text b {
    color: var(--g3);
}

.nav-logo {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo.logo-dark {
    display: none;
}

.nav-logo.logo-light {
    display: block;
}

.nav-container.scrolled nav .nav-logo.logo-dark {
    display: block;
}

.nav-container.scrolled nav .nav-logo.logo-light {
    display: none;
}

.logo-wrap:hover .nav-logo {
    transform: scale(1.02);
}

/* Central Navigation Menu */
.nav-center-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eq-blue);
    /* dark blue initially */
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-container.scrolled nav .nav-link {
    color: #F2EBD9;
    /* Light cream when navbar turns dark blue */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--g3);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.nav-link:hover {
    color: var(--g3) !important;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-entry {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--g);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    padding: 8px 16px;
    border: 1px solid var(--g3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-container.scrolled nav .nav-entry {
    color: var(--g3);
    border-color: rgba(193, 158, 107, 0.4);
}

.nav-entry:hover {
    background: var(--g);
    color: var(--p) !important;
    border-color: var(--g);
    box-shadow: 0 4px 12px rgba(138, 106, 53, 0.15);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(9, 22, 42, 0.15);
    padding: 8px 14px;
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--eq-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-container.scrolled .lang-btn {
    color: #F2EBD9;
    border-color: rgba(242, 235, 217, 0.2);
}

.lang-btn:hover {
    border-color: var(--g);
    background: rgba(138, 106, 53, 0.06);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--eq-blue-dark);
    border: 1px solid rgba(138, 106, 53, 0.25);
    border-radius: 6px;
    min-width: 170px;
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 10px 18px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: rgba(242, 235, 217, 0.75);
    text-align: left;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lang-option:hover {
    background: var(--eq-blue-light);
    color: var(--g4);
}

.lang-option.active {
    color: var(--g3);
    font-weight: 500;
    background: rgba(138, 106, 53, 0.1);
}

/* ─── CHAPTER SYSTEM ─────────────────────── */
.ch {
    min-height: 100vh;
    position: relative;
    display: flex;
    padding: 140px 72px 80px;
}

/* ─── CH 0: COVER (HERO) ─────────────────── */
.cover {
    background: var(--p);
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.cover-num {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-size: 50vw;
    font-weight: 300;
    line-height: 0.82;
    color: rgba(138, 106, 53, 0.04);
    top: -0.05em;
    left: -0.02em;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.cover-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.cover h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(54px, 7.5vw, 128px);
    font-weight: 300;
    line-height: 0.96;
    letter-spacing: -0.025em;
    color: var(--k);
    opacity: 0;
    animation: ap 1.1s 0.2s forwards;
    margin-bottom: 40px;
}

.cover h1 em {
    font-style: italic;
    color: var(--g);
}

.cover-foot {
    border-top: 1px solid var(--r);
    padding-top: 32px;
    opacity: 0;
    animation: ap 0.9s 0.5s forwards;
}

.hero-positioning {
    font-size: 22px !important;
    /* Increased font size */
    color: var(--k) !important;
    line-height: 1.8;
    max-width: 820px !important;
    font-weight: 300;
}

@keyframes ap {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* ─── CH 1: CONVICTION (MANIFESTO) ──────── */
.manifesto {
    background: var(--eq-blue);
    /* Updated background color to EquusChain blue */
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.manifesto-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 0;
}

.manifesto-lines span {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.03);
}

.mf-tag {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--g3);
    margin-bottom: 48px;
}

.mf-body {
    max-width: 1000px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 300;
    line-height: 1.2;
    color: rgba(242, 235, 217, 0.9);
    text-align: justify;
}

/* ─── CH 2: ASSET WORLD ──────────────────── */
.assetworld {
    background: var(--p2);
    flex-direction: column;
}

.aw-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 80px;
}

.aw-lbl {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--g);
    margin-bottom: 16px;
}

.aw-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 4.2vw, 68px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--k);
}

.aw-title em {
    font-style: italic;
    color: var(--g);
}

.aw-intro {
    font-size: 18px;
    color: var(--d);
    line-height: 1.95;
}

.aw-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.aw-col:first-child {
    padding-right: 54px;
    border-right: 1px solid var(--r);
}

.aw-col:last-child {
    padding-left: 54px;
    /* margin-top: 72px; */
}

.aw-entry {
    padding: 28px 0;
    border-bottom: 1px solid var(--r);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: baseline;
    transition: padding-left 0.35s cubic-bezier(.22, 1, .36, 1);
    position: relative;
}

.aw-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--g);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.aw-entry:hover {
    padding-left: 16px;
}

.aw-entry:hover::before {
    transform: scaleY(1);
}

.aw-entry-n {
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--g3);
    font-variant-numeric: tabular-nums;
}

.aw-entry-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 400;
    color: var(--k);
}

.aw-entry-sub {
    font-size: 16px;
    color: var(--d);
    margin-top: 8px;
    line-height: 1.6;
}

/* ─── CH 3: SERVICES ─────────────────────── */
.how {
    background: var(--p);
    flex-direction: column;
}

.how-title-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 96px;
}

.how-lbl {
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--g);
    margin-bottom: 16px;
}

.how-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 3.8vw, 60px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--k);
}

.how-title em {
    font-style: italic;
    color: var(--g);
}

.how-lead {
    font-size: 18px;
    color: var(--d);
    line-height: 1.95;
}

.how-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--r);
}

.how-item {
    background: var(--p);
    padding: 54px 36px;
    transition: background 0.35s ease;
    display: flex;
    flex-direction: column;
}

.how-item:hover {
    background: var(--p2);
}

.how-n {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--g3);
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    font-weight: 500;
}

.how-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(21px, 1.8vw, 28px);
    font-weight: 400;
    color: var(--k);
    margin-bottom: 16px;
    line-height: 1.25;
}

.how-item-body {
    font-size: 16px;
    color: var(--d);
    line-height: 1.85;
    flex: 1;
    text-align: justify;
}

.how-item-link {
    display: inline-block;
    margin-top: 28px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--g);
    text-decoration: none;
    position: relative;
    align-self: flex-start;

}

.how-item-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--g4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.how-item-link:hover::after {
    transform: scaleX(1);
}

/* ─── CH 4: CONTACT & REQUEST ACCESS ─────── */
.contact-ch {
    background: var(--p3);
    flex-direction: column;
    justify-content: center;
}

.cc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: start;
}

.cc-lbl {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--g);
    margin-bottom: 48px;
    display: block;
}

.cc-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 4vw, 64px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--k);
    margin-bottom: 32px;
}

.cc-heading em {
    font-style: italic;
    color: var(--g);
}

.cc-body {
    font-size: 18px;
    color: var(--d);
    line-height: 2;
    margin-bottom: 40px;
}

/* Form structure */
.ff {
    margin-bottom: 20px;
    position: relative;
}

.ff label {
    display: block;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--d);
    margin-bottom: 10px;
}

.ff input,
.ff select,
.ff textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #96774554;
    padding: 10px 0;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--k);
    outline: none;
    appearance: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.ff input::placeholder,
.ff textarea::placeholder {
    color: var(--d);
    opacity: 0.45;
}

.ff input:focus,
.ff select:focus,
.ff textarea:focus {
    border-bottom-color: var(--g);
}

.ff select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M1 1l3 2.5L7 1' stroke='%238A6A35' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-color: transparent;
    padding-right: 20px;
}

.ff select option {
    background: var(--p3);
    color: var(--k);
    padding: 12px;
}

/* Form Checkboxes */
.ff-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 16px;
}

.cb-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    user-select: none;
    padding: 10px 0;
}

.cb-container input {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: 2;
    cursor: pointer;
    pointer-events: auto !important;
}

.cb-custom {
    width: 18px;
    height: 18px;
    border: 1px solid var(--g);
    background: transparent;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cb-container input:checked~.cb-custom {
    background: var(--g);
    border-color: var(--g);
}

.cb-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cb-container input:checked~.cb-custom::after {
    display: block;
}

.cb-text {
    font-size: 15px;
    color: var(--d);
    line-height: 1.6;
}

.cb-text a {
    color: var(--g);
    text-decoration: underline;
}

.cb-text a:hover {
    color: var(--g2);
}

.sub-btn {
    width: 100%;
    margin-top: 12px;
    background: var(--k);
    color: var(--p);
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 18px;
    border: none;
    transition: background 0.4s ease, transform 0.2s ease;
}

.sub-btn:hover {
    background: var(--g);
    color: #09162a;
}

.cc-note {
    font-size: 14px;
    color: var(--d);
    opacity: 0.75;
    margin-top: 18px;
    line-height: 1.75;
    text-align: center;
}

/* ─── FOOTER ──────────────────────────────── */
footer {
    background: var(--eq-blue-dark);
    /* Updated background color to dark EquusChain blue */
    padding: 72px 72px 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.ft-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.ft-logo {
    height: 46px;
    width: auto;
    display: block;
}

.ft-cols {
    display: flex;
    gap: 120px;
}

.ft-col h5 {
    font-size: 14px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--g3);
    margin-bottom: 20px;
}

.ft-col ul {
    list-style: none;
}

.ft-col li {
    margin-bottom: 10px;
}

.ft-col a {
    font-size: 15px;
    color: rgba(210, 195, 165, 0.8);
    text-decoration: none;
    transition: color 0.25s ease;
}

.ft-col a:hover {
    color: var(--p4);
}

.ft-bot {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
}

.ft-legal {
    font-size: 14px;
    color: rgba(210, 195, 165, 0.7);
    line-height: 1.8;
    max-width: 780px;
}

.ft-lnks {
    display: flex;
    gap: 28px;
}

.ft-lnks a {
    font-size: 14px;
    color: rgba(210, 195, 165, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.ft-lnks a:hover {
    color: rgba(210, 195, 165, 0.7);
}

/* ─── SCROLL REVEAL ───────────────────────── */
.rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}

.rv.in {
    opacity: 1;
    transform: none;
}

.rv.d1 {
    transition-delay: 0.08s;
}

.rv.d2 {
    transition-delay: 0.16s;
}

.rv.d3 {
    transition-delay: 0.24s;
}

.rv.d4 {
    transition-delay: 0.32s;
}

.rv.d5 {
    transition-delay: 0.4s;
}

/* ─── COOKIE BANNER ───────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--eq-blue-dark);
    border: 1px solid var(--g);
    border-radius: 8px;
    padding: 30px;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    max-width: 550px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-banner-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--g3);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.cookie-banner-body {
    font-family: 'Jost', sans-serif;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(242, 235, 217, 0.85);
}

.cookie-banner-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 20px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
}

.refuse-btn {
    background: transparent;
    border: 1px solid rgba(242, 235, 217, 0.2);
    color: rgba(242, 235, 217, 0.85);
}

.refuse-btn:hover {
    border-color: var(--g3);
    color: var(--g3);
    background: rgba(138, 106, 53, 0.05);
}

.accept-btn {
    background: var(--g);
    color: #09162a;
    font-weight: 500;
}

.accept-btn:hover {
    background: var(--g3);
    box-shadow: 0 4px 12px rgba(193, 158, 107, 0.25);
}

.cookie-link {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: var(--g3);
    text-decoration: underline;
    align-self: flex-start;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: var(--g4);
}

/* ─── MODAL OVERLAYS (LIVE TERMS/PRIVACY) ─── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 13, 26, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    break-inside: true;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--eq-blue-dark);
    border: 1px solid var(--g3);
    border-radius: 6px;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: rgba(242, 235, 217, 0.5);
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--g3);
}

.modal-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--g4);
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(193, 158, 107, 0.25);
    padding-bottom: 12px;
    font-weight: 400;
}

.modal-body-content {
    font-family: 'Jost', sans-serif;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(242, 235, 217, 0.8);
}

.modal-body-content p {
    margin-bottom: 16px;
}

.modal-body-content strong {
    color: var(--g3);
}

/* ─── RTL (Arabic) STYLING SUPPORT ────────── */
[dir="rtl"] {
    text-align: right;
}

/* [dir="rtl"] nav {
    flex-direction: row-reverse;
} */

[dir="rtl"] .nav-center-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

[dir="rtl"] .cover-foot {
    text-align: right;
}

[dir="rtl"] .aw-head {
    text-align: right;
}

[dir="rtl"] .aw-entry {
    grid-template-columns: 1fr auto;
    text-align: right;
    padding-left: 0;
}

[dir="rtl"] .aw-entry::before {
    left: auto;
    right: 0;
    transform-origin: bottom;
}

[dir="rtl"] .aw-entry:hover {
    padding-left: 0;
    padding-right: 16px;
}

[dir="rtl"] .aw-col:first-child {
    padding-right: 0;
    padding-left: 54px;
    border-right: none;
    border-left: 1px solid var(--r);
}

[dir="rtl"] .aw-col:last-child {
    padding-left: 0;
    padding-right: 54px;
}

[dir="rtl"] .how-title-row {
    grid-template-columns: 7fr 5fr;
}

[dir="rtl"] .how-item {
    text-align: right;
}

[dir="rtl"] .how-item-link {
    align-self: flex-end;
}

[dir="rtl"] .cc-left {
    text-align: right;
}

[dir="rtl"] .ff label {
    text-align: right;
}

[dir="rtl"] .ff input,
[dir="rtl"] .ff select,
[dir="rtl"] .ff textarea {
    text-align: right;
}

[dir="rtl"] .ff select {
    background-position: left 8px center;
    padding-right: 0;
    padding-left: 20px;
}

[dir="rtl"] .cb-container {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .ft-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .ft-cols {
    flex-direction: row-reverse;
}

[dir="rtl"] .ft-col {
    text-align: right;
}

[dir="rtl"] .ft-col ul {
    text-align: right;
}

[dir="rtl"] .ft-bot {
    flex-direction: row-reverse;
}

[dir="rtl"] .ft-lnks {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-banner {
    left: 30px;
    right: auto;
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
}

/* ─── RESPONSIVE DESIGN ───────────────────── */
@media (max-width: 960px) {

    nav,
    .cover,
    .manifesto,
    .assetworld,
    .how,
    .contact-ch,
    footer {
        padding-left: 32px;
        padding-right: 32px;
    }

    .nav-container {
        padding: 20px 32px;
    }

    .nav-container.scrolled {
        padding: 14px 32px;
    }

    .nav-center-menu {
        display: none;
        /* Hide desktop nav links on smaller screens */
    }

    .nav-right .nav-entry-btn {
        display: none;
        /* Hide primary nav CTA on mobile */
    }

    .cover h1 {
        font-size: clamp(48px, 12vw, 84px);
    }

    .aw-head,
    .aw-cols,
    .how-title-row,
    .cc-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .aw-col:first-child {
        border-right: none;
        padding-right: 0;
    }

    .aw-col:last-child {
        padding-left: 0;
        margin-top: 0;
    }

    .how-items {
        grid-template-columns: 1fr 1fr;
    }

    .ft-top {
        flex-direction: column;
        gap: 40px;
    }

    .ft-bot {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }

    .ft-legal {
        max-width: 100%;
    }

    .ft-lnks {
        justify-content: center;
    }

    [dir="rtl"] .aw-col:first-child {
        border-left: none;
        padding-left: 0;
    }

    [dir="rtl"] .aw-col:last-child {
        padding-right: 0;
    }
}

@media (max-width: 600px) {

    nav,
    .cover,
    .manifesto,
    .assetworld,
    .how,
    .contact-ch,
    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-container {
        padding: 16px 20px;
    }

    .nav-container.scrolled {
        padding: 12px 20px;
    }

    .how-items {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 20px;
    }

    .modal-content {
        padding: 24px;
    }
}



/* private css start from hree */


:root {
    --ink: #08090F;
    --ink-mid: #0D1020;
    --ink-l: #141828;
    --ink-ll: #1A2035;
    --gold: #B8974A;
    --gold-hi: #D4B06A;
    --gold-lo: #7A6030;
    --cream: #EDE8DC;
    --cream-d: #A89E87;
    --line: rgba(184, 151, 74, 0.16);
    --line-s: rgba(255, 255, 255, 0.055);
    --green: #2ECC71;
    --red: #E74C3C;
    --blue: #5B8DEF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--cream);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── AUTH GATE ── */
#auth-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    width: 480px;
    background: var(--ink-mid);
    border: 1px solid var(--line);
    padding: 40px 30px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 40px;
}

.auth-logo-word {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--cream);
}

.auth-logo-word b {
    color: var(--gold);
    font-weight: 500;
}

.auth-tabs {
    display: flex;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--line-s);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-d);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all .3s;
    font-family: 'Jost', sans-serif;
}

.auth-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-field {
    margin-bottom: 18px;
    text-align: left;
}

.auth-label {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-d);
    display: block;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    background: var(--ink-l);
    border: 1px solid var(--line-s);
    color: var(--cream);
    padding: 12px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color .3s;
}

.auth-input:focus {
    border-color: var(--gold-lo);
}

.auth-select {
    width: 100%;
    background: var(--ink-l);
    border: 1px solid var(--line-s);
    color: var(--cream);
    padding: 12px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    outline: none;
    appearance: none;
}

.auth-btn {
    width: 100%;
    background: var(--gold);
    color: var(--ink);
    border: none;
    padding: 14px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s;
    margin-top: 8px;
}

.auth-btn:hover {
    background: var(--gold-hi);
}

.auth-note {
    font-size: 12.5px;
    color: var(--cream-d);
    margin-top: 20px;
    line-height: 1.8;
}

.auth-back {
    font-size: 13px;
    color: var(--cream-d);
    padding: 16px 0;

}

.auth-back a {
    color: var(--gold);
    text-decoration: none;
    padding: 16px 0;
}

/* ── APP SHELL ── */
#app {
    display: none;
}

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

/* SIDEBAR */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--ink-mid);
    border-right: 1px solid var(--line-s);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sb-logo {
    padding: 28px 24px;
    border-bottom: 1px solid var(--line-s);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-logo-word {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--cream);
}

.sb-logo-word b {
    color: var(--gold);
    font-weight: 500;
}

.sb-user {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line-s);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-lo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--gold-hi);
    flex-shrink: 0;
}

.sb-user-name {
    font-size: 16px;
    color: var(--cream);
    font-weight: 400;
}

.sb-user-tier {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--goldlo);
}

.sb-nav {
    flex: 1;
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
}

.sb-section {
    padding: 16px 24px 8px;
    font-size: 11.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-lo);
}

.sb-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    font-size: 15px;
    color: var(--cream-d);
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.sb-link:hover {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.04);
}

.sb-link.active {
    color: var(--gold);
    background: rgba(184, 151, 74, 0.07);
    border-left: 2px solid var(-- gold);
}

.sb-link svg {
    width: 15px;
    height: 15px;
    opacity: 0.7;
    flex-shrink: 0;
}

.sb-link.active svg {
    opacity: 1;
}

.sb-footer {

    border-top: 1px solid var(--line-s);
}

.sb-logout {
    width: 100%;
    padding: 16px 24px;
    font-size: 13px;
    color: var(--cream-d);
    text-decoration: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.sb-logout:hover {
    color: var(--gold);
}

/* MAIN CONTENT */
.main {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--ink-mid);
    border-bottom: 1px solid var(--line-s);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 300;
    color: var(--cream);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tb-pill {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--line);
    padding: 6px 16px;
}

.content {
    padding: 36px 40px;
    flex: 1;
}

/* PANELS */
.panel {
    display: none;
}

.panel.active {
    display: block;
}

/* CARDS */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--ink-mid);
    border: 1px solid var(--line-s);
    padding: 24px 28px;
    transition: border-color .3s;
}

.stat-card:hover {
    border-color: var(--line);
}

.sc-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-d);
    margin-bottom: 10px;
}

.sc-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
}

.sc-sub {
    font-size: 15px;
    color: var(--cream-d);
    margin-top: 6px;
}

.sc-up {
    color: var(--green);
}

.sc-dn {
    color: var(--red);
}

/* SECTION TITLE */
.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 300;
    color: var(--cream);
}

.sec-action {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
}

/* TABLE */
.tbl {
    width: 100%;
    border-collapse: collapse;
}

.tbl th {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-d);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line-s);
}

.tbl td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-s);
    font-size: 15px;
    color: var(--cream-d);
}

.tbl tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.tbl td.name {
    color: var(--cream);
    font-weight: 400;
}

.tbl td.pos {
    color: var(--green);
}

.tbl td.neg {
    color: var(--red);
}

.badge {
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid;
    display: inline-block;
}

.badge-g {
    color: var(--green);
    border-color: rgba(46, 204, 113, 0.3);
}

.badge-y {
    color: var(--gold);
    border-color: rgba(184, 151, 74, 0.3);
}

.badge-b {
    color: var(--blue);
    border-color: rgba(91, 141, 239, 0.3);
}

.badge-r {
    color: var(--red);
    border-color: rgba(231, 76, 60, 0.3);
}

/* GRID CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.asset-card {
    background: var(--ink-mid);
    border: 1px solid var(--line-s);
    padding: 0;
    overflow: hidden;
    transition: border-color .3s;
    cursor: pointer;
}

.asset-card:hover {
    border-color: var(--line);
}

.ac-img {
    height: 140px;
    background: var(--ink-l);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.ac-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(8, 9, 15, 0.7));
}

.ac-body {
    padding: 20px 22px;
}

.ac-cat {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-lo);
    margin-bottom: 8px;
}

.ac-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--cream);
    margin-bottom: 6px;
}

.ac-sub {
    font-size: 12px;
    color: var(--cream-d);
    line-height: 1.7;
    margin-bottom: 16px;
}

.ac-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line-s);
}

.ac-yield {
    font-size: 11px;
    color: var(--green);
}

.ac-min {
    font-size: 11px;
    color: var(--cream-d);
}

.ac-action {
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 7px 16px;
    border: 1px solid var(--line);
    background: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    transition: all .3s;
}

.ac-action:hover {
    background: var(--gold);
    color: var(--ink);
}

/* TOKENISATION WIZARD */
.wizard {
    max-width: 760px;
}

.wiz-steps {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    background: var(--ink-mid);
    border: 1px solid var(--line-s);
    padding: 0;
}

.wiz-step {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    position: relative;
    border-right: 1px solid var(--line-s);
}

.wiz-step:last-child {
    border-right: none;
}

.wiz-step.done {
    background: rgba(184, 151, 74, 0.06);
}

.wiz-step.active {
    background: rgba(184, 151, 74, 0.1);
}

.ws-num {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold￾lo);
    margin-bottom: 4px;
}

.ws-name {
    font-size: 11px;
    color: var(--cream-d);
}

.wiz-step.active .ws-name {
    color: var(--gold);
}

.wiz-step.done .ws-name {
    color: var(--cream);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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



.f-label {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream￾d);
    display: block;
    margin-bottom: 8px;
}

.f-input,
.f-select,
.f-textarea {
    width: 100%;
    background: var(--ink-l);
    border: 1px solid var(--line-s);
    color: var(--cream);
    padding: 11px 14px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .3s;
}

.f-input:focus,
.f-select:focus,
.f-textarea:focus {
    border-color: var(--gold-lo);
}

.f-textarea {
    min-height: 100px;
    resize: vertical;
}

.f-select {
    appearance: none;
}

.f-hint {
    font-size: 11px;
    color: var(--cream-d);
    margin-top: 6px;
    line-height: 1.6;
}

.wiz-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.btn-wiz {
    padding: 12px 32px;
    font-family: 'Jost', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}

.btn-wiz-p {
    background: var(--gold);
    color: var(--ink);
    border: none;
}

.btn-wiz-p:hover {
    background: var(--gold-hi);
}

.btn-wiz-s {
    background: none;
    color: var(--cream-d);
    border: 1px solid var(--line-s);
}

.btn-wiz-s:hover {
    color: var(--cream);
    border-color: var(--line);
}

/* DOCUMENT UPLOAD AREA */
.doc-zone {
    border: 1px dashed var(--line);
    padding: 32px;
    text-align: center;
    color: var(--cream-d);
    font-size: 12.5px;
    cursor: pointer;
    transition: all .3s;
    background: var(--ink-l);
}

.doc-zone:hover {
    border-color: var(--gold-lo);
    color: var(--cream);
}

.doc-zone-icon {
    font-size: 28px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.doc-item {
    background: var(--ink-l);
    border: 1px solid var(--line-s);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doc-name {
    font-size: 12.5px;
    color: var(--cream);
}

.doc-status {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* PORTFOLIO */
.port-chart {
    background: var(--ink-mid);
    border: 1px solid var(--line-s);
    padding: 28px;
    margin-bottom: 20px;
}

.port-chart-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: var(-- cream);
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100px;
}

.chart-bar {
    flex: 1;
    background: var(--gold-lo);
    border-radius: 1px 1px 0 0;
    position: relative;
    transition: background .3s;
}

.chart-bar:hover {
    background: var(--gold);
}

.chart-bar .tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink-ll);
    border: 1px solid var(--line);
    padding: 5px 10px;
    font-size: 11px;
    color: var(--cream);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.chart-bar:hover .tooltip {
    opacity: 1;
}

.chart-labels {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.chart-label {
    flex: 1;
    text-align: center;
    font-size: 9.5px;
    color: var(--cream-d);
}

/* DISTRIBUTION CALENDAR */
.dist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dist-item {
    background: var(--ink-mid);
    border: 1px solid var(--line-s);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.di-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.di-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--gold-hi);
    min-width: 60px;
}

.di-name {
    font-size: 12.5px;
    color: var(--cream);
}

.di-sub {
    font-size: 11px;
    color: var(--cream-d);
}

.di-amt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--green);
}

/* NOTIFICATION */
.notif {
    display: flex;
    align-items: start;
    gap: 14px;
    background: var(--ink-mid);
    border: 1px solid var(--line-s);
    padding: 18px 20px;
    margin-bottom: 8px;
}

.notif-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.notif-text {
    font-size: 12.5px;
    color: var(--cream-d);
}

.notif-text strong {
    color: var(--cream);
}

.notif-time {
    font-size: 11px;
    color: var(--cream-d);
    margin-top: 4px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 15, 0.85);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--ink-mid);
    border: 1px solid var(--line);
    width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 48px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--cream-d);
    font-size: 20px;
    cursor: pointer;
    transition: color .3s;
}

.modal-close:hover {
    color: var(--gold);
}

.modal h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 300;
    color: var(-- cream);
    margin-bottom: 20px;
}

.modal-body {
    font-size: 13px;
    color: var(--cream-d);
    line-height: 2;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.modal-invest {
    background: var(--gold);
    color: var(--ink);
    border: none;
    padding: 12px 28px;
    font-family: 'Jost', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s;
}

.modal-invest:hover {
    background: var(--gold-hi);
}

.modal-cancel {
    background: none;
    color: var(--cream-d);
    border: 1px solid var(--line-s);
    padding: 12px 22px;
    font-family: 'Jost', sans-serif;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}

.modal-cancel:hover {
    color: var(--cream);
    border-color: var(--line);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-s);
}

.detail-row:last-child {
    border-bottom: none;
}

.dr-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cream-d);
}

.dr-val {
    font-size: 13px;
    color: var(--cream);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--ink);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-lo);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* RESPONSIVE NOTICE */
.two-col {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 20px;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ─── BACK TO TOP PROGRESS CIRCLE ────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--eq-blue-dark);
    border: 1px solid rgba(138, 106, 53, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--g);
    background: var(--eq-blue-light);
    box-shadow: 0 6px 20px rgba(138, 106, 53, 0.3);
}

.back-to-top svg.progress-circle {
    position: absolute;
    top: -1px;
    left: -1px;
    transform: rotate(-90deg);
    /* Start progress at the top */
    pointer-events: none;
}

.back-to-top svg.progress-circle circle {
    fill: none;
    stroke-width: 2.5;
}

.back-to-top svg.progress-circle .progress-bg {
    stroke: rgba(242, 235, 217, 0.08);
    /* Blank background path */
}

.back-to-top svg.progress-circle .progress-bar {
    stroke: var(--g);
    /* Gold progress stroke */
    stroke-linecap: round;
    stroke-dasharray: 125.66;
    stroke-dashoffset: 125.66;
    transition: stroke-dashoffset 0.1s linear;
}

.back-to-top .arrow-up {
    font-size: 18px;
    color: var(--g);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-top: -2px;
}

.back-to-top:hover .arrow-up {
    transform: translateY(-3px);
    color: var(--g3);
}

/* Ensure custom cursor hover interaction is captured */
.back-to-top {
    pointer-events: auto !important;
}