/* SONSUZ ASKIMIZ - Tek dosya mobil UI */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #ff2d6f;
  --pink-light: #ff6b9d;
  --pink-soft: #ffe0eb;
  --pink-bg: #fff0f5;
  --chat-bg: #e8ddd4;
  --dark: #4a0e2e;
  --nav-h: 62px;
  --compose-h: 84px;
  --chat-bottom-pad: 100px;
  --vv-inset-bottom: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-bottom: var(--nav-h);
}

html.in-browser .phone-shell,
html.in-browser #app-container {
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  max-height: 100dvh;
}

html.in-browser body {
  min-height: 100svh;
  min-height: 100dvh;
}

html {
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow: hidden;
}

html, body {
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  max-height: 100dvh;
  background: linear-gradient(135deg, #ff9ec5, #ff2d6f, #c9184a);
  background-size: 200% 200%;
  animation: gradMove 10s ease infinite;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}

@keyframes gradMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
#bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(74, 14, 46, 0.38);
}
#app-container.has-bg {
  background: transparent;
}
#app-container.has-bg #chat-screen {
  background: rgba(232, 221, 212, 0.82);
}
#app-container.has-bg #counter-screen,
#app-container.has-bg #planner-screen,
#app-container.has-bg #lists-screen,
#app-container.has-bg #gallery-screen,
#app-container.has-bg #wheel-screen {
  background: rgba(255, 240, 245, 0.88);
}

.privacy-shield {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 200;
  background: linear-gradient(165deg, #3d0f24, #5c1530);
  pointer-events: none;
}
.privacy-shield.visible {
  display: block;
}
.privacy-shield::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.35;
}

#app-container {
  position: relative;
  z-index: 1;
  width: 100%; max-width: 430px;
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  max-height: 100dvh;
  max-height: -webkit-fill-available;
  background: #fff;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,.2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#app-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#login-screen.hidden,
.love-login.hidden,
.baciyan-login.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

#app-content {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
#app-content.visible {
  display: flex !important;
  pointer-events: auto !important;
}

.header {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  box-shadow: 0 2px 12px rgba(255,45,111,.3);
}
.db-error-banner {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 16px;
  background: rgba(20, 8, 16, 0.72);
  backdrop-filter: blur(4px);
}
.db-error-banner[hidden] { display: none !important; }
.db-error-banner__inner {
  max-width: 360px;
  width: 100%;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff5f8;
  border: 1px solid rgba(201, 24, 74, 0.25);
  color: #4a0e2e;
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.db-error-banner__inner strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #c9184a;
}
.db-error-banner__inner code {
  background: rgba(255, 45, 111, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.78rem;
}
.db-error-banner__btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #ff2d6f, #ff6b9d);
  color: #fff;
}

