* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: bold;
}

body {
    background-image: url('assets/wallpapers/everestbg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Montserrat', Arial, sans-serif;
    color: white;
    position: relative;
    overflow-x: hidden;
}

.topbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(30, 60, 114, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 0;
    display: flex;
    align-items: center;
}

.topbar nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    align-items: center;
}

.topbar nav a {
    color: white;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.topbar nav a img {
    width: 28px;
    height: 28px;
    filter: none;
}

.topbar nav a img[src*="everest.gif"] {
    width: 48px;
    height: 48px;
}

.topbar nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem 2rem 100px 2rem;
    gap: 2rem;
}

.everest-title {
    font-size: 5rem;
    font-weight: 700;
    text-transform: lowercase;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    margin: 0;
}

.phrases {
    font-size: 1.2rem;
    color: #b0b0b0;
    text-align: center;
    max-width: 600px;
    line-height: 1.4;
    margin-top: -1rem;
    transition: opacity 0.5s ease-in-out;
}

.search-container {
    width: 100%;
    max-width: 500px;
    margin: 1rem 0;
}

.search-bar {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase;
    font-weight: bold;
}

.search-bar:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.game-icons {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    justify-content: center;
    justify-items: center;
    margin: 2rem auto 0;
    max-width: 1700px;
    width: 100%;
    padding: 0 2rem;
}

.game-icon {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
}

.game-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.game-icon.most-played {
    order: -1;
}

