:root {
  --bg: #F5F0E8;
  --bg-card: #FDFAF4;
  --text: #2C1810;
  --text-muted: #8B7355;
  --accent: #C4622D;
  --accent-light: #E8956D;
  --positive: #6B8E5E;
  --border: #E0D5C5;
  --nav-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 16px; }
#app { height: 100%; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; position: relative; }

/* SCREENS */
.screen { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.screen.active { display: flex; }

/* CHAT SCREEN */
#chat-screen { background: var(--bg); }
.chat-header { padding: 20px 20px 12px; }
.chat-greeting { font-size: 22px; font-weight: 600; color: var(--text); }
.chat-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.sam { background: var(--bg-card); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.msg.sam .msg-name { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; letter-spacing: 0.5px; }
.chat-input-wrap { padding: 12px 16px; background: var(--bg); border-top: 1px solid var(--border); }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 10px 16px; font-size: 15px; color: var(--text); resize: none; outline: none; max-height: 120px; min-height: 42px; font-family: inherit; }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send:active { background: var(--accent-light); }
.typing { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: bounce 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* FULLSCREEN SCREENS */
.fs-header { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.fs-back { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--accent); padding: 4px; }
.fs-title { font-size: 18px; font-weight: 600; }
.fs-body { flex: 1; overflow-y: auto; padding: 16px; }

/* KALENDER */
.cal-month { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 20px; }
.cal-day-name { text-align: center; font-size: 12px; color: var(--text-muted); padding: 4px 0; font-weight: 600; }
.cal-day { text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cal-day.today { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.has-event { font-weight: 600; color: var(--accent); }
.cal-day.other-month { color: var(--border); }
.cal-events { display: flex; flex-direction: column; gap: 10px; }
.cal-event { background: var(--bg-card); border-radius: 12px; padding: 12px 16px; border-left: 3px solid var(--accent); }
.cal-event-title { font-weight: 600; font-size: 15px; }
.cal-event-date { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* LISTEN */
.list-section { margin-bottom: 20px; }
.list-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.list-check.checked { background: var(--positive); border-color: var(--positive); color: #fff; font-size: 12px; }
.list-text { flex: 1; font-size: 15px; }
.list-text.done { text-decoration: line-through; color: var(--text-muted); }
.add-btn { width: 100%; padding: 12px; border: 2px dashed var(--border); border-radius: 12px; background: none; color: var(--text-muted); font-size: 15px; cursor: pointer; margin-top: 8px; }
.add-btn:active { border-color: var(--accent); color: var(--accent); }

/* PROFIL */
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.profile-name { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-ki { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.profile-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.profile-label { font-size: 15px; }
.profile-value { font-size: 15px; color: var(--text-muted); }

/* BOTTOM NAV */
.bottom-nav { height: var(--nav-h); background: var(--bg-card); border-top: 1px solid var(--border); display: flex; align-items: center; flex-shrink: 0; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; cursor: pointer; color: var(--text-muted); border: none; background: none; }
.nav-item.active { color: var(--accent); }
.nav-icon { font-size: 22px; }
.nav-label { font-size: 11px; font-weight: 500; }

/* LOGIN */
#login-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 24px; }
.login-logo { font-size: 48px; }
.login-title { font-size: 28px; font-weight: 700; color: var(--text); }
.login-sub { font-size: 15px; color: var(--text-muted); text-align: center; line-height: 1.5; }
.login-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; background: var(--bg-card); color: var(--text); outline: none; font-family: inherit; }
.login-btn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }
.login-btn:active { background: var(--accent-light); }

/* ONBOARDING */
#onboarding-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 20px; text-align: center; }
.ob-emoji { font-size: 52px; }
.ob-title { font-size: 24px; font-weight: 700; line-height: 1.3; }
.ob-sub { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.ob-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 16px; background: var(--bg-card); color: var(--text); outline: none; font-family: inherit; text-align: center; }
.ob-btn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }
