/* Phone mockups drawn to match the real SafeChat app screens. */

/* ---------- Dark chat screen (the app's conversation view) ---------- */
.dark-chat { background: #1b1430; color: #fff; }
.dark-chat .status { color: #fff; }
.dc-bar { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dc-bar .back { width: 18px; height: 18px; color: #fff; }
.dc-bar .who { flex: 1; font-size: 14px; }
.dc-bar .acts { display: flex; gap: 12px; align-items: center; color: #fff; }
.dc-bar .acts svg { width: 18px; height: 18px; }
.dc-bar .chev-d { font-size: 18px; line-height: 1; margin-top: -6px; }
.avatar.dotted { position: relative; }
.avatar.dotted::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #ef4a5b; box-shadow: 0 0 0 2px #1b1430; }
.dc-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.dc-body.top { justify-content: flex-start; padding-top: 20px; }
.dc-day { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: #3b3150; margin: 2px 0 4px; }
.dc-day::before, .dc-day::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.22); }
.dc-day span { background: #d9d4e2; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.dc-row { display: flex; align-items: flex-end; gap: 6px; }
.dc-row.out { justify-content: flex-end; }
.mini-av { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); font-size: 9px; font-weight: 800; display: grid; place-items: center; flex: none; }
.dc-b { max-width: 76%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; }
.dc-b time { display: block; text-align: right; font-size: 9px; opacity: .75; margin-top: 2px; }
.dc-b.out { background: linear-gradient(120deg, #7a2fc0, #a33fb5); border-bottom-right-radius: 4px; }
.dc-b.in { background: #2e2545; border-bottom-left-radius: 4px; }
.dc-typing { align-self: flex-start; background: #2e2545; border-radius: 14px; padding: 9px 12px; display: flex; gap: 4px; }
.dc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9c8fbb; animation: blink 1.2s infinite; }
.dc-typing i:nth-child(2) { animation-delay: .15s; }
.dc-typing i:nth-child(3) { animation-delay: .3s; }
.sc-bubble { width: 74%; padding: 6px 6px 4px; border-radius: 14px; border-bottom-right-radius: 4px; background: linear-gradient(120deg, #7a2fc0, #a33fb5); }
.sc-card { background: #fff; color: var(--ink); border-radius: 10px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; }
.sc-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; flex: none; }
.sc-ic svg { width: 20px; height: 20px; }
.sc-t { flex: 1; line-height: 1.2; }
.sc-t b { font-size: 12px; display: block; }
.sc-t small { font-size: 10px; color: var(--muted); }
.sc-card .chev { color: #8a80a0; font-size: 18px; }
.sc-bubble.sealed .sc-ic { animation: sealPulse 2.4s ease-in-out infinite; }
@keyframes sealPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(199,73,153,.5); } 50% { box-shadow: 0 0 0 6px rgba(199,73,153,0); } }
.sc-foot { display: flex; justify-content: space-between; font-size: 9px; padding: 4px 4px 0; opacity: .85; }
.dc-compose { display: flex; align-items: center; gap: 8px; padding: 8px 10px 16px; background: #1b1430; border-top: 1px solid rgba(255,255,255,.06); }
.dc-compose .plus { font-size: 20px; line-height: 1; color: #fff; width: 16px; }
.dc-compose .sc-btn { width: 26px; height: 22px; border-radius: 6px; background: var(--grad); display: grid; place-items: center; }
.dc-compose .sc-btn svg { width: 16px; height: 16px; }
.dc-compose .field { flex: 1; height: 30px; border-radius: 999px; background: #fff; color: #333; font-size: 11px; display: flex; align-items: center; padding: 0 12px; }
.dc-compose .cam svg { width: 17px; height: 17px; color: #fff; }
.dc-compose .mic { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #7a2fc0, #c74999); display: grid; place-items: center; }
.dc-compose .mic svg { width: 14px; height: 14px; color: #fff; }

/* ---------- Home screen (the app's home) ---------- */
.home-screen { background: #f7f5f9; }
.hs-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 14px 8px; }
.hs-top img { height: 17px; width: auto; }
.hs-ic { display: flex; gap: 10px; }
.hs-ic i { width: 16px; height: 16px; border: 1.6px solid var(--ink-2); border-radius: 5px; display: block; }
.hs-ic i.bell { border-radius: 8px 8px 4px 4px; }
.hs-hello { display: flex; justify-content: space-between; align-items: center; padding: 2px 14px 8px; gap: 8px; }
.hs-hello b { font-size: 13.5px; display: block; letter-spacing: -.01em; }
.hs-hello small { font-size: 9.5px; color: var(--muted); }
.hs-online { background: #f1e9fb; border: 1px solid #e6d8f6; border-radius: 10px; padding: 4px 9px; text-align: center; line-height: 1.1; }
.hs-online b { color: var(--purple); font-size: 14px; display: block; }
.hs-online small { font-size: 8.5px; color: var(--muted); }
.hs-chips { display: flex; gap: 5px; padding: 0 12px 8px; }
.hs-chips span { font-size: 9px; font-weight: 700; padding: 6px 9px; border-radius: 999px; background: #eeebf2; box-shadow: inset 0 -2px 0 rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.08); }
.hs-chips span.fire { background: linear-gradient(0deg, #ffb35c 0 18%, #eeebf2 18%); }
.hs-chips .srch { width: 24px; padding: 0; border-radius: 50%; }
.hs-card { background: #fff; border-radius: 14px; margin: 0 10px 8px; padding: 9px 12px; box-shadow: 0 2px 10px -4px rgba(98,35,169,.25); border: 1px solid #efe6f6; }
.hs-h { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; border-bottom: 1px solid #ecdcf3; padding-bottom: 6px; }
.hs-h span { color: var(--purple); font-size: 16px; line-height: 1; }
.hs-flash { padding-top: 8px; }
.hs-flash .ring { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(#f39a3b, #c74999, #6223a9, #f39a3b); animation: spin 6s linear infinite; }
.hs-flash .ring .avatar { width: 34px; height: 34px; font-size: 13px; box-shadow: 0 0 0 2px #fff; animation: spin 6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hs-flash small { display: block; font-size: 8.5px; color: var(--muted); padding-left: 4px; }
.hs-sync { position: relative; height: 54px; display: grid; place-items: center; }
.hs-sync svg { position: absolute; left: 0; right: 0; top: 14px; width: 100%; height: 26px; }
.hs-sync .heart {
  position: relative; width: 46px; height: 42px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px;
  background: var(--grad);
  clip-path: path("M23 40 C10 31 1 23 1 13 C1 6 6 1 12.5 1 C17 1 20.5 3.6 23 7.5 C25.5 3.6 29 1 33.5 1 C40 1 45 6 45 13 C45 23 36 31 23 40 Z");
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
.hs-q { text-align: center; font-size: 9px; color: var(--muted); margin: 8px 0 2px; line-height: 1.5; }
.hs-q em { color: var(--purple); font-style: normal; }
.hs-tabs { margin: auto 10px 12px; display: flex; justify-content: space-around; align-items: center; background: #fff; border-radius: 999px; padding: 7px 8px; box-shadow: 0 0 0 1px #e8e1ee; color: #6e6680; }
.hs-tabs svg { width: 17px; height: 17px; }
.hs-tabs .mid { width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #a33fb5; display: grid; place-items: center; margin-top: -20px; }
.hs-tabs .mid img { width: 30px; height: 30px; }
.hs-tabs .me { width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Flash view (tilted card with tape, viewer bar) ---------- */
.flash-view { background: radial-gradient(120% 70% at 50% 30%, #4a2a45 0%, #1c1020 60%, #120a16 100%); color: #fff; }
.flash-view .status { color: #fff; }
.fv-top { display: flex; justify-content: flex-end; gap: 14px; padding: 2px 16px 0; font-size: 15px; }
.fv-card { position: relative; margin: 14px 22px 0; height: 64%; border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 0 0 1.5px rgba(255,220,230,.7), 0 20px 40px -10px rgba(0,0,0,.6); animation: flashFloat 6s ease-in-out infinite; }
@keyframes flashFloat { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-6px); } }
.fv-card .sunset { margin: 0; height: 100%; border-radius: 16px; }
.tape { position: absolute; left: -14px; top: 6px; width: 54px; height: 18px; background: rgba(230,230,235,.6); transform: rotate(-38deg); z-index: 3; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.fv-who { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px; z-index: 2; line-height: 1.1; color: #fff; }
.fv-who .avatar { width: 26px; height: 26px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
.fv-who b { font-size: 11px; display: block; }
.fv-who small { font-size: 8.5px; opacity: .85; }
.fv-bar { margin: auto 10px 14px; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; display: flex; align-items: center; justify-content: space-between; }
.fv-bar .eye { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--purple); }
.fv-bar .eye svg { width: 16px; height: 16px; }
.fv-bar .add { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 20px; display: grid; place-items: center; line-height: 1; }
.fv-bar > svg { width: 18px; height: 18px; color: var(--purple); }

/* ---------- Flashes feature card ---------- */
.mini-flash2 { position: relative; width: 220px; height: 210px; }
.mini-flash2 .mf { position: absolute; width: 120px; height: 170px; border-radius: 14px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9), var(--shadow); }
.mini-flash2 .back2 { left: 4px; top: 18px; background: linear-gradient(160deg, #8a2fc4, #f39a3b); display: grid; place-items: center; animation: fanL 5s ease-in-out infinite; }
.mini-flash2 .back2 .txt { color: #fff; font-weight: 800; font-size: 14px; text-align: center; padding: 10px; }
.mini-flash2 .front2 { right: 4px; top: 6px; animation: fanR 5s ease-in-out infinite; }
.mini-flash2 .front2 .sunset { margin: 0; height: 100%; border-radius: 14px; }
.mini-flash2 .sunset .tag { font-size: 10px; padding: 3px 7px; }
.mini-flash2 .tape { width: 40px; height: 14px; left: -10px; top: 4px; }
.mf-views { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); background: #fff; color: var(--purple); border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 5px; box-shadow: var(--shadow-sm); white-space: nowrap; z-index: 4; }
.mf-views svg { width: 14px; height: 14px; }
@keyframes fanL { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(-14deg) translate(-6px, 2px); } }
@keyframes fanR { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(10deg) translate(6px, -2px); } }

@media (prefers-reduced-motion: reduce) {
  .fv-card, .mini-flash2 .mf, .hs-flash .ring, .hs-flash .ring .avatar, .hs-sync .heart { animation: none !important; }
}
