/* v22.10: MyWorldOS chooser (VMMYWORLDAI / VPS) and the VPS screen (public/js/vps.js) */
.vps-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(3, 5, 12, .62); backdrop-filter: blur(6px); animation: vpsFade .14s ease-out; }
@keyframes vpsFade { from { opacity: 0; } to { opacity: 1; } }
.vps-dlg { position: relative; width: min(680px, 100%); background: var(--panel-solid, #0b0f1d); color: var(--text, #e8ebf7);
  border: 1px solid rgba(140, 112, 255, .3); border-radius: 20px; padding: 26px 24px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.vps-dlg h2 { margin: 0 0 18px; font-size: 19px; font-weight: 700; text-align: center; }
.vps-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--muted, #8a92ad); cursor: pointer; font-size: 15px; }
.vps-x:hover { background: rgba(255, 255, 255, .06); color: var(--text, #e8ebf7); }
.vps-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vps-opt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px 18px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); border: 1px solid var(--line-2, rgba(120, 134, 190, .22)); color: inherit; font: inherit;
  transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.vps-opt:hover, .vps-opt:focus-visible { transform: translateY(-2px); border-color: rgba(140, 112, 255, .7); background: rgba(124, 92, 255, .1); outline: none; }
.vps-opt.on { border-color: rgba(140, 112, 255, .85); box-shadow: inset 0 0 0 1px rgba(140, 112, 255, .5); }
.vps-opt b { font-size: 17px; letter-spacing: .3px; direction: ltr; }
.vps-d { font-size: 13px; color: var(--text-2, #c3c9de); line-height: 1.55; }
.vps-f { margin-top: 4px; font-size: 11.5px; color: var(--muted, #8a92ad); padding: 3px 10px; border-radius: 20px; background: rgba(255, 255, 255, .05); }
.vps-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; }
.vps-ic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vps-ic.k-vm { background: linear-gradient(135deg, #7c5cff, #5b8cff 60%, #22d3ee); box-shadow: 0 8px 24px rgba(124, 92, 255, .35); }
.vps-ic.k-vps { background: linear-gradient(135deg, #0ea5e9, #22c55e); box-shadow: 0 8px 24px rgba(14, 165, 233, .3); }
.vps-note { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted, #8a92ad); }
.vps-buy p { max-width: 460px; }
@media (max-width: 560px) { .vps-opts { grid-template-columns: 1fr; } .vps-opt { padding: 16px 14px; } }
/* v22.10: code sample box (SMS API tab) */
.code-box { position: relative; border: 1px solid var(--line-2, rgba(120, 134, 190, .22)); background: #070a14; border-radius: 12px; padding: 12px 14px; margin: 8px 0; }
.code-box pre { margin: 0; white-space: pre-wrap; word-break: break-all; font: 12px/1.6 "IBM Plex Mono", "DejaVu Sans Mono", monospace; color: #c7d2fe; text-align: left; }
.code-box .btn { margin-top: 8px; }
/* v22.10: connect from your own computer (RDP / SSH) */
.vps-remote { width: min(620px, 100%); }
.vps-remote h2 { text-align: start; margin-bottom: 14px; }
.vps-cred { display: grid; gap: 8px; }
.vps-cred > div { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line, rgba(120, 134, 190, .14)); }
.vps-cred small { width: 74px; flex: none; color: var(--muted, #8a92ad); font-size: 12px; }
.vps-cred .vps-code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vps-code { font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace; font-size: 12.5px; direction: ltr; unicode-bidi: isolate; background: rgba(124, 92, 255, .12); color: #ddd6fe; padding: 1px 6px; border-radius: 6px; }
.vps-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 12px; }
.vps-ostabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line, rgba(120, 134, 190, .14)); padding-bottom: 8px; }
.vps-ostab { border: 0; background: transparent; color: var(--muted, #8a92ad); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.vps-ostab.on { color: #fff; background: rgba(124, 92, 255, .22); }
.vps-steps { margin: 12px 0 6px; padding-inline-start: 20px; line-height: 2; font-size: 13.5px; color: var(--text-2, #c3c9de); }
.vps-small { font-size: 12px; color: var(--muted, #8a92ad); margin: 6px 0 0; }
/* v22.10: "התחברות חיצונית": remote desktop dialogs in the style of Windows' Remote Desktop Connection */
.rdp-ov { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .35); }
.rdp-win { width: min(430px, 100%); background: #f0f0f0; color: #1b1b1b; border: 1px solid #8a8a8a; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font: 13px/1.45 "Segoe UI", system-ui, sans-serif; direction: rtl; }
.rdp-win.small { width: min(470px, 100%); }
.rdp-title { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border-bottom: 1px solid #e3e3e3; font-size: 12.5px; }
.rdp-title .rdp-ic { width: 18px; height: 18px; } .rdp-title span { flex: 1; }
.rdp-x { border: 0; background: transparent; font-size: 14px; cursor: pointer; padding: 2px 8px; color: #333; } .rdp-x:hover { background: #e81123; color: #fff; }
.rdp-banner { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: linear-gradient(180deg, #fff, #dbe8f7); border-bottom: 1px solid #c9d6e6; font-size: 20px; color: #1d4e9e; }
.rdp-banner .rdp-ic { width: 46px; height: 46px; } .rdp-banner b { font-size: 22px; display: block; margin-top: -4px; }
.rdp-body { padding: 16px 18px 10px; }
.rdp-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .rdp-row > span:first-child { width: 78px; flex: none; }
.rdp-row input { flex: 1; height: 26px; border: 1px solid #7a7a7a; padding: 2px 6px; font: inherit; background: #fff; color: #111; }
.rdp-row input:focus { outline: 1px solid #0078d4; border-color: #0078d4; }
.rdp-dim { color: #555; } .rdp-note { margin: 4px 0 0; color: #444; font-size: 12px; }
.rdp-saved { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .rdp-chip { border: 1px solid #b9b9b9; background: #fff; border-radius: 3px; padding: 3px 8px; font: inherit; font-size: 12px; cursor: pointer; color: #1b1b1b; } .rdp-chip:hover { border-color: #0078d4; }
.rdp-foot, .rdp-sec-foot { display: flex; gap: 8px; justify-content: flex-start; padding: 10px 18px 14px; direction: ltr; }
.rdp-btn { min-width: 82px; height: 26px; border: 1px solid #adadad; background: #e1e1e1; font: inherit; color: #111; cursor: pointer; } .rdp-btn:hover { background: #e5f1fb; border-color: #0078d4; }
.rdp-btn.primary { border: 2px solid #0078d4; }
.rdp-progress { display: flex; gap: 14px; align-items: flex-start; } .rdp-progress .rdp-ic { width: 40px; height: 40px; flex: none; } .rdp-progress > div { flex: 1; }
.rdp-bar { height: 14px; border: 1px solid #bcbcbc; background: #e6e6e6; margin: 10px 0 6px; overflow: hidden; position: relative; }
.rdp-bar i { position: absolute; top: 0; bottom: 0; width: 40%; background: #06b025; animation: rdpBar 1.4s linear infinite; }
@keyframes rdpBar { from { right: -40%; } to { right: 100%; } }
.rdp-err { display: flex; gap: 14px; align-items: flex-start; } .rdp-err ol { margin: 8px 0; padding-inline-start: 22px; }
.rdp-stop { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #e81123; color: #fff; display: grid; place-items: center; font-weight: 700; }
.rdp-win.sec { width: min(380px, 100%); background: #fff; border: 1px solid #b7b7b7; }
.rdp-sec { padding: 14px 20px 6px; } .rdp-sec-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #444; margin: -4px -8px 8px 0; }
.rdp-sec h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; } .rdp-sec p { margin: 0 0 12px; color: #333; }
.rdp-sec input:not([type]), .rdp-sec input[type=password] { display: block; width: 100%; height: 32px; margin-bottom: 10px; border: 1px solid #7a7a7a; padding: 4px 8px; font: inherit; color: #111; background: #fff; }
.rdp-sec input:focus { outline: none; border-color: #0078d4; border-bottom-width: 2px; }
.rdp-check { display: flex; gap: 6px; align-items: center; margin: 4px 0 6px; }
.rdp-bad { background: #fde7e9; color: #a4262c; padding: 6px 8px; margin-bottom: 10px; font-size: 12.5px; }
.rdp-sec-foot { padding: 12px 0 10px; } .rdp-sec-foot .rdp-btn { flex: 1; height: 32px; background: #ccc; border: 0; } .rdp-sec-foot .rdp-btn.primary { background: #0067c0; color: #fff; }
.vm .vm-screen.rdp-screen, .rdp-screen { outline: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; direction: ltr; }
.vm .vm-screen.rdp-screen > .rdp-display { flex: none; width: auto; height: auto; }
.vm .vm-screen.rdp-screen:fullscreen, .rdp-screen:fullscreen { width: 100vw; height: 100vh; }
/* v27 Marsel B4: the RDP dialogs are Windows-style light cards; app.css:690 (body:not(.admin-page) input → #06111c) used to win
   and made typed text (#111) unreadable on a dark/purple field. Higher specificity + autofill + caret, every RDP input. */
body .rdp-ov input, body .rdp-ov input:focus, body .rdp-ov select { background: #fff !important; background-color: #fff !important; color: #111 !important; -webkit-text-fill-color: #111; caret-color: #111; color-scheme: light; box-shadow: none; }
body .rdp-ov input:-webkit-autofill, body .rdp-ov input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px #fff inset !important; -webkit-text-fill-color: #111 !important; }
body .rdp-ov input::placeholder { color: #767676; opacity: 1; }
