/* =========================================================
   Flo — tasarım sistemi
   Sakin, sıcak, "oh" dedirten. Az şey, özenle.
   ========================================================= */
:root {
  --bg: #fdeae7;
  --bg-deep: #f6d8d3;
  --card: #fef3f0;
  --card-soft: #fcdcd8;
  --border: #f8e3df;
  --border-strong: #f2cdc9;

  --rose: #db647c;
  --rose-deep: #b75265;
  --rose-soft: #f5c2cb;
  --rose-pale: #fbe3e1;
  --rose-tint: #fdf0ee;

  --plum: #4c2229;        /* hero başlığı, kart başlıkları (koyu kahve-bordo) */
  --ink-title: #6f1830;   /* ekran başlıkları, ay adı, istatistik değerleri (bordo) */
  --plum-soft: #8c6f76;
  --muted: #b59da1;

  --yellow: #fbe7b3;   --yellow-ink: #d9a63b;
  --peach: #fadccb;    --peach-ink: #d98a5b;
  --lavender: #e7dff3; --lavender-ink: #8f7cbf;
  --sage: #e9f0e3;     --sage-ink: #7f9a6e;

  --period: #dc647c;
  --predicted: #fbdfe0;
  --ovulation: #fbe4c0;
  --fertile: #fdeee1;

  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 6px 18px rgba(219, 100, 124, 0.07);
  --shadow-strong: 0 10px 24px rgba(219, 100, 124, 0.20);

  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-hello: 'Delius', 'Comic Neue', 'Nunito', cursive;
  --font-logo: 'Kaushan Script', 'Brush Script MT', cursive;
  --font-hand: 'Caveat', 'Segoe Script', cursive;

  --tabbar-h: 82px;
  --statusbar-h: 48px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--plum);
  background:
    radial-gradient(60% 50% at 0% 0%, #fce4df 0%, transparent 60%),
    radial-gradient(50% 40% at 100% 100%, #f8dcd6 0%, transparent 60%),
    #f9e6e2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body, button, a, label, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--rose-soft); outline-offset: 2px; }
svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- telefon çerçevesi (masaüstünde) ---------- */
.page {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}
.phone {
  position: relative;
  width: 390px;
  height: 800px;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(70% 40% at 100% 0%, #fbe0dc 0%, transparent 62%),
    radial-gradient(55% 35% at 0% 100%, #f7d6d0 0%, transparent 62%),
    radial-gradient(45% 30% at 100% 92%, #fbe1dc 0%, transparent 60%),
    linear-gradient(180deg, #fdf1ee 0%, #fdece8 60%, #fbe5e1 100%);
  box-shadow: 0 0 0 7px #3b2d31, 0 0 0 8px #5a4a4f, 0 40px 80px rgba(90, 54, 68, 0.28);
  display: flex;
  flex-direction: column;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  height: var(--statusbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 30px 0 32px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1px;
  color: #3b2a31;
}
.statusbar-icons { display: inline-flex; gap: 5px; align-items: center; color: #3b2a31; }

.view {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--statusbar-h) var(--gutter) calc(var(--tabbar-h) + 12px);
  scrollbar-width: none;
  position: relative;
}
.view::-webkit-scrollbar { display: none; }

.page.no-frame { padding: 0; align-items: stretch; background: #f7e6e2; }
.page.no-frame .phone { width: min(100%, 430px); height: 100vh; border-radius: 0; box-shadow: none; --statusbar-h: 32px; }
.page.no-frame .statusbar { display: none; }

@media (max-width: 480px) {
  .page { padding: 0; }
  .phone {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .statusbar { display: none; }
  .phone { --statusbar-h: max(32px, env(safe-area-inset-top)); }
  .tabbar { padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* ---------- ortak bileşenler ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-soft { background: var(--card-soft); border-color: #f5d5dd; }
.section-title {
  font-weight: 700;
  font-size: 15px;
  color: #4f1f28;
  margin: 25px 0 12px 2px;
}
.fill-stack > .section-title { flex: 0 0 auto; }
.section-title .hint { font-weight: 400; color: var(--plum-soft); font-size: 12px; }
.chev { color: #b99aa3; width: 18px; height: 18px; flex: 0 0 auto; }
.icon-circle {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.icon-circle svg { width: 18px; height: 18px; }
.ic-rose { background: #fcd6d7; color: #d4587a; }
.ic-yellow { background: #fbd2b6; color: #7a4a3a; }
.ic-sage { background: #f1ece3; color: #7e8a58; }
.ic-lavender { background: var(--lavender); color: var(--lavender-ink); }
.ic-peach { background: var(--peach); color: var(--peach-ink); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(201, 83, 111, 0.22);
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-strong);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:active { transform: translateY(1px) scale(.99); box-shadow: 0 4px 12px rgba(201,83,111,.2); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--plum); font-weight: 700; font-size: 14px;
  height: 46px; padding: 0 20px; border-radius: 999px;
}

.dots { display: inline-flex; gap: 6px; }
.dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff8f7; border: 1.6px solid #efc4c9;
}
.dot.on { background: #df8088; border-color: #df8088; }
.dots.interactive .dot { cursor: pointer; transition: transform .1s; }
.dots.interactive .dot:active { transform: scale(.9); }

.face { width: 34px; height: 34px; border-radius: 50%; display: inline-block; }

/* ---------- ekran başlığı ---------- */
.screen-head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  height: 40px;
  margin-top: 0;
}
.screen-head > .head-btn:first-child { width: 28px; margin-left: -7px; }
.screen-head > .head-btn:last-child { width: 28px; margin-left: 4px; margin-right: 0; justify-self: start; }
.screen-head > .head-btn:last-child.small { margin-left: -4px; }
.screen-head h1 {
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-title);
}
.screen-head.left { height: 30px; }
.screen-head.left h1 { text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1; color: var(--ink-title); }
.screen-head .head-btn.rose { color: #c9536f; }
.screen-head.sans { height: 40px; }
.screen-head.sans h1 { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink-title); }
.screen-head.rose .head-btn { color: #c9536f; }
.screen-head.left { grid-template-columns: 1fr 32px; }
.head-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--plum); border-radius: 50%;
}
.head-btn svg { width: 24px; height: 24px; }
.head-btn.small svg { width: 22px; height: 22px; }

/* =========================================================
   ANA SAYFA
   ========================================================= */
.home { position: relative; min-height: 100%; display: flex; flex-direction: column; }
.home > .home-top, .home > .hero, .home > .return-banner { flex: 0 0 auto; }
.home > .home-grid { flex: 3 1 auto; align-content: stretch; }
.home > .suggest-card { flex: 1 1 auto; }
.home-wash {
  position: absolute; top: calc(-1 * var(--statusbar-h)); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  height: calc(var(--statusbar-h) + 269px); z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 52%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, #fdebe6 3%, #fceae4 13%, #fdeae4 33%, #fce9e3 51%, #fce6e0 70%, #fce5df 86%, #fde9e3 94%);
}
.home-wash::before {
  content: ''; position: absolute; left: 44%; right: 0; top: 0; bottom: 0;
  background: linear-gradient(180deg, #f9cbbd 3%, #f8cdbf 13%, #fde3d9 33%, #fad1c3 51%, #fee9de 70%, #fee6dd 86%, #fee9e2 94%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 45%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #000 45%);
}
.home-wash::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -44px; height: 44px;
  background: linear-gradient(180deg, #fde9e3 0%, rgba(253, 234, 231, 0) 100%);
}
.home-art {
  position: absolute; top: calc(-1 * var(--statusbar-h)); right: calc(-1 * var(--gutter));
  width: 185px; height: calc(var(--statusbar-h) + 269px);
  z-index: 1; pointer-events: none;
}
.home-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: right bottom; }
.home-top, .hero, .home-grid, .suggest-card, .return-banner { position: relative; z-index: 2; }

.home-top { height: 48px; margin-top: 0; }
.logo { position: absolute; left: 2px; top: -2px; height: 58px; width: 96px; }
.logo img { height: 100%; width: auto; display: block; }
.avatar-btn {
  position: absolute; right: 1px; top: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(249, 216, 208, 0.92);
  border: 1px solid rgba(243, 198, 190, .9);
  display: inline-flex; align-items: center; justify-content: center;
  color: #b8767d;
  box-shadow: 0 4px 10px rgba(201, 83, 111, .10), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.avatar-btn svg { width: 19px; height: 19px; }

.hero { padding-top: 8px; width: 214px; min-height: 180px; }
.hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22.5px;
  line-height: 1.28;
  color: var(--plum);
  letter-spacing: -0.1px;
  width: 190px;
}
.hero .pill { display: flex; width: fit-content; margin-top: 14px; height: 26px; padding: 0 14px; font-size: 12px; }
.hero-sub {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.42;
  color: #7f6069;
  max-width: 182px;
}
.return-banner {
  margin-top: 10px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  font-size: 12px; color: var(--plum-soft);
}
.return-banner strong { color: var(--plum); font-size: 13px; display: block; }
.return-banner .close { margin-left: auto; color: var(--muted); }
.return-banner .close svg { width: 16px; height: 16px; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}
.home-card {
  position: relative;
  padding: 16px 16px 14px;
  min-height: 130px;
  text-align: left;
  display: block;
  width: 100%;
}
.home-card .icon-circle { width: 36px; height: 36px; }
.home-card .icon-circle svg { width: 19px; height: 19px; }
.home-card .face { width: 36px; height: 36px; }
.home-card .chev { position: absolute; right: 13px; top: 16px; width: 18px; height: 18px; }
.home-card .chev.mid { top: 50%; transform: translateY(-50%); }
.home-card .chev.title-row { top: 60px; }
.home-card .title { margin-top: 10px; font-weight: 700; font-size: 14.5px; color: var(--plum); }
.home-card .sub { margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: var(--plum-soft); max-width: 110px; }
.home-card .dots { margin-top: 12px; }
.checklist { margin-top: 8px; display: grid; gap: 8px; }
.check-row {
  display: grid; grid-template-columns: 14px minmax(0, 1fr);
  align-items: start; column-gap: 8px; width: 100%; text-align: left;
  font-size: 12px; line-height: 18px; color: #6e535b; cursor: pointer;
}
.checkbox {
  width: 14px; height: 14px; border-radius: 4px;
  border: 1.5px solid #d9b8bb; background: #fffaf9;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: #fff;
}
.check-row .checkbox { margin-top: 2px; }
.check-row > span:last-child { min-width: 0; overflow-wrap: break-word; }
.checkbox svg { width: 10px; height: 10px; display: none; }
.check-row.done .checkbox { background: var(--rose); border-color: var(--rose); }
.check-row.done .checkbox svg { display: block; }
.check-row.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: #d9b6be; }

.suggest-card {
  margin-top: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px 15px 18px;
  text-align: left; width: 100%;
  min-height: 92px;
}
.suggest-card .icon-circle { width: 36px; height: 36px; background: #fbe8e3; color: var(--rose); }
.suggest-card .icon-circle svg { width: 19px; height: 19px; }
.suggest-card .title { font-weight: 700; font-size: 13.5px; color: var(--plum); }
.suggest-card .sub { margin-top: 5px; font-size: 12px; line-height: 1.45; color: var(--plum-soft); padding-right: 8px; }
.suggest-card .chev { margin-left: auto; }

/* =========================================================
   DÖNGÜM
   ========================================================= */
.calendar-card { padding: 6px 12px 10px; margin-top: 20px; position: relative; z-index: 2; background: #fef3ef; border-radius: 22px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 44px; }
.month-nav .label { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink-title); }
.month-nav button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #6e535b; border-radius: 50%; }
.month-nav button svg { width: 20px; height: 20px; }
.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
}
.weekdays { margin-top: 26px; font-weight: 600; font-size: 11.5px; color: #6e565b; }
.days { margin-top: 16px; row-gap: 13px; }
.day {
  width: 35px; height: 35px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; color: #6a3c48;
  position: relative; cursor: pointer;
  transition: transform .1s ease;
}
.day:active { transform: scale(.94); }
.day.empty { visibility: hidden; pointer-events: none; }
.day.period { background: #f6a9b6; color: #6f3442; }
.day.predicted { background: #fee1e1; color: #8a5a63; }
.day.ovulation { background: #fce2cf; color: #7a5a3f; }
.day.fertile { background: #fdebdc; color: #7a5a3f; }
.day.noted:not(.period) { background: #d4d5c3; color: #5f6350; }
.day .mark { position: absolute; left: 50%; bottom: -1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #f0a36a; }
.day.today, .day.today.period, .day.today.predicted, .day.today.ovulation, .day.today.fertile, .day.today.noted {
  background: #d9627a; color: #fff; box-shadow: 0 0 0 2.5px #f2b1bd;
}
.day.today .mark { display: none; }
.legend { display: flex; justify-content: center; gap: 16px; margin: 14px -2px 0; padding-top: 12px; border-top: 1px solid #efd9d9; font-size: 11.5px; color: #6d585b; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

.stats-card { margin-top: 22px; display: grid; grid-template-columns: 1fr 1.05fr 1.25fr; padding: 14px 8px 17px; position: relative; z-index: 2; background: #fdeae6; border-color: #f9dcd7; }
.stat { padding: 2px 8px; text-align: left; }
.stat + .stat { border-left: 1px solid #f0d9df; }
.stat .label { font-size: 11.5px; color: #96707a; line-height: 1.2; }
.stat .value { margin-top: 12px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink-title); white-space: nowrap; }
@media (max-width: 385px) { .stat .value { font-size: 15px; } .stat { padding: 2px 6px; } }
.stat .value.plain { font-family: var(--font-body); font-weight: 700; font-size: 14px; }

.cycle-screen { position: relative; min-height: 100%; padding-bottom: 12px; }
.cycle-strip {
  position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); bottom: -12px;
  width: calc(100% + 2 * var(--gutter)); height: 127px;
  object-fit: cover; object-position: center bottom; z-index: 1; pointer-events: none;
}
.cycle-cta { position: relative; display: flex; justify-content: center; margin-top: 44px; z-index: 2; }
.cycle-cta .btn-primary { width: 264px; height: 48px; font-size: 14.5px; box-shadow: 0 8px 18px rgba(219, 100, 124, .22); }

/* =========================================================
   GÜNLÜĞÜM
   ========================================================= */
.week-card { padding: 15px 6px 13px; display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 6px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wd .abbr { font-weight: 600; font-size: 11px; color: #a58a93; line-height: 1.1; }
.wd .num {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--plum);
  cursor: pointer;
}
.wd.today .abbr { color: var(--rose); }
.wd .num { width: 33px; height: 33px; font-size: 15px; }
.wd.today .num { background: #e46e84; color: #fff; box-shadow: 0 0 0 2.5px #f5c3ca; }
.wd.selected:not(.today) .num { box-shadow: 0 0 0 1.5px var(--rose-soft); background: var(--rose-pale); color: var(--rose); }
.wd .num { position: relative; }

.mood-card { margin-top: 12px; padding: 16px 12px 12px; }
.mood-title { font-weight: 800; font-size: 15px; color: #4f1f28; margin-left: 2px; }
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.mood-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 4px 8px;
  border-radius: var(--radius-sm);
  background: #fdf1ee; border: 1px solid #f8e0dc;
  box-shadow: var(--shadow);
  font-weight: 600; font-size: 11px; color: #6e535b;
  transition: transform .1s ease, background .15s ease;
}
.mood-tile:active { transform: scale(.97); }
.mood-tile.selected { background: #fbd9dc; border-color: #f5b8c0; color: #7a3b4a; }
.mood-tile .face { width: 38px; height: 38px; }
.mood-tile span { font-size: 12px; }

.rows-card { margin-top: 12px; }
.row-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; min-height: 64px;
  width: 100%; text-align: left;
}
.row-item + .row-item { border-top: 1px solid var(--border); }
.row-item .lead { width: 36px; height: 36px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--rose); }
.row-item .lead .icon-circle { width: 36px; height: 36px; }
.row-item .lead .icon-circle svg { width: 19px; height: 19px; }
.row-item .lead .face { width: 36px; height: 36px; }
.row-item .body { flex: 1; }
.row-item .label { font-weight: 700; font-size: 13px; color: var(--plum); }
.row-item .value { margin-top: 2px; font-size: 12px; color: var(--plum-soft); }
.row-item .dots { margin-top: 6px; }
.row-item .chev { margin-left: auto; }

.symptoms-card { margin-top: 12px; padding: 14px 16px 14px; }
.symptoms-card .title { font-weight: 800; font-size: 14px; color: #4f1f28; }
.symptoms-card .title .hint { font-weight: 400; color: var(--plum-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; align-items: center; }
.chip {
  background: #f9dfdd; color: #5c3c46;
  font-weight: 600; font-size: 12px;
  padding: 7px 14px; border-radius: 999px;
  transition: background .12s ease, color .12s ease;
}
.chip.on { background: var(--rose); color: #fff; }
.chip.add { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #5c3c46; background: #fffafa; border: 1px solid #efd6d6; }
.chip.add svg { width: 14px; height: 14px; }

.note-card { margin-top: 12px; padding: 12px 16px 12px; display: flex; gap: 14px; align-items: flex-start; }
.note-icon { width: 34px; height: 34px; border-radius: 10px; background: #fbe3e2; color: #c9536f; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.note-icon svg { width: 19px; height: 19px; }
.note-card .title { font-weight: 800; font-size: 14px; color: #4f1f28; }
.note-card textarea {
  width: 100%; margin-top: 4px; border: 0; background: transparent; resize: none;
  font: inherit; font-size: 12px; color: var(--plum); line-height: 1.4;
  padding: 0; min-height: 17px; height: 17px; outline: none; display: block;
}
.note-card textarea::placeholder { color: var(--muted); }
.journal-save-status {display:block;min-height:17px;margin-top:5px;font-size:10.5px;color:var(--plum-soft);}

/* =========================================================
   BENİM DÖNGÜM
   ========================================================= */
.segments { display: flex; gap: 14px; margin-top: 14px; }
.fill-stack > .segments { flex: 0 0 auto; }
.segment {
  flex: 1; height: 34px; border-radius: 999px;
  font-weight: 600; font-size: 13px; color: #4f1f28;
  background: #fef1ee; border: 1px solid #f7dedb;
  box-shadow: var(--shadow);
}
.segment.active { background: linear-gradient(180deg, #e17e8d, #d86c7d); color: #fff; border-color: #dc7481; box-shadow: 0 6px 14px rgba(201,83,111,.22); }

.insight-card {
  margin-top: 18px;
  padding: 18px 118px 16px 18px;
  display: flex; align-items: center;
  min-height: 144px;
  position: relative; overflow: hidden;
  background: #fadcd8; border-color: #f6d1cc;
}
.insight-card .art { position: absolute; right: 0; bottom: 0; width: 118px; height: 138px; }
.insight-card .art img { width: 100%; height: 100%; object-fit: cover; object-position: right bottom; display: block; }
.insight-card .text {
  flex: 1;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  color: #7d4a55;
}
.insight-card .text .lead { color: #7d4a55; }
.insight-card .text .main { display: block; margin-top: 6px; color: #74424d; font-weight: 600; font-size: 17.5px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.fill-stack > .dist-card.summary-card { margin-top: 18px; padding-bottom: 10px; }
.fill-stack > .card.insight-card { margin-top: 18px; }
.fill-stack > .dist-card.energy-card { margin-top: 10px; }
.summary-tile { padding: 10px 12px 9px; background: #fcefe9; min-height: 110px; }
.summary-tile .icon-circle { width: 34px; height: 34px; background: #fbe3e2; color: #c9536f; }
.summary-tile .icon-circle svg { width: 19px; height: 19px; }
.summary-tile .label { margin-top: 5px; font-size: 12px; line-height: 1.15; color: #7b5b62; min-height: 28px; }
.summary-tile .value { margin-top: 5px; font-weight: 800; font-size: 16px; color: #741d2f; }

.dist-card { margin-top: 10px; padding: 13px 14px 12px; background: #fdf2ee; }
.fill-stack > .dist-card.mood-dist-card { margin-top: 13px; }
.dist-card .title { font-weight: 700; font-size: 14px; color: #4f1f28; margin-left: 2px; }
.mood-dist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12px; }
.mood-dist .tile {
  background: #fcede9; border: 1px solid #f8dfdb; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; padding: 8px 4px 7px;
}
.mood-dist .face { width: 36px; height: 36px; }
.mood-dist .pct { margin-top: 6px; font-weight: 800; font-size: 14px; line-height: 1.2; color: #5a3d45; }
.mood-dist .lbl { margin-top: 0; font-size: 11px; line-height: 1.15; color: #a08b8e; }

.energy-card { padding: 13px 14px 11px; }
.energy-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.bar { flex: 1; height: 9px; border-radius: 999px; background: #f7e5de; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ea8494, #f0a0ad); }
.energy-row .pct { font-weight: 700; font-size: 13px; color: #ac747f; min-width: 34px; text-align: right; }
.energy-cap { margin-top: 4px; font-size: 11px; color: #a08b8e; margin-left: 2px; }

.trend-list { display: grid; gap: 8px; margin-top: 10px; }
.trend-row { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; color: var(--plum-soft); }
.trend-row b { color: var(--plum); font-weight: 700; text-align: right; }
.detail-row { padding: 12px 14px; }
.detail-row + .detail-row { border-top: 1px solid var(--border); }
.detail-row .t { font-weight: 700; font-size: 13px; color: var(--plum); display: flex; justify-content: space-between; }
.detail-row .t span { font-weight: 600; color: var(--plum-soft); font-size: 12px; }
.detail-row .s { margin-top: 4px; font-size: 12px; color: var(--plum-soft); line-height: 1.4; }
.empty { padding: 16px; text-align: center; font-size: 12.5px; color: var(--plum-soft); line-height: 1.45; }

/* =========================================================
   AYARLAR
   ========================================================= */
.settings-screen { position: relative; }
.settings-wash {
  position: absolute; top: calc(-1 * var(--statusbar-h)); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  height: calc(var(--statusbar-h) + 252px); z-index: 0; pointer-events: none; overflow: hidden;
}
.settings-wash svg { width: 100%; height: 100%; display: block; }
.settings-screen > * { position: relative; z-index: 1; }
.settings-screen > .settings-wash { position: absolute; z-index: 0; }
.profile { display: flex; align-items: center; gap: 22px; margin-top: 16px; position: relative; padding-right: 40px; }
.profile .avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 4px solid #fff3f2; box-shadow: 0 10px 22px rgba(201,83,111,.18); }
.profile .avatar img { width: 100%; height: 100%; display: block; }
.profile .hello { text-align: left; }
.profile h1 { margin: 0; font-family: var(--font-hello); font-weight: 400; font-size: 27px; color: #8a2d45; letter-spacing: .2px; white-space: nowrap; }
.profile h1.named { font-size: 23px; }
.profile p { margin: 5px 0 0; font-family: var(--font-hello); font-size: 14px; color: #6b4a52; white-space: nowrap; }
.profile .deco { position: absolute; right: -4px; top: 18px; width: 58px; height: 104px; }
.profile .deco img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fill-stack > .profile { flex: 0 0 auto; }
.settings-screen .vgap.top { flex-basis: 22px; min-height: 22px; max-height: 26px; }

.settings-list { margin-top: 0; }
.settings-row {
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px; height: 56px; width: 100%; text-align: left;
}
.settings-row + .settings-row { border-top: 1px solid var(--border); }
.settings-row .lead { width: 24px; height: 24px; color: #a63c55; display: inline-flex; align-items: center; justify-content: center; }
.settings-row .lead svg { width: 22px; height: 22px; stroke-width: 2; }
.settings-row .label { font-weight: 600; font-size: 14.5px; color: #5c3c46; flex: 1; }
.settings-row .chev { margin-left: auto; color: #a88d94; }
.toggle {
  width: 40px; height: 23px; border-radius: 999px; background: #e7d3d9; position: relative;
  transition: background .18s ease; flex: 0 0 auto;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.18); transition: transform .18s ease;
}
.toggle.on { background: #d7697a; }
.toggle.on::after { transform: translateX(17px); }

.info-card { margin-top: 0; padding: 15px 18px 14px; display: flex; gap: 16px; align-items: center; background: #f6d7d8; border-color: #f1c9cb; min-height: 84px; position: relative; overflow: hidden; }
.info-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.info-bg svg { width: 100%; height: 100%; display: block; }
.info-card > .leaf, .info-card > div:not(.info-bg) { position: relative; z-index: 1; }
.settings-list.compact .settings-row { height: 50px; }
.info-card .leaf { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.info-card .title { font-weight: 700; font-size: 13.5px; color: #5c3c46; }
.info-card .text { margin-top: 3px; font-size: 12px; line-height: 1.45; color: #7b5b62; }

/* =========================================================
   HOŞ GELDİN
   ========================================================= */
.phone.is-welcome .tabbar, .phone.is-welcome .statusbar-icons { display: none; }
.phone.is-onboard .tabbar { display: none; }
.phone.is-welcome { background: linear-gradient(180deg, #efd3ce 0%, #f5dcd8 45%, #f6dfdb 100%); }
.screen-welcome { position: absolute; inset: 0; overflow: hidden; }
.screen-welcome .panel { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center bottom; display:block; }
.welcome-sky { position: absolute; left: 0; right: 0; top: 0; height: 52%; pointer-events: none; }
.welcome-sky svg { width: 100%; height: 100%; display: block; }
.welcome-brand { position:absolute; z-index:2; top:clamp(62px,11vh,94px); left:24px; right:24px; text-align:center; color:var(--rose-deep); }
.welcome-brand img { display:block; width:72px; height:72px; object-fit:contain; margin:0 auto 5px; }
.welcome-brand h1 { margin:0; font-family:var(--font-head); font-size:34px; line-height:1.1; color:var(--rose-deep); letter-spacing:-.5px; }
.welcome-brand p { margin:8px 0 0; font-size:15px; line-height:1.4; color:#884358; font-weight:600; }
.screen-welcome .cta {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  height: 42px; padding: 0 26px; font-size: 14px;
}

/* tanışma (onboarding) */
.screen-onboard { padding-top: 6px; }
.screen-onboard .logo-small { height: 50px; width: auto; display: block; margin: 4px 0 0 2px; }
.screen-onboard h1 { margin: 18px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--ink-title); }
.screen-onboard .sub { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--plum-soft); max-width: 300px; }
.screen-onboard .form { margin-top: 18px; padding: 16px 16px 6px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--plum); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--plum-soft); }
.field input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid #f3d9d6; background: #fffaf9;
  padding: 0 12px; font: inherit; font-size: 13.5px; color: var(--plum); outline: none;
  -webkit-appearance: none; appearance: none;
}
.field input:focus { border-color: #efb9c1; box-shadow: 0 0 0 3px rgba(219, 100, 124, .10); }
.field input::placeholder { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onboard-actions { display: grid; gap: 10px; margin-top: 18px; }
.onboard-actions .btn-primary, .onboard-actions .btn-ghost { width: 100%; }
.steps { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.steps i { width: 7px; height: 7px; border-radius: 50%; background: #efc4c9; display: block; }
.steps i.on { background: var(--rose); width: 18px; border-radius: 999px; }
.onboard-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.45; }

/* =========================================================
   SEKME ÇUBUĞU
   ========================================================= */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--tabbar-h);
  background: rgba(253, 241, 238, 0.97);
  border-top: 1px solid rgba(244, 220, 216, .7);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 4px; padding: 11px 8px 0;
  z-index: 5;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #9f7780; font-weight: 600; font-size: 10.5px; letter-spacing: 0;
  min-width: 0; padding: 4px 2px 0; text-align: center;
}
.tab > span {
  display: block; max-width: 62px; min-height: 28px;
  line-height: 14px; white-space: normal;
}
.tab svg { width: 24px; height: 24px; }
.tab.active { color: #dc637d; font-weight: 700; }
.tab.active svg { stroke-width: 2.2; }

/* =========================================================
   ALT PANEL / TOAST
   ========================================================= */
.sheet-backdrop { position: absolute; inset: 0; background: rgba(90, 54, 68, 0.28); z-index: 20; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  background: var(--card);
  border-radius: 26px 26px 0 0;
  padding: 10px 18px 26px;
  box-shadow: 0 -10px 30px rgba(90,54,68,.16);
  max-height: 78%; overflow-y: auto;
  animation: sheet-up .22s ease;
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 999px; background: #e7d3d9; margin: 0 auto 14px; }
.sheet h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink-title); }
.sheet p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--plum-soft); }
.sheet .actions { display: grid; gap: 8px; margin-top: 16px; }
.sheet .btn-primary, .sheet .btn-ghost { width: 100%; }
.sheet .btn-danger { background: #fff; border: 1px solid #f1c9d3; color: var(--rose); }
.suggest-list { margin-top: 14px; display: grid; gap: 8px; }
.suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: var(--rose-tint); border: 1px solid var(--border);
  font-size: 13px; color: var(--plum);
}
.suggest-item .em { font-size: 18px; width: 26px; text-align: center; }
.suggest-item .fb { margin-left: auto; display: inline-flex; gap: 4px; }
.suggest-item .fb button {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: #fff; border: 1px solid var(--border);
}
.suggest-item .fb button svg { width: 14px; height: 14px; }
.suggest-item .fb button.on { color: #fff; background: var(--rose); border-color: var(--rose); }
.sheet .intro { margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--plum); }
.sheet .footer { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.sheet .field { margin-top: 12px; }
.sheet .field label { display: block; font-size: 12px; font-weight: 600; color: var(--plum-soft); margin-bottom: 6px; }
.sheet .field input {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff;
  padding: 0 12px; font: inherit; font-size: 13px; color: var(--plum); outline: none;
}
.sheet .field input:focus { border-color: var(--rose-soft); }

.toast {
  position: absolute; left: 50%; bottom: calc(var(--tabbar-h) + 16px);
  transform: translateX(-50%);
  background: var(--plum); color: #fff;
  font-weight: 600; font-size: 12.5px;
  padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(90,54,68,.25);
  z-index: 30; white-space: nowrap;
  animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* dikey dağıtım: uzun ekranda kartlar arası boşluk ölçülü büyür, kalan alta kalır */
.fill-stack { display: flex; flex-direction: column; min-height: 100%; }
.fill-stack > .card { margin-top: 0; flex: 1 1 auto; }
.fill-stack > .screen-head { flex: 0 0 auto; }
.vgap { display: block; flex: .6 1 14px; min-height: 14px; max-height: 26px; }
.vgap.top { flex: .6 1 16px; min-height: 16px; max-height: 24px; }
.vgap.end { flex: 0 0 6px; min-height: 6px; max-height: 6px; }
/* kartlar fazla alanı orantılı paylaşır; içerik dengeli dağılır */
.fill-stack > .week-card { flex-grow: 1.2; align-content: center; }
.fill-stack > .mood-card { flex-grow: 2; display: flex; flex-direction: column; justify-content: space-evenly; }
.fill-stack > .rows-card { flex-grow: 2; display: flex; flex-direction: column; }
.fill-stack > .rows-card .row-item { flex: 1 1 auto; }
.fill-stack > .symptoms-card { flex-grow: 1.2; display: flex; flex-direction: column; justify-content: center; }
.fill-stack > .note-card { flex-grow: 1; align-items: center; }
.fill-stack > .settings-list { flex-grow: 2; display: flex; flex-direction: column; }
.fill-stack > .settings-list .settings-row { flex: 1 1 auto; height: auto; min-height: 56px; }
.fill-stack > .settings-list.compact .settings-row { min-height: 50px; }
.fill-stack > .info-card { flex-grow: 1; }

.loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 12px; }
.error-box { margin-top: 20px; padding: 16px; text-align: center; font-size: 12.5px; color: var(--plum-soft); line-height: 1.5; }
.error-box .btn-ghost { margin-top: 12px; }
.fade-in { animation: none; }

/* Döngüm: mevcut el yazısı ve gül kurusu paletiyle marka. */
.brand-wordmark { font-family: 'Kaushan Script', cursive; color: #a94760; font-weight: 400; white-space: nowrap; }
.logo.brand-wordmark { width: 155px; font-size: 34px; line-height: 58px; }
.brand-wordmark > span { display: inline-block; font-family: Georgia, serif; font-size: 25px; color: #c96e86; vertical-align: top; line-height: 30px; margin-left: 2px; }
.screen-onboard .logo-small.brand-wordmark { font-size: 36px; line-height: 50px; }
