/* ============================================================
   PondPhuwin Romantic iPhone Simulator Stylesheet
   Aesthetic: Soft Rose Gold / Midnight Warmth / BL Romance
   ============================================================ */

:root {
  --ease: cubic-bezier(.32, .72, 0, 1);
  --blue: #007aff;
  --pink: #ff2d55;
  --rose: #ff6b8b;
  --gold: #ffb86c;
  --red: #ff3b30;
  --green: #34c759;
  --sep: rgba(60, 60, 67, .22);
  --grey: #8e8e93;
  --bg2: #f2f2f7;
  --dark-bg: #121216;
  --romantic-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  --gold-glow: 0 8px 30px rgba(255, 180, 100, .25);
  --pink-glow: 0 8px 32px rgba(255, 107, 139, .3);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #000;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.2px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  background: radial-gradient(ellipse at 50% 25%, #2c1b26 0%, #150f16 55%, #080608 100%);
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Background floating heart particles */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* External Controls outside phone */
#outer-controls {
  position: fixed;
  bottom: 20px;
  display: flex;
  gap: 12px;
  z-index: 100;
}

.outer-btn {
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s, background .2s;
}

.outer-btn:hover {
  background: rgba(255, 255, 255, .25);
  transform: translateY(-2px);
}

.outer-btn:active {
  transform: scale(.95);
}

/* Phone Container */
#phone {
  position: relative;
  width: min(100vw, calc((100dvh - 50px) * .4613), 420px);
  aspect-ratio: 393 / 852;
  border-radius: 56px;
  overflow: hidden;
  background: #000;
  box-shadow: 
    0 0 0 10px #1e191d,
    0 0 0 12px #3d343b,
    0 0 0 13px #201a1f,
    0 40px 100px rgba(0, 0, 0, .85),
    0 0 60px rgba(255, 107, 139, .15);
  isolation: isolate;
  transform: translateZ(0);
  z-index: 10;
  transition: all .35s var(--ease);
}

#phone.fullscreen-mode {
  width: 100vw !important;
  height: 100dvh !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* Romantic Wallpapers - PondPhuwin 2026 (@ppnaravit) */
#wall {
  position: absolute;
  inset: -10px;
  background: 
    linear-gradient(180deg, rgba(16, 8, 20, 0.2) 0%, rgba(24, 10, 22, 0.4) 50%, rgba(10, 5, 12, 0.8) 100%),
    url('assets/img15.jpg') center/cover no-repeat;
  transition: filter .5s var(--ease), transform .5s var(--ease);
}

#wall.dim {
  filter: blur(28px) brightness(.55);
  transform: scale(1.08);
}

/* Phone Layers */
.layer {
  position: absolute;
  inset: 0;
}

#homeL, #appL {
  visibility: hidden;
}

#appL {
  z-index: 20;
  background: #fff;
  overflow: hidden;
}

#ov {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
#ov > * {
  pointer-events: auto;
}

/* Status Bar */
#sb {
  position: absolute;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 30px 0 44px;
  pointer-events: none;
  color: #000;
  transition: color .3s;
}

#sb.light {
  color: #fff;
}

#sb .t {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.3px;
  width: 60px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

#sb .r {
  display: flex;
  gap: 7px;
  align-items: center;
}

#sb svg {
  fill: currentColor;
}

/* Dynamic Island */
#island {
  position: absolute;
  z-index: 90;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 36px;
  background: #000;
  border-radius: 20px;
  transition: width .45s var(--ease), height .45s var(--ease), border-radius .45s var(--ease), box-shadow .3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05);
}

#island.act {
  width: 210px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5), 0 0 15px rgba(255, 107, 139, .3);
}

#island .ia {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #333 center/cover;
  opacity: 0;
  transition: opacity .3s;
  flex: none;
}

#island.act .ia {
  opacity: 1;
}

#island .ititle {
  display: none;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
  flex: 1;
}

#island.act .ititle {
  display: block;
}

#island .ib {
  display: flex;
  gap: 2.5px;
  align-items: center;
  height: 16px;
  opacity: 0;
  transition: opacity .3s;
  flex: none;
}

#island.act .ib {
  opacity: 1;
}

#island .ib i {
  width: 3px;
  background: linear-gradient(180deg, #ff6b8b, #ff8e53);
  border-radius: 2px;
  animation: eq .9s ease-in-out infinite alternate;
}
#island .ib i:nth-child(2) { animation-delay: -.3s; }
#island .ib i:nth-child(3) { animation-delay: -.6s; }
#island .ib i:nth-child(4) { animation-delay: -.15s; }

@keyframes eq {
  from { height: 4px; }
  to { height: 16px; }
}

/* Home Indicator Bar */
#hb {
  position: absolute;
  z-index: 85;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  cursor: pointer;
  touch-action: none;
}

#hb i {
  width: 140px;
  height: 5px;
  border-radius: 3px;
  background: #000;
  transition: background .3s, transform .2s, box-shadow .3s;
}

#hb.light i {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

#hb:hover i {
  transform: scaleX(1.08);
}

#hb.pulse i {
  animation: hbp 1.6s ease-in-out infinite;
}

@keyframes hbp {
  50% { transform: scaleX(1.2) translateY(-2px); opacity: .7; }
}

/* ============================================================
   LOCK SCREEN
   ============================================================ */
#lockL {
  z-index: 30;
  color: #fff;
}