.most-played-divider {
    width: 100%;
    order: -2;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    to { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-icon:hover img {
    transform: scale(1.05);
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: white;
    padding: 40px 16px 16px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

.exclusive-badge {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30px;
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 10;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
}

.game-icon:has(.exclusive-badge) .game-title {
    padding-left: 40px;
}

@media (max-width: 1024px) {
    .game-icons {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .game-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .game-title {
        font-size: 0.95rem;
        padding: 35px 14px 14px;
    }
    
    .exclusive-badge, .game-category {
        font-size: 9px;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .game-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .game-title {
        font-size: 0.85rem;
    }
}

.taskbar {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 60, 114, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 300px;
    transition: left 0.3s ease, right 0.3s ease, bottom 0.3s ease, border-radius 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.taskbar.extended {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    border-radius: 0;
    width: 100%;
    min-width: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.taskbar.extended .taskbar-content {
    justify-content: flex-end;
    gap: 1.5rem;
    flex-shrink: 0;
    flex-grow: 0;
    padding-right: 1rem;
    /* sits in the 3rd grid column, right-aligned */
    justify-self: end;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.taskbar-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 0;
}
.taskbar-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.taskbar-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--taskbar-size, 48px) * 0.75);
    height: calc(var(--taskbar-size, 48px) * 0.75);
    border-radius: 6px;
    transition: background 0.2s;
    text-decoration: none;
}

/* home button — tall, full-height, Windows start-menu style */
.taskbar-nav a[data-home] {
    width: calc(var(--taskbar-size, 48px) * 1.1);
    height: calc(var(--taskbar-size, 48px) * 0.75);
    border-radius: 6px;
    background: none;
    border-right: none;
    padding: 0 6px;
    margin-right: 4px;
}

.taskbar-nav a[data-home]:hover {
    background: rgba(255,255,255,0.18);
}

.taskbar-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}
.taskbar-nav a:focus,
.taskbar-nav a:focus-visible {
    outline: none;
}

.taskbar button:focus,
.taskbar button:focus-visible {
    outline: none;
    box-shadow: none;
}

.taskbar-nav a img {
    width: calc(var(--taskbar-size, 48px) * 0.45);
    height: calc(var(--taskbar-size, 48px) * 0.45);
}

.taskbar-nav a img[src*="everest.gif"] {
    width: calc(var(--taskbar-size, 48px) * 0.65);
    height: calc(var(--taskbar-size, 48px) * 0.65);
}

.taskbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.taskbar-time, .taskbar-weather {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.taskbar-greeting {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.settings-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.setting-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    overflow: visible;
}

.setting-card h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    text-transform: lowercase;
}

.setting-option {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.setting-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-option label:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.setting-option input[type="radio"],
.setting-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007acc;
}

.setting-option input[type="radio"]:checked + span,
.setting-option input[type="checkbox"]:checked + span {
    color: #007acc;
    font-weight: bold;
}

body.useawp {
    background-color: rgb(15, 25, 18);
    background-image: none;
}

body.useawp .topbar {
    background-color: rgb(25, 40, 32);
    border: 1px solid rgb(70, 120, 85);
    backdrop-filter: none;
}

body.useawp .topbar nav a {
    color: rgb(225, 240, 230);
}

body.useawp .topbar nav a img {
    filter: none;
}

body.useawp .everest-title {
    color: rgb(225, 240, 230);
    background: none;
    -webkit-text-fill-color: rgb(225, 240, 230);
    text-shadow: none;
}

body.useawp .phrases {
    color: rgb(225, 240, 230);
}

body.useawp .search-bar {
    background-color: rgb(35, 60, 45);
    border: 1px solid rgb(70, 120, 85);
    color: rgb(225, 240, 230);
}

body.useawp .search-bar::placeholder {
    color: rgb(130, 170, 140);
}

body.useawp .search-bar:focus {
    background-color: rgb(50, 85, 60);
    border-color: rgb(100, 150, 110);
}

body.useawp .taskbar {
    background: rgba(25, 40, 32, 0.8);
    border: 1px solid rgba(70, 120, 85, 0.6);
    backdrop-filter: blur(15px);
}

body.useawp .taskbar.extended {
    background: rgba(12, 22, 16, 0.94);
    border: none;
}
body.useawp .taskbar.extended.panel-bottom { border-top: 1px solid rgba(70, 120, 85, 0.25); box-shadow: 0 -2px 20px rgba(0,0,0,0.5); }
body.useawp .taskbar.extended.panel-left  { border-right: 1px solid rgba(70, 120, 85, 0.25); box-shadow: 2px 0 20px rgba(0,0,0,0.5); }
body.useawp .taskbar.extended.panel-right { border-left: 1px solid rgba(70, 120, 85, 0.25); box-shadow: -2px 0 20px rgba(0,0,0,0.5); }

body.useawp .setting-card {
    background-color: rgb(25, 40, 32);
    border: 1px solid rgb(70, 120, 85);
    backdrop-filter: none;
}

body.useawp .setting-card h3 {
    color: rgb(225, 240, 230);
}

body.useawp .setting-option label {
    color: rgb(225, 240, 230);
    background-color: rgb(35, 60, 45);
    border: 1px solid rgb(70, 120, 85);
}

body.useawp .setting-option label:hover {
    background-color: rgb(50, 85, 60);
    border-color: rgb(100, 150, 110);
}

body.useawp .setting-option input[type="radio"]:checked + span,
body.useawp .setting-option input[type="checkbox"]:checked + span {
    color: rgb(130, 170, 140);
}

body.cherryblossom {
    background-image: url('assets/wallpapers/cherryblossombg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.cherryblossom .topbar {
    background: rgba(255, 182, 193, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.5);
}

body.cherryblossom .topbar nav a {
    color: rgb(139, 69, 101);
}

body.cherryblossom .topbar nav a img {
    filter: sepia(0.5) hue-rotate(320deg) saturate(1.5);
}

body.cherryblossom .everest-title {
    color: rgb(255, 255, 255);
    background: rgba(139, 69, 101, 0.8);
    -webkit-text-fill-color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

body.cherryblossom .phrases {
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background: rgba(139, 69, 101, 0.6);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

body.cherryblossom .search-bar {
    background: rgba(139, 69, 101, 0.6);
    border: 1px solid rgba(255, 182, 193, 0.4);
    color: rgb(255, 255, 255);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

body.cherryblossom .search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

body.cherryblossom .search-bar:focus {
    background: rgba(139, 69, 101, 0.7);
    border-color: rgba(255, 182, 193, 0.6);
}

body.cherryblossom .taskbar {
    background: rgba(139, 69, 101, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 182, 193, 0.6);
}

body.cherryblossom .taskbar.extended {
    background: rgba(70, 30, 50, 0.94);
    border: none;
}
body.cherryblossom .taskbar.extended.panel-bottom { border-top: 1px solid rgba(255, 182, 193, 0.2); box-shadow: 0 -2px 20px rgba(0,0,0,0.5); }
body.cherryblossom .taskbar.extended.panel-left  { border-right: 1px solid rgba(255, 182, 193, 0.2); box-shadow: 2px 0 20px rgba(0,0,0,0.5); }
body.cherryblossom .taskbar.extended.panel-right { border-left: 1px solid rgba(255, 182, 193, 0.2); box-shadow: -2px 0 20px rgba(0,0,0,0.5); }

body.cherryblossom .taskbar-time,
body.cherryblossom .taskbar-weather {
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background: rgba(139, 69, 101, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
}

body.cherryblossom .taskbar.extended.panel-left .taskbar-time,
body.cherryblossom .taskbar.extended.panel-left .taskbar-weather,
body.cherryblossom .taskbar.extended.panel-left .taskbar-greeting,
body.cherryblossom .taskbar.extended.panel-left .taskbar-online,
body.cherryblossom .taskbar.extended.panel-right .taskbar-time,
body.cherryblossom .taskbar.extended.panel-right .taskbar-weather,
body.cherryblossom .taskbar.extended.panel-right .taskbar-greeting,
body.cherryblossom .taskbar.extended.panel-right .taskbar-online {
    background: none;
    padding: 6px 0;
    border-radius: 0;
    text-shadow: none;
}

body.cherryblossom .setting-card {
    background: rgba(139, 69, 101, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.4);
}

body.cherryblossom .setting-card h3 {
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.cherryblossom .setting-option label {
    color: rgb(255, 255, 255);
    background: rgba(139, 69, 101, 0.5);
    border: 1px solid rgba(255, 182, 193, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

body.cherryblossom .setting-option label:hover {
    background: rgba(139, 69, 101, 0.6);
    border-color: rgba(255, 182, 193, 0.5);
}

body.cherryblossom .setting-option input[type="radio"]:checked + span,
body.cherryblossom .setting-option input[type="checkbox"]:checked + span {
    color: rgb(255, 182, 193);
    font-weight: bold;
}

.custom-dropdown {
    position: relative;
    width: 200px;
    margin-left: 10px;
    flex-shrink: 0;
}

.dropdown-selected {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    min-width: 0;
}

.dropdown-selected:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

#selected-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 8px;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-top: 4px;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    min-width: 100%;
    box-sizing: border-box;
}

.dropdown-options.show {
    max-height: 200px;
    opacity: 1;
    overflow-y: auto;
}

.dropdown-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-option.selected {
    background: rgba(100, 150, 255, 0.2);
    color: rgb(150, 180, 255);
}

.dropdown-option[data-value="custom"] {
    color: rgb(150, 200, 255);
    font-weight: 500;
}

.setting-option {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.setting-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.setting-option label span:first-child {
    flex-shrink: 0;
    min-width: fit-content;
}

.custom-tab-cloak {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-top: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-tab-cloak.show {
    max-height: 500px;
    opacity: 1;
    overflow: visible;
}

.custom-header h4 {
    color: rgb(150, 180, 255);
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(150, 180, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(150, 180, 255, 0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.button-group {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.save-btn {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.2), rgba(150, 180, 255, 0.1));
    border: 1px solid rgba(150, 180, 255, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.save-btn:hover {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.3), rgba(150, 180, 255, 0.2));
    border-color: rgba(150, 180, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 150, 255, 0.3);
}

.save-btn:active {
    transform: translateY(0);
}

.save-btn.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(129, 199, 132, 0.2));
    border-color: rgba(76, 175, 80, 0.5);
}

.save-btn.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(239, 83, 80, 0.2));
    border-color: rgba(244, 67, 54, 0.5);
}

body.useawp .custom-dropdown .dropdown-selected {
    background: rgba(50, 85, 60, 0.3);
    border-color: rgba(100, 150, 110, 0.4);
}

body.useawp .custom-dropdown .dropdown-selected:hover {
    background: rgba(50, 85, 60, 0.4);
    border-color: rgba(100, 150, 110, 0.6);
}

body.useawp .custom-dropdown .dropdown-options {
    background: rgba(25, 40, 32, 0.95);
    border-color: rgba(100, 150, 110, 0.4);
}

body.useawp .custom-dropdown .dropdown-option:hover {
    background: rgba(70, 120, 85, 0.3);
}

body.useawp .custom-dropdown .dropdown-option.selected {
    background: rgba(130, 170, 140, 0.3);
    color: rgb(130, 170, 140);
}

body.useawp .custom-tab-cloak {
    background: rgba(50, 85, 60, 0.1);
    border-color: rgba(100, 150, 110, 0.2);
}

body.useawp .custom-header h4 {
    color: rgb(130, 170, 140);
}

body.useawp .input-group input:focus {
    border-color: rgba(130, 170, 140, 0.5);
    box-shadow: 0 0 0 2px rgba(130, 170, 140, 0.2);
}

body.useawp .save-btn {
    background: linear-gradient(135deg, rgba(130, 170, 140, 0.2), rgba(160, 190, 170, 0.1));
    border-color: rgba(130, 170, 140, 0.3);
}

body.useawp .save-btn:hover {
    background: linear-gradient(135deg, rgba(130, 170, 140, 0.3), rgba(160, 190, 170, 0.2));
    border-color: rgba(130, 170, 140, 0.5);
    box-shadow: 0 4px 12px rgba(130, 170, 140, 0.3);
}

body.cherryblossom .custom-dropdown .dropdown-selected {
    background: rgba(139, 69, 101, 0.3);
    border-color: rgba(255, 182, 193, 0.4);
}

body.cherryblossom .custom-dropdown .dropdown-selected:hover {
    background: rgba(139, 69, 101, 0.4);
    border-color: rgba(255, 182, 193, 0.6);
}

body.cherryblossom .custom-dropdown .dropdown-options {
    background: rgba(139, 69, 101, 0.95);
    border-color: rgba(255, 182, 193, 0.4);
}

body.cherryblossom .custom-dropdown .dropdown-option:hover {
    background: rgba(255, 182, 193, 0.2);
}

body.cherryblossom .custom-dropdown .dropdown-option.selected {
    background: rgba(255, 182, 193, 0.3);
    color: rgb(255, 182, 193);
}

body.cherryblossom .custom-tab-cloak {
    background: rgba(139, 69, 101, 0.2);
    border-color: rgba(255, 182, 193, 0.3);
}

body.cherryblossom .custom-header h4 {
    color: rgb(255, 182, 193);
}

body.cherryblossom .input-group input:focus {
    border-color: rgba(255, 182, 193, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 182, 193, 0.2);
}

body.cherryblossom .save-btn {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(255, 200, 210, 0.1));
    border-color: rgba(255, 182, 193, 0.3);
}

body.cherryblossom .save-btn:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(255, 200, 210, 0.2));
    border-color: rgba(255, 182, 193, 0.5);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

.proxy-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.proxy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.proxy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.proxy-btn:active {
    transform: translateY(0);
}

.proxy-btn.active {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
    color: rgb(129, 199, 132);
}

.proxy-icon {
    font-size: 14px;
}

.proxy-text {
    font-size: 12px;
    white-space: nowrap;
}

body.useawp .proxy-btn {
    background: rgba(50, 85, 60, 0.3);
    border-color: rgba(100, 150, 110, 0.4);
}

body.useawp .proxy-btn:hover {
    background: rgba(50, 85, 60, 0.4);
    border-color: rgba(100, 150, 110, 0.6);
    box-shadow: 0 4px 12px rgba(100, 150, 110, 0.3);
}

body.useawp .proxy-btn.active {
    background: rgba(130, 170, 140, 0.3);
    border-color: rgba(130, 170, 140, 0.5);
    color: rgb(160, 190, 170);
}

body.cherryblossom .proxy-btn {
    background: rgba(139, 69, 101, 0.3);
    border-color: rgba(255, 182, 193, 0.4);
}

body.cherryblossom .proxy-btn:hover {
    background: rgba(139, 69, 101, 0.4);
    border-color: rgba(255, 182, 193, 0.6);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

body.cherryblossom .proxy-btn.active {
    background: rgba(255, 182, 193, 0.3);
    border-color: rgba(255, 182, 193, 0.5);
    color: rgb(255, 200, 210);
}

.open-buttons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.open-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.open-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.open-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.btn-text {
    font-size: 13px;
    white-space: nowrap;
}

body.useawp .open-btn {
    background: rgba(50, 85, 60, 0.3);
    border-color: rgba(100, 150, 110, 0.4);
}

body.useawp .open-btn:hover {
    background: rgba(50, 85, 60, 0.4);
    border-color: rgba(100, 150, 110, 0.6);
    box-shadow: 0 4px 12px rgba(100, 150, 110, 0.3);
}

body.cherryblossom .open-btn {
    background: rgba(139, 69, 101, 0.3);
    border-color: rgba(255, 182, 193, 0.4);
}

body.cherryblossom .open-btn:hover {
    background: rgba(139, 69, 101, 0.4);
    border-color: rgba(255, 182, 193, 0.6);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(30, 60, 114), rgb(20, 40, 80));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

body.useawp #loading-screen {
    background: rgb(15, 25, 18);
}

body.cherryblossom #loading-screen {
    background: linear-gradient(135deg, rgb(139, 69, 101), rgb(100, 50, 80));
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

body.useawp .loading-spinner {
    border-color: rgba(70, 120, 85, 0.2);
    border-top-color: rgb(130, 170, 140);
}

body.cherryblossom .loading-spinner {
    border-color: rgba(255, 182, 193, 0.3);
    border-top-color: rgb(255, 182, 193);
}

.loading-text {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: lowercase;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#sj-frame {
	border: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: #111;
}

#sj-error {
	color: #ff6666 !important;
	white-space: pre-wrap;
}

#sj-error-code {
	font-size: 12px;
	color: #fff;
	font-family: "Courier New", Courier, monospace;
}

#sixsevenyari {
    margin-top: 60px;
}

#proxysel {
    width: 200px;
    max-width: 80%;
    padding: 0.6rem 1rem;
    margin-top: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

#iframe {
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;  
    display: none;
}

/* ── Desktop Mode Panel Positions ─────────────────────────────────────── */
.taskbar.extended {
    padding: 0;
    border-radius: 0;
    border: none;
    background: rgba(15, 20, 40, 0.92);
    backdrop-filter: blur(20px);
}

/* ── Bottom panel — grid for true centering ───────────────────────────── */
.taskbar.extended.panel-bottom {
    top: unset;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--taskbar-size, 48px);
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.4);
    overflow: visible;
}

/* nav sits left, pins center, tray right */
.taskbar.extended.panel-bottom .taskbar-nav {
    justify-self: start;
}

.taskbar.extended.panel-bottom .taskbar-pins {
    justify-self: center;
}

.taskbar.extended.panel-bottom .taskbar-content {
    justify-self: end;
}

/* ── Left panel ───────────────────────────────────────────────────────── */
.taskbar.extended.panel-left {
    top: 32px;
    bottom: 0;
    left: 0;
    right: unset;
    width: var(--taskbar-size, 48px);
    height: calc(100vh - 32px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: 2px 0 20px rgba(0,0,0,0.4);
}

/* ── Right panel ──────────────────────────────────────────────────────── */
.taskbar.extended.panel-right {
    top: 32px;
    bottom: 0;
    right: 0;
    left: unset;
    width: var(--taskbar-size, 48px);
    height: calc(100vh - 32px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -2px 0 20px rgba(0,0,0,0.4);
}

.taskbar.extended.panel-left .taskbar-content,
.taskbar.extended.panel-right .taskbar-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    justify-self: unset;
    padding-right: 0;
    padding-bottom: 0.5rem;
    width: 100%;
    overflow: hidden;
}

/* rotate text items sideways in side panels */
.taskbar.extended.panel-left .taskbar-time,
.taskbar.extended.panel-left .taskbar-weather,
.taskbar.extended.panel-left .taskbar-greeting,
.taskbar.extended.panel-left .taskbar-online,
.taskbar.extended.panel-right .taskbar-time,
.taskbar.extended.panel-right .taskbar-weather,
.taskbar.extended.panel-right .taskbar-greeting,
.taskbar.extended.panel-right .taskbar-online {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.55);
    padding: 4px 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 72px;
    background: none;
    text-shadow: none;
    border-radius: 0;
    transition: color 0.2s;
}

.taskbar.extended.panel-left .taskbar-time,
.taskbar.extended.panel-right .taskbar-time {
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.taskbar.extended.panel-left .taskbar-greeting,
.taskbar.extended.panel-right .taskbar-greeting {
    color: rgba(255,255,255,0.4);
    font-size: 0.58rem;
    text-transform: lowercase;
}

/* right panel reads top-to-bottom naturally */
.taskbar.extended.panel-right .taskbar-time,
.taskbar.extended.panel-right .taskbar-weather,
.taskbar.extended.panel-right .taskbar-greeting,
.taskbar.extended.panel-right .taskbar-online {
    transform: rotate(0deg);
}

/* wrap all tray text in a subtle container */
.taskbar.extended.panel-left .taskbar-content,
.taskbar.extended.panel-right .taskbar-content {
    gap: 2px;
}

/* resource monitor in side panel — compact stacked pills */
.taskbar.extended.panel-left .dm-resource-monitor,
.taskbar.extended.panel-right .dm-resource-monitor {
    flex-direction: column;
    gap: 3px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 0 8px 0;
    margin-right: 0;
    margin-bottom: 2px;
    width: 100%;
    align-items: center;
}

.taskbar.extended.panel-left .dm-res-item,
.taskbar.extended.panel-right .dm-res-item {
    flex-direction: column;
    gap: 3px;
    padding: 4px 6px;
    width: calc(var(--taskbar-size, 48px) * 0.78);
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.taskbar.extended.panel-left .dm-res-bar-wrap,
.taskbar.extended.panel-right .dm-res-bar-wrap {
    width: 100%;
    height: 3px;
}

.taskbar.extended.panel-left .dm-res-val,
.taskbar.extended.panel-right .dm-res-val {
    min-width: unset;
    text-align: center;
    font-size: 0.58rem;
}

.taskbar.extended.panel-left .dm-res-icon,
.taskbar.extended.panel-right .dm-res-icon {
    display: none;
}

/* divider between tray sections */
.taskbar.extended.panel-left .taskbar-content > *,
.taskbar.extended.panel-right .taskbar-content > * {
    width: 100%;
}

/* subtle separator between each tray text item */
.taskbar.extended.panel-left .taskbar-time,
.taskbar.extended.panel-left .taskbar-weather,
.taskbar.extended.panel-left .taskbar-greeting,
.taskbar.extended.panel-left .taskbar-online,
.taskbar.extended.panel-right .taskbar-time,
.taskbar.extended.panel-right .taskbar-weather,
.taskbar.extended.panel-right .taskbar-greeting,
.taskbar.extended.panel-right .taskbar-online {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 1px;
}

.taskbar.extended.panel-left .dm-resource-monitor + .taskbar-time,
.taskbar.extended.panel-right .dm-resource-monitor + .taskbar-time {
    border-top: none;
    margin-top: 0;
}

.taskbar.extended.panel-left .taskbar-nav,
.taskbar.extended.panel-right .taskbar-nav {
    flex-direction: column;
}

.taskbar.extended.panel-left .taskbar-nav ul,
.taskbar.extended.panel-right .taskbar-nav ul {
    flex-direction: column;
}

.taskbar.extended.panel-left .taskbar-pins,
.taskbar.extended.panel-right .taskbar-pins {
    flex-direction: column;
    flex: 1;
    justify-content: center;
    padding: 4px 0;
    gap: 4px;
}

.taskbar.extended.panel-left .dm-panel-tray,
.taskbar.extended.panel-right .dm-panel-tray {
    /* positioning handled by JS relative to gear button */
}

/* ── Pinned Apps ──────────────────────────────────────────────────────── */
.taskbar-pins {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.taskbar-pins.pins-centered {
    justify-content: center;
}

.taskbar.extended.panel-left .taskbar-pins,
.taskbar.extended.panel-right .taskbar-pins {
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.taskbar-pin-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--taskbar-size, 48px) * 0.18);
    overflow: visible;
}

.taskbar-pin-wrap.dragging {
    opacity: 0.4;
}

.taskbar-pin-wrap.drag-over .taskbar-pin {
    background: rgba(255,255,255,0.25);
    outline: 2px dashed rgba(255,255,255,0.5);
}

.taskbar-pin-remove {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(220, 50, 50, 0.9);
    border: none;
    color: white;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.taskbar-pin-wrap:hover .taskbar-pin-remove {
    display: none;
}

.taskbar-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--taskbar-size, 48px) * 0.82);
    height: calc(var(--taskbar-size, 48px) * 0.82);
    border-radius: calc(var(--taskbar-size, 48px) * 0.18);
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    overflow: visible;
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
}

.taskbar-pin:focus,
.taskbar-pin:focus-visible,
.taskbar-pin:focus-within {
    outline: none;
}

.taskbar-pin:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.05);
}

