@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Exo+2:wght@700&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:        #f48fb1;
  --pink-light:  #fce4ec;
  --pink-mid:    #f06292;
  --purple:      #ce93d8;
  --bg:          #fff5f8;
  --card:        #ffffff;
  --text:        #4a2040;
  --text-soft:   #9e6b8a;
  --border:      #f8bbd0;
  --shadow:      rgba(244, 143, 177, 0.25);
  --radius:      16px;
  --radius-sm:   10px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport auf iPhone */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===== Onboarding Screen ===== */
.onboarding {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #fce4ec 0%, #f8bbd0 40%, #e1bee7 100%);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.onboarding.show { display: flex; }

.onboarding-card {
  background: white;
  border-radius: 28px;
  padding: 40px 30px 36px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(236, 64, 122, 0.18);
  animation: modalIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.onboarding-emoji {
  font-size: 3.2rem;
  margin-bottom: 12px;
  animation: floatEmoji 2.5s ease-in-out infinite;
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.onboarding-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.onboarding-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.name-input {
  width: 100%;
  padding: 13px 16px;
  border: 2.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px; /* verhindert Auto-Zoom auf iOS */
  color: var(--text);
  outline: none;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.2s;
  margin-bottom: 14px;
  -webkit-appearance: none;
}
.name-input:focus { border-color: var(--pink-mid); }

.name-save-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f06292, #ab47bc);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(240, 98, 146, 0.35);
  margin-top: 6px;
  touch-action: manipulation;
}
.name-save-btn:active { transform: scale(0.97); }
.name-save-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Onboarding Schritte */
.ob-step { animation: fadeIn 0.25s ease; }

.ob-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.ob-option {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: white;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  touch-action: manipulation;
}
.ob-option:active { transform: scale(0.95); }
.ob-option.selected {
  border-color: var(--pink-mid);
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  color: var(--pink-mid);
  box-shadow: 0 2px 8px rgba(240,98,146,0.25);
}

.ob-option-wide {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 18px;
  font-size: 1.5rem;
  border-width: 2.5px;
  position: relative;
  overflow: hidden;
  min-height: 78px;
  box-shadow: 0 2px 10px rgba(240,98,146,0.1);
}

/* Glanz-Schimmer oben */
.ob-option-wide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 100%);
  border-radius: 16px 16px 50% 50%;
  pointer-events: none;
}

.ob-option-wide .hair-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.ob-option-wide small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.2;
}

.ob-option-wide.selected {
  background: linear-gradient(145deg, #fce4ec 0%, #f8bbd0 50%, #f3e5f5 100%);
  border-color: var(--pink-mid);
  box-shadow: 0 4px 14px rgba(240,98,146,0.3),
              inset 0 1px 3px rgba(255,255,255,0.8);
}

.ob-option-wide.selected .hair-label { color: var(--pink-mid); }

/* horizontal layout in settings (3 buttons next to each other) */
.settings-hair-wide-row {
  display: flex;
  gap: 8px;
}

.settings-hair-wide-row .ob-option-wide {
  flex: 1;
  min-height: 72px;
  padding: 12px 6px;
  font-size: 1.3rem;
}

/* ===== Greeting Row im Header ===== */
.greeting-row {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  margin-bottom: 9px;
  min-height: 0;
  transition: opacity 0.4s;
  text-align: center;
}

.greeting-row:empty { margin-bottom: 0; }

/* ===== STICKY TOP (Header + Tabs zusammen sticky) ===== */
.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px var(--shadow);
  /* Hintergrundfarbe füllt den Status-Bar-Bereich (Dynamic Island / Notch) */
  background: #f9a8c9;
}

/* ===== Header ===== */
.header {
  background: linear-gradient(140deg, #f9a8c9 0%, #ec407a 45%, #ab47bc 100%);
  /* Safe Area: Notch / Dynamic Island oben, Seiten im Querformat */
  padding: calc(16px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) 14px calc(20px + env(safe-area-inset-left));
  color: white;
  position: relative;
  overflow: hidden;
}

/* glänzender Shimmer-Overlay */
.header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: rgba(255,255,255,0.08);
  transform: rotate(-20deg);
  pointer-events: none;
}