#lkc {
  position: absolute;
  inset: 0;
  touch-action: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lk-couple-status {
  position: absolute;
  top: 72px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.lk-date {
  position: absolute;
  top: 108px;
  width: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  letter-spacing: -.2px;
}

.lk-time {
  position: absolute;
  top: 132px;
  width: 100%;
  text-align: center;
  font-size: 96px;
  font-weight: 300;
  letter-spacing: -3px;
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
  font-feature-settings: "tnum";
}

.lk-notes {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ncard {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(35px) saturate(1.8);
  backdrop-filter: blur(35px) saturate(1.8);
  color: #111;
  text-align: left;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: transform .15s;
}

.ncard:active {
  transform: scale(.98);
}

.ncard .ni {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.ncard .ni img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ncard .nt {
  flex: 1;
  min-width: 0;
}

.ncard .nh {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

.ncard .nh small {
  font-weight: 400;
  color: rgba(0, 0, 0, .5);
  font-size: 12.5px;
}

.ncard .nb {
  font-size: 14.5px;
  line-height: 1.35;
  margin-top: 3px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lk-btn {
  position: absolute;
  bottom: 46px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  transition: transform .15s, background .15s;
  cursor: pointer;
}

.lk-btn:active {
  transform: scale(1.15);
  background: rgba(255, 255, 255, .5);
}

.lk-hint {
  position: absolute;
  bottom: 46px;
  width: 100%;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  opacity: .9;
  letter-spacing: .1px;
  animation: hint 2.4s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

@keyframes hint {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: .95; transform: translateY(-4px); }
}

/* Passcode Pinpad */
#pinL {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  color: #fff;
  padding-top: 96px;
  z-index: 35;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#pinL .pt {
  font-size: 21px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

#pinL .phint {
  font-size: 13.5px;
  opacity: .85;
  margin-top: 6px;
  color: #ffd1dc;
  font-weight: 500;
}

.pdots {
  display: flex;
  gap: 24px;
  margin: 22px 0 36px;
}

.pdots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  transition: background .12s, transform .12s;
}

.pdots i.on {
  background: #fff;
  transform: scale(1.1);
}

.pdots.shake {
  animation: shake .45s;
}

@keyframes shake {
  20% { transform: translateX(-14px); }
  40% { transform: translateX(12px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(5px); }
}

.pkeys {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 16px 26px;
}

.pk {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .25s, transform .1s;
}

.pk:active, .pk.dn {
  background: rgba(255, 255, 255, .6);
  transform: scale(.94);
}

.pk b {
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.pk small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 2px;
  min-height: 11px;
}

.pbot {
  position: absolute;
  bottom: 50px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
}

.pbot button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #fff;
  opacity: .9;
  cursor: pointer;
}

/* ============================================================
   HOME SCREEN & WIDGETS
   ============================================================ */
#homeL {
  z-index: 10;
  transform-origin: 50% 50%;
}

.hgrid {
  position: absolute;
  top: 68px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 20px;
  justify-items: center;
}

.widget {
  grid-column: span 2;
  grid-row: span 2;
  width: calc(100% - 8px);
  aspect-ratio: 1;
  border-radius: 26px;
  padding: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .18s var(--ease);
}

.widget:active {
  transform: scale(.95);
}

/* Couple Anniversary Widget */
.w-couple {
  background: linear-gradient(135deg, rgba(255, 107, 139, .88) 0%, rgba(255, 142, 83, .88) 100%);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.w-couple .wc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}

.w-couple .wc-days {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin: 6px 0 2px;
  letter-spacing: -1px;
}

.w-couple .wc-sub {
  font-size: 12px;
  opacity: .95;
  font-weight: 500;
}

.w-couple .wc-bot {
  background: rgba(0, 0, 0, .18);
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Weather Widget */
.w-weather {
  background: linear-gradient(180deg, #ff7e5f 0%, #feb47b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.w-weather .loc {
  font-size: 15px;
  font-weight: 600;
}

.w-weather .temp {
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
}

.w-weather .desc {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

/* App Icons */
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 74px;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}

.app:active {
  transform: scale(.88);
  filter: brightness(.85);
}

.icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}

.icon .ic {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon .ic svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lbl {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  white-space: nowrap;
}

.bdg {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #ff3b30;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  border: 1.5px solid #fff;
}

/* Dock */
.dock {
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 14px;
  height: 94px;
  border-radius: 34px;
  background: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(35px) saturate(1.8);
  backdrop-filter: blur(35px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  box-shadow: 0 6px 25px rgba(0,0,0,.25);
}

.dock .lbl {
  display: none;
}

/* ============================================================
   GENERIC APP PAGE & NAVIGATION
   ============================================================ */
.pg {
  position: absolute;
  inset: 0;
  background: #fff;
  overflow: hidden;
  will-change: transform;
}

.pg.dark {
  background: var(--dark-bg);
  color: #fff;
}

.pg.grouped {
  background: var(--bg2);
}

.nav {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 98px;
  padding: 52px 12px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.8) blur(25px);
  backdrop-filter: saturate(1.8) blur(25px);
  border-bottom: .5px solid var(--sep);
  transition: background .25s;
}

.pg.dark .nav {
  background: rgba(24, 24, 28, .92);
  border-bottom: .5px solid rgba(255, 255, 255, .15);
}

.nb-back {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--pink);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px;
  justify-self: start;
}

.nb-back svg {
  width: 12px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.nb-title {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.nb-right {
  justify-self: end;
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--pink);
  font-size: 17px;
  cursor: pointer;
}

.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 104px;
  padding-bottom: 96px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll::-webkit-scrollbar {
  display: none;
}

.lt {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 4px 18px 12px;
}

/* ============================================================
   CHAT APP (LINE / Kakao Style)
   ============================================================ */
.chat-page {
  background: #fdf6f7;
}

.chat-list-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: .5px solid rgba(60,60,67,.1);
  cursor: pointer;
  transition: background .15s;
}

.chat-list-row:active {
  background: rgba(0, 0, 0, .05);
}

.chat-av {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  position: relative;
}

.chat-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-av.online::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-info .cin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-info .cin-name {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-info .cin-time {
  font-size: 12px;
  color: #999;
}

.chat-info .cin-msg {
  font-size: 14px;
  color: #666;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inside Chat Room */
.room-view {
  display: flex;
  flex-direction: column;
  background: #fdf0f3;
}

.room-messages {
  flex: 1;
  overflow-y: auto;
  padding: 108px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}

.room-messages::-webkit-scrollbar {
  display: none;
}

.bubble {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.38;
  position: relative;
  word-break: break-word;
}

.bubble.them {
  align-self: flex-start;
  background: #fff;
  color: #111;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.bubble.me {
  align-self: flex-end;
  background: var(--romantic-gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(255, 107, 139, .3);
}

.bubble .b-time {
  font-size: 10px;
  opacity: .7;
  margin-top: 4px;
  text-align: right;
}

.bubble.img-bubble {
  padding: 4px;
  overflow: hidden;
  width: 58%;
}

.bubble.img-bubble img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.bubble.img-bubble .caption {
  padding: 6px 8px 2px;
  font-size: 13.5px;
}

/* Audio Voice Memo Bubble */
.bubble.audio-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.audio-waveform {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 20px;
  flex: 1;
}

.audio-waveform i {
  width: 2.5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .35);
  height: 8px;
}

.audio-bubble.playing .audio-waveform i {
  animation: eq .6s ease-in-out infinite alternate;
}

/* Gift Card in Chat */
.bubble.gift-bubble {
  padding: 0;
  overflow: hidden;
  background: #fff !important;
  color: #111;
  width: 210px;
}

.gift-top {
  background: linear-gradient(135deg, #ffd1dc 0%, #ff9ebb 100%);
  height: 80px;
  display: grid;
  place-items: center;
  font-size: 34px;
}

.gift-body {
  padding: 10px 12px;
  font-size: 13px;
}

.gift-body b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

/* Typing Indicator */
.typing-bubble {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.typing-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbb;
  animation: td 1.2s infinite;
}
.typing-bubble i:nth-child(2) { animation-delay: .2s; }
.typing-bubble i:nth-child(3) { animation-delay: .4s; }

@keyframes td {
  0%, 60%, 100% { transform: none; opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Chat Input Bar */
.chat-bottom-bar {
  background: #fff;
  border-top: .5px solid var(--sep);
  padding: 8px 10px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interactive-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.interactive-suggestions::-webkit-scrollbar {
  display: none;
}

.suggestion-chip {
  background: #fff;
  border: 1px solid rgba(255, 107, 139, .4);
  color: var(--pink);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 107, 139, .12);
  transition: transform .15s, background .15s;
}

.suggestion-chip:active {
  transform: scale(.95);
  background: #ffeef2;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-box {
  flex: 1;
  background: #f2f2f7;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 15px;
  outline: none;
  border: none;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--romantic-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 139, .4);
}

/* ============================================================
   PHONE APP & INCOMING CALL
   ============================================================ */
.phone-page .call-list-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: .5px solid var(--sep);
  cursor: pointer;
}

.call-list-row .c-info {
  flex: 1;
}

.call-list-row .c-info b {
  font-size: 16px;
  display: block;
}

.call-list-row .c-info small {
  color: #888;
  font-size: 13px;
}

.call-list-row.missed .c-info b {
  color: var(--red);
}

.call-list-row .c-time {
  font-size: 14px;
  color: #888;
}

/* Incoming / Active Call Screen */
.call-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: linear-gradient(180deg, #3d2336 0%, #1c101b 55%, #0d080e 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
}

.call-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 10px 30px rgba(0,0,0,.5);
}

.call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-name {
  font-size: 32px;
  font-weight: 600;
  margin-top: 18px;
  letter-spacing: -.5px;
}

.call-status {
  font-size: 17px;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
}

/* Romantic speech subtitles in call */
.call-captions {
  margin: 36px 24px 0;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  animation: fadeIn .4s;
}

.call-captions small {
  display: block;
  font-size: 12px;
  opacity: .6;
  margin-bottom: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Call Actions Buttons */
.call-actions-grid {
  position: absolute;
  bottom: 60px;
  left: 36px;
  right: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 0;
  justify-items: center;
}

.call-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

.call-action-btn .c-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  transition: background .2s, transform .1s;
}

.call-action-btn:active .c-circle {
  transform: scale(.92);
}

.call-action-btn.end-btn .c-circle {
  background: var(--red);
}

.call-action-btn.answer-btn .c-circle {
  background: var(--green);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .7); }
  70% { box-shadow: 0 0 0 16px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

/* ============================================================
   INSTAGRAM APP
   ============================================================ */
.ig-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 52px 16px 12px;
  background: #fff;
  border-bottom: .5px solid var(--sep);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ig-header b {
  font-size: 20px;
  flex: 1;
}

.ig-profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
}

.ig-pfp {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  flex: none;
}

.ig-pfp img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.ig-stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.ig-stats b {
  font-size: 17px;
  display: block;
}

.ig-stats span {
  font-size: 13px;
  color: #666;
}

.ig-bio {
  padding: 0 18px 12px;
  font-size: 14px;
  line-height: 1.4;
}

.ig-bio b {
  font-size: 15px;
}

.ig-stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 18px;
  scrollbar-width: none;
  border-bottom: .5px solid var(--sep);
}

.ig-stories::-webkit-scrollbar {
  display: none;
}

.ig-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  cursor: pointer;
}

.ig-story-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--romantic-gradient);
}