.taskbar-pin img {
    width: calc(var(--taskbar-size, 48px) * 0.72);
    height: calc(var(--taskbar-size, 48px) * 0.72);
    object-fit: cover;
    border-radius: calc(var(--taskbar-size, 48px) * 0.15);
    pointer-events: none;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── Super Key Launcher (anchored to home button, slides up) ─────────── */
.dm-launcher {
    display: none;
    position: fixed;
    z-index: 9000;
    transform-origin: bottom left;
    transform: translateY(8px) scale(0.96);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
    pointer-events: none;
}

.dm-launcher.open {
    display: block;
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.dm-launcher-inner {
    background: rgba(20, 40, 80, 0.97);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0;
    width: 300px;
    min-width: 300px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.dm-launcher-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: lowercase;
    padding: 1rem 1.2rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 1px;
}

.dm-launcher-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0;
}

.dm-launcher-links a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.65rem 1.2rem;
    border-radius: 0;
    transition: background 0.15s;
    font-size: 0.9rem;
    text-transform: lowercase;
    font-weight: 600;
}

.dm-launcher-links a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.dm-launcher-links img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ── Desktop Mode Settings Panel ─────────────────────────────────────── */
.desktop-mode-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dm-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dm-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.dm-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dm-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.dm-options label:hover {
    background: rgba(255,255,255,0.1);
}