.header-top { display: flex; align-items: center; justify-content: space-between; }
.header-title-wrap { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
.header-title-block { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.header-title-row #header-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-countdown {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  letter-spacing: 0.03em;
}
.session-countdown--warn {
  background: rgba(255, 220, 100, 0.35);
  animation: sessionPulse 1s ease-in-out infinite;
}
@keyframes sessionPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.header-logged-as { display: block; font-size: .72rem; font-weight: 600; color: rgba(74, 14, 46, .55); }
.partner-presence {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  margin-top: 1px;
}
.partner-presence--online { color: rgba(255, 255, 255, .92); }
.presence-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}
.presence-dot--online {
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, .25), 0 0 8px rgba(74, 222, 128, .55);
}
.presence-dot--offline { background: rgba(255, 255, 255, .28); }
.mood-online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  background: rgba(255, 255, 255, .25);
}
.mood-online-dot--on {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, .65);
}
.header-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn {
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.2); cursor: pointer; font-size: 1.1rem;
}
.mood-bar { display: flex; gap: 8px; margin-top: 10px; }
.mood-chip {
  flex: 1; padding: 7px 10px; border: none; border-radius: 20px;
  background: rgba(255,255,255,.22); color: #fff;
  font-size: .78rem; font-weight: 700; cursor: pointer;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.screen.active { display: flex; }

#chat-screen { background: var(--chat-bg); }

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chat-container::-webkit-scrollbar { display: none; }

.msg {
  max-width: 80%; padding: 10px 14px;
  border-radius: 18px; font-size: .92rem; line-height: 1.4;
}
.msg--new { animation: msgIn .25s ease; }
@keyframes msgIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.msg.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #ff9ec5, var(--pink-light));
  color: #fff; border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(255,45,111,.25);
}
.msg.received {
  align-self: flex-start; background: #fff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); color: var(--dark);
}
.msg-time { display: block; font-size: .62rem; opacity: .65; margin-top: 4px; text-align: right; }
.msg-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; }
.msg-meta .msg-time { margin-top: 0; }
.msg-read { font-size: .72rem; opacity: .9; letter-spacing: -3px; }
.msg-read.is-read { color: #81d4fa; opacity: 1; }
.msg.received .msg-read { display: none; }
.msg-image { max-width: 200px; border-radius: 12px; display: block; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.msg-video { max-width: 200px; border-radius: 12px; }

.chat-input-wrapper {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.chat-compose {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
}

.media-toolbar {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
}
.media-toolbar.open { max-height: 110px; opacity: 1; }
.media-panel { padding: 10px 14px 4px; }
.media-panel-title {
  font-size: .62rem; font-weight: 800; color: #bbb;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.media-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; border: none; border-radius: 14px; cursor: pointer; font-family: inherit;
}
.media-card--photo { background: linear-gradient(135deg,#d4f5e9,#a8edea); }
.media-card--voice { background: linear-gradient(135deg,#ffd6e0,#ffb3c6); }
.media-card--video { background: linear-gradient(135deg,#e8d5ff,#c3b1e1); }
.media-card-icon { font-size: 1.4rem; }
.media-card-label { font-size: .62rem; font-weight: 700; color: var(--dark); }

.chat-input-area {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 12px;
}
.attach-toggle {
  width: 42px; height: 42px; flex-shrink: 0;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--pink-soft); color: var(--pink);
  font-size: 1.4rem; font-weight: 700;
}
.attach-toggle.open { transform: rotate(45deg); background: var(--pink); color: #fff; }
.chat-input {
  flex: 1; min-width: 0;
  padding: 11px 16px; border: 2px solid var(--pink-soft);
  border-radius: 24px; outline: none; font-size: 16px;
  font-family: inherit; background: var(--pink-bg);
  -webkit-appearance: none;
  appearance: none;
}
.chat-input:focus { border-color: var(--pink-light); }

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 6, 16, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.upload-overlay[hidden] { display: none !important; }
.upload-overlay-box {
  text-align: center;
  padding: 28px 24px;
  border-radius: 20px;
  background: #fff;
  max-width: 280px;
  margin: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.upload-overlay-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border: 3px solid var(--pink-soft);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: uploadSpin 0.8s linear infinite;
}
@keyframes uploadSpin { to { transform: rotate(360deg); } }
.upload-overlay-box p {
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.upload-overlay-hint {
  display: block;
  font-size: 0.72rem;
  color: #888;
}

.send-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  border: none; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 3px 12px rgba(255,45,111,.35);
}

.bottom-nav {
  flex-shrink: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--pink-soft);
  padding: 6px 4px calc(6px + var(--safe-bottom));
  box-shadow: 0 -2px 16px rgba(255,45,111,.08);
  z-index: 60;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: .58rem; font-weight: 700; color: #ffc0d4;
  padding: 4px 2px;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--pink); }
.nav-icon { font-size: 1.25rem; line-height: 1; }
.nav-item span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ─── Telefon çerçevesi (masaüstü) ─── */
.phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  max-height: 100dvh;
  max-height: -webkit-fill-available;
  flex-shrink: 0;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.phone-shell::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.phone-notch,
.phone-home-bar {
  display: none;
}

@media (min-width: 520px) {
  body {
    align-items: center;
    padding: 20px 16px;
  }

  .phone-shell {
    width: min(390px, calc(100vw - 32px));
    max-width: 390px;
    height: min(844px, calc(100dvh - 40px));
    max-height: 844px;
    padding: 12px;
    border-radius: 48px;
    background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 45%, #2c2c2e 100%);
    box-shadow:
      0 40px 90px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .phone-notch {
    display: block;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 30px;
    background: #0a0a0a;
    border-radius: 0 0 20px 20px;
    z-index: 100;
    pointer-events: none;
  }

  .phone-home-bar {
    display: block;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    z-index: 100;
    pointer-events: none;
  }

  #app-container {
    border-radius: 38px;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .header {
    padding-top: calc(18px + var(--safe-top));
    border-radius: 38px 38px 0 0;
  }

  .bottom-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0 0 38px 38px;
    padding-bottom: calc(10px + var(--safe-bottom));
  }

  #app-content.visible {
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 4px);
  }

  #app-container {
    position: relative;
  }
}

@media (max-width: 519px) {
  .phone-shell {
    max-width: 100%;
    height: 100svh;
    height: 100dvh;
    max-height: 100svh;
    max-height: 100dvh;
  }

  #app-content.visible {
    padding-bottom: var(--dock-bottom);
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--vv-inset-bottom, 0px);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    z-index: 60;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  /* Sohbet: yazma alanı menünün hemen üstünde sabit (tarayıcı + PWA) */
  #chat-screen.active .chat-compose {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--dock-bottom) + var(--vv-inset-bottom, 0px));
    z-index: 55;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    max-width: 100%;
  }

  #chat-screen.active .chat-input-wrapper {
    border-top: 1px solid #eee;
    box-shadow: none;
  }

  #chat-screen.active .chat-container {
    flex: 1;
    min-height: 0;
    padding-bottom: var(--chat-bottom-pad, calc(var(--compose-h) + 16px));
    scroll-padding-bottom: var(--chat-bottom-pad, calc(var(--compose-h) + 16px));
  }

  #chat-screen.active:has(.media-toolbar.open) .chat-container {
    padding-bottom: calc(var(--compose-h) + 140px);
  }

  #chat-screen.active:has(#reply-preview.visible) .chat-container,
  #chat-screen.active:has(#typing-indicator.visible) .chat-container {
    padding-bottom: calc(var(--compose-h) + 56px);
  }

  html.keyboard-open,
  html.keyboard-open body {
    overflow: hidden;
    height: 100%;
  }

  html.keyboard-open #chat-screen.active .chat-compose {
    bottom: calc(var(--dock-bottom) + var(--vv-inset-bottom, 0px));
  }

  html.keyboard-open #chat-screen.active .chat-container {
    padding-bottom: calc(var(--chat-bottom-pad) + var(--vv-inset-bottom, 0px));
  }
}

