:root {
    --up-shell-bg: #07101c;
    --up-shell-bg-soft: #0b1625;
    --up-shell-panel: #0d1a2b;
    --up-shell-border: #223650;
    --up-shell-text: #eef4ff;
    --up-shell-muted: #91a4bf;
    --up-shell-orange: #f7931a;
    --up-shell-orange-soft: rgba(247, 147, 26, .14);
    --up-shell-max: 1240px;
}

.up-shell,
.up-shell * {
    box-sizing: border-box;
}

.up-shell {
    position: relative;
    z-index: 1000;
    width: 100%;
    color: var(--up-shell-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.up-shell-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--up-shell-border);
    background: rgba(7, 16, 28, .96);
    backdrop-filter: blur(16px);
}

.up-shell-header-inner {
    width: min(calc(100% - 36px), var(--up-shell-max));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.up-shell-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--up-shell-text);
    text-decoration: none;
}

.up-shell-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    background: transparent;
    border-radius: 0;
}

.up-shell-brand-image {
    display: block;
    object-fit: contain;
}

.up-shell-brand-text {
    min-width: 0;
    line-height: 1.05;
}

.up-shell-brand-name {
    display: block;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .04em;
}

.up-shell-brand-sub {
    display: block;
    margin-top: 4px;
    color: var(--up-shell-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
}

.up-shell-nav {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.up-shell-nav-item {
    position: relative;
}

.up-shell-nav-link {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #b8c7dc;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 9px;
}

.up-shell-nav-link:hover,
.up-shell-nav-link.is-active {
    color: #fff;
    background: var(--up-shell-orange-soft);
}

.up-shell-chevron {
    font-size: 10px;
    opacity: .75;
    transition: transform .18s ease;
}

.up-shell-nav-item.is-open .up-shell-chevron {
    transform: rotate(180deg);
}

.up-shell-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: 220px;
    padding: 8px;
    transform: translateX(-50%);
    border: 1px solid var(--up-shell-border);
    border-radius: 13px;
    background: rgba(10, 24, 40, .98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.up-shell-nav-item.is-open .up-shell-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.up-shell-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #b8c7dc;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.up-shell-dropdown a:hover,
.up-shell-dropdown a.is-active {
    color: #fff;
    background: var(--up-shell-orange-soft);
}

.up-shell-explorer {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #765022;
    border-radius: 9px;
    background: linear-gradient(180deg, #17263a, #0d1929);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.up-shell-explorer:hover {
    border-color: var(--up-shell-orange);
    color: #fff;
}

.up-shell-mobile-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--up-shell-border);
    border-radius: 10px;
    background: var(--up-shell-panel);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
}

.up-shell-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease;
}

.up-shell-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    width: min(88vw, 410px);
    height: 100vh;
    height: 100dvh;
    padding:
        calc(84px + env(safe-area-inset-top))
        18px
        calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #091625;
    border-left: 1px solid var(--up-shell-border);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .35);
    transform: translateX(100%);
    transition: transform .2s ease;
}

.up-shell-mobile-open .up-shell-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.up-shell-mobile-open .up-shell-drawer {
    transform: translateX(0);
}

.up-shell-mobile-open {
    overflow: hidden;
}

.up-shell-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.up-shell-drawer-close {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px;
    min-height: 40px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid var(--up-shell-border) !important;
    border-radius: 10px !important;
    background: var(--up-shell-panel) !important;
    color: #dbe6f5 !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.up-shell-drawer-close:hover {
    border-color: var(--up-shell-orange) !important;
    background: var(--up-shell-orange-soft) !important;
    color: #fff !important;
}

