* {
    user-select: none;
    user-drag: none;
    box-sizing: border-box;
}

body {
    background: transparent !important;
    background-color: transparent !important;
    font-family: 'Rajdhani', 'Arial', sans-serif;
    overflow: hidden;
    margin: 0;
    height: 100vh;
}

/* ========================================================
   TABLET LAUNCHER BUTTON (Icon di dekat Speedometer)
   ======================================================== */
.tablet-launcher-btn {
    width: 112px;
    height: 44px;
    background: radial-gradient(circle at center, rgba(14, 28, 62, 0.95) 0%, rgba(8, 18, 42, 0.90) 100%);
    border: 1.5px solid rgba(58, 123, 255, 0.45);
    border-radius: 12px;
    box-shadow: 0 0 14px rgba(58, 123, 255, 0.35), inset 0 0 10px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.tablet-launcher-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.tablet-launcher-btn:hover::before {
    left: 140%;
}

.tablet-launcher-btn:hover {
    border-color: #00ff9c;
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.6), inset 0 0 12px rgba(0, 255, 156, 0.25);
    transform: translateY(-2px) scale(1.04);
}

.tablet-launcher-btn:active {
    transform: translateY(0) scale(0.98);
}

.launcher-icon-box {
    color: #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, filter 0.2s;
}

.tablet-launcher-btn:hover .launcher-icon-box {
    color: #00ff9c;
    filter: drop-shadow(0 0 6px #00ff9c);
}

.launcher-title {
    font-family: Orbitron, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #d0e8ff;
    transition: color 0.2s;
}

.tablet-launcher-btn:hover .launcher-title {
    color: #ffffff;
}

.launcher-badge {
    position: absolute;
    top: -5px;
    right: -4px;
    background: linear-gradient(135deg, #00b4ff, #00ff9c);
    color: #050811;
    font-size: 8.5px;
    font-weight: 900;
    font-family: Orbitron, sans-serif;
    padding: 1px 6px;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(0, 255, 156, 0.6);
}

/* ========================================================
   TABLET CONTAINER (Popup Menu di samping kanan)
   ======================================================== */
.tablet {
    position: fixed;
    right: 515px;
    bottom: 85px;
    width: 480px;
    height: 590px;
    background: #0b0f1a;
    border-radius: 26px;
    border: 2px solid rgba(58, 123, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(58, 123, 255, 0.25);
    overflow: hidden;
    z-index: 9999;
    transform-origin: bottom right;
    transform: scale(0.7) translateY(35px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.tablet.show {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* STATUS BAR & CLOSE BUTTON */
.status-bar {
    height: 38px;
    background: linear-gradient(90deg, #020617, #0f172a);
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff9c;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ff9c;
}

.tablet-header-close {
    background: rgba(255, 59, 59, 0.18);
    border: 1px solid rgba(255, 59, 59, 0.4);
    color: #ff8888;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: all 0.2s ease;
    outline: none;
    line-height: 1;
}

.tablet-header-close:hover {
    background: #ff3b3b;
    color: #ffffff;
    border-color: #ff1a1a;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.85);
    transform: scale(1.12);
}

/* SCREEN & HOMEPAGE */
.screen {
    width: 100%;
    height: calc(100% - 82px);
    position: relative;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475') center/cover;
}

.homepage, .app-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(5, 8, 17, 0.75);
    transition: 0.3s;
}

.homepage h1 {
    color: white;
    font-size: 26px;
    letter-spacing: 2px;
    font-family: Orbitron, sans-serif;
    margin: 0;
    text-shadow: 0 0 12px rgba(0, 255, 156, 0.4);
}

.home-btn {
    margin-top: 18px;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #00ff9c, #00b4ff);
    color: #050811;
    font-family: Orbitron, sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.4);
    transition: 0.2s;
}

.home-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 156, 0.7);
}

/* MENU GRID */
.menu {
    position: absolute;
    inset: 0;
    display: none;
    padding: 20px;
    color: white;
    overflow-y: auto;
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(10px);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.app {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.app:hover {
    background: rgba(0, 255, 156, 0.18);
    border-color: #00ff9c;
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.35);
    transform: translateY(-4px);
}

/* DOCK NAVIGATION */
.dock {
    height: 44px;
    background: linear-gradient(90deg, #020617, #0b0f1a);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.nav-btn:hover {
    background: rgba(0, 255, 156, 0.3);
    color: #00ff9c;
}

.nav-btn-close {
    background: rgba(255, 59, 59, 0.18);
    color: #ff7777;
    border: 1px solid rgba(255, 59, 59, 0.3);
}

.nav-btn-close:hover {
    background: #ff3b3b;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.8);
}

/* APP SCREENS & IFRAMES */
.app-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#yt-search-panel {
    position: absolute;
    top: 10%;
    left: 8%;
    width: 84%;
    height: 70%;
    background: rgba(11, 15, 26, 0.95);
    border: 1px solid rgba(58, 123, 255, 0.35);
    color: white;
    padding: 14px;
    overflow: auto;
    display: none;
    border-radius: 16px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

#yt-search-panel input {
    width: 68%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    outline: none;
}

#yt-search-panel button {
    padding: 8px 14px;
    border-radius: 8px;
    margin-left: 6px;
    cursor: pointer;
    background: #00ff9c;
    border: none;
    font-weight: bold;
    color: #050811;
}

.search-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.search-item:hover {
    background: rgba(0, 255, 156, 0.15);
}

.search-item img {
    border-radius: 6px;
}

/* THEMES */
body.theme-cyberpunk .screen { background: url('https://img.freepik.com/free-photo/illustration-rain-futuristic-city_23-2151406566.jpg?semt=ais_hybrid&w=740&q=80') center/cover !important; }
body.theme-soft .screen { background: url('https://www.pixelstalk.net/wp-content/uploads/images6/Girly-Desktop-Wallpaper-Cute.jpg') center/cover !important; }
body.theme-matias .screen { background: url('https://p4.wallpaperbetter.com/wallpaper/214/127/766/card-casino-the-magician-hd-wallpaper-preview.jpg') center/cover !important; }
body.theme-midnight .screen { background: url('https://c4.wallpaperflare.com/wallpaper/998/700/928/anime-art-boat-night-water-wallpaper-preview.jpg') center/cover !important; }
body.theme-blood .screen { background: url('https://c4.wallpaperflare.com/wallpaper/84/210/374/soviet-union-ussr-war-artwork-wallpaper-preview.jpg') center/cover !important; }

.theme-option {
    margin: 8px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 700;
}

.theme-option:hover {
    background: rgba(0, 255, 156, 0.25);
    transform: translateY(-2px);
}

#settingsScreen {
    overflow-y: auto;
}

/* CLOCK */
#tablet-clock {
    font-family: Orbitron, monospace;
    font-weight: 800;
    color: #00ff9c;
    font-size: 12px;
    letter-spacing: 1px;
    margin-right: 4px;
    text-shadow: 0 0 8px rgba(0, 255, 156, 0.6);
}

/* CUSTOM WALLPAPER SECTION */
.custom-wall-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(58, 123, 255, 0.35);
    border-radius: 14px;
    padding: 14px;
    margin: 14px 0 16px 0;
    text-align: left;
}
.custom-wall-card label {
    font-size: 12px;
    font-weight: bold;
    color: #7dd3fc;
    display: block;
    margin-bottom: 6px;
    font-family: Orbitron, sans-serif;
}
.custom-wall-input-row {
    display: flex;
    gap: 8px;
}
.custom-wall-input-row input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 15, 26, 0.85);
    color: white;
    font-size: 12px;
    outline: none;
}
.custom-wall-input-row button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #00ff9c, #00b4ff);
    color: #050811;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.custom-wall-input-row button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.6);
}
.reset-wall-btn {
    width: 100%;
    margin-top: 8px;
    padding: 7px;
    border-radius: 8px;
    border: 1px solid rgba(255, 59, 59, 0.4);
    background: rgba(255, 59, 59, 0.15);
    color: #ffaaaa;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.reset-wall-btn:hover {
    background: rgba(255, 59, 59, 0.4);
    color: white;
}