.ig-story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 4px;
}

.ig-grid-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.ig-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   MUSIC APP & NOW PLAYING
   ============================================================ */
.music-list-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 18px;
  cursor: pointer;
}

.music-art {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.music-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-meta {
  flex: 1;
  border-bottom: .5px solid var(--sep);
  padding-bottom: 10px;
}

.music-meta b {
  font-size: 16px;
  display: block;
}

.music-meta small {
  color: #888;
  font-size: 13px;
  margin-top: 2px;
  display: block;
}

.music-meta.playing b {
  color: var(--pink);
}

/* Fullscreen Now Playing Modal */
.now-playing-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #2b1822;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 28px 40px;
  overflow: hidden;
}

.np-bg-glow {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(70px) brightness(.55) saturate(1.8);
  z-index: -1;
}

.np-drag-bar {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .4);
  margin-bottom: 24px;
  cursor: pointer;
}

.np-big-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(255, 107, 139, .2);
  transition: transform .45s var(--ease);
}

.np-big-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-playing-overlay.paused .np-big-art {
  transform: scale(.84);
}

.np-info {
  align-self: stretch;
  margin-top: 32px;
}

.np-info h2 {
  font-size: 22px;
  font-weight: 700;
}

.np-info p {
  font-size: 18px;
  opacity: .7;
  margin-top: 3px;
}

.np-progress-bar {
  align-self: stretch;
  margin-top: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
  cursor: pointer;
}

.np-progress-fill {
  height: 100%;
  background: #fff;
  width: 35%;
  border-radius: 3px;
}

.np-times {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: .6;
  margin-top: 6px;
}

.np-controls {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 28px;
}

.np-controls button {
  cursor: pointer;
  color: #fff;
}

.np-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  color: #000 !important;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

/* ============================================================
   NOTES APP
   ============================================================ */
.notes-list-item {
  padding: 12px 18px;
  border-bottom: .5px solid var(--sep);
  cursor: pointer;
}

.notes-list-item b {
  font-size: 16.5px;
  font-weight: 600;
  display: block;
}

.notes-list-item p {
  font-size: 14px;
  color: #666;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes-detail-view {
  padding: 16px 20px 100px;
  white-space: pre-line;
  line-height: 1.6;
  font-size: 16px;
}

.notes-detail-view h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ff3b30;
}

.notes-detail-view .nd-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

/* ============================================================
   PHOTOS FULLSCREEN VIEWER
   ============================================================ */
.photo-viewer-modal {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.pv-top {
  padding: 52px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, transparent 100%);
}

.pv-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.pv-main img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.pv-bottom {
  padding: 16px 20px 44px;
  background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, transparent 100%);
  font-size: 14px;
}

.pv-bottom h3 {
  font-size: 17px;
  font-weight: 600;
}

.pv-bottom p {
  opacity: .8;
  margin-top: 4px;
  font-size: 13.5px;
}

/* ============================================================
   MAPS APP
   ============================================================ */
.maps-container {
  position: absolute;
  inset: 0;
  background: #e5e3df;
  overflow: hidden;
}

.map-svg-canvas {
  width: 100%;
  height: 100%;
}

.map-pin {
  cursor: pointer;
  transition: transform .2s var(--ease);
}

.map-pin:hover {
  transform: scale(1.2);
}

.map-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 40px;
  box-shadow: 0 -4px 30px rgba(0,0,0,.2);
  z-index: 10;
}

.map-sheet h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.map-sheet p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Tab Bar */
.tabbar {
  position: absolute;
  z-index: 15;
  bottom: 0;
  left: 0;
  right: 0;
  height: 84px;
  padding: 8px 0 30px;
  display: flex;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border-top: .5px solid var(--sep);
}

.pg.dark .tabbar {
  background: rgba(20, 20, 24, .92);
  border-top: .5px solid rgba(255, 255, 255, .12);
}

.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #999;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
}

.tabbar button.on {
  color: var(--pink);
}

.tabbar svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