.dm-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dm-slider {
    flex: 1;
    accent-color: #007acc;
}

.dm-hint {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

.dm-keybind-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 90px;
    text-align: center;
}

.dm-keybind-btn:hover {
    background: rgba(255,255,255,0.15);
}

.dm-keybind-btn.listening {
    border-color: #007acc;
    color: #7ab8f5;
    animation: pulse-border 0.8s infinite alternate;
}

@keyframes pulse-border {
    from { border-color: #007acc; }
    to { border-color: #00d4ff; }
}

.dm-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.dm-pinned-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 160px;
    overflow-y: auto;
}

.dm-pin-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: white;
}

.dm-pin-row img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.dm-pin-row span {
    flex: 1;
}

.dm-unpin-btn {
    background: rgba(255,80,80,0.15);
    border: 1px solid rgba(255,80,80,0.3);
    border-radius: 4px;
    color: rgba(255,150,150,1);
    font-size: 0.75rem;
    padding: 2px 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s;
}

.dm-unpin-btn:hover {
    background: rgba(255,80,80,0.3);
}

.dm-empty {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    font-style: italic;
}

.dm-add-pin {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.dm-select {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    outline: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-select option {
    background: #1a2a4a;
    color: white;
}

.dm-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.dm-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ── Resource Monitor ─────────────────────────────────────────────────── */
.dm-resource-monitor {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px 0 0;
    margin-right: 6px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.dm-res-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 3px 8px 3px 6px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    transition: background 0.2s;
}

.dm-res-item:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
}

.dm-res-icon {
    font-size: 0.65rem;
    opacity: 0.7;
    line-height: 1;
}

.dm-res-bar-wrap {
    width: 28px;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
}

.dm-res-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: rgba(80,200,255,0.8);
    transition: width 0.8s ease, background 0.4s ease;
}

