@import url('https://use.fontawesome.com/releases/v7.3.0/css/all.css');                                 /*—         FontAwesome           —*/
@import url('https://cdn.jsdelivr.net/npm/vscode-codicons@0.0.17/dist/codicon.min.css');                /*—           codicon             —*/
@import url('https://fonts.cdnfonts.com/css/general-sans');                                             /*—        "General Sans"         —*/
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@100..800&display=swap'); /*—  "JetBrains Mono", monospace  —*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&display=swap');        /*—        "Noto Sans SC"         —*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SP:wght@100..900&display=swap');        /*—        "Noto Sans JP"         —*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');        /*—        "Noto Sans KR"         —*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@100..900&display=swap');    /*—      "Noto Sans Arabic"       —*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');               /*—            Inter              —*/
@import url('font-sizes.css');

/*————/ RESET /———————————————————————*/
:root {
    --topbar-height: 53px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 18px;
}
html, body {
    height: 100%;
    font-family: "General Sans", "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*:focus {
    outline: none;
    box-shadow: none;
}
* {
    -webkit-tap-highlight-color: transparent;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
button {
    -webkit-user-select: none;
    user-select: none;
}

/*————/ BODY /———————————————————————*/
html {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #e6e6e6;
    background: #02030a;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/*————/ LAYOUT /———————————————————————*/
main#main {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

/*————/ BACKGROUND /———————————————————————*/
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/*————/ HEADER /———————————————————————*/
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
}
.header-content {
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 1rem;
    border-bottom: 1px solid #fff1;
}
.header-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #0004;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.header__social-icons {
    padding-right: 1rem;
    border-right: solid 1px #fff3;
}
.header__social-icons,
.header__sidebar-toggle {
    display: flex;
    gap: 1rem;
}
.header__social-icons button,
.header__sidebar-toggle button {
    position: relative;
    color: #e6e6e6;
    background: none;
    border: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    z-index: 1;
    cursor: pointer;
}
.header__social-icons button:hover,
.header__social-icons button:focus,
.header__sidebar-toggle button:hover,
.header__sidebar-toggle button:focus {
    opacity: 1;
    scale: 105%;
}
.header__social-icons button:hover::before,
.header__social-icons button:focus::before,
.header__sidebar-toggle button:hover::before,
.header__sidebar-toggle button:focus::before {
    display: block;
}
.header__social-icons button::before,
.header__sidebar-toggle button::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    height: 30px;
    width: 30px;
    background: radial-gradient(circle at 50% 50%, white, transparent 70%);
    z-index: -1;
    opacity: 20%;
    display: none;
}
.header__social-icons svg,
.header__sidebar-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}
.header__sidebar-toggle {
    margin-right: auto;
}
.header__language-switcher {
    position: relative;
    margin-left: 1rem;
    display: flex;
    justify-content: left;
    align-self: stretch;
}
.header__language-switcher-toggle {
    display: flex;
    align-items: center;
    margin-left: -4px;
    padding: 0 23px 0 8px;
    color: #e6e6e6;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: "General Sans", "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    height: 120%;
    transform: translateY(-10%);
    letter-spacing: 0.03em;
    opacity: 0.75;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}
.header__language-switcher::after {
    font-family: FontAwesome;
    content: '\f078';
    opacity: 0.75;
    position: relative;
    top: 1px;
    margin-left: -19px;
    scale: 0.55;
    transform: rotate(0deg);
    transition: transform 0.16s, top 0.12s ease-in-out;
}
.header__language-switcher:has(.header__language-switcher-dropdown.visible) .header__language-switcher-toggle {
    opacity: 1;
    background-color: #fff2;
}
.header__language-switcher:has(.header__language-switcher-dropdown.visible)::after {
    top: 0;
    transform: rotate(-180deg);
    opacity: 1;
}
.header__language-switcher-toggle:hover {
    opacity: 1;
    background-color: #fff2;
}
.header__language-switcher-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    height: 204px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #0003;
    border: 1px solid #fff1;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 0.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -6px, 0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 20;
}
@supports not selector(::-webkit-scrollbar) {
    .header__language-switcher-dropdown {
        scrollbar-width: thin;
        scrollbar-color: #fff5 #0000;
    }
}
.header__language-switcher-dropdown::-webkit-scrollbar {
    width: 10px;
}
.header__language-switcher-dropdown::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}
.header__language-switcher-dropdown::-webkit-scrollbar-thumb {
    background-color: #fff5;
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
.header__language-switcher-dropdown::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.header__language-switcher-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear;
}
.header__language-switcher-group {
    display: flex;
    flex-direction: column;
    margin-top: 1px;
}
.header__language-switcher-group:first-of-type {
    margin-top: 0;
}
.header__language-switcher-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e6e6e6;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    font-family: "General Sans", "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.header__language-switcher-option:hover {
    color: #fff;
    background: #ffffff0c;
}
.header__language-switcher-option.active {
    color: #fff;
    background: #ffffff14;
}
.header__language-switcher-option--toggle {
    justify-content: space-between;
}
.header__language-switcher-chevron {
    font-size: 0.7rem;
    opacity: 0.6;
    top: 0;
    transition: transform 0.16s, top 0.12s ease-in-out;
    pointer-events: none;
}
.header__language-switcher-option--toggle[aria-expanded="true"] .header__language-switcher-chevron {
    top: -1px;
    transform: rotate(-180deg);
}
.header__language-switcher-option--region {
    padding-left: 0.8rem;
    font-size: 0.8rem;
}
.header__language-switcher-option--region:first-child {
    margin-top: 1px;
}
.header__language-switcher-flag img.emoji,
.header__language-switcher-current img.emoji {
    width: 18px;
    height: 18px;
    vertical-align: -4.85px;
    margin-right: 2px;
}
.header__language-switcher-region-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    height: 0;
    overflow: hidden;
    transition: height 0.15s ease;
}
.header__language-switcher-region-list[hidden] {
    display: none;
}