/* Instagram: dark, quiet look close to the X profile */
.ig-dark { background: #000; color: #f2f2f2; }
.ig-dark .ig-header { background: #000; border-bottom-color: #222; color: #f2f2f2; }
.ig-dark .ig-header b { font-weight: 500; letter-spacing: .5px; }
.ig-dark .ig-pfp { background: #3a3a3a; }
.ig-dark .ig-pfp img { border-color: #000; }
.ig-dark .ig-stats span { color: #8b8b8b; }
.ig-dark .ig-bio b { letter-spacing: 1px; font-weight: 600; }
.ig-dark .ig-bio p { color: #bdbdbd; font-size: 13px; }
.ig-dark .ig-stories { border-bottom-color: #222; }
.ig-dark .ig-story-ring { background: #3a3a3a; }
.ig-dark .ig-story-ring img { border-color: #000; }
.ig-dark .ig-story-item span { color: #8b8b8b; }
.ig-dark .ig-grid-item img { object-position: center 25%; filter: saturate(.85); }

/* ============================================================
   Ideas taken from the wonbin-phone reference
   (keyboard + auto-typing, banner, calendar, mail, clock, spotlight)
   ============================================================ */

/* Chat: date pill, read receipt, field + iOS keyboard */
.dpill { display: flex; justify-content: center; margin: 2px 0 6px; }
.dpill span { background: rgba(0,0,0,.14); color: #fff; font-size: 11.5px; padding: 5px 12px; border-radius: 14px; }
.bubble .rd { color: rgba(255,255,255,.95); font-weight: 600; }
.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.chat-bottom-bar.kb-on { padding-bottom: 8px; }
.fld {
  flex: 1;
  min-height: 38px;
  background: #f2f2f7;
  border-radius: 19px;
  padding: 9px 14px;
  font-size: 15px;
  line-height: 1.35;
  color: #111;
  display: flex;
  align-items: center;
  cursor: text;
  word-break: break-word;
}
.fld.ph { color: #aaa; }
.fld .cur { display: inline-block; width: 2px; height: 18px; background: var(--pink); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-send-btn { opacity: .35; transition: opacity .2s, transform .15s; }
.chat-send-btn.on { opacity: 1; }
.chat-send-btn:active { transform: scale(.9); }

.kbd { flex: none; height: 0; overflow: hidden; background: #d1d4db; transition: height .38s cubic-bezier(.32,.72,0,1); }
.kbd.open { height: 262px; }
.kbd .kin { padding: 8px 3px 0; display: flex; flex-direction: column; gap: 11px; height: 262px; }
.kr { display: flex; justify-content: center; gap: 6px; padding: 0 3px; }
.key {
  flex: 1; max-width: 36px; height: 42px; border-radius: 5px; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.33); display: grid; place-items: center;
  font-size: 21px; color: #000; cursor: pointer;
}
.key.sp { background: #abb0bb; max-width: 46px; font-size: 15px; }
.key.wide { max-width: none; flex: 5; font-size: 15px; }
.key.ret { max-width: none; flex: 2.2; background: #abb0bb; font-size: 15px; }
.key.wide2 { flex: 1.4; max-width: 60px; }
.key.dn { background: #abb0bb; transform: translateY(1px); }

/* Notification banner */
.banner { position: absolute; top: 54px; left: 8px; right: 8px; z-index: 70; cursor: pointer; }
.banner .ncard { background: rgba(245,245,247,.86); box-shadow: 0 8px 30px rgba(0,0,0,.2); }

/* Home spotlight pill */
.spot {
  position: absolute; bottom: 126px; left: 50%; transform: translateX(-50%);
  padding: 6px 13px; border-radius: 20px; background: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff; font-size: 13px; font-weight: 600; pointer-events: none;
}

/* Shared iOS list bits */
.group { margin: 0 16px; background: #fff; border-radius: 11px; overflow: hidden; }
.sw { position: relative; width: 51px; height: 31px; border-radius: 16px; background: #39393d; transition: background .25s; flex: none; cursor: pointer; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); transition: transform .25s cubic-bezier(.32,.72,0,1); }
.sw.on { background: #34c759; }
.sw.on::after { transform: translateX(20px); }

/* Calendar */
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; padding: 0 8px; }
.cal-w { font-size: 12px; color: #8e8e93; font-weight: 500; padding: 4px 0 6px; border-bottom: .5px solid var(--sep); }
.cal-d { border: 0; height: 54px; padding-top: 7px; font-size: 19px; display: flex; flex-direction: column; align-items: center; border-top: .5px solid #eee; background: none; cursor: pointer; color: #111; }
.cal-d span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.cal-d.td span { color: #ff3b30; font-weight: 600; }
.cal-d.sel span { background: #111; color: #fff; font-weight: 600; }
.cal-d.sel.td span { background: #ff3b30; color: #fff; }
.cal-d.we { color: #8e8e93; }
.cal-d i { width: 5px; height: 5px; border-radius: 50%; background: #c7c7cc; margin-top: 3px; }
.cal-d i.mens { background: #ff4d6d; box-shadow: 0 0 0 2px rgba(255,77,109,.2); }
.evt-head { font-size: 13px; color: #8e8e93; text-transform: uppercase; margin: 18px 20px 4px; }
.evt { display: flex; gap: 10px; padding: 11px 16px; font-size: 16px; align-items: center; }
.evt .bar { width: 4px; align-self: stretch; border-radius: 2px; background: #ff4d6d; }
.evt b { flex: 1; font-weight: 500; }
.evt small { color: #8e8e93; font-size: 14px; }

/* Mail */
.mrw { border: 0; display: flex; gap: 6px; padding: 10px 16px 12px 8px; position: relative; width: 100%; text-align: left; background: none; cursor: pointer; }
.mrw + .mrw::before { content: ''; position: absolute; top: 0; left: 24px; right: 0; height: .5px; background: var(--sep); }
.mrw:active { background: #e5e5ea; }
.mrw .dot { width: 10px; height: 10px; border-radius: 50%; background: #007aff; margin-top: 6px; flex: none; }
.mrw .dot.r { background: none; }
.mrw .bd { flex: 1; min-width: 0; }
.mrw .l1 { display: flex; justify-content: space-between; gap: 6px; }
.mrw .l1 b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrw .l1 span { color: #8e8e93; font-size: 14px; white-space: nowrap; }
.mrw .sj { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.mrw .pv { font-size: 15px; color: #8e8e93; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; margin-top: 1px; }
.mail-d { padding: 6px 16px 40px; }
.mail-d .hd { display: flex; gap: 12px; align-items: center; padding: 6px 0 14px; border-bottom: .5px solid var(--sep); }
.mail-d .ini { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(#ff9ab0, #ff6b8b); color: #fff; font-size: 18px; font-weight: 600; display: grid; place-items: center; flex: none; }
.mail-d .hd b { font-size: 17px; }
.mail-d .hd small { display: block; color: #8e8e93; font-size: 14px; margin-top: 2px; }
.mail-d h2 { font-size: 20px; margin: 16px 0 4px; font-weight: 700; }
.mail-d .bd { font-size: 16px; line-height: 1.6; white-space: pre-line; margin-top: 14px; color: #222; }

/* Clock / alarms */
.alarm { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; position: relative; }
.alarm + .alarm::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: rgba(255,255,255,.15); }
.alarm .at { font-size: 52px; font-weight: 200; letter-spacing: -1px; line-height: 1.15; transition: opacity .25s; }
.alarm .at small { font-size: 26px; font-weight: 300; margin-left: 2px; }
.alarm .al { font-size: 15px; }
.alarm.off .at, .alarm.off .al { opacity: .5; }

/* Instagram profile buttons */
.ig-actions { display: flex; gap: 6px; padding: 4px 18px 12px; }
.ig-actions button { flex: 1; background: #1f1f1f; color: #f2f2f2; border-radius: 8px; padding: 7px; font-size: 14px; font-weight: 600; }
.ig-actions button.sq { flex: none; width: 36px; }

.photo-viewer-modal button { background: none; border: 0; padding: 0; }
.pv-bottom { padding-bottom: 44px; }

.np-controls button:not(.np-play-btn) { background: none; border: 0; color: #fff; }

.reply-q { font-size: 12px; opacity: .8; border-left: 3px solid currentColor; padding: 2px 8px; margin: 0 0 6px; border-radius: 3px; background: rgba(0,0,0,.06); }
.bubble.me .reply-q { background: rgba(255,255,255,.2); }

.room-messages > * { flex: none; }
.bubble.img-bubble img { min-height: 40px; }

/* ===== Phone app & call screen ala wonbin-phone ===== */
.phone-page .scroll { padding-top: 104px; padding-bottom: 96px; }
.phone-page .lt { margin: 0 16px 8px; }
.srch { margin: 0 16px 14px; height: 36px; border-radius: 10px; background: rgba(118,118,128,.12); display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #8e8e93; font-size: 17px; }
.srch svg { width: 16px; height: 16px; stroke: #8e8e93; fill: none; stroke-width: 2; }
.prow { display: flex; align-items: center; gap: 10px; padding: 0 0 0 16px; position: relative; min-height: 62px; cursor: pointer; }
.prow + .prow::before { content: ''; position: absolute; top: 0; left: 44px; right: 0; height: .5px; background: var(--sep); }
.prow .pi { width: 18px; flex: none; }
.prow .pi svg { width: 15px; height: 15px; fill: #8e8e93; }
.prow .pn { flex: 1; min-width: 0; }
.prow .pn b { display: block; font-size: 17px; font-weight: 600; }
.prow .pn small { color: #8e8e93; font-size: 14px; }
.prow.miss .pn b { color: #ff3b30; }
.prow .pd { color: #8e8e93; font-size: 15px; }
.prow .inf { width: 44px; display: grid; place-items: center; }
.prow .inf svg { width: 22px; height: 22px; stroke: #0a84ff; fill: none; stroke-width: 1.6; }
.phone-page .seg { justify-self: center; display: flex; background: rgba(118,118,128,.18); border-radius: 9px; padding: 2px; }
.phone-page .seg button { border: 0; background: none; font-size: 13px; font-weight: 600; padding: 5px 16px; border-radius: 7px; cursor: pointer; color: #000; }
.phone-page .seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.phone-page .tabbar button { border: 0; background: none; }
.phone-page .tabbar button.on { color: #0a84ff; }
.kp-num { text-align: center; font-size: 34px; min-height: 44px; margin: 8px 0 14px; letter-spacing: 1px; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px 22px; justify-content: center; }
.kp-key { width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(118,118,128,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.kp-key b { font-size: 28px; font-weight: 400; line-height: 1; }
.kp-key small { font-size: 9px; letter-spacing: 2px; color: #444; margin-top: 2px; }
.kp-call { width: 72px; height: 72px; border-radius: 50%; border: 0; background: #34c759; display: grid; place-items: center; cursor: pointer; }
.kp-call svg { width: 30px; height: 30px; fill: #fff; }
.kp-del { border: 0; background: none; font-size: 24px; cursor: pointer; color: #666; }

.call-overlay { background: linear-gradient(180deg, #5d6672 0%, #2a2f37 55%, #15181d 100%); padding-top: 120px; }
.call-overlay.act { padding-top: 84px; }
.call-overlay.act .call-avatar { width: 84px; height: 84px; }
.call-avatar { width: 100px; height: 100px; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.call-name { font-size: 30px; font-weight: 500; margin-top: 14px; }
.call-status { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); }
.call-captions { margin: 22px 20px 0; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.1); border: 0; box-shadow: none; text-align: left; font-size: 17px; align-self: stretch; }
.call-overlay.act .call-actions-grid { position: relative; bottom: auto; left: auto; right: auto; align-self: stretch; margin: auto 30px 58px; padding-top: 16px; gap: 26px 0; }
.call-overlay.act .call-action-btn .c-circle { width: 70px; height: 70px; }
.call-action-btn .c-circle svg { width: 30px; height: 30px; fill: #fff; }
.call-action-btn.end-btn .c-circle svg { fill: #fff; }
.call-action-btn.on .c-circle { background: #fff; }
.call-action-btn.on .c-circle svg, .call-action-btn.on .c-circle svg g { fill: #000; }

.lk-btn:active { background: rgba(0, 0, 0, .5); }
.lk-btn:focus { outline: none; }

/* ===== Photos: Library ala iOS ===== */
.phlib { background: #fff; color: #000; }
.phlib .nav { background: rgba(255,255,255,.92); border-bottom: 0; }
.phlib .scroll { padding-top: 104px; padding-bottom: 0; }
.phlib .lt { margin: 0 16px 0; font-size: 34px; }
.ph-count { color: #8e8e93; font-size: 17px; margin: 2px 16px 22px; }
.ph-month { font-size: 21px; font-weight: 700; margin: 18px 16px 10px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.photo-thumb { aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 14px; }
.ph-cards.one { grid-template-columns: 1fr; }
.ph-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.ph-card.big { aspect-ratio: 4/3; }
.ph-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-card div { position: absolute; left: 12px; bottom: 10px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.ph-card b { display: block; font-size: 19px; }
.ph-card small { font-size: 13px; opacity: .9; }
.ph-seg { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; padding: 4px; border-radius: 30px; background: rgba(235,235,240,.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.ph-seg button { border: 0; background: none; color: #000; font-size: 15px; font-weight: 600; padding: 12px 18px; border-radius: 26px; cursor: pointer; white-space: nowrap; }
.ph-seg button.on { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.15); }

/* ===== Chat: tema default Messages iPhone ===== */
.chat-page, .room-view { background: #fff; }
.chat-page .nb-back, .room-view .nb-back, .room-view .nb-right { color: #007aff; }
.room-view .nav, .chat-page .nav { background: rgba(247,247,247,.94); }
.room-messages { gap: 8px; }
.bubble { font-size: 16px; line-height: 1.3; padding: 8px 13px; border-radius: 19px; box-shadow: none; max-width: 75%; }
.bubble.them { background: #e9e9eb; color: #000; border-bottom-left-radius: 19px; box-shadow: none; }
.bubble.me { background: #007aff; color: #fff; border-bottom-right-radius: 19px; box-shadow: none; }
.bubble.me + .bubble.me, .bubble.them + .bubble.them { margin-top: -6px; }
.bubble.me:not(:has(+ .bubble.me)) { border-bottom-right-radius: 5px; }
.bubble.them:not(:has(+ .bubble.them)) { border-bottom-left-radius: 5px; }
.bubble .b-time { display: none; }
.bubble.img-bubble { background: transparent; padding: 0; }
.bubble.img-bubble img { border-radius: 19px; }
.bubble.img-bubble .caption { color: #000; padding: 4px 4px 0; }
.bubble.me .reply-q { background: rgba(255,255,255,.22); }
.bubble.them .reply-q { background: rgba(0,0,0,.07); }
.dpill span { background: none; color: #8e8e93; font-size: 12px; font-weight: 500; padding: 2px 0; }
.typing-bubble { background: #e9e9eb; box-shadow: none; }
.chat-bottom-bar { background: #fff; border-top: 0; }
.fld { background: #fff; border: 1px solid #c8c8cc; border-radius: 19px; }
.fld .cur { background: #007aff; }
.chat-send-btn { background: #007aff; box-shadow: none; }
.suggestion-chip { border-color: rgba(0,122,255,.4); color: #007aff; box-shadow: none; }
.chat-list-row { background: #fff; }
.room-view .nb-title small { color: #8e8e93 !important; }
.room-view .nb-title small { display: none; }
.room-view .nb-title { padding-bottom: 6px; }
.receipt { align-self: flex-end; margin: -4px 4px 0 0; font-size: 11px; font-weight: 500; color: #8e8e93; }

.pv-main { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pv-main img { -webkit-user-drag: none; user-select: none; }
.photo-viewer-modal .pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18) !important; color: #fff; font-size: 28px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0 0 3px !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pv-nav.prev { left: 8px; }
.pv-nav.next { right: 8px; }
.pv-nav:active { background: rgba(255,255,255,.35) !important; }

/* Mobile: fill the whole screen like a real phone, no frame/background.
   The UI is designed for ~393px width; --s scales it to any phone width and
   --pw/--ph give the logical size so it always covers the real viewport. */
@media (max-width: 600px), (pointer: coarse) and (max-width: 900px) {
  html, body { background: #000; display: block; }
  #particles-canvas { display: none; }
  #phone, #phone.fullscreen-mode {
    position: fixed; left: 0; top: 0;
    width: var(--pw, 393px) !important; height: var(--ph, 852px) !important;
    max-width: none; aspect-ratio: auto !important;
    border-radius: 0 !important; box-shadow: none !important;
    transform: scale(var(--s, 1)); transform-origin: 0 0;
  }
}

/* Now Playing back button */
.np-back { position: absolute; top: 54px; left: 14px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 17px; cursor: pointer; z-index: 2; }
.np-back svg { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spot { display: none !important; }

/* Photo viewer: fit any phone height, never clip the caption */
.photo-viewer-modal { justify-content: flex-start; }
.pv-top { flex: none; }
.pv-main { flex: 1 1 0; min-height: 0; overflow: hidden; }
.pv-main img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.pv-bottom { flex: none; max-height: 34%; overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); overflow-wrap: anywhere; }
.pv-bottom p { line-height: 1.4; }
@media (max-height: 700px) { .pv-top { padding-top: 44px; } .pv-bottom { padding-top: 10px; } }

/* Settings (iOS style) */
.st-pg { background: #f2f2f7; }
.st-scroll { padding-top: 54px; padding-bottom: 60px; }
.st-title { font-size: 34px; font-weight: 700; letter-spacing: -.4px; margin: 0 18px 12px; color: #000; }
.st-search { margin: 0 16px 14px; height: 36px; border-radius: 10px; background: rgba(118,118,128,.12); display: flex; align-items: center; gap: 6px; padding: 0 10px; color: #8e8e93; font-size: 17px; }
.st-search svg { width: 16px; height: 16px; fill: none; stroke: #8e8e93; stroke-width: 2; stroke-linecap: round; }
.st-grp { margin: 0 16px 22px; background: #fff; border-radius: 12px; overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px 0 16px; font-size: 17px; color: #000; position: relative; }
.st-row + .st-row::before { content: ''; position: absolute; top: 0; left: 60px; right: 0; height: .5px; background: var(--sep); }
.st-ic { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex: none; }
.st-ic svg { width: 19px; height: 19px; }
.st-l { flex: 1; min-width: 0; }
.st-v { color: #8e8e93; font-size: 17px; }
.st-ch { width: 8px; height: 14px; fill: none; stroke: #c4c4c7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.st-tg { width: 51px; height: 31px; border-radius: 16px; background: #e9e9ea; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.st-tg i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.st-tg.on { background: #34c759; }
.st-tg.on i { transform: translateX(20px); }
.st-acc { min-height: 82px; padding: 0 14px 0 16px; gap: 16px; }
.st-acc img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; }
.st-acc b { display: block; font-size: 20px; font-weight: 500; }
.st-acc small { display: block; font-size: 14px; color: #8e8e93; margin-top: 2px; }

/* Instagram profile (light, iOS style) */
.ig-lt { background: #fff; color: #000; }
.ig2-hd { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 54px 16px 10px; background: #fff; }
.ig2-hd .nb-back { color: #000; padding: 4px 6px 4px 0; }
.ig2-hd b { flex: 1; font-size: 22px; font-weight: 700; }
.ig2-ic { width: 26px; height: 26px; fill: none; stroke: #000; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ig2-ic.dots { fill: #000; stroke: none; }
.ig2-top { display: flex; align-items: center; gap: 22px; padding: 8px 16px 10px; }
.ig2-pfp { width: 90px; height: 90px; border-radius: 50%; padding: 4px; border: 2px solid #dbdbdb; flex: none; }
.ig2-pfp img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ig2-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.ig2-stats b { display: block; font-size: 19px; font-weight: 700; }
.ig2-stats span { font-size: 14px; color: #000; }
.ig2-bio { padding: 4px 16px 14px; font-size: 14px; line-height: 1.4; }
.ig2-bio b { font-weight: 600; }
.ig2-bio p { margin: 2px 0 0; }
.ig2-act { display: flex; gap: 8px; padding: 0 16px 16px; }
.ig2-act button { flex: 1; height: 36px; background: #efefef; color: #000; border-radius: 9px; font-size: 15px; font-weight: 600; }
.ig2-act button small { font-size: 11px; }
.ig2-act button.sq { flex: none; width: 44px; display: flex; align-items: center; justify-content: center; }
.ig2-act button.sq svg { width: 20px; height: 20px; fill: none; stroke: #000; stroke-width: 1.8; stroke-linecap: round; }
.ig2-tabs { display: flex; border-bottom: .5px solid #dbdbdb; }
.ig2-tabs span { flex: 1; display: flex; justify-content: center; padding: 11px 0; border-bottom: 1px solid transparent; margin-bottom: -.5px; }
.ig2-tabs span.on { border-bottom-color: #000; }
.ig2-tabs svg { width: 24px; height: 24px; fill: none; stroke: #8e8e8e; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ig2-tabs .on svg { stroke: #000; }
.ig2-grid { margin-top: 1px; gap: 1.5px; }
.ig2-grid .ig-grid-item { aspect-ratio: 3 / 4; }
.ig2-grid .ig-grid-item img { object-position: center 25%; }

.st-back { position: absolute; top: 50px; left: 10px; z-index: 10; color: #007aff; }
.st-scroll { padding-top: 86px; }
.ig-lt, .ig-lt button { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ig2-hd { gap: 12px; padding-bottom: 8px; }
.ig2-hd b { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.ig2-ic { width: 24px; height: 24px; stroke-width: 1.6; }
.ig2-pfp { width: 86px; height: 86px; padding: 3px; border: 1px solid #dbdbdb; }
.ig2-stats b { font-size: 17px; font-weight: 600; }
.ig2-stats span { font-size: 13.5px; color: #262626; }
.ig2-bio { font-size: 13.5px; padding-bottom: 12px; }
.ig2-bio b { font-weight: 600; font-size: 13.5px; letter-spacing: 0; font-family: inherit; }
.ig2-act { padding-bottom: 12px; }
.ig2-act button { border: 0; outline: 0; box-shadow: none; -webkit-appearance: none; appearance: none; height: 32px; border-radius: 8px; font-size: 13.5px; font-weight: 600; padding: 0; cursor: pointer; }
.ig2-act button.sq { width: 36px; }
.ig2-act button.sq svg { width: 18px; height: 18px; }
.ig2-tabs span { padding: 10px 0; }
.ig2-tabs svg { width: 22px; height: 22px; stroke-width: 1.5; }
.ig2-grid { gap: 1px; margin-top: 0; }
.ig2-grid .ig-grid-item { aspect-ratio: 4 / 5; }
.ig-lt .ig-grid-item img { filter: none; }

/* Instagram post detail (dark, scrolling feed) */
.igp { position: absolute; inset: 0; z-index: 60; background: #0b1016; color: #f5f5f5; display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.igp-top { flex: none; position: relative; display: flex; align-items: center; justify-content: center; padding: 52px 16px 12px; }
.igp-top b { font-size: 17px; font-weight: 600; }
.igp-back { position: absolute; left: 14px; bottom: 10px; padding: 4px 6px; cursor: pointer; }
.igp-back svg { width: 12px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.igp-feed { flex: 1 1 0; min-height: 0; overflow-y: auto; scroll-snap-type: y proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.igp-feed::-webkit-scrollbar { display: none; }
.igp-post { scroll-snap-align: start; padding-bottom: 26px; }
.igp-hd { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.igp-av { width: 38px; height: 38px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #f9b233, #e1306c 55%, #a033c8); flex: none; }
.igp-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #0b1016; display: block; box-sizing: border-box; }
.igp-hd b { flex: 1; font-size: 15px; font-weight: 600; }
.igp-dots { width: 22px; height: 22px; fill: #fff; }
.igp-img { position: relative; background: #000; }
.igp-img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.igp-burst { position: absolute; left: 50%; top: 50%; font-size: 90px; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.igp-burst.go { animation: igpburst .8s ease-out; }
@keyframes igpburst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 70% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.igp-act { display: flex; align-items: center; gap: 18px; padding: 12px 14px 6px; }
.igp-act span { display: flex; cursor: pointer; }
.igp-act .sp { flex: 1; }
.igp-act svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.igp-like.on svg { fill: #ff3040; stroke: #ff3040; }
.igp-likes, .igp-cap, .igp-vc, .igp-cm, .igp-time { padding: 2px 14px; font-size: 14px; line-height: 1.35; }
.igp-likes b, .igp-cap b, .igp-cm b { font-weight: 600; }
.igp-vc { color: #a8a8a8; cursor: pointer; margin-top: 2px; }
.igp-cm div { margin-top: 2px; }
.igp-time { color: #a8a8a8; font-size: 13px; margin-top: 2px; }
.igp-act span { align-items: center; gap: 6px; }
.igp-act em { font-style: normal; font-size: 14px; font-weight: 600; }

/* Lockscreen reminder (iOS Reminders look) */
.lk-notes .ncard.rem { align-items: center; gap: 14px; padding: 14px 16px; border-radius: 26px; background: rgba(150,142,148,.72); border: 0; box-shadow: none; color: #fff; -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); }
.lk-notes .ncard.rem .rem-ic { width: 42px; height: 42px; border-radius: 10px; box-shadow: none; }
.lk-notes .ncard.rem .rem-ic svg { width: 100%; height: 100%; display: block; }
.lk-notes .ncard.rem .nh { font-size: 16px; font-weight: 600; color: #111; }
.lk-notes .ncard.rem .nh small { font-size: 14px; font-weight: 400; color: rgba(0,0,0,.45); }
.lk-notes .ncard.rem .nb { font-size: 16px; margin-top: 2px; color: #1a1a1a; -webkit-line-clamp: 1; }

/* Widgets: Calendar + Weather (iOS look) */
.widget { aspect-ratio: 1; border-radius: 30px; padding: 16px 16px 14px; }
.w-couple { background: #fff; color: #000; display: block; -webkit-backdrop-filter: none; backdrop-filter: none; }
.w-couple .wc-dow { font-size: 17px; font-weight: 600; color: #f0483e; line-height: 1; }
.w-couple .wc-num { font-size: 52px; font-weight: 300; line-height: 1; margin: 6px 0 9px; letter-spacing: -1px; }
.w-couple .wc-ev { display: flex; gap: 7px; align-items: stretch; margin-top: 5px; }
.w-couple .wc-ev i { width: 3px; border-radius: 2px; background: #a855d8; flex: none; }
.w-couple .wc-ev div { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.w-couple .wc-ev b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-couple .wc-ev span { font-size: 13px; color: #8e8e93; }
.w-weather { background: linear-gradient(180deg, #4a86e0 0%, #6aa5ee 100%); display: flex; flex-direction: column; justify-content: flex-end; }
.w-weather .ww-sun { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; }
.w-weather .loc { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.w-weather .temp { font-size: 56px; font-weight: 300; line-height: 1.02; letter-spacing: -1px; }
.w-weather .desc { font-size: 13px; font-weight: 400; line-height: 1.25; }
.w-weather .desc b { font-weight: 600; font-size: 15px; }

/* Incoming call (iOS ringing layout) */
.call-overlay:not(.act) .call-actions-grid { display: flex; flex-direction: column; gap: 34px; left: 0; right: 0; bottom: 56px; padding: 0 36px; }
.call-overlay:not(.act) .ring-row { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.call-overlay:not(.act) .call-action-btn { font-size: 15px; gap: 8px; }
.call-overlay:not(.act) .ring-sm .c-circle { width: 62px; height: 62px; background: rgba(120,120,128,.55); }
.call-overlay:not(.act) .ring-sm .c-circle svg { width: 26px; height: 26px; }
.call-overlay:not(.act) .ring-row .end-btn .c-circle, .call-overlay:not(.act) .ring-row .answer-btn .c-circle { width: 76px; height: 76px; }
.call-overlay:not(.act) .end-btn .c-circle { background: #ee4d3d; }
.call-overlay:not(.act) .answer-btn .c-circle { background: #65c466; animation: none; }
.call-overlay:not(.act) .ring-row:first-child { padding: 0 6px; }
.call-overlay:not(.act) .call-status { color: rgba(255,255,255,.65); }
.lk-notes .ncard.rem .ni:not(.rem-ic) { width: 42px; height: 42px; border-radius: 10px; box-shadow: none; }

/* Safari: Google search result (Chrome mobile look) */
.gs { background: #fff; color: #202124; font-family: Roboto, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif; }
.gs svg { fill: none; stroke: #5f6368; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-url { position: absolute; top: 50px; left: 10px; right: 10px; height: 44px; z-index: 5; background: #f1f3f4; border-radius: 12px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 17px; font-weight: 500; }
.gs-url span { flex: 1; text-align: center; }
.gs-url svg { width: 20px; height: 20px; flex: none; }
.gs-url .gs-lock { fill: #5f6368; stroke: none; width: 17px; height: 17px; }
.gs-body { padding: 106px 16px 80px !important; }
.gs-head { display: flex; align-items: center; justify-content: center; position: relative; height: 56px; }
.gs-logo { font-size: 30px; letter-spacing: -1px; }
.gs-logo b { font-weight: 500; }
.gs-bell { position: absolute; right: 52px; width: 24px; height: 24px; }
.gs-av { position: absolute; right: 0; width: 32px; height: 32px; border-radius: 50%; background: #0b8043; color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 500; }
.gs-q { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; padding: 0 14px; margin: 4px 0 8px; background: #fff; box-shadow: 0 1px 6px rgba(32,33,36,.28); font-size: 17px; }
.gs-q svg { width: 20px; height: 20px; flex: none; }
.gs-q span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gs-q i { width: 1px; height: 24px; background: #dadce0; }
.gs-tabs { display: flex; gap: 22px; font-size: 14.5px; color: #5f6368; overflow-x: auto; border-bottom: 1px solid #dadce0; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.gs-tabs::-webkit-scrollbar { display: none; }
.gs-tabs span { padding: 12px 0 10px; white-space: nowrap; }
.gs-tabs .on { color: #202124; border-bottom: 3px solid #202124; font-weight: 500; }
.gs-ai { padding: 18px 0 16px; }
.gs-aih { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #3c4043; margin-bottom: 14px; }
.gs-aih svg { width: 18px; height: 18px; stroke: none; }
.gs-clip { position: relative; max-height: 230px; overflow: hidden; transition: max-height .35s ease; }
.gs-clip.open { max-height: 1200px; }
.gs-clip:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.gs-lead { font-size: 18px; line-height: 1.5; margin: 0 0 16px; }
.gs-lead mark { background: #d3e3fd; color: #041e49; border-radius: 3px; }
.gs-clip h3 { font-size: 21px; font-weight: 600; margin: 8px 0 12px; line-height: 1.3; }
.gs-clip ul { margin: 0; padding-left: 22px; }
.gs-clip li { font-size: 17px; line-height: 1.55; margin-bottom: 10px; color: #3c4043; }
.gs-clip li b { color: #202124; }
.gs-more { margin-top: 14px; width: 100%; height: 50px; border-radius: 25px; border: 1px solid #c2d7f5; background: #fff; color: #041e49; font-size: 17px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-family: inherit; }
.gs-more svg { width: 18px; height: 18px; stroke: #041e49; transition: transform .2s; }
.gs-sep { height: 12px; background: #eceff1; margin: 4px -16px 16px; }
.gs-res { margin-bottom: 26px; }
.gs-rh { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gs-rh > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.gs-rh b { font-size: 16px; font-weight: 400; }
.gs-rh small { font-size: 13.5px; color: #5f6368; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-rh svg { width: 20px; height: 20px; fill: #5f6368; stroke: none; }
.gs-fav { width: 36px; height: 36px; border-radius: 50%; background: #f1f3f4; border: 1px solid #e0e0e0; display: grid; place-items: center; color: #ea6a2a; font-weight: 700; flex: none; }
.gs-res a { display: block; font-size: 22px; line-height: 1.3; color: #1a0dab; margin-bottom: 8px; }
.gs-res p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #4d5156; }
.gs-res p span { color: #70757a; }
.gs-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; padding: 0 8px 16px; background: #f8f9fa; border-top: 1px solid #e0e0e0; display: flex; justify-content: space-around; align-items: center; z-index: 6; }
.gs-nav svg { width: 24px; height: 24px; cursor: pointer; }

/* Photo viewer (iOS Photos look) */
.photo-viewer-modal { background: #000; justify-content: flex-start; }
.photo-viewer-modal .pv-top { padding: 54px 14px 12px; background: none; display: grid; grid-template-columns: 44px 1fr 56px; align-items: center; flex: none; }
.pv-chev { width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: #fff; }
.pv-chev svg { width: 12px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-ttl { text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.pv-ttl b { font-size: 17px; font-weight: 600; }
.pv-ttl small { font-size: 14px; color: rgba(255,255,255,.6); }
.photo-viewer-modal .pv-edit { color: #fff; font-size: 17px; text-align: right; cursor: pointer; font-family: inherit; }
.photo-viewer-modal .pv-main { padding: 0; }
.photo-viewer-modal .pv-main img { max-width: 100%; max-height: 100%; width: 100%; height: auto; object-fit: contain; border-radius: 0; }
.pv-info { flex: none; padding: 12px 20px; background: rgba(28,28,30,.96); border-radius: 16px 16px 0 0; max-height: 28%; overflow-y: auto; overflow-wrap: anywhere; }
.pv-info h3 { font-size: 17px; font-weight: 600; }
.pv-info p { margin-top: 4px; font-size: 14px; line-height: 1.4; opacity: .85; }
.pv-info small { display: block; margin-top: 8px; font-size: 12.5px; opacity: .55; }
.pv-tools { flex: none; display: flex; justify-content: space-between; padding: 14px 30px 36px; background: #000; }
.photo-viewer-modal .pv-tools button { width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.pv-tools svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pv-tools #pv-heart.on svg { fill: #ff3b5c; stroke: #ff3b5c; }
.pv-tools #pv-i svg { width: 28px; height: 28px; }

/* Notes list (iOS Notes look) */
.nt-pg { background: #f2f2f7; }
.nt-back { position: absolute; top: 50px; left: 10px; z-index: 10; color: #e0a924 !important; font-size: 17px; }
.nt-back svg { stroke: #e0a924; }
.nt-scroll { padding: 92px 16px 0 !important; }
.nt-title { font-size: 40px; font-weight: 800; letter-spacing: -.5px; margin: 8px 2px 10px; color: #000; }
.nt-search { display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 11px; background: rgba(118,118,128,.12); padding: 0 11px; color: #8e8e93; font-size: 17px; margin-bottom: 18px; }
.nt-search svg { width: 17px; height: 17px; fill: none; stroke: #8e8e93; stroke-width: 2; stroke-linecap: round; }
.nt-sec { font-size: 14px; color: #8e8e93; margin: 0 0 8px 14px; letter-spacing: .2px; }
.nt-sec span { font-size: 12px; }
.nt-grp { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.nt-grp .notes-list-item { padding: 10px 16px 11px 28px; margin-left: 0; }
.nt-grp .notes-list-item { padding-left: 16px; border-bottom: .5px solid #d1d1d6; }
.nt-grp .notes-list-item:last-child { border-bottom: 0; }
.nt-grp .notes-list-item b { font-size: 17px; font-weight: 600; color: #000; }
.nt-grp .notes-list-item p { font-size: 15px; color: #8e8e93; margin-top: 2px; }
.nt-grp .notes-list-item p span { color: #3c3c43; margin-right: 8px; }
.nt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: rgba(247,247,247,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: .5px solid #d1d1d6; display: flex; align-items: flex-start; justify-content: center; padding-top: 16px; font-size: 12.5px; color: #000; }
.nt-bar svg { position: absolute; right: 22px; top: 10px; width: 26px; height: 26px; fill: none; stroke: #e0a924; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
