/*
 * GreerGuard phone on the homepage: a styled copy of the Android app, either as a still
 * picture of Home or as a small sandbox that can be used like the app.
 *
 * Colours and shapes are the app's own (res/values/colors.xml and the layouts), drawn at about
 * 75% of their size on a phone. Everything is scoped under .ggd so nothing here can leak into
 * the rest of the homepage.
 */
.ggd { --navy:#0F1C50; --blue1:#3D74E8; --blue2:#1A3DAA; --card:#fff; --tp:#1A1A1A; --ts:#555; --tm:#999;
       --high:#D62B2B; --med:#C17D00; --low:#1565C0; --ok:#1B8A4C; --muted-blue:#AAC4FF; --accent:#1A3DAA;
       font-family: Roboto, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased;
       text-align: left; line-height: normal; letter-spacing: normal; text-transform: none; word-spacing: normal; }
.ggd * { box-sizing: border-box; }
.ggd-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ggd-phone { width: 284px; padding: 8px; border-radius: 36px; background: #0b0d12;
             box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.ggd-screen { position: relative; height: 580px; border-radius: 29px; overflow: hidden; background: var(--navy);
              display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.ggd-static .ggd-screen { pointer-events: none; }

/* System bars */
.ggd-status { flex: 0 0 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
              background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; }
.ggd-status .ic { font-size: 9px; letter-spacing: 1.5px; }
.ggd-gesture { flex: 0 0 16px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.ggd-gesture i { width: 90px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.55); }

/* Header */
.ggd-head { flex: 0 0 48px; display: flex; align-items: center; gap: 4px; padding: 0 6px; background: var(--navy); color: #fff; }
.ggd-head .back { width: 36px; height: 36px; border: 0; background: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.ggd-head .back:hover { background: rgba(255,255,255,.08); }
.ggd-head .t { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.ggd-head .brand { display: flex; align-items: center; gap: 8px; padding-left: 8px; }
.ggd-head .brand b { font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.ggd-head .hbtn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); }
.ggd-head .txtbtn { border: 0; background: none; color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; padding: 6px 8px; }

/* Page */
.ggd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
            background: linear-gradient(to left, var(--blue1), var(--blue2)); padding: 10px 10px 14px;
            scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
.ggd-body::-webkit-scrollbar { width: 4px; }
.ggd-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 4px; }
.ggd-card { background: var(--card); border-radius: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.ggd-tap { cursor: pointer; transition: transform .08s ease, filter .12s ease; }
.ggd-tap:active { transform: scale(.98); filter: brightness(.96); }
.ggd-cat { font-size: 9px; font-weight: 700; color: var(--tm); letter-spacing: .05em; margin-bottom: 8px; }

/* Findings banner */
.ggd-banner { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 13px; border: 1.5px solid; margin-bottom: 10px; }
.ggd-banner .tt { font-size: 11.5px; font-weight: 700; color: var(--tp); }
.ggd-banner .ss { font-size: 10px; margin-top: 1px; font-weight: 600; }
.ggd-banner .chev { margin-left: auto; }

/* Search */
.ggd-search { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 10px; background: #fff;
              box-shadow: 0 1px 3px rgba(0,0,0,.18); font-size: 11px; color: #999; margin-bottom: 10px; }

/* Tiles */
/* Security Check on My device, as btnSecurityHealth: the outstanding count in a ring. */
.ggd-health { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid; }
.ggd-health .ring { flex: 0 0 39px; height: 39px; border-radius: 50%; border: 2.3px solid; display: flex; align-items: center; justify-content: center; }
.ggd-health .ring b { font-size: 15px; font-weight: 700; }
.ggd-health .grow { flex: 1; min-width: 0; }
.ggd-health .tt { font-size: 12.5px; font-weight: 700; color: var(--tp); }
.ggd-health .ss { font-size: 10px; color: var(--ts); margin-top: 2px; }
.ggd-health .chev svg { stroke: currentColor; }
.ggd-sect { font-size: 9px; font-weight: 700; color: var(--muted-blue); letter-spacing: .08em; text-transform: uppercase; margin: 15px 0 8px; }
.ggd-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ggd-tile { padding: 11px; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); border: 1px solid transparent; min-height: 78px; }
.ggd-tile svg { display: block; margin-bottom: 7px; }
.ggd-tile .tt { font-size: 12px; font-weight: 700; color: var(--tp); }
.ggd-tile .ss { font-size: 9.5px; color: var(--ts); margin-top: 2px; }
.ggd-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 0; }
.ggd-wide svg { margin: 0; }
.ggd-textbtn { display: block; margin: 8px auto 0; border: 0; background: none; color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; padding: 6px 10px; }

/* Lists */
.ggd-chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.ggd-chips::-webkit-scrollbar { display: none; }
.ggd-chip { flex: 0 0 auto; height: 22px; padding: 0 9px; border-radius: 11px; border: 0; background: #E6E6E6; color: #212121; font-size: 9.5px; cursor: pointer; font-family: inherit; }
.ggd-chip.on { background: #C2C2C2; }
.ggd-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; }
.ggd-row + .ggd-row { border-top: 1px solid #EEF1F8; }
.ggd-ico { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.ggd-row .nm { font-size: 11.5px; font-weight: 700; color: var(--tp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ggd-row .sb { font-size: 9.5px; color: var(--ts); margin-top: 1px; }
.ggd-row .grow { flex: 1; min-width: 0; }
.ggd-pill { font-size: 8.5px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.ggd-empty { text-align: center; color: var(--muted-blue); font-size: 10.5px; padding: 24px 0; }
.ggd-kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 10.5px; }
.ggd-kv + .ggd-kv { border-top: 1px solid #EEEEEE; }
.ggd-kv span:first-child { color: var(--tm); }
.ggd-kv span:last-child { color: var(--ts); font-weight: 700; }

/* Buttons inside pages */
.ggd-btn { display: block; width: 100%; border: 0; border-radius: 22px; padding: 10px 0; font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ggd-btn.red { background: #D62B2B; color: #fff; }
.ggd-btn.trust { background: #fff; color: var(--ok); border: 1.5px solid var(--ok); }
.ggd-btn + .ggd-btn { margin-top: 7px; }

/* History rail (as in the guide's History demo) */
.ggd-day { display: flex; align-items: center; gap: 6px; padding: 8px 0 4px; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted-blue); }
.ggd-day::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.2); }
.ggd-ev { display: flex; }
.ggd-rail { position: relative; flex: 0 0 15px; }
.ggd-rail::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.25); }
.ggd-rail i { position: absolute; left: 50%; top: 14px; width: 8px; height: 8px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; box-sizing: content-box; }
.ggd-evc { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px; padding: 9px; margin-bottom: 6px; }
.ggd-evc .nm { font-size: 10.5px; font-weight: 700; color: var(--tp); }
.ggd-evc .ds { font-size: 9.5px; color: var(--ts); margin-top: 1px; }
.ggd-evc .rk { font-size: 9px; font-weight: 700; margin-top: 3px; }
.ggd-evc .tm { margin-left: auto; font-size: 8px; color: var(--ts); white-space: nowrap; }

/* Report calendar */
.ggd-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ggd-cal div { text-align: center; font-size: 8.5px; color: var(--ts); border-radius: 6px; padding: 4px 0 3px; background: #F5F7FF; }
.ggd-cal div i { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 2px auto 0; }
.ggd-cal .hd { background: none; font-weight: 700; color: var(--tm); }

/* Overlays */
.ggd-layer { position: absolute; inset: 0; z-index: 10; }
.ggd-toast { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 40; background: #323232; color: #fff;
             font-size: 10.5px; padding: 8px 14px; border-radius: 18px; width: max-content; max-width: 86%; text-align: center; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.35);
             animation: ggd-fadein .2s ease; }
@keyframes ggd-fadein { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ggd-sheet-bg { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 18px; animation: ggd-fade .15s ease; }
@keyframes ggd-fade { from { opacity: 0; } to { opacity: 1; } }
.ggd-dialog { width: 100%; background: #1E2A4A; border-radius: 16px; padding: 16px; color: #fff; }
.ggd-dialog h4 { margin: 0 0 8px; font-size: 13px; }
.ggd-dialog .dbtns { display: flex; justify-content: flex-end; gap: 4px; margin-top: 12px; }
.ggd-dialog .dbtns button { border: 0; background: none; color: #64B5F6; font-weight: 700; font-size: 11px; padding: 6px 10px; cursor: pointer; }

/* The fake scam ad */
.ggd-ad { position: absolute; inset: 0; z-index: 30; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
          text-align: center; padding: 22px; animation: ggd-fade .2s ease; overflow: hidden; }
.ggd-ad .x { position: absolute; top: 6px; right: 8px; font-size: 9px; color: #bbb; }
.ggd-ad .warn { width: 64px; height: 64px; border-radius: 50%; background: #E00; color: #fff; font-size: 40px; font-weight: 900; display: flex; align-items: center; justify-content: center;
                animation: ggd-pulse .5s ease-in-out infinite alternate; }
@keyframes ggd-pulse { from { transform: scale(1); box-shadow: 0 0 0 0 rgba(238,0,0,.6); } to { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(238,0,0,0); } }
.ggd-ad h3 { margin: 14px 0 6px; font-size: 19px; line-height: 1.15; color: #E00; font-weight: 900; text-transform: uppercase; }
.ggd-ad p { margin: 0 0 6px; font-size: 11px; color: #222; }
.ggd-ad .bar { width: 100%; height: 10px; border-radius: 5px; background: #eee; overflow: hidden; margin: 8px 0 4px; }
.ggd-ad .bar i { display: block; height: 100%; width: 99%; background: repeating-linear-gradient(45deg, #E00, #E00 6px, #F44 6px, #F44 12px); }
.ggd-ad .cta { margin-top: 12px; width: 100%; padding: 12px 0; border-radius: 6px; background: #1DB954; color: #fff; font-weight: 900; font-size: 14px;
               animation: ggd-shake 1s ease-in-out infinite; }
@keyframes ggd-shake { 0%,100% { transform: translateX(0); } 10%,30% { transform: translateX(-3px); } 20%,40% { transform: translateX(3px); } }
.ggd-ad .fake { position: absolute; bottom: 8px; left: 0; right: 0; font-size: 7.5px; color: #aaa; }

/* GreerGuard full-screen alert (activity_threat_alert) */
.ggd-alert { position: absolute; inset: 0; z-index: 35; background: rgba(0,0,0,.73); padding: 26px 14px 18px; display: flex; animation: ggd-fade .15s ease; }
.ggd-alert .card { flex: 1; min-height: 0; background: #1E2A4A; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: #fff; }
.ggd-alert .strip { height: 4px; background: #D62B2B; }
.ggd-alert .top { padding: 12px 15px 0; }
.ggd-alert .brand { display: flex; align-items: center; gap: 6px; }
.ggd-alert .brand small { display: block; font-size: 8px; color: var(--muted-blue); }
.ggd-alert .brand b { display: block; font-size: 10px; color: #D62B2B; letter-spacing: .02em; }
.ggd-alert .app { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.ggd-alert .app .nm { font-size: 15px; font-weight: 700; }
.ggd-alert .badges { display: flex; gap: 5px; margin-top: 4px; }
.ggd-alert .risk { font-size: 8px; font-weight: 700; color: #D62B2B; padding: 2px 6px; border-radius: 5px; background: #2A1A1A; border: 1px solid #D62B2B; }
.ggd-alert .tag { font-size: 8px; color: var(--muted-blue); padding: 2px 7px; border-radius: 20px; border: 1px solid #3D5280; }
.ggd-alert .div { height: 1px; background: #2A3A5A; margin-top: 11px; }
.ggd-alert .scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 11px 15px; }
.ggd-alert .reasons { font-size: 10.5px; color: var(--muted-blue); line-height: 1.55; }
.ggd-alert .reasons b { color: #fff; }
.ggd-alert .rec { display: flex; gap: 7px; margin-top: 11px; font-size: 11.5px; font-weight: 700; }
.ggd-alert .rec i { flex: 0 0 3px; background: #D62B2B; border-radius: 2px; }
.ggd-alert .callout { margin-top: 10px; background: #2D1212; border: 1.5px solid #D62B2B; border-radius: 8px; padding: 9px 10px; font-size: 10px; line-height: 1.45; }
.ggd-alert .fp { margin-top: 9px; font-size: 8px; color: var(--muted-blue); line-height: 1.4; }
.ggd-alert .foot { padding: 8px 15px 14px; }

/* Android's own uninstall confirmation */
.ggd-sys { position: absolute; inset: 0; z-index: 45; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; padding: 0 10px 26px; animation: ggd-fade .15s ease; }
.ggd-sys .box { width: 100%; background: #F3F3F7; color: #1b1b1f; border-radius: 22px; padding: 18px 18px 10px; animation: ggd-up .22s ease; }
@keyframes ggd-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ggd-sys .hd { display: flex; align-items: center; gap: 10px; }
.ggd-sys .hd b { font-size: 13px; }
.ggd-sys p { font-size: 11.5px; margin: 12px 0 4px; color: #44474e; }
.ggd-sys .acts { display: flex; justify-content: flex-end; gap: 6px; }
.ggd-sys .acts span { font-size: 11.5px; font-weight: 600; color: #3D5AFE; padding: 8px 12px; border-radius: 16px; transition: background .15s; }
.ggd-sys .acts span.press { background: rgba(61,90,254,.16); }
.ggd-sys .prog { height: 3px; border-radius: 2px; background: #dfe1ea; overflow: hidden; margin: 10px 0 8px; }
.ggd-sys .prog i { display: block; height: 100%; width: 0; background: #3D5AFE; transition: width 1.1s ease; }

/* Under the phone */
.ggd-replay { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 700;
              padding: 7px 14px; border-radius: 18px; cursor: pointer; font-family: inherit; }
.ggd-replay:hover { background: rgba(255,255,255,.18); }
.ggd-caption { font-size: 11px; color: rgba(255,255,255,.6); text-align: center; max-width: 284px; line-height: 1.4; }

/* The alert's text buttons (Trust this behavior, Not Now), as btnTrustPerms and btnDismiss:
   text_muted_blue, no background, centred under Uninstall App. */
.ggd-alert-text { display: block; width: 100%; border: 0; background: none; color: #AAC4FF; text-align: center; cursor: pointer; font-family: inherit; }
.ggd-alert-text:hover { color: #fff; }
/* Security Check, as activity_security_check: light page, the score in the header, cards with
   the severity on their edge (item_security_check_card), passing checks folded into one line
   (item_security_check_passing). Sizes are the app's at 75%. */
.ggd-body.ggd-light { background: #F4F6FB; }
.ggd-score { margin: -10px -10px 0; padding: 4px 13px 15px; background: #1A3DAA; }
.ggd-score .n { display: flex; align-items: flex-end; gap: 6px; }
.ggd-score .n b { font-size: 28px; line-height: 1; font-weight: 700; color: #fff; }
.ggd-score .n span { font-size: 11px; color: var(--muted-blue); margin-bottom: 2px; }
.ggd-score .segs { display: flex; gap: 2px; height: 4.5px; margin-top: 10.5px; }
.ggd-score .segs i { flex: 1; border-radius: 2px; }
.ggd-chks { padding: 10.5px 2px 4px; }
.ggd-chk-sect { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--med); padding: 4.5px 0 7.5px; }
.ggd-chk { display: flex; background: #fff; border: 1px solid #E4E9F2; border-radius: 10.5px; overflow: hidden; margin-bottom: 7.5px; }
.ggd-chk .edge { flex: 0 0 3px; }
.ggd-chk .in { flex: 1; min-width: 0; padding: 10.5px 10.5px 10.5px 10.5px; }
.ggd-chk .tt { font-size: 11.25px; font-weight: 700; color: var(--tp); }
.ggd-chk .dd { font-size: 9.75px; color: var(--ts); line-height: 1.35; margin-top: 2px; }
.ggd-chk .act { display: inline-flex; align-items: center; margin-top: 7.5px; min-height: 28px; padding: 0 10.5px; border: 1px solid rgba(26,61,170,.35); border-radius: 14px; font-size: 9.75px; font-weight: 700; color: var(--accent); }
.ggd-chk-pass { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 10.5px; margin: 3px 0 7.5px; background: #fff; border: 1px solid #E4E9F2; border-radius: 10.5px; }
.ggd-chk-pass b { flex: 1; font-size: 10.5px; font-weight: 700; color: var(--ok); }
.ggd-chk-pass .chev { transition: transform .2s; }
.ggd-chk-pass .chev.open { transform: rotate(180deg); }
/* Dismiss, as btnMuteCheck: a faint bell top right, full strength once dismissed. */
.ggd-chk .mute { flex: 0 0 30px; height: 30px; margin: 7px 4px 0 0; border: 0; background: none; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; opacity: .45; }
.ggd-chk .mute.on { opacity: 1; }
.ggd-chk .mute:hover { background: rgba(0,0,0,.05); }
.ggd-chk.muted .tt { color: var(--ts); }
/* Narration beside the phone: what the demo shows that the app itself would never say. */
.ggd-hint { width: 284px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 10px 12px; color: #fff; font-size: 12px; line-height: 1.45; text-align: left; }
.ggd-hint[hidden] { display: none; }
.ggd-hint .lbl { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F5C400; margin-bottom: 3px; }