.dm-res-val {
    min-width: 38px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ── Panel Edit Tray ──────────────────────────────────────────────────── */
.dm-gear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
    margin-left: 12px;
}

.dm-gear-btn:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

.dm-gear-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.dm-gear-btn:hover img {
    opacity: 1;
}

.dm-panel-tray {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 8px;
    width: 300px;
    background: rgba(20, 30, 55, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    flex-direction: column;
    gap: 0.75rem;
    max-height: 80vh;
    overflow-y: auto;
}

.dm-panel-tray.open {
    display: flex;
}

.dm-tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.25rem;
}

.dm-tray-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.dm-tray-close:hover {
    color: white;
}

/* ── Desktop Mode Overlay Theming ─────────────────────────────────────── */

/* useawp */
body.useawp .dm-launcher-inner {
    background: rgba(15, 30, 20, 0.98);
    border-color: rgba(70, 120, 85, 0.5);
}

body.useawp .dm-launcher-title {
    color: rgb(225, 240, 230);
    border-bottom-color: rgba(70, 120, 85, 0.3);
}

body.useawp .dm-launcher-links a {
    color: rgb(200, 225, 210);
}

body.useawp .dm-launcher-links a:hover {
    background: rgba(70, 120, 85, 0.25);
    color: rgb(225, 240, 230);
}

