/* ---------- Celular (js/phone.js) ---------- */
#phone { position: fixed; right: 36px; bottom: 0; z-index: 8; pointer-events: auto; transform: translateY(105%); transition: transform 0.22s ease-out; font-family: Rubik, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
#phone.hidden { display: none; }
#phone.up { transform: translateY(-4vh); }
.phFrame { width: min(330px, 34vh); height: min(680px, 70vh); padding: 10px; background: linear-gradient(145deg, #2b2f36, #0f1114); border-radius: 30px; box-shadow: 0 18px 60px rgba(0,0,0,0.7), inset 0 0 0 2px #4a4f58; }
.phScreen { --wall: #123; position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: var(--wall); display: flex; flex-direction: column; color: #fff; }
.phCam { position: absolute; left: 50%; top: 8px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #05070a; box-shadow: 0 0 0 2px #1d2128; z-index: 3; }
.phStatus { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 2px; font-size: 12px; font-weight: 600; height: 26px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); flex: none; }
.phIcons { font-size: 10px; letter-spacing: 0.5px; opacity: 0.9; }
.phTop { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; background: rgba(0,0,0,0.35); flex: none; }
.phBack { font-size: 26px; line-height: 20px; cursor: pointer; padding: 0 6px; }
.phTitle { font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phBody { flex: 1; overflow-y: auto; background: rgba(12,16,22,0.93); padding: 8px; font-size: 13px; scrollbar-width: thin; }
.phBody.home { background: transparent; padding: 10px 8px; }
.phNav { flex: none; display: flex; justify-content: space-around; padding: 6px 0 8px; background: rgba(0,0,0,0.55); font-size: 18px; }
.phNav span { cursor: pointer; width: 60px; text-align: center; opacity: 0.85; }
.phHome { display: none; }
.phHomeClock { text-align: center; font-size: 58px; font-weight: 300; margin: 16px 0 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.4); line-height: 1; }
.phHomeClock small { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; opacity: 0.9; }
.phGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
.phApp { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; padding: 4px 0; border-radius: 12px; }
.phIco { position: relative; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 27px; box-shadow: 0 3px 8px rgba(0,0,0,0.35); }
.phApp span { font-size: 11px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.phBadge { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-style: normal; }
.phBadge.in { position: static; }
.pf { cursor: pointer; }
.pf.sel { outline: 2px solid #ffd23f; outline-offset: 1px; background-color: rgba(255,210,63,0.12); }
.phTabs { display: flex; gap: 4px; margin-bottom: 8px; }
.phTab { flex: 1; text-align: center; padding: 6px 2px; border-radius: 8px; background: rgba(255,255,255,0.07); font-size: 11.5px; font-weight: 600; }
.phTab.on { background: #2f80ed; }
.phList { display: flex; flex-direction: column; gap: 3px; }
.phRow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,0.05); }
.phRow > span { display: flex; flex-direction: column; min-width: 0; }
.phRow small { font-size: 11px; opacity: 0.65; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phRow > b { white-space: nowrap; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.phRow > b em { font-style: normal; font-size: 11px; }
.phAv { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.12); display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; font-style: normal; font-size: 15px; float: left; }
.phSec { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; margin: 10px 2px 5px; }
.phBtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.phBtn { flex: 1; min-width: 70px; text-align: center; padding: 9px 6px; border-radius: 10px; background: rgba(255,255,255,0.1); font-weight: 600; font-size: 12.5px; }
.phBtn.green { background: #27ae60; } .phBtn.red { background: #c0392b; } .phBtn.blue { background: #2f80ed; }
.phChip { display: inline-block; padding: 7px 11px; border-radius: 16px; background: rgba(255,255,255,0.12); margin: 3px; font-size: 12px; }
.phEmpty { text-align: center; padding: 26px 10px; opacity: 0.6; }
.cSub { font-size: 11px; opacity: 0.6; text-align: center; margin: 8px 4px; line-height: 1.4; }
.cBig { font-size: 48px; text-align: center; font-weight: 300; margin: 10px 0 2px; }
.mono { font-variant-numeric: tabular-nums; font-family: Consolas, monospace; }
.cDial { position: relative; width: 150px; height: 150px; margin: 8px auto 0; border-radius: 50%; background: radial-gradient(circle, #1c232d 60%, #2b3440); box-shadow: inset 0 0 0 3px rgba(255,255,255,0.2); }
.cDial i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 3px; background: #fff; }
.cDial .cH { width: 5px; height: 42px; margin-left: -2.5px; }
.cDial .cM { width: 3px; height: 62px; margin-left: -1.5px; background: #ffd23f; }
.cDial b { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #ffd23f; }
.dialPad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 12px; }
.dialPad span { text-align: center; font-size: 22px; padding: 10px 0; border-radius: 50%; background: rgba(255,255,255,0.08); }
.callScr { display: flex; flex-direction: column; align-items: center; padding-top: 16px; min-height: 100%; }
.callAv { width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 46px; }
.callName { font-size: 22px; font-weight: 800; margin-top: 10px; }
.callSt { opacity: 0.7; margin-bottom: 12px; }
.callLines { width: 100%; }
.callLines p { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 9px 12px; margin: 6px 4px; line-height: 1.35; }
.callEnd { margin-top: auto; margin-bottom: 10px; background: #e74c3c; padding: 12px 26px; border-radius: 26px; font-weight: 800; }
.msgList { display: flex; flex-direction: column; gap: 6px; max-height: calc(100% - 64px); overflow-y: auto; padding-bottom: 6px; }
.msgList.rd { max-height: 210px; }
.bub { align-self: flex-start; max-width: 82%; background: #2c3440; padding: 8px 11px; border-radius: 14px 14px 14px 4px; line-height: 1.35; }
.bub.me { align-self: flex-end; background: #1f8a4c; border-radius: 14px 14px 4px 14px; }
.bub small { display: block; font-size: 9.5px; opacity: 0.55; margin-top: 3px; }
.msgReply { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.msgReply input { flex: 1; min-width: 120px; padding: 9px 11px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.4); color: #fff; font: 13px Rubik, Arial; user-select: text; }
.msgReply .phBtn { flex: none; min-width: 64px; }
.bkCard { background: linear-gradient(135deg, #0b3d91, #2f80ed); border-radius: 16px; padding: 14px; margin-bottom: 8px; }
.bkCard.dark { background: linear-gradient(135deg, #0f2027, #2c5364); }
.bkCard.orange { background: linear-gradient(135deg, #e67e22, #f1c40f); color: #1b1b1b; }
.bkCard small { opacity: 0.8; }
.bkCard b { display: block; font-size: 28px; margin: 4px 0; }
.bkRow { display: flex; justify-content: space-between; font-size: 11.5px; opacity: 0.9; gap: 8px; }
.tk { font-family: Consolas, monospace; background: rgba(255,255,255,0.12); border-radius: 5px; padding: 1px 5px; margin-right: 6px; font-size: 11px; }
.stHead b { font-size: 16px; }
.stHead small { display: block; opacity: 0.6; }
.stPrice { font-size: 26px; font-weight: 800; margin: 4px 0; display: flex; align-items: baseline; gap: 8px; }
.stPrice span { display: none; }
.stPrice em { font-style: normal; font-size: 14px; }
.stChart { width: 100%; height: 120px; background: rgba(255,255,255,0.03); border-radius: 10px; margin: 4px 0 8px; }
.tgOn { color: #2ecc71; } .tgOff { color: #aab; font-weight: 600; } .tgWarn { color: #ff9f43; }
.rdFace { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #11151a; border-radius: 14px; padding: 12px; margin-bottom: 6px; border: 2px solid #333; font-family: Consolas, monospace; }
.rdFace.on { border-color: #2ecc71; box-shadow: inset 0 0 18px rgba(46,204,113,0.18); }
.rdFace div { text-align: center; flex: 1; }
.rdFace b { font-size: 26px; color: #7CFC9A; display: block; }
.rdFace small { font-size: 11px; opacity: 0.75; }
.rdB { font-size: 20px; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,0.08); }
.rdMsg { background: rgba(124,252,154,0.06); border-left: 3px solid #2ecc71; padding: 6px 8px; border-radius: 6px; font-size: 12px; line-height: 1.35; }
.rdMsg b { color: #7CFC9A; }
.rdMsg small { display: block; opacity: 0.5; font-size: 9.5px; }
.wSw { display: inline-block; width: 26px; height: 26px; border-radius: 6px; vertical-align: middle; margin-right: 8px; }
/* navegador */
.wBar { display: flex; align-items: center; gap: 6px; margin: -8px -8px 8px; padding: 6px 8px; background: #20252c; position: sticky; top: -8px; z-index: 2; }
.wNav { font-size: 16px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,0.1); }
.wUrl { flex: 1; background: rgba(255,255,255,0.08); border-radius: 14px; padding: 5px 10px; font-size: 11.5px; opacity: 0.85; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wHero { background: rgba(255,255,255,0.08); border-radius: 18px; padding: 10px 14px; margin: 8px 0 12px; opacity: 0.8; }
.wBook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wBk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 12px; background: rgba(255,255,255,0.06); text-align: center; font-size: 11px; }
.wBk b { font-size: 24px; }
.wSec { font-weight: 800; margin: 12px 0 4px; }
.wLine { padding: 4px 0; opacity: 0.9; line-height: 1.35; }
.wBrand { font-weight: 800; font-size: 18px; padding: 10px 12px; border-radius: 10px; letter-spacing: 0.5px; }
.wSub { font-size: 11px; opacity: 0.65; margin: 5px 2px 8px; }
.wAlert { background: #c0392b; border-radius: 8px; padding: 8px 10px; font-weight: 600; margin-bottom: 8px; animation: blinkA 1s infinite alternate; }
@keyframes blinkA { from { opacity: 1; } to { opacity: 0.65; } }
.wNews { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,0.07); line-height: 1.35; }
.wNews small { display: block; opacity: 0.5; font-size: 10px; }
.wTag { color: #ff7675; font-weight: 800; font-size: 10px; text-transform: uppercase; margin-right: 6px; }
.wCard { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 10px; margin-bottom: 6px; }
.wCard small { display: block; opacity: 0.65; font-size: 11px; }
.wRow { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.wPrice { flex: 1; color: #7cf29a; font-weight: 800; }
.wBtn { display: inline-block; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.12); font-weight: 600; font-size: 12px; }
.wBtn.buy { background: #27ae60; }
.wFl { display: grid; grid-template-columns: 44px 52px 1fr auto; gap: 4px; padding: 6px 4px; font-family: Consolas, monospace; font-size: 11.5px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #ffd23f; }
.wFl em { font-style: normal; color: #7cf29a; }
.wFl em.late { color: #ff7675; }
.wWeather { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.wWeather b { font-size: 46px; font-weight: 300; }
/* Nexo (estilo Android) */
#phone.ph-nexo .phFrame { border-radius: 28px; }
#phone.ph-nexo .phScreen { border-radius: 20px; }
#phone.ph-nexo .phTop { background: #1f2a38; }
/* Aurora (estilo iPhone) */
#phone.ph-aurora .phFrame { border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #e9e4dc, #b8b2a8); box-shadow: 0 18px 60px rgba(0,0,0,0.7), inset 0 0 0 2px #fff, inset 0 0 0 5px #9a958c; }
#phone.ph-aurora .phScreen { border-radius: 42px; }
#phone.ph-aurora .phCam { width: 92px; height: 26px; border-radius: 14px; margin-left: -46px; top: 9px; box-shadow: none; background: #000; }
#phone.ph-aurora .phStatus { padding: 10px 26px 4px; height: 36px; }
#phone.ph-aurora .phIcons { margin-left: 70px; }
#phone.ph-aurora .phIco { border-radius: 14px; }
#phone.ph-aurora .phNav { display: none; }
#phone.ph-aurora .phHome { display: block; height: 22px; background: rgba(0,0,0,0.92); position: relative; cursor: pointer; flex: none; }
#phone.ph-aurora .phHome::after { content: ""; position: absolute; left: 50%; top: 8px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(255,255,255,0.85); }
#phone.ph-aurora .phTop { background: rgba(28,28,30,0.95); }
#phone.ph-aurora .phTab.on { background: #0a84ff; }
#phone.ph-aurora .phBody { background: rgba(0,0,0,0.92); }
#phone.ph-aurora .phBody.home { background: transparent; }
#phone.ph-aurora .phTitle { font-size: 19px; }
/* notificação */
#phoneNote { position: fixed; right: 24px; top: 190px; z-index: 7; width: 300px; display: flex; gap: 10px; align-items: flex-start; background: rgba(28,32,40,0.94); border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); transform: translateX(120%); transition: transform 0.3s; pointer-events: none; }
#phoneNote.show { transform: translateX(0); }
#phoneNote.aurora { border-radius: 20px; background: rgba(245,245,247,0.94); color: #111; }
#phoneNote b { font-size: 22px; }
#phoneNote strong { display: block; font-size: 13px; }
#phoneNote span { font-size: 12px; opacity: 0.85; line-height: 1.3; }
.b-phone { left: 352px; top: 12px; width: 46px; height: 46px; font-size: 20px; }
#touch.c-phone .t-phone { display: flex; }
html.mobile #phone { right: 10px; }
html.mobile #phone.up { transform: translateY(-2vh); }
html.mobile .phFrame { height: min(680px, 92vh); width: min(330px, 46vh); }
html.mobile #phoneNote { top: 70px; right: 12px; width: 260px; }