.up-shell-drawer-title {
    margin-bottom: 14px;
    color: var(--up-shell-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.up-shell-drawer a,
.up-shell-drawer button {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #c5d2e4;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.up-shell-drawer a:hover,
.up-shell-drawer button:hover {
    background: var(--up-shell-orange-soft);
    color: #fff;
}

.up-shell-drawer-group {
    margin-bottom: 5px;
}

.up-shell-drawer-children {
    display: none;
    margin: 0 0 8px 10px;
    padding-left: 10px;
    border-left: 1px solid var(--up-shell-border);
}

.up-shell-drawer-group.is-open .up-shell-drawer-children {
    display: block;
}

.up-shell-drawer-children a {
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
}

.up-shell-footer {
    margin-top: 60px;
    border-top: 1px solid var(--up-shell-border);
    background: #07111d;
    color: var(--up-shell-muted);
}

.up-shell-footer-inner {
    width: min(calc(100% - 36px), var(--up-shell-max));
    margin: 0 auto;
    padding: 42px 0 24px;
}

.up-shell-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.up-shell-footer-brand strong {
    display: block;
    color: #fff;
    font-size: 15px;
    letter-spacing: .05em;
}

.up-shell-footer-brand span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.up-shell-footer-title {
    margin-bottom: 12px;
    color: #dbe6f5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.up-shell-footer a {
    display: block;
    width: fit-content;
    margin: 7px 0;
    color: var(--up-shell-muted);
    font-size: 12px;
    text-decoration: none;
}

.up-shell-footer a:hover {
    color: #fff;
}

.up-shell-footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(34, 54, 80, .7);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .up-shell-nav {
        gap: 0;
    }

    .up-shell-nav-link {
        padding-left: 8px;
        padding-right: 8px;
    }

    .up-shell-explorer {
        padding-left: 11px;
        padding-right: 11px;
    }
}

@media (max-width: 920px) {
    .up-shell-header-inner {
        min-height: 64px;
    }

    .up-shell-nav,
    .up-shell-explorer {
        display: none;
    }

    .up-shell-mobile-button {
        display: block;
    }

    .up-shell-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .up-shell-header-inner,
    .up-shell-footer-inner {
        width: min(calc(100% - 28px), var(--up-shell-max));
    }

    .up-shell-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .up-shell-footer-bottom {
        flex-direction: column;
        gap: 6px;
    }

    .up-shell-drawer {
        width: min(92vw, 390px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .up-shell *,
    .up-shell *::before,
    .up-shell *::after {
        transition: none !important;
    }
}


/*
|--------------------------------------------------------------------------
| UnlockPool Global Footer Polish
|--------------------------------------------------------------------------
*/

.up-shell-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(120, 153, 199, .20);
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(60, 190, 230, .07),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 0%,
            rgba(240, 160, 65, .05),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            rgba(8, 18, 31, .98),
            rgba(5, 13, 24, 1)
        );
}

.up-shell-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1220px, calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(94, 221, 247, .42),
            rgba(237, 157, 62, .28),
            transparent
        );
}


/*
|--------------------------------------------------------------------------
| Brand block
|--------------------------------------------------------------------------
*/

.up-shell-footer-brand {
    padding: 18px 20px;
    border: 1px solid rgba(120, 153, 199, .14);
    border-radius: 16px;
    background: rgba(9, 20, 35, .48);
}

.up-shell-footer-brand strong {
    display: block;
    margin-bottom: 11px;
    color: #f5f8ff;
    letter-spacing: .06em;
}

.up-shell-footer-brand span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    color: #8ea5c5;
}

.up-shell-footer-brand span:first-of-type::before {
    content: "₿";
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid rgba(105, 224, 246, .22);
    border-radius: 8px;
    color: #74e5f5;
    background: rgba(40, 160, 190, .08);
    font-size: 13px;
    font-weight: 900;
}

.up-shell-footer-brand span:last-of-type::before {
    content: "🇹🇭";
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid rgba(120, 153, 199, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Footer links
|--------------------------------------------------------------------------
*/

.up-shell-footer a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition:
        color .18s ease,
        transform .18s ease;
}

.up-shell-footer a::before {
    content: "›";
    color: rgba(112, 223, 244, .58);
    font-size: 14px;
    line-height: 1;
    transition: transform .18s ease;
}

.up-shell-footer a:hover {
    color: #89e9f7;
    transform: translateX(2px);
}

.up-shell-footer a:hover::before {
    transform: translateX(2px);
}


/*
|--------------------------------------------------------------------------
| Footer headings
|--------------------------------------------------------------------------
*/

.up-shell-footer h3,
.up-shell-footer h4,
.up-shell-footer-title {
    position: relative;
    padding-left: 13px;
}

.up-shell-footer h3::before,
.up-shell-footer h4::before,
.up-shell-footer-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #65dff3;
    box-shadow: 0 0 10px rgba(101, 223, 243, .45);
}


/*
|--------------------------------------------------------------------------
| Footer bottom
|--------------------------------------------------------------------------
*/

.up-shell-footer-bottom {
    border-top-color: rgba(120, 153, 199, .18);
}

.up-shell-footer-bottom > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.up-shell-footer-bottom > span:last-child::before {
    content: "●";
    color: #40d98a;
    font-size: 8px;
    text-shadow: 0 0 8px rgba(64, 217, 138, .45);
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .up-shell-footer-brand {
        padding: 16px;
    }

    .up-shell-footer-brand span {
        font-size: 13px;
    }
}


/*
|--------------------------------------------------------------------------
| Thailand Flag - CSS rendered
|--------------------------------------------------------------------------
| Avoid OS emoji fallback showing "TH" instead of the Thai flag.
*/

.up-shell-footer-brand span:last-of-type::before {
    content: "" !important;

    display: inline-block;
    width: 26px;
    height: 18px;
    flex: 0 0 26px;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,

            #a51931 0%,
            #a51931 16.666%,

            #f4f5f8 16.666%,
            #f4f5f8 33.333%,

            #2d2a4a 33.333%,
            #2d2a4a 66.666%,

            #f4f5f8 66.666%,
            #f4f5f8 83.333%,

            #a51931 83.333%,
            #a51931 100%
        );

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .18),
        0 3px 10px rgba(0, 0, 0, .18);
}