body.useawp .dm-panel-tray {
    background: rgba(15, 30, 20, 0.97);
    border-color: rgba(70, 120, 85, 0.5);
}

body.useawp .dm-tray-header {
    color: rgb(225, 240, 230);
    border-bottom-color: rgba(70, 120, 85, 0.4);
}

body.useawp .dm-label {
    color: rgb(130, 170, 140);
}

body.useawp .dm-options label {
    color: rgb(225, 240, 230);
    background: rgba(35, 60, 45, 0.5);
    border-color: rgba(70, 120, 85, 0.4);
}

body.useawp .dm-options label:hover {
    background: rgba(50, 85, 60, 0.6);
}

body.useawp .dm-keybind-btn {
    background: rgba(35, 60, 45, 0.5);
    border-color: rgba(70, 120, 85, 0.5);
    color: rgb(225, 240, 230);
}

body.useawp .dm-keybind-btn:hover {
    background: rgba(50, 85, 60, 0.6);
}

body.useawp .dm-toggle-row {
    color: rgb(225, 240, 230);
}

body.useawp .dm-select {
    background: rgba(35, 60, 45, 0.5);
    border-color: rgba(70, 120, 85, 0.4);
    color: rgb(225, 240, 230);
}

body.useawp .dm-btn {
    background: rgba(35, 60, 45, 0.5);
    border-color: rgba(70, 120, 85, 0.4);
    color: rgb(225, 240, 230);
}

body.useawp .dm-btn:hover {
    background: rgba(50, 85, 60, 0.6);
}

body.useawp .dm-pin-row {
    background: rgba(35, 60, 45, 0.4);
    color: rgb(225, 240, 230);
}

body.useawp .dm-gear-btn {
    background: rgba(35, 60, 45, 0.5);
    border-color: rgba(70, 120, 85, 0.4);
    color: rgb(130, 170, 140);
}

body.useawp .dm-gear-btn:hover {
    background: rgba(50, 85, 60, 0.6);
    color: rgb(225, 240, 230);
}

/* cherryblossom */
body.cherryblossom .dm-launcher-inner {
    background: rgba(90, 35, 58, 0.98);
    border-color: rgba(255, 182, 193, 0.3);
}

body.cherryblossom .dm-launcher-title {
    color: rgb(255, 255, 255);
    border-bottom-color: rgba(255, 182, 193, 0.2);
}