/*————/ FOOTER /———————————————————————*/
.footer {
    position: sticky;
    width: 100%;
    top: 100%;
    text-align: center;
    padding: .5rem;
    font-size: 0.85rem;
    font-family: "General Sans", "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
    user-select: none;
    color: #8a8a8a;
    background: #0004;
    border-top: 1px solid #fff1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/*————/ TOOLTIP /———————————————————————*/
.tooltip {
    position: fixed;
    left: 0;
    top: 0;
    background-color: #0007;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid #fff1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity .1s ease-in-out, transform 0.2s ease-in-out;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(-12%);
}
.tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/*————/ SIDEBAR /———————————————————————*/
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100%;
    width: 250px;
    padding: 1rem 1rem;
    background: #0004;
    border-radius: 0 10px 10px 0;
    border-right: 1px solid #fff1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    visibility: hidden;
    transition: left 0.27s ease, visibility 0s linear 0.27s;
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: large;
}
.sidebar.visible {
    left: 0;
    visibility: visible;
    transition: left 0.27s ease, visibility 0s linear;
}
.sidebar__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: calc(100% - 46px);
    overflow-y: auto;
    scrollbar-width: large;
}
.sidebar__content::-webkit-scrollbar {
    display: none;
}
.sidebar__option,
.sidebar__copyright {
    color: #e6e6e6;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: "General Sans", "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: none;
    padding: 0.4rem .7rem;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: 7px;
    transition: all 0.2s ease;
    user-select: none;
}
.sidebar__option:hover,
.sidebar__option:focus,
.sidebar__copyright:hover {
    color: #fff;
    background: #ffffff0c;
    padding: 0.4rem .8rem;
}
.sidebar__copyright {
    text-align: center;
    position: sticky;
    bottom: 0;
    font-size: 0.7rem;
    padding: 0.5rem 0 !important;
    cursor: default;
    transform: translateY(15px);
}
.sidebar__copyright::before {
    content: "";
    position: absolute;
    top: -7.5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff2;
}

/*————/ CONTEXT MENU /———————————————————————*/
.context-menu {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 160px;
    background: #0009;
    border: 1px solid #fff2;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -6px, 0);
    transition: opacity 0.1s ease, transform 0.1s ease, visibility 0s linear 0.1s;
    z-index: 9998;
}
.context-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.1s ease, transform 0.2s ease, visibility 0s linear;
}
.context-menu__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.context-menu__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: #e6e6e6;
    background: none;
    border: none;
    text-align: left;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    font-family: "General Sans", "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.context-menu__option:hover {
    color: #fff;
    background: #ffffff0c;
}
.context-menu__option:disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}
.context-menu__shortcut {
    all: unset;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    opacity: 0.5;
    background: #0009;
    padding: 0.1rem 0.4rem;
    margin: 0 -5px 0 10px;
    border-radius: 5px;
    border: solid 1px #fff1;
}
.context-menu__nav {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}
.context-menu__nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e6e6e6;
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.context-menu__nav-btn:hover {
    color: #fff;
    background: #ffffff0c;
}
.context-menu__nav-btn:disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/*————/ POPUP /———————————————————————*/
[inert] {
    pointer-events: none;
    user-select: none;
}
.popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000000b3;
    backdrop-filter: blur(4px);
    z-index: 1000;
}
.popup-overlay.active {
    display: flex;
}
.popup-modal {
    background: #3331;
    border: 1px solid #fff2;
    border-radius: 15px;
    user-select: none;
    padding: 0.85rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    min-width: 11vw;
    max-width: 90vw;
    text-align: center;
    font-family: "General Sans", "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
    box-shadow: 0 20px 60px #0008;
    animation: popupModalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popupModalPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.popup-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8a8a;
    margin-bottom: 0.6rem;
}
.popup-content {
    position: relative;
    font-size: 1.9rem;
    line-height: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.6rem;
    word-break: break-word;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
}
.popup-content.copyable {
    cursor: pointer;
    transition: transform .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.popup-content.copyable:active,
.popup-content.copyable:focus {
    transform: translateX(-50%) scale(.94);
}
.popup-content.copyable:hover {
    opacity: 0.95;
}
.popup-content.copyable::after {
    position: relative;
    font-family: FontAwesome;
    content: '\f0c5';
    top: -2px;
    padding-left: .6rem;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    animation: popupCopyIconPop 0.28s ease;
}
@keyframes popupCopyIconPop {
    0% { transform: scale(0.5) rotate(0deg); opacity: 0.4; }
    60% { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes popupCopyIconPopSpin {
    0% { transform: scale(0.5); opacity: 0.4; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.popup-content.copyable[copied]::after {
    content: '\f00c';
    color: #25d42d;
    animation: popupCopyIconPopSpin 0.15s ease;
}
.popup-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.popup-btn {
    font-family: "General Sans", "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    color: #e6e6e6;
    background: #ffffff0c;
    border: 1px solid #fff1;
    border-radius: 7px;
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.popup-btn:hover,
.popup-btn:focus {
    background: #ffffff1a;
}
.popup-btn--danger {
    color: #ff8080;
    background: #ff4d4d1a;
    border: 1px solid #ff4d4d33;
}
.popup-btn--danger:hover,
.popup-btn--danger:focus {
    background: #ff4d4d33;
}