* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e1220;
  --phone-bg: #f4f5f9;
  --card: #ffffff;
  --text: #1c2130;
  --muted: #6b7285;
  --accent: #2f6df6;
  --good: #1d9e55;
  --bad: #d64545;
  --warn: #e8a10c;
  --radius: 16px;
  font-size: 16px;
}

:root.large-font { font-size: 20px; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 30% 20%, #1b2340, var(--bg));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text);
}

/* ===== Telefono rėmelis ===== */
.phone {
  width: 100%;
  max-width: 420px;
  height: min(860px, 96vh);
  background: var(--phone-bg);
  border-radius: 34px;
  border: 10px solid #23283a;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  body { padding: 0; }
  .phone { max-width: none; height: 100vh; height: 100dvh; border-radius: 0; border: none; }
}

/* ===== Ekranai ===== */
.screen { display: none; flex: 1; flex-direction: column; min-height: 100%; }
.screen.active { display: flex; }

/* ===== Pradžia ===== */
.intro-wrap { padding: 2rem 1.4rem; text-align: center; display: flex; flex-direction: column; gap: .9rem; }
.logo { font-size: 3.4rem; }
h1 { font-size: 2rem; letter-spacing: .5px; }
.tagline { color: var(--muted); font-weight: 600; }
.intro-text { font-size: .95rem; color: var(--text); line-height: 1.5; text-align: left;
  background: var(--card); padding: 1rem; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(20,30,60,.07); }