body.cherryblossom .dm-launcher-links a {
    color: rgba(255, 240, 245, 0.9);
}

body.cherryblossom .dm-launcher-links a:hover {
    background: rgba(255, 182, 193, 0.15);
    color: rgb(255, 255, 255);
}

body.cherryblossom .dm-panel-tray {
    background: rgba(100, 40, 65, 0.97);
    border-color: rgba(255, 182, 193, 0.35);
}

body.cherryblossom .dm-tray-header {
    color: rgb(255, 255, 255);
    border-bottom-color: rgba(255, 182, 193, 0.3);
}

body.cherryblossom .dm-label {
    color: rgba(255, 182, 193, 0.9);
}

body.cherryblossom .dm-options label {
    color: rgb(255, 255, 255);
    background: rgba(139, 69, 101, 0.4);
    border-color: rgba(255, 182, 193, 0.3);
}

body.cherryblossom .dm-options label:hover {
    background: rgba(139, 69, 101, 0.6);
}

body.cherryblossom .dm-keybind-btn {
    background: rgba(139, 69, 101, 0.4);
    border-color: rgba(255, 182, 193, 0.4);
    color: rgb(255, 255, 255);
}

body.cherryblossom .dm-keybind-btn:hover {
    background: rgba(139, 69, 101, 0.6);
}

body.cherryblossom .dm-toggle-row {
    color: rgb(255, 255, 255);
}

body.cherryblossom .dm-select {
    background: rgba(139, 69, 101, 0.4);
    border-color: rgba(255, 182, 193, 0.3);
    color: rgb(255, 255, 255);
}

body.cherryblossom .dm-btn {
    background: rgba(139, 69, 101, 0.4);
    border-color: rgba(255, 182, 193, 0.3);
    color: rgb(255, 255, 255);
}

body.cherryblossom .dm-btn:hover {
    background: rgba(139, 69, 101, 0.6);
}

body.cherryblossom .dm-pin-row {
    background: rgba(139, 69, 101, 0.35);
    color: rgb(255, 255, 255);
}

body.cherryblossom .dm-gear-btn {
    background: rgba(139, 69, 101, 0.4);
    border-color: rgba(255, 182, 193, 0.3);
    color: rgba(255, 182, 193, 0.9);
}

body.cherryblossom .dm-gear-btn:hover {
    background: rgba(139, 69, 101, 0.6);
    color: rgb(255, 255, 255);
}

/* ── Beta Badge & Desktop Mode Hint ──────────────────────────────────── */
.beta-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(255, 160, 50, 0.25);
    border: 1px solid rgba(255, 160, 50, 0.5);
    color: rgb(255, 190, 80);
    border-radius: 4px;
    padding: 1px 5px;
    vertical-align: middle;
    text-transform: uppercase;
    margin-left: 6px;
    position: relative;
    top: -2px;
}

.dm-settings-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.dm-hint-icon {
    width: 16px;
    height: 16px;
    filter: invert(1) opacity(0.7);
    vertical-align: middle;
    display: inline-block;
}

/* ── Draggable Window ─────────────────────────────────────────────────── */
#dm-snap-ghost {
    display: none;
    position: fixed;
    z-index: 8999;
    background: rgba(100, 160, 255, 0.15);
    border: 2px solid rgba(100, 160, 255, 0.5);
    border-radius: 8px;
    pointer-events: none;
    transition: left 0.08s ease, top 0.08s ease, width 0.08s ease, height 0.08s ease;
}
body.useawp #dm-snap-ghost {
    background: rgba(70, 180, 100, 0.15);
    border-color: rgba(70, 180, 100, 0.5);
}
body.cherryblossom #dm-snap-ghost {
    background: rgba(255, 150, 180, 0.15);
    border-color: rgba(255, 150, 180, 0.5);
}

.dm-window {
    position: fixed;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
    min-width: 320px;
    min-height: 200px;
    resize: both;
}

.dm-window-maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0;
    resize: none;
}

/* maximized respects taskbar position */
.taskbar.extended.panel-bottom ~ .dm-window.dm-window-maximized,
body:has(.taskbar.extended.panel-bottom) .dm-window.dm-window-maximized {
    height: calc(100vh - var(--taskbar-size, 48px)) !important;
}

.dm-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 42px;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}

.dm-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.dm-window-title img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.dm-window-controls {
    display: flex;
    gap: 6px;
}

.dm-wbtn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: white;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.dm-wbtn:hover { background: rgba(255,255,255,0.2); }
.dm-wbtn-close:hover { background: rgba(220,50,50,0.7); }

.dm-window-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

.dm-window-iframe {
    flex: 1;
    border: none;
    background: #000;
    display: block;
    min-width: 0;
}

.dm-window-ad {
    width: 160px;
    min-width: 160px;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* ── Taskbar pin active / minimized states ───────────────────────────── */
@keyframes pin-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(100,180,255,0.6); }
    50%       { box-shadow: 0 0 0 6px rgba(100,180,255,0); }
}

.taskbar-pin-wrap.pin-active .taskbar-pin {
    animation: pin-pulse 2s ease-in-out infinite;
}

body.useawp .taskbar-pin-wrap.pin-active .taskbar-pin {
    animation: none;
    box-shadow: 0 0 0 2px rgba(70,180,100,0.8);
}
body.cherryblossom .taskbar-pin-wrap.pin-active .taskbar-pin {
    animation: none;
    box-shadow: 0 0 0 2px rgba(255,150,180,0.8);
}