/* MUSIC PLAYER SCREEN */
.music-player-card {
    background: rgba(10, 16, 32, 0.88);
    border: 1.5px solid rgba(0, 255, 156, 0.35);
    border-radius: 22px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 255, 156, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(14px);
}
.music-disc-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.music-disc {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #0e1726 22%, #1f2937 45%, #050811 75%, #000 100%);
    border: 3px solid rgba(58, 123, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 0 20px rgba(58, 123, 255, 0.4);
    transition: transform 0.3s;
}
.music-disc.spinning {
    animation: spin 3s linear infinite;
    border-color: #00ff9c;
    box-shadow: 0 0 25px rgba(0, 255, 156, 0.6);
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
.music-track-title {
    font-family: Orbitron, sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 1px;
}
.music-track-artist {
    font-size: 13px;
    color: #7dd3fc;
    font-weight: 600;
    text-align: center;
}
.music-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}
.music-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.music-btn:hover {
    background: rgba(0, 255, 156, 0.25);
    border-color: #00ff9c;
    color: #00ff9c;
    transform: scale(1.08);
}
.music-btn-play {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #00ff9c, #00b4ff);
    color: #050811;
    font-size: 20px;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.5);
}
.music-btn-play:hover {
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(0, 255, 156, 0.8);
}
.music-volume-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
    margin-top: 6px;
    font-size: 14px;
}
.music-volume-box input[type="range"] {
    flex: 1;
    accent-color: #00ff9c;
    cursor: pointer;
}

/* YOUTUBE PRESET CHIPS */
.yt-preset-chip {
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-family: Orbitron, sans-serif;
    display: inline-block;
}
.yt-preset-chip:hover {
    background: rgba(0, 255, 156, 0.25);
    border-color: #00ff9c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1440px) {
    .tablet {
        right: 480px;
        width: 430px;
        height: 530px;
        bottom: 80px;
    }
}