#counter-screen, #planner-screen, #lists-screen, #gallery-screen, #wheel-screen { background: var(--pink-bg); }
.counter-container { flex: 1; overflow-y: auto; padding: 16px; scrollbar-width: none; -ms-overflow-style: none; }
.counter-container::-webkit-scrollbar { display: none; }
.counter-box, .date-picker-box, .add-plan-box, .gallery-upload-box {
  background: #fff; border-radius: 18px; padding: 20px;
  margin-bottom: 14px; border: 2px solid var(--pink-soft);
  box-shadow: 0 4px 16px rgba(255,45,111,.08);
}
.numbers { font-size: 3.2rem; font-weight: 800; color: var(--pink); }
.sub-tabs {
  flex-shrink: 0; display: flex; gap: 6px;
  padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--pink-soft);
}
.sub-tab {
  flex: 1; padding: 9px 6px; border: none; border-radius: 12px;
  background: var(--pink-bg); font-size: .72rem; font-weight: 700;
  color: #888; cursor: pointer; font-family: inherit;
}
.sub-tab.active { background: linear-gradient(135deg,var(--pink),var(--pink-light)); color: #fff; }
.planner-container, .lists-container, .gallery-container, .wheel-container {
  flex: 1; overflow-y: auto; padding: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.planner-container::-webkit-scrollbar,
.lists-container::-webkit-scrollbar,
.gallery-container::-webkit-scrollbar,
.wheel-container::-webkit-scrollbar { display: none; }
.plan-input, .date-picker, .time-picker {
  width: 100%; padding: 11px; border: 2px solid var(--pink-soft);
  border-radius: 12px; font-size: .9rem; font-family: inherit; outline: none;
  margin-bottom: 8px; background: var(--pink-bg);
}
.save-counter-btn, .add-btn, .upload-btn {
  width: 100%; padding: 13px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff; font-weight: 800; font-size: .95rem; cursor: pointer; font-family: inherit;
}
.upload-btn { display: inline-block; width: auto; padding: 10px 18px; margin: 8px 4px 0; }
.upload-btn--purple { background: linear-gradient(135deg,#6c5ce7,#a29bfe); }
.plan-card {
  background: #fff; padding: 14px; border-radius: 14px; margin-bottom: 10px;
  border-left: 4px solid var(--pink); display: flex; gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.gallery-item img { pointer-events: none; }
.gallery-item--video { cursor: pointer; }
.gallery-item--video video { pointer-events: none; }
.gallery-play-btn {
  position: absolute; inset: 0; z-index: 3; margin: auto;
  width: 56px; height: 56px; border: none; border-radius: 50%;
  background: rgba(255, 45, 111, 0.9); color: #fff; font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer;
}
.gallery-play-btn:active { transform: scale(0.96); }

.voice-player {
  display: flex; align-items: center; gap: 10px;
  min-width: 180px; max-width: 240px;
  padding: 8px 10px; border-radius: 16px;
  background: rgba(255,255,255,.18);
}
.msg.received .voice-player { background: rgba(255, 45, 111, 0.08); }
.voice-play-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff; font-size: 1rem; cursor: pointer;
  box-shadow: 0 3px 10px rgba(255,45,111,.3);
}
.voice-player-body { flex: 1; min-width: 0; }
.voice-player-bar {
  height: 6px; border-radius: 99px; background: rgba(0,0,0,.12); overflow: hidden; margin-bottom: 4px;
}
.msg.sent .voice-player-bar { background: rgba(255,255,255,.28); }
.voice-player-progress {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #ff6b9d, #ff2d6f);
  border-radius: inherit; transition: width .1s linear;
}
.voice-player-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: .62rem; font-weight: 700; opacity: .8;
}
.voice-audio-el { display: none !important; width: 0; height: 0; }

.media-lightbox-inner video {
  max-width: min(92vw, 520px);
  max-height: 82vh;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.media-shield { position: absolute; inset: 0; z-index: 2; pointer-events: auto; background: transparent; }
.modal {
  position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal[hidden] { display: none !important; }
.modal-content {
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 24px; width: 100%; max-width: 430px; max-height: 80vh; overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-content::-webkit-scrollbar { display: none; }
#toast {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,var(--pink),var(--pink-light));
  color: #fff; padding: 10px 20px; border-radius: 20px;
  font-size: .82rem; font-weight: 700; z-index: 999; display: none; width: 88%; text-align: center;
}
.empty-hint { text-align: center; color: #bbb; padding: 30px 16px; font-size: .88rem; }

.counter-box h3 { font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.time-label { font-size: .8rem; color: var(--pink-light); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.time-details { display: flex; justify-content: space-around; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--pink-bg); }
.time-col { text-align: center; }
.time-col .val { font-size: 1.3rem; font-weight: 800; display: block; color: var(--dark); }
.time-col .lbl { font-size: .6rem; color: #aaa; font-weight: 700; }
.counter-empty { text-align: center; padding: 20px 0; }
.counter-empty-icon { font-size: 2.5rem; margin-bottom: 8px; }
.date-picker-label { font-size: .85rem; font-weight: 700; color: #666; display: block; margin-bottom: 10px; }
.datetime-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.saved-info { display: none; margin-top: 12px; padding: 10px; background: var(--pink-bg); border-radius: 10px; font-size: .8rem; color: var(--pink-light); font-weight: 700; }
.saved-info.visible { display: flex; gap: 6px; align-items: center; }
.add-plan-box h3 { font-weight: 800; margin-bottom: 12px; color: var(--dark); }
.plan-title { font-weight: 800; font-size: .92rem; }
.plan-date, .plan-location { font-size: .78rem; color: var(--pink-light); margin-top: 3px; font-weight: 600; }
.plan-countdown-badge { display: inline-block; margin-top: 6px; padding: 3px 10px; background: var(--pink-bg); color: var(--pink); border-radius: 10px; font-size: .68rem; font-weight: 800; }
.plan-moodboard { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.plan-info { flex: 1; min-width: 0; }
.counter-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.counter-card-top .time-label { margin: 0; text-align: left; }
.counter-card-actions { flex-direction: row !important; }
.counter-card .numbers { text-align: center; }
.counter-card .saved-info { display: flex; }
.complete-btn, .delete-btn, .delete-img-btn, .delete-list-btn {
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: var(--pink-bg); color: var(--pink); cursor: pointer; font-size: 1rem;
}
.list-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 12px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.list-check-label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.list-title { font-weight: 600; font-size: .9rem; }
.list-item.done .list-title { text-decoration: line-through; opacity: .5; }
.star-rating { display: flex; gap: 1px; }
.star-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; }
.gallery-upload-box h3 { font-weight: 800; margin-bottom: 6px; }
.gallery-upload-box p { font-size: .78rem; color: #888; margin-bottom: 4px; }
.gallery-type-badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.5); color: #fff; font-size: .58rem; padding: 2px 7px; border-radius: 8px; font-weight: 700; }
.media-watermark { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); background: rgba(255,45,111,.8); color: #fff; font-size: .55rem; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.wheel-wrap { display: flex; flex-direction: column; align-items: center; padding: 10px 0; position: relative; }
.wheel-pointer { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 1.4rem; color: var(--pink); z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.2); line-height: 1; }
#wheel-canvas { border-radius: 50%; box-shadow: 0 4px 20px rgba(0,0,0,.15); margin-top: 8px; }
.wheel-spin-btn { margin-top: 16px; padding: 14px 48px; border: none; border-radius: 30px; background: linear-gradient(135deg,var(--pink),var(--pink-light)); color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; font-family: inherit; }
.wheel-result { text-align: center; font-weight: 800; color: var(--pink); min-height: 28px; margin: 10px 0; }
.wheel-option-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fff; border-radius: 10px; margin-bottom: 6px; font-size: .88rem; }
.mood-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.mood-option-btn { padding: 14px; border: 2px solid var(--pink-soft); border-radius: 14px; background: var(--pink-bg); font-size: .88rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.bg-picker { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 10px 0; }
.bg-picker-item { aspect-ratio: 1; border: 3px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: none; }
.bg-picker-item.selected { border-color: var(--pink); }
.bg-picker-item img { width: 100%; height: 100%; object-fit: cover; }
.modal-close { width: 100%; padding: 12px; margin-top: 10px; border: none; border-radius: 12px; background: #eee; font-weight: 700; cursor: pointer; font-family: inherit; }
.plan-input-label { font-size: .82rem; font-weight: 700; color: #666; display: block; margin: 8px 0 4px; }
.notif-status { font-size: .75rem; color: #888; margin: 2px 0 10px; line-height: 1.45; }
.settings-divider { border: none; border-top: 1px solid #eee; margin: 18px 0 12px; }
.btn-danger { background: linear-gradient(135deg, #c9184a, #ff4d6d) !important; margin-top: 4px; }
#recording-overlay {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  z-index: 50;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 700;
  color: #666;
  min-width: 240px;
}
#recording-overlay.visible { display: flex; }
.rec-controls { display: flex; gap: 8px; width: 100%; justify-content: center; flex-wrap: wrap; }
.rec-btn { border: none; border-radius: 12px; padding: 10px 14px; font-size: .78rem; font-weight: 800; cursor: pointer; font-family: inherit; flex: 1; min-width: 70px; }
.rec-btn--delete { background: #ffe0e0; color: #c9184a; }
.rec-btn--stop { background: var(--pink-bg); color: var(--pink); }
.rec-btn--send { background: linear-gradient(135deg,var(--pink),var(--pink-light)); color: #fff; flex: 1 1 100%; }
.rec-btn--send:not([hidden]) { display: block; }
.rec-wave { display: flex; gap: 3px; height: 24px; align-items: center; }
.rec-wave span { width: 3px; background: var(--pink); border-radius: 2px; animation: wave .7s ease-in-out infinite; }
.rec-wave span:nth-child(1){height:8px} .rec-wave span:nth-child(2){height:16px;animation-delay:.1s} .rec-wave span:nth-child(3){height:22px;animation-delay:.2s} .rec-wave span:nth-child(4){height:16px;animation-delay:.3s} .rec-wave span:nth-child(5){height:8px;animation-delay:.4s}
@keyframes wave { 0%,100%{transform:scaleY(.5)} 50%{transform:scaleY(1)} }
.rec-label { display: flex; align-items: center; gap: 6px; }
.rec-dot { width: 8px; height: 8px; background: var(--pink); border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.msg-audio-wrap { display: flex; align-items: center; gap: 8px; }
.msg-audio { width: 160px; height: 32px; }
.protected-wrap { position: relative; }