/* ── Pin divider & group labels ───────────────────────────────────────── */
.taskbar-pin-divider {
    width: 2px;
    height: 65%;
    background: rgba(255,255,255,0.4);
    margin: 0 6px;
    flex-shrink: 0;
    border-radius: 2px;
}

.taskbar.extended.panel-left .taskbar-pin-divider,
.taskbar.extended.panel-right .taskbar-pin-divider {
    width: 60%;
    height: 1px;
    margin: 4px 0;
}

.dm-pin-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 4px 0;
}

.dm-pin-group-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    text-transform: lowercase;
    letter-spacing: 0.5px;
    padding: 2px 0;
}


/* ── Taskbar SVG icon theming by theme ───────────────────────────────── */
/* default (everest) — dark bg, white icons */
.taskbar-nav a img:not([src*="everest.gif"]),
.taskbar-pin img:not(.pin-game-cover) {
    filter: brightness(0) invert(1);
}

/* useawp — dark green bg, slightly warm white icons */
body.useawp .taskbar-nav a img:not([src*="everest.gif"]),
body.useawp .taskbar-pin img:not(.pin-game-cover) {
    filter: brightness(0) invert(1) sepia(0.15) saturate(1.2);
}

/* cherryblossom — pinkish bg, white icons */
body.cherryblossom .taskbar-nav a img:not([src*="everest.gif"]),
body.cherryblossom .taskbar-pin img:not(.pin-game-cover) {
    filter: brightness(0) invert(1);
}

/* launcher SVG icons — always white */
.dm-launcher-links img:not([src*="everest.gif"]) {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
body.cherryblossom .dm-launcher-links img:not([src*="everest.gif"]),
body.useawp .dm-launcher-links img:not([src*="everest.gif"]) {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ── Launcher search + game grid ─────────────────────────────────────── */

.dm-launcher-search-wrap {
    padding: 8px 10px 4px;
}

.dm-launcher-search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    padding: 6px 10px;
    outline: none;
    transition: border-color 0.15s;
}

.dm-launcher-search:focus {
    border-color: rgba(255,255,255,0.35);
}

.dm-launcher-search::placeholder {
    color: rgba(255,255,255,0.35);
}

.dm-launcher-games {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px 10px;
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dm-launcher-game {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 2px;
    border-radius: 8px;
    transition: background 0.15s;
    min-width: 0;
}

.dm-launcher-game:hover {
    background: rgba(255,255,255,0.1);
}

.dm-launcher-game img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.dm-launcher-game span {
    color: rgba(255,255,255,0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-launcher-empty {
    color: rgba(255,255,255,0.35);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px 0;
}

.dm-launcher-links {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2px;
}

/* theme overrides for search */
body.useawp .dm-launcher-search {
    background: rgba(70,120,85,0.15);
    border-color: rgba(70,120,85,0.3);
}
body.cherryblossom .dm-launcher-search {
    background: rgba(255,182,193,0.1);
    border-color: rgba(255,182,193,0.25);
}

/* ── Side panel top system tray bar ──────────────────────────────────── */
.dm-top-tray {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 1rem;
    background: rgba(10, 14, 30, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* panel on right → tray content hugs left */
.dm-top-tray[data-side="right"] .taskbar-content {
    justify-content: flex-start;
}

/* panel on left → tray content hugs right (default) */
.dm-top-tray[data-side="left"] .taskbar-content {
    justify-content: flex-end;
}

.dm-top-tray .taskbar-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    width: 100%;
    padding: 0;
}

.dm-top-tray .taskbar-time,
.dm-top-tray .taskbar-weather,
.dm-top-tray .taskbar-greeting,
.dm-top-tray .taskbar-online {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    writing-mode: unset;
    transform: none;
    background: none;
    text-shadow: none;
    padding: 0;
    border-radius: 0;
    border-top: none;
    margin-top: 0;
    max-height: unset;
}

.dm-top-tray .taskbar-time {
    color: rgba(255,255,255,0.95);
    font-weight: 700;
}

.dm-top-tray .dm-resource-monitor {
    flex-direction: row;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 0.75rem 0 0;
    margin: 0 0.25rem 0 0;
    gap: 6px;
}

.dm-top-tray .dm-res-item {
    flex-direction: row;
    width: auto;
    padding: 2px 7px;
}

.dm-top-tray .dm-res-bar-wrap {
    width: 28px;
    height: 3px;
}

.dm-top-tray .dm-res-val {
    min-width: 36px;
    font-size: 0.65rem;
    text-align: right;
}

.dm-top-tray .dm-res-icon {
    display: inline;
}

.dm-top-tray .dm-gear-btn {
    margin-left: 4px;
}

/* theme overrides for top tray */
body.useawp .dm-top-tray {
    background: rgba(10, 18, 13, 0.92);
    border-bottom-color: rgba(70, 120, 85, 0.2);
}

body.cherryblossom .dm-top-tray {
    background: rgba(55, 20, 38, 0.92);
    border-bottom-color: rgba(255, 182, 193, 0.15);
}

body.cherryblossom .dm-top-tray .taskbar-time,
body.cherryblossom .dm-top-tray .taskbar-weather,
body.cherryblossom .dm-top-tray .taskbar-greeting,
body.cherryblossom .dm-top-tray .taskbar-online {
    background: none;
    padding: 0;
    border-radius: 0;
    text-shadow: none;
}