.persona-pick { display: flex; flex-direction: column; gap: .55rem; margin-top: .4rem; }
.pick-label { font-weight: 700; margin-bottom: .2rem; }
.persona-btn {
  padding: .85rem 1rem; border: 2px solid transparent; border-radius: var(--radius);
  background: var(--card); font-size: 1rem; cursor: pointer; text-align: left;
  box-shadow: 0 2px 10px rgba(20,30,60,.07); transition: transform .08s, border-color .12s;
  font-family: inherit;
}
.persona-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.font-toggle { display: flex; gap: .5rem; justify-content: center; align-items: center; color: var(--muted); margin-top: .5rem; }
.font-btn { width: 2.4rem; height: 2.4rem; border-radius: 10px; border: 2px solid #cdd3e1; background: var(--card); cursor: pointer; font-weight: 700; font-family: inherit; }
.font-btn:nth-of-type(2) { font-size: 1.2rem; }
.font-btn.active { border-color: var(--accent); color: var(--accent); }

/* ===== Užrakintas ekranas ===== */
.lockscreen {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 1.5rem;
  background: linear-gradient(160deg, #35427a, #1b2340);
  color: #fff; text-align: center;
}
.clock { font-size: 3.6rem; font-weight: 200; letter-spacing: 2px; }
.lock-date { opacity: .75; margin-top: -0.8rem; }

.progress-dots { display: flex; gap: .45rem; margin: .4rem 0 1rem; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255,255,255,.25); }
.dot.done { background: #7de2a0; }
.dot.now { background: #fff; transform: scale(1.25); }

.notification-card {
  display: flex; gap: .8rem; align-items: flex-start; width: 100%;
  background: rgba(255,255,255,.95); color: var(--text);
  border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: slideDown .45s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
.notif-icon { font-size: 1.7rem; }
.notif-app { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.notif-title { font-weight: 700; margin: .1rem 0; }
.notif-preview { font-size: .88rem; color: var(--muted); }
.lock-hint { opacity: .65; font-size: .85rem; }

/* ===== Žinutės ekranas ===== */
.app-header {
  display: flex; align-items: center; gap: .6rem;
  background: var(--card); padding: .85rem 1rem;
  border-bottom: 1px solid #e3e6ef; position: sticky; top: 0; z-index: 2;
}
.app-header-title { font-weight: 700; flex: 1; }
.score-chip { background: #eef3ff; color: var(--accent); font-weight: 700; font-size: .85rem; padding: .25rem .7rem; border-radius: 999px; }

.msg-scroll { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.msg-meta { background: var(--card); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: 0 2px 10px rgba(20,30,60,.06); }
.from-name { font-weight: 700; }
.from-detail { margin-top: .4rem; font-family: Consolas, monospace; font-size: .85rem; background: #fff7e0; border: 1px dashed var(--warn); padding: .45rem .6rem; border-radius: 8px; word-break: break-all; }

.msg-subject { font-weight: 700; font-size: 1.05rem; padding: 0 .2rem; }
.msg-body { background: var(--card); border-radius: var(--radius); padding: 1rem; line-height: 1.55; white-space: pre-line; box-shadow: 0 2px 10px rgba(20,30,60,.06); font-size: .97rem; }

.link-box { background: var(--card); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: 0 2px 10px rgba(20,30,60,.06); display: flex; flex-direction: column; gap: .5rem; }
.link-text { color: var(--accent); text-decoration: underline; font-weight: 600; word-break: break-all; }
.link-url { font-family: Consolas, monospace; font-size: .85rem; background: #fff7e0; border: 1px dashed var(--warn); padding: .45rem .6rem; border-radius: 8px; word-break: break-all; }

.inspect-btn {
  align-self: flex-start; margin-top: .3rem;
  background: #eef3ff; color: var(--accent); border: none; border-radius: 999px;
  padding: .35rem .8rem; font-size: .85rem; cursor: pointer; font-family: inherit; font-weight: 600;
}
.inspect-btn:hover { background: #dbe7ff; }
.hidden { display: none !important; }

.decision-bar { background: var(--card); border-top: 1px solid #e3e6ef; padding: .9rem 1rem 1.1rem; position: sticky; bottom: 0; }
.decision-label { font-weight: 700; margin-bottom: .6rem; text-align: center; }
.decision-btns { display: flex; flex-direction: column; gap: .5rem; }
.dec-btn {
  padding: .8rem 1rem; border-radius: 12px; border: 2px solid transparent;
  font-size: .95rem; cursor: pointer; font-family: inherit; font-weight: 600; text-align: left;
  transition: transform .08s;
}
.dec-btn:hover { transform: translateY(-1px); }
.dec-btn.act { background: #eef3ff; border-color: #c9d9ff; }
.dec-btn.safecheck { background: #e4f7ec; border-color: #b9e6cb; }
.dec-btn.ignore { background: #f1f2f6; border-color: #dcdfe8; }
.dec-btn.report { background: #ffefef; border-color: #ffd2d2; }

/* ===== Pasekmė ===== */
.consequence-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1rem; padding: 2rem 1.4rem;
  background: linear-gradient(160deg, #4a1f24, #2a1216); color: #ffe9e9;
}
.consequence-icon { font-size: 3rem; }
#consequence-text { line-height: 1.6; font-size: 1.02rem; }

/* ===== Grįžtamasis ryšys ===== */
.feedback-scroll { flex: 1; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: .8rem; }
.verdict { font-size: 1.25rem; font-weight: 800; text-align: center; padding: .9rem; border-radius: var(--radius); line-height: 1.35; }
.verdict.good { background: #e4f7ec; color: var(--good); }
.verdict.bad { background: #fdeaea; color: var(--bad); }
.verdict.meh { background: #fff4dd; color: #9a6b00; }
.points-earned { text-align: center; font-weight: 700; color: var(--accent); }

.technique-card { background: var(--card); border-left: 5px solid var(--warn); border-radius: var(--radius); padding: 1rem; box-shadow: 0 2px 10px rgba(20,30,60,.06); }
.technique-name { font-weight: 800; margin-bottom: .35rem; }
.technique-desc { font-size: .93rem; line-height: 1.5; color: var(--text); }

.flags-card { background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: 0 2px 10px rgba(20,30,60,.06); }
.flags-title { font-weight: 800; margin-bottom: .5rem; }
#flags-list { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; font-size: .93rem; line-height: 1.45; }

.inspect-praise { font-size: .9rem; color: var(--muted); text-align: center; padding: 0 .5rem; line-height: 1.45; }

.review-card { background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: 0 2px 10px rgba(20,30,60,.06); display: flex; flex-direction: column; gap: .6rem; }
.review-sender { font-size: .9rem; word-break: break-all; }
.review-body { font-size: .9rem; line-height: 1.55; white-space: pre-line; background: #f7f8fc; border-radius: 10px; padding: .8rem; }
.review-url { font-family: Consolas, monospace; font-size: .83rem; word-break: break-all; }
mark { background: #ffe08a; border-radius: 4px; padding: 0 .2em; box-shadow: 0 0 0 2px #ffe08a; }

.impulse-hint { background: #fff4dd; border: 2px solid var(--warn); border-radius: var(--radius); padding: .8rem 1rem; font-size: .92rem; line-height: 1.45; font-weight: 600; color: #7a5500; }

.intro-note { font-size: .85rem; color: var(--muted); background: #eef3ff; border-radius: 12px; padding: .7rem .9rem; line-height: 1.45; text-align: left; }

.streak-line { text-align: center; font-weight: 700; color: #c96a00; background: #fff4dd; border-radius: 12px; padding: .7rem; font-size: .95rem; }

.feedback-footer { padding: 1rem; background: var(--phone-bg); position: sticky; bottom: 0; }
.primary-btn {
  width: 100%; padding: .95rem; border: none; border-radius: 14px;
  background: var(--accent); color: #fff; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: transform .08s, background .12s;
}
.primary-btn:hover { background: #2159d6; transform: translateY(-1px); }

/* ===== Rezultatai ===== */
.results-scroll { flex: 1; padding: 1.6rem 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.results-title { text-align: center; }
.big-score { text-align: center; font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.results-summary { background: var(--card); border-radius: var(--radius); padding: 1rem; line-height: 1.7; box-shadow: 0 2px 10px rgba(20,30,60,.06); }
.results-level { text-align: center; font-weight: 700; color: var(--muted); }
.results-sub { font-size: 1rem; margin-top: .3rem; }
.tech-row { display: flex; justify-content: space-between; background: var(--card); border-radius: 12px; padding: .7rem 1rem; margin-bottom: .45rem; font-weight: 600; box-shadow: 0 2px 8px rgba(20,30,60,.05); }
.tech-row.tech-good { border-left: 5px solid var(--good); }
.tech-row.tech-weak { border-left: 5px solid var(--bad); }
.results-tip { background: #eef3ff; border-radius: var(--radius); padding: 1rem; font-size: .93rem; line-height: 1.55; }

.share-btn {
  width: 100%; padding: .95rem; border: 2px solid var(--good); border-radius: 14px;
  background: #e4f7ec; color: var(--good); font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: transform .08s, background .12s;
}
.share-btn:hover { background: #d2f0de; transform: translateY(-1px); }

/* ===== Intro nuorodos, klasės režimas ===== */
.intro-links { display: flex; gap: 1.2rem; justify-content: center; }
.linklike {
  background: none; border: none; color: var(--accent); font-family: inherit;
  font-size: .9rem; font-weight: 600; cursor: pointer; padding: .3rem;
}
.linklike:hover { text-decoration: underline; }
.class-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
.class-row input {
  flex: 1; min-width: 10rem; padding: .75rem .9rem; border: 2px solid #cdd3e1;
  border-radius: 12px; font-family: inherit; font-size: 1rem;
}
.class-row input:focus { border-color: var(--accent); outline: none; }
.class-start-btn { width: auto; padding: .75rem 1.4rem; }
.class-hint { width: 100%; font-size: .8rem; color: var(--muted); text-align: center; }
.class-result {
  background: #eef3ff; border: 2px solid var(--accent); border-radius: var(--radius);
  padding: .9rem 1rem; text-align: center; font-weight: 700; font-size: 1.02rem;
}

/* ===== Interaktyvi klastotė ===== */
.phish-bg { background: #e8eaf0; }
.phish-addr { color: var(--bad); font-weight: 600; }
.phish-page { padding: 1.6rem 1.4rem 2rem; display: flex; flex-direction: column; gap: .9rem; }
.phish-brand { font-size: 1.4rem; font-weight: 800; text-align: center; color: var(--navy, #141a2e); }
.phish-sub { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }
.pf-label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: #3d4356; flex: 1; }
.pf-input {
  padding: .7rem .8rem; border: 1.5px solid #cdd3e1; border-radius: 10px;
  font-family: inherit; font-size: 1rem;
}
.pf-input:focus { border-color: var(--accent); outline: none; }
.pf-row { display: flex; gap: .8rem; }
.phish-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .4rem; }

/* ===== Statistika ===== */
.stat-row { margin-bottom: .8rem; }
.stat-row-top { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.stat-bar { height: .65rem; background: #e4e7f0; border-radius: 999px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: var(--warn); border-radius: 999px; }
.stat-bar-fill.good { background: var(--good); }
.stats-empty { color: var(--muted); font-size: .92rem; }
#btn-stats-back { margin-top: 1rem; }

.badge-line {
  background: #fff4dd; border: 2px solid var(--warn); border-radius: var(--radius);
  padding: .8rem 1rem; text-align: center; font-size: .95rem; line-height: 1.5;
}
.badge {
  display: flex; gap: .7rem; align-items: center;
  background: var(--card); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .5rem;
  box-shadow: 0 2px 8px rgba(20,30,60,.05);
  opacity: .45; filter: grayscale(1);
}
.badge.earned { opacity: 1; filter: none; border-left: 4px solid var(--warn); }
.badge-icon { font-size: 1.5rem; }
.badge-name { font-weight: 700; font-size: .92rem; }
.badge-desc { font-size: .8rem; color: var(--muted); }

.share-box {
  background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(20,30,60,.06); margin-top: 1rem;
}
.share-box p { font-size: .88rem; color: var(--muted); margin: .4rem 0 .8rem; line-height: 1.5; }
.share-status { font-weight: 600; color: var(--good); min-height: 1.2em; }
.share-preview { width: 100%; border-radius: 12px; margin-top: .8rem; box-shadow: 0 4px 16px rgba(20,30,60,.18); }

.share-note {
  background: #eef3ff; border-radius: var(--radius); padding: .8rem 1rem;
  font-size: .86rem; color: var(--muted); line-height: 1.5; margin-top: 1rem;
}

.stats-note {
  background: #eef3ff; border-radius: var(--radius); padding: 1rem 1.1rem;
  font-size: .88rem; line-height: 1.55; margin-top: 1rem;
}
.stats-note p { margin-top: .5rem; }
.stats-note-small { color: var(--muted); font-size: .8rem; }

/* Prieinamumas */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Telefono būsenos juosta ===== */
.statusbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  background: #0b0e18; color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .5px;
  padding: .4rem 1rem;
}
.sb-icons { display: flex; gap: .35rem; font-size: .75rem; }

/* ===== Avataras ===== */
.avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.avatar-big { width: 3.7rem; height: 3.7rem; font-size: 1.5rem; }
.inspect-wrap { display: flex; flex-direction: column; gap: .35rem; margin-top: .25rem; }

/* ===== El. paštas (Gmail tipo) ===== */
#screen-message[data-channel="email"] .msg-scroll { background: #fff; }
.email-subject { font-size: 1.15rem; font-weight: 600; line-height: 1.35; padding: .3rem .15rem 0; }
.email-sender-row { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem .15rem .8rem; border-bottom: 1px solid #eceef4; }
.email-sender-meta { flex: 1; min-width: 0; }
.email-sender-name { font-weight: 600; font-size: .95rem; }
.email-time { color: var(--muted); font-weight: 400; font-size: .78rem; margin-left: .3rem; }
.email-to { color: var(--muted); font-size: .8rem; }
.email-body { line-height: 1.6; white-space: pre-line; font-size: .95rem; padding: .3rem .15rem; }
.email-attachment {
  display: flex; gap: .6rem; align-items: center;
  border: 1px solid #dfe3ee; border-radius: 12px; padding: .6rem .8rem;
  width: fit-content; max-width: 100%; background: #fafbfd;
}
.att-icon { font-size: 1.3rem; }
.att-name { font-weight: 600; font-size: .88rem; word-break: break-all; }
.att-size { color: var(--muted); font-size: .78rem; }
.email-link-btn {
  display: block; background: var(--accent); color: #fff; text-align: center;
  border-radius: 8px; padding: .7rem 1rem; font-weight: 700; margin: .3rem .15rem 0;
}

/* ===== SMS ir pokalbiai (burbulai) ===== */
#screen-message[data-channel="sms"] .msg-scroll,
#screen-message[data-channel="messenger"] .msg-scroll { background: #fff; }
.chat-contact {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .6rem 0 .6rem; border-bottom: 1px solid #eceef4; text-align: center;
}
.chat-contact-name { font-weight: 700; }
.chat-contact-sub { color: var(--muted); font-size: .78rem; }
.chat-contact .inspect-wrap { align-items: center; }
.bubble-day { text-align: center; color: var(--muted); font-size: .75rem; margin: .5rem 0 .1rem; }
.bubble {
  max-width: 85%; width: fit-content;
  background: #e9ebf2; border-radius: 18px 18px 18px 5px;
  padding: .65rem .9rem; line-height: 1.5; font-size: .95rem;
  white-space: pre-line; margin: .2rem 0;
}
.bubble.msngr { background: #efe7fb; }
.bubble-link { color: var(--accent); text-decoration: underline; font-weight: 600; word-break: break-all; }
.bubble-time { color: var(--muted); font-size: .72rem; margin: .1rem 0 0 .3rem; }

/* ===== Skambučio ekranas ===== */
#screen-message[data-channel="call"] .msg-scroll { background: linear-gradient(170deg, #28304f, #141a2e); }
.call-app { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: #fff; padding: .7rem 0; }
.call-name { font-size: 1.25rem; font-weight: 700; text-align: center; }
.call-number { opacity: .8; font-size: .9rem; }
.call-status { color: #7de2a0; font-size: .82rem; margin-top: .2rem; }
.call-transcript { margin-top: 1rem; display: flex; flex-direction: column; gap: .55rem; width: 100%; }
.call-line {
  background: rgba(255,255,255,.12); border-radius: 14px;
  padding: .7rem .9rem; line-height: 1.5; font-size: .92rem; white-space: pre-line;
}

/* ===== Naršyklė su iššokančiu langu ===== */
#screen-message[data-channel="popup"] .msg-scroll { background: #e8eaf0; }
.browser-chrome { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(20,30,60,.12); }
.browser-tabbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #dfe3ea; padding: .45rem .7rem .0rem .7rem; font-size: .8rem;
}
.btab { background: #fff; border-radius: 8px 8px 0 0; padding: .35rem .8rem; font-weight: 600; }
.btab-x { color: var(--muted); font-size: 1.1rem; padding: 0 .3rem; }
.browser-addr {
  background: #f1f3f7; margin: .5rem .6rem; border-radius: 999px;
  padding: .45rem .9rem; font-size: .82rem; color: #444;
}
.browser-page { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; filter: blur(1.2px); opacity: .65; }
.pg-line { height: .7rem; background: #dde1ec; border-radius: 4px; }
.w80 { width: 80%; } .w95 { width: 95%; } .w90 { width: 90%; } .w60 { width: 60%; }
.pg-img { height: 5.2rem; background: #dde1ec; border-radius: 8px; }
.popup-window {
  position: relative; z-index: 2; margin: -4.6rem .7rem 1rem;
  background: #fff; border-radius: 12px; border: 1px solid #d6dae6;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); overflow: hidden;
}
.popup-title { background: #f4f5f9; padding: .5rem .8rem; font-size: .78rem; color: #555; border-bottom: 1px solid #e5e8f0; word-break: break-all; }
.popup-head { font-weight: 800; padding: .7rem .9rem 0; color: var(--bad); }
.popup-body { padding: .5rem .9rem .9rem; font-size: .9rem; line-height: 1.5; white-space: pre-line; }

/* ===== CloudScout poraštė ===== */
.site-footer {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  margin-top: .8rem; padding-top: .9rem; border-top: 1px solid #e3e6ef;
}
.footer-logo { width: auto; height: 2.6rem; border-radius: 10px; }
.footer-text { font-size: .8rem; color: var(--muted); text-align: left; line-height: 1.45; }
.footer-link { color: var(--muted); }
.footer-link:hover { color: var(--accent); }
