.pmobile {
    padding: 0 !important;
    background: #0a0c14;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    user-select: none;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #fff;
}

.pmobile-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0c14;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #fff;
}

.pmobile-statusbar {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
    z-index: 10;
}

.pmobile-status-left { display: flex; gap: 6px; }
.pmobile-status-right { display: flex; gap: 8px; align-items: center; font-size: 10px; }

.pmobile-lockscreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    touch-action: none;
}

.pmobile-lock-time {
    font-size: 64px;
    font-weight: 200;
    letter-spacing: 2px;
}

.pmobile-lock-date {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
}

.pmobile-lock-hint {
    position: absolute;
    bottom: 60px;
    font-size: 12px;
    opacity: 0.4;
    animation: pmobile-pulse 2s ease-in-out infinite;
}

@keyframes pmobile-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.pmobile-screens {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.pmobile-screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.pmobile-screen.active { display: flex; }

.pmobile-homescreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

.pmobile-home-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px 16px;
    align-content: start;
}

.pmobile-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.pmobile-app-icon:hover { background: rgba(255,255,255,0.08); }
.pmobile-app-icon:active { background: rgba(255,255,255,0.15); transform: scale(0.95); }

.pmobile-app-glyph {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.pmobile-app-label {
    font-size: 11px;
    text-align: center;
    opacity: 0.9;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pmobile-dock {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 10px 16px 6px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.pmobile-dock .pmobile-app-icon { padding: 6px; }

.pmobile-app-view {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pmobile-app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.pmobile-app-back {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.pmobile-app-title {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.pmobile-app-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.pmobile-app-content h1 { font-size: 20px; margin-bottom: 10px; }
.pmobile-app-content h2 { font-size: 16px; margin: 14px 0 6px; }
.pmobile-app-content p { font-size: 13px; line-height: 1.5; margin-bottom: 10px; opacity: 0.8; }
.pmobile-app-content ul { padding-left: 20px; font-size: 13px; line-height: 1.6; }

.pmobile-navbar {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.pmobile-nav-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.pmobile-nav-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.pmobile-shade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10,12,20,0.95);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 20;
    padding: 36px 16px 20px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.pmobile-shade.open { transform: translateY(0); }

.pmobile-shade-handle {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.pmobile-shade-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
}

.pmobile-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmobile-toggle.active { background: var(--accent, #ff7a3c); }

.pmobile-shade-info {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.pmobile-drawer {
    position: absolute;
    inset: 0;
    background: rgba(10,12,20,0.97);
    backdrop-filter: blur(20px);
    z-index: 15;
    display: none;
    flex-direction: column;
    padding-top: 28px;
}

.pmobile-drawer.open { display: flex; }

.pmobile-drawer-handle {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    opacity: 0.4;
}

.pmobile-drawer-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px 16px;
    align-content: start;
}

.pmobile-settings-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pmobile-settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    cursor: pointer;
    border: none;
    color: #fff;
    font-size: 14px;
    text-align: left;
    width: 100%;
    transition: background 0.15s;
}

.pmobile-settings-item:hover { background: rgba(255,255,255,0.08); }

.pmobile-wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.pmobile-wallpaper-opt {
    aspect-ratio: 9/19;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.pmobile-wallpaper-opt.selected { border-color: var(--accent, #ff7a3c); }
.pmobile-wallpaper-opt:hover { border-color: rgba(255,255,255,0.3); }

.pmobile-game-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.pmobile-game-btn {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.pmobile-game-btn:hover { background: rgba(255,255,255,0.1); }

.pmobile-store-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 10px;
}

.pmobile-store-card.installed { opacity: 0.65; }
.pmobile-store-icon { font-size: 28px; flex-shrink: 0; width: 40px; text-align: center; }
.pmobile-store-info { flex: 1; min-width: 0; }
.pmobile-store-name { font-size: 14px; font-weight: 600; }
.pmobile-store-desc { font-size: 11px; opacity: 0.5; margin-top: 2px; }
.pmobile-store-size { font-size: 10px; opacity: 0.35; margin-top: 2px; }

.pmobile-store-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent, #ff7a3c);
    color: #fff;
    flex-shrink: 0;
}

.pmobile-store-btn:hover { opacity: 0.85; }
.pmobile-store-btn.uninstall { background: rgba(255,80,80,0.15); color: #ff6b6b; }
.pmobile-store-btn.uninstall:hover { background: rgba(255,80,80,0.25); }

.pmobile-store-progress-wrap { flex-shrink: 0; width: 80px; }
.pmobile-store-progress-text { font-size: 10px; color: var(--accent, #ff7a3c); text-align: center; margin-bottom: 4px; }
.pmobile-store-progress { height: 4px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.pmobile-store-progress-fill { height: 100%; width: 0%; background: var(--accent, #ff7a3c); border-radius: 3px; transition: width 0.08s linear; }