#header-sparkle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.header > *:not(#header-sparkle-canvas) {
  position: relative;
  z-index: 2;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}

.logo-beauty {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 14px rgba(0,0,0,0.18), 0 0 24px rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
  line-height: 1;
}

.logo-routine {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 5.5px;
  text-transform: uppercase;
  opacity: 0.72;
  padding-left: 3px;
}

.logo-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.14);
}
.logo-name:empty { display: none; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.date-display {
  font-size: 0.8rem;
  opacity: 0.95;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 6px 13px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  position: relative;
}

.date-today-badge {
  position: absolute;
  bottom: -11px;
  right: -11px;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff80ab, #e91e8c);
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  font-family: 'Dancing Script', cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(233,30,140,0.55);
  border: 2px solid white;
  animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 3;
  padding-bottom: 1px;
}

.header-branding {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
  user-select: none;
  text-align: center;
  line-height: 1.5;
}

.date-date {
  font-size: 0.78rem;
  font-weight: 600;
}

.date-time {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Progress row: bar + label nebeneinander */
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar-wrap {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: white;
  border-radius: 4px;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  padding: 8px 10px;
  gap: 5px;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 9px 4px;
  border: none;
  background: linear-gradient(135deg, rgba(149,97,185,0.18), rgba(106,27,154,0.22));
  font-size: 0.75rem;
  font-weight: 700;
  color: #7b3fa0;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  border-radius: 20px;
  touch-action: manipulation;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
}

.tab-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.tab-label {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-style: italic;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

.tab.active {
  background: linear-gradient(135deg, #f06292, #ab47bc);
  color: white;
  box-shadow: 0 3px 12px rgba(240, 98, 146, 0.38);
}

.tab:hover:not(.active) {
  background: rgba(240, 98, 146, 0.13);
  color: var(--pink-mid);
}

/* Edit-Toggle Button in der Tab-Zeile */
.edit-toggle-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  background: rgba(255,255,255,0.6);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  touch-action: manipulation;
  box-shadow: 0 1px 4px rgba(240,98,146,0.15);
}

.edit-toggle-btn:hover { background: white; }

.app.edit-mode .edit-toggle-btn {
  background: linear-gradient(135deg, #f06292, #ab47bc);
  color: white;
  box-shadow: 0 3px 10px rgba(240,98,146,0.4);
}

/* ===== Content ===== */
.content {
  flex: 1;
  /* Extra Platz für die fixierte Footer-Leiste + Home Indicator */
  padding: 18px 14px calc(90px + env(safe-area-inset-bottom));
}

.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: fadeIn 0.22s ease;
}

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

/* ===== Completion Banner ===== */
.completion-banner {
  display: none;
  background: linear-gradient(135deg, #f48fb1, #ce93d8);
  color: white;
  text-align: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--shadow);
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.completion-banner.show { display: block; }

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ===== Category ===== */
.category {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border);
}

.category-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  padding: 11px 15px;
}

/* ===== Checklist ===== */
.checklist {
  list-style: none;
  padding: 6px 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  min-height: 44px; /* Apple HIG Touch-Target */
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s;
  border-bottom: 1px solid #fce4ec;
  user-select: none;
  position: relative;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: var(--pink-light); }

/* In edit mode: items nicht als "checkbar" behandeln */
.app.edit-mode .checklist-item { cursor: default; }
.app.edit-mode .checklist-item:hover { background: transparent; }

/* Ausgeblendete Items: in edit-mode gedimmt, sonst gar nicht sichtbar */
.checklist-item.item-hidden { display: none; }
.app.edit-mode .checklist-item.item-hidden {
  display: flex;
  opacity: 0.38;
  background: #fafafa;
}

/* Custom checkbox */
.checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid var(--pink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  background: white;
  pointer-events: none;
}
.checklist-item.done .checkbox {
  background: linear-gradient(135deg, var(--pink-mid), var(--purple));
  border-color: transparent;
  transform: scale(1.08);
}
.checkbox-check {
  display: none;
  width: 12px; height: 12px;
  stroke: white; stroke-width: 3;
  fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.checklist-item.done .checkbox-check { display: block; }

/* In edit-mode: Checkbox ausgegraut */
.app.edit-mode .checkbox { border-color: #ddd; background: #f5f5f5; }

/* Item label */
.item-label { flex: 1; min-width: 0; }
.item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-hint {
  font-size: 0.73rem;
  color: var(--text-soft);
  margin-top: 1px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checklist-item.done .item-name {
  text-decoration: line-through;
  color: var(--text-soft);
}

.item-emoji { font-size: 1.15rem; flex-shrink: 0; }

/* ===== Item-Aktionen (nur im Edit-Mode sichtbar) ===== */
.item-actions {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.app.edit-mode .item-actions { display: flex; }

.action-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.action-btn:hover { background: var(--pink-light); }

.action-btn.toggle-btn { color: var(--text-soft); }
.action-btn.toggle-btn.is-hidden { color: #bbb; }
.action-btn.edit-btn  { color: #7c9fd4; }
.action-btn.delete-btn { color: #e57373; }

/* ===== + Hinzufügen Button ===== */
.add-item-btn {
  display: none;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: var(--pink-light);
  color: var(--pink-mid);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  border-top: 1px dashed var(--border);
}
.add-item-btn:hover { background: var(--border); }
.app.edit-mode .add-item-btn { display: block; }

/* ===== Footer ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  /* Safe Area: Home Indicator + Seiten */
  padding: 10px calc(14px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  background: linear-gradient(135deg, rgba(252,228,236,0.97) 0%, rgba(248,187,208,0.97) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  z-index: 200;
}

.reset-btn, .reset-weekly-btn, .reset-all-btn, .termine-btn {
  flex: 1;
  padding: 9px 6px;
  min-height: 48px;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: white;
  font-family: inherit;
}

.reset-btn {
  background: linear-gradient(135deg, #f48fb1, #e91e8c);
  box-shadow: 0 3px 12px rgba(233,30,140,0.38);
}

.reset-all-btn {
  background: linear-gradient(135deg, #ce93d8, #7b1fa2);
  box-shadow: 0 3px 12px rgba(123,31,162,0.38);
}

.termine-btn {
  background: linear-gradient(135deg, #f3a8d4, #c2185b);
  box-shadow: 0 3px 12px rgba(194,24,91,0.38);
}

/* ===== Termine Overlay ===== */
.termine-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 600;
  flex-direction: column;
}
.termine-overlay.open { display: flex; }

/* Termin-Edit-Modal über dem Termine-Overlay */
#terminEditOverlay {
  z-index: 700;
}

.termine-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.termine-header {
  background: linear-gradient(140deg, #f9a8c9 0%, #ec407a 45%, #ab47bc 100%);
  padding: calc(16px + env(safe-area-inset-top)) 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.termine-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.7rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.termine-close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
  flex-shrink: 0;
}

.termine-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.termine-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 40px 20px;
  line-height: 1.8;
}

.termine-empty span { font-size: 2.5rem; display: block; margin-bottom: 10px; }

/* Termin-Karte */
.termin-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.22s ease;
}

.termin-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #fce4ec, #f3e5f5);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

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

.termin-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.termin-datetime {
  font-size: 0.76rem;
  color: var(--pink-mid);
  font-weight: 600;
  margin-top: 2px;
}

.termin-note {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.termin-soon {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  border-color: var(--pink-mid);
}

.termin-soon .termin-datetime { color: #e91e63; }

.termin-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.termin-action-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--pink-light);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}

.termin-action-btn.delete { background: #fde8e8; }

/* FAB Button */
.add-termin-fab {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f06292, #ab47bc);
  color: white;
  border: none;
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(240,98,146,0.45);
  touch-action: manipulation;
  white-space: nowrap;
  z-index: 10;
  /* starts centered, JS moves it */
  top: 50%;
  margin-top: -26px;
  transition: top 0.5s cubic-bezier(0.34,1.56,0.64,1), bottom 0.5s cubic-bezier(0.34,1.56,0.64,1), margin 0.5s ease;
  bottom: auto;
}

.add-termin-fab.at-bottom {
  top: auto;
  bottom: calc(16px + env(safe-area-inset-bottom));
  margin-top: 0;
}

.add-termin-fab:active { transform: translateX(-50%) scale(0.96); }
.add-termin-fab.at-bottom:active { transform: translateX(-50%) scale(0.96); }

/* Termin Preset Chips */
.termin-presets {
  margin-bottom: 14px;
}

.termin-presets:empty { display: none; }

.termin-preset-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  display: block;
}

.termin-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.termin-preset-chip {
  padding: 7px 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(252,228,236,0.75));
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
  box-shadow: inset 0 1px 2px rgba(255,255,255,1), 0 2px 6px rgba(240,98,146,0.15);
  transition: all 0.15s;
}

.termin-preset-chip:active {
  background: linear-gradient(135deg, #f06292, #ab47bc);
  color: white;
  border-color: transparent;
  transform: scale(0.94);
}

.termin-edit-modal {
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.reset-btn:active, .reset-weekly-btn:active, .reset-all-btn:active, .termine-btn:active {
  transform: scale(0.95);
  box-shadow: none;
}

.btn-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.2px;
}

.btn-label em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.8;
}

/* ===== Today Badge on Termine Button ===== */
.termine-btn {
  position: relative;
}

.today-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff80ab, #e91e8c);
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  font-family: 'Dancing Script', cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(233,30,140,0.5);
  border: 2px solid white;
  animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
  padding-bottom: 1px;
}

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(74, 32, 64, 0.45);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 24px 22px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { transform: scale(0.88) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}

.modal-field {
  margin-bottom: 14px;
}
.modal-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.modal-field input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px; /* verhindert Auto-Zoom auf iOS */
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  -webkit-appearance: none;
}
.modal-field input:focus { border-color: var(--pink-mid); }

/* ===== Modal Vorschläge ===== */
.modal-presets {
  margin-bottom: 16px;
  background: var(--pink-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px 12px;
}

.modal-presets:empty { display: none; }

.preset-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  display: block;
}

.preset-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.preset-chip {
  padding: 8px 10px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.9) 0%, rgba(252,228,236,0.75) 100%);
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
  font-family: inherit;
  touch-action: manipulation;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Glanz-Highlight oben */
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,1),
    inset 0 -1px 2px rgba(240,98,146,0.1),
    0 3px 8px rgba(240,98,146,0.18),
    0 1px 2px rgba(0,0,0,0.06);
  position: relative;
}

/* Glanz-Schimmer oben */
.preset-chip::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 12%;
  width: 76%;
  height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 100%);
  border-radius: 20px 20px 50% 50%;
  pointer-events: none;
}

.preset-chip:active {
  background: linear-gradient(135deg, #f06292, #ab47bc);
  color: white;
  border-color: transparent;
  transform: scale(0.94);
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.4),
    0 1px 4px rgba(240,98,146,0.25);
}

/* ===== Emoji Picker ===== */
.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  padding: 10px;
  background: var(--pink-light);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  max-height: 140px;
  overflow-y: auto;
}

.emoji-btn {
  width: 34px;
  height: 34px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.emoji-btn:hover {
  background: var(--border);
  transform: scale(1.15);
}

.emoji-btn.selected {
  border-color: var(--pink-mid);
  background: white;
  box-shadow: 0 0 0 3px rgba(240, 98, 146, 0.2);
  transform: scale(1.15);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.modal-cancel, .modal-save {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.modal-cancel {
  background: var(--pink-light);
  color: var(--text-soft);
}
.modal-cancel:hover { background: var(--border); }
.modal-save {
  background: linear-gradient(135deg, var(--pink-mid), var(--purple));
  color: white;
}
.modal-save:hover { transform: translateY(-1px); }

/* ===== Confetti ===== */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}


/* ===== Ad Container ===== */
.ad-container {
  margin: 0 14px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px dashed var(--border);
}

.ad-label {
  font-size: 0.62rem;
  color: var(--text-soft);
  text-align: center;
  padding: 3px;
  background: var(--pink-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ad-banner {
  width: 100%;
  min-height: 100px;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vorschau-Platzhalter (wird ausgeblendet sobald echte Werbung lädt) */
.ad-preview {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.ad-preview span {
  font-size: 1.5rem;
}

/* ===== Language Buttons (Onboarding Step 0) ===== */
.lang-options {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

.lang-btn {
  flex: 1;
  max-width: 140px;
  padding: 18px 12px;
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  font-family: inherit;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(240,98,146,0.12);
}

.lang-btn span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

.lang-btn:active {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  border-color: var(--pink-mid);
  transform: scale(0.95);
  box-shadow: 0 4px 14px rgba(240,98,146,0.28);
}

/* ===== Hair-color option label (below emoji) ===== */
.ob-option-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1;
}

/* ===== Settings Open Button ===== */
.settings-area {
  margin: 4px 0 18px;
  display: flex;
  justify-content: center;
}

.settings-open-btn {
  padding: 11px 26px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: white;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(240,98,146,0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  touch-action: manipulation;
}

.settings-open-btn:active {
  background: var(--pink-light);
  transform: scale(0.97);
}

/* ===== Tips Card ===== */
.tips-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 16px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border);
}

.tips-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.tips-bubbles {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 6px;
}

/* === Traumblase / Thought Bubble === */
.tip-bubble {
  background: linear-gradient(145deg, #fff0f7 0%, #f8e8ff 55%, #fce4ec 100%);
  border: 1.5px solid rgba(248,187,208,0.85);
  border-radius: 22px;
  padding: 13px 17px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  box-shadow:
    0 6px 22px rgba(240,98,146,0.13),
    inset 0 1px 4px rgba(255,255,255,0.95);
  animation: tipFloat 4.5s ease-in-out infinite;
}

.tip-bubble:nth-child(2) {
  animation-delay: 1.5s;
  background: linear-gradient(145deg, #f3e5f5 0%, #fff0f7 55%, #f8e8ff 100%);
  align-self: flex-end;
  width: 93%;
}

.tip-bubble:nth-child(3) {
  animation-delay: 3s;
}

/* Gedankenblase-Tail: zwei Kreise */
.tip-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: linear-gradient(145deg, #fff0f7, #fce4ec);
  border: 1.5px solid rgba(248,187,208,0.85);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(240,98,146,0.11);
}

.tip-bubble::before {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 14px;
  width: 7px;
  height: 7px;
  background: linear-gradient(145deg, #fff0f7, #fce4ec);
  border: 1.5px solid rgba(248,187,208,0.85);
  border-radius: 50%;
}

.tip-bubble:nth-child(even)::after { left: auto; right: 22px; }
.tip-bubble:nth-child(even)::before { left: auto; right: 14px; }

@keyframes tipFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ===== AGB Accept (Onboarding Step 0) ===== */
.agb-accept {
  margin: 0 0 16px;
  text-align: left;
}

.agb-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1.55;
}

.agb-check-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--pink-mid);
  cursor: pointer;
}

.agb-inline-btn {
  border: none;
  background: none;
  color: var(--pink-mid);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 0;
  display: inline;
}

.lang-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ===== Settings Modal ===== */
.settings-modal {
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.settings-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #fce4ec;
}

.settings-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 9px;
}

.settings-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  background: white;
}

.settings-input:focus { border-color: var(--pink-mid); }

.settings-lang-btns {
  display: flex;
  gap: 8px;
}

.settings-lang-btn {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  touch-action: manipulation;
}

.settings-lang-btn.active {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  border-color: var(--pink-mid);
  color: var(--pink-mid);
}

.settings-lang-btn:active { transform: scale(0.97); }

/* ===== AGB Button ===== */
.agb-btn {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--pink-light);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  touch-action: manipulation;
  text-align: left;
}

.agb-btn:active { background: var(--border); }

/* ===== AGB Modal ===== */
.agb-modal {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.agb-content {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.agb-content h4 {
  color: var(--text);
  font-size: 0.86rem;
  margin: 14px 0 5px;
  font-weight: 700;
}

.agb-content h4:first-child { margin-top: 0; }
.agb-content p { margin-bottom: 6px; }
.agb-content a { color: var(--pink-mid); }

/* ===== Responsive ===== */
@media (max-width: 400px) {
  .logo { font-size: 1.35rem; }
  .tab  { font-size: 0.76rem; padding: 11px 3px; }
}

/* ===== Gender Selection Buttons ===== */
.gender-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0;
}

.gender-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  border: 2.5px solid #f8bbd0;
  border-radius: 20px;
  background: white;
  color: #9e6b8a;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.gender-btn .gender-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.gender-btn.selected {
  border-color: var(--pink-mid);
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  color: var(--pink-mid);
  box-shadow: 0 4px 16px rgba(240,98,146,0.3);
  transform: scale(1.04);
}

.settings-gender {
  margin-top: 4px;
}

/* ===== Boy Theme (Blue) ===== */
body.theme-boy {
  --pink:        #90caf9;
  --pink-light:  #e3f2fd;
  --pink-mid:    #1e88e5;
  --purple:      #64b5f6;
  --bg:          #f0f8ff;
  --card:        #ffffff;
  --text:        #0d2a4a;
  --text-soft:   #4a7fa5;
  --border:      #bbdefb;
  --shadow:      rgba(30, 136, 229, 0.2);
}

body.theme-boy .header {
  background: linear-gradient(140deg, #90caf9 0%, #1e88e5 45%, #1565c0 100%);
}

body.theme-boy .tab.active {
  background: linear-gradient(135deg, #42a5f5, #1565c0);
  box-shadow: 0 3px 12px rgba(30,136,229,0.38);
}

body.theme-boy .tab:not(.active) {
  background: linear-gradient(135deg, rgba(100,181,246,0.18), rgba(21,101,192,0.22));
  color: #1565c0;
}

body.theme-boy #progressBar {
  background: linear-gradient(90deg, #42a5f5, #1e88e5);
}

body.theme-boy .section-header {
  background: linear-gradient(135deg, #90caf9, #1e88e5);
}

body.theme-boy .checklist-item:hover {
  background: #e3f2fd;
}

body.theme-boy .item-check {
  border-color: #90caf9;
}

body.theme-boy .checklist-item.done .item-check {
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  border-color: #1e88e5;
}

body.theme-boy .reset-btn {
  background: linear-gradient(135deg, #90caf9, #1e88e5);
  box-shadow: 0 4px 16px rgba(30,136,229,0.4);
}

body.theme-boy .reset-all-btn {
  background: linear-gradient(135deg, #64b5f6, #0d47a1);
  box-shadow: 0 4px 16px rgba(13,71,161,0.4);
}

body.theme-boy .termine-btn {
  background: linear-gradient(135deg, #42a5f5, #1565c0);
  box-shadow: 0 4px 16px rgba(21,101,192,0.4);
}

body.theme-boy .today-badge,
body.theme-boy .date-today-badge {
  background: linear-gradient(135deg, #64b5f6, #1e88e5);
  box-shadow: 0 2px 10px rgba(30,136,229,0.55);
}

body.theme-boy .tip-bubble {
  background: linear-gradient(145deg, #e3f2fd 0%, #dbeeff 55%, #bbdefb 100%);
  border-color: rgba(144,202,249,0.85);
  box-shadow: 0 6px 22px rgba(30,136,229,0.13), inset 0 1px 4px rgba(255,255,255,0.95);
}

body.theme-boy .tip-bubble:nth-child(2) {
  background: linear-gradient(145deg, #dbeeff 0%, #e3f2fd 55%, #bbdefb 100%);
}

body.theme-boy .tip-bubble:nth-child(3) {
  background: linear-gradient(145deg, #e8f4fd 0%, #dbeeff 55%, #cce5ff 100%);
}

body.theme-boy .tip-bubble::before,
body.theme-boy .tip-bubble::after {
  background: linear-gradient(145deg, #e3f2fd, #bbdefb);
  border-color: rgba(144,202,249,0.85);
  box-shadow: 0 3px 8px rgba(30,136,229,0.11);
}

body.theme-boy .checklist-item {
  border-bottom-color: #bbdefb;
}

body.theme-boy .checklist-item:hover {
  background: #e3f2fd;
}

body.theme-boy .gender-btn.selected {
  border-color: #1e88e5;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1e88e5;
  box-shadow: 0 4px 16px rgba(30,136,229,0.3);
}

body.theme-boy .ob-option.selected {
  border-color: #1e88e5;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1e88e5;
}

body.theme-boy .onboarding {
  background: linear-gradient(160deg, #90caf9 0%, #1e88e5 50%, #1565c0 100%);
}

/* Termine Overlay - Boy Theme */
body.theme-boy .termine-header {
  background: linear-gradient(140deg, #90caf9 0%, #1e88e5 45%, #1565c0 100%);
}

body.theme-boy .termin-soon {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-color: #1e88e5;
}

body.theme-boy .termin-soon .termin-datetime { color: #1565c0; }

body.theme-boy .termin-emoji {
  background: linear-gradient(135deg, #e3f2fd, #dbeeff);
}

body.theme-boy .termin-datetime { color: #1e88e5; }

body.theme-boy .termin-action-btn {
  background: #e3f2fd;
}

body.theme-boy .add-termin-fab {
  background: linear-gradient(135deg, #42a5f5, #1565c0);
  box-shadow: 0 6px 20px rgba(30,136,229,0.45);
}

body.theme-boy .termin-preset-chip {
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(227,242,253,0.75));
  border-color: #90caf9;
  color: #1565c0;
}

body.theme-boy .termin-preset-chip:active {
  background: linear-gradient(135deg, #42a5f5, #1565c0);
}

body.theme-boy .termin-card {
  border-color: #bbdefb;
  box-shadow: 0 2px 10px rgba(30,136,229,0.12);
}

/* Settings modal - Boy Theme */
body.theme-boy .settings-lang-btn.active {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-color: #1e88e5;
  color: #1565c0;
}

body.theme-boy .settings-lang-btn {
  border-color: #bbdefb;
}

body.theme-boy .settings-section {
  border-bottom-color: #bbdefb;
}

body.theme-boy .settings-label {
  color: #4a7fa5;
}

body.theme-boy .modal-save {
  background: linear-gradient(135deg, #42a5f5, #1565c0);
}

body.theme-boy .settings-input,
body.theme-boy .name-input {
  border-color: #bbdefb;
}

body.theme-boy .settings-input:focus,
body.theme-boy .name-input:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
}

body.theme-boy .ob-option {
  border-color: #bbdefb;
  box-shadow: 0 2px 8px rgba(30,136,229,0.08);
}

body.theme-boy .ob-option:hover {
  border-color: #64b5f6;
  background: #e3f2fd;
}

body.theme-boy .gender-btn {
  border-color: #bbdefb;
  color: #4a7fa5;
}

body.theme-boy .modal-overlay.open > .modal {
  box-shadow: 0 8px 40px rgba(30,136,229,0.18);
}

body.theme-boy .tabs {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-bottom-color: #90caf9;
}

body.theme-boy .footer {
  background: linear-gradient(135deg, rgba(227,242,253,0.97) 0%, rgba(187,222,251,0.97) 100%);
  border-top-color: #90caf9;
}

body.theme-boy .logo-name {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1px;
}

body.theme-boy .modal-overlay {
  background: rgba(21, 101, 192, 0.35);
}

body.theme-boy .settings-open-btn {
  box-shadow: 0 2px 12px rgba(30,136,229,0.15);
  border-color: #bbdefb;
}

body.theme-boy .settings-open-btn:active {
  background: #e3f2fd;
}

body.theme-boy .preset-chip {
  background: linear-gradient(160deg, rgba(255,255,255,0.9) 0%, rgba(227,242,253,0.75) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,1),
    inset 0 -1px 2px rgba(30,136,229,0.1),
    0 3px 8px rgba(30,136,229,0.18),
    0 1px 2px rgba(0,0,0,0.06);
}

body.theme-boy .preset-chip:active {
  background: linear-gradient(135deg, #42a5f5, #1565c0);
}

body.theme-boy .edit-toggle-btn {
  box-shadow: 0 1px 4px rgba(30,136,229,0.15);
}

body.theme-boy .app.edit-mode .edit-toggle-btn {
  background: linear-gradient(135deg, #42a5f5, #1565c0);
  box-shadow: 0 3px 10px rgba(30,136,229,0.4);
}

body.theme-boy .ob-option {
  box-shadow: 0 2px 8px rgba(30,136,229,0.08) !important;
}

body.theme-boy body,
body.theme-boy {
  background-color: #f0f8ff;
}
