/* ─── Coach Auki Chat ──────────────────────────────── */
.auki-wrap { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

.auki-header {
  background: var(--brand);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.auki-back { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; padding: 0 4px; }
.auki-header-info { flex: 1; }
.auki-header-name { font-size: 16px; font-weight: 700; }
.auki-header-status { font-size: 11px; opacity: .75; }
.auki-header-icon { font-size: 28px; }

.auki-chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

/* Welcome state */
.auki-welcome { text-align: center; margin: auto 0; padding: 24px 0; }
.auki-welcome-icon { font-size: 48px; margin-bottom: 12px; }
.auki-welcome-title { font-size: 18px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.auki-welcome-sub { font-size: 13px; color: var(--text2); line-height: 1.5; max-width: 280px; margin: 0 auto 20px; }
.auki-suggestions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.auki-suggestion {
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 16px; font-size: 13px; color: var(--brand); cursor: pointer;
  font-family: inherit; font-weight: 500; transition: .15s;
}
.auki-suggestion:hover { background: var(--brand-light); }

/* Chat bubbles */
.auki-bubble { max-width: 85%; }
.auki-bubble-user { align-self: flex-end; }
.auki-bubble-bot { align-self: flex-start; }
.auki-bubble-label { font-size: 11px; color: var(--text3); font-weight: 600; display: block; margin-bottom: 3px; }
.auki-bubble-text {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.auki-bubble-user .auki-bubble-text {
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.auki-bubble-bot .auki-bubble-text {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.auki-bubble.auki-error .auki-bubble-text {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

/* Typing dots */
.auki-dots { display: flex; gap: 4px; padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; }
.auki-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text3);
  animation: aukiDot 1.2s infinite ease-in-out;
}
.auki-dots span:nth-child(2) { animation-delay: .2s; }
.auki-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes aukiDot { 0%,80%,100% { opacity:.3; transform:scale(.8); } 40% { opacity:1; transform:scale(1); } }

/* Inline Apply card — shown when Auki proposes a plan upgrade */
.auki-apply-card {
  align-self: flex-start;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 8px 6px;
  padding: 10px 12px;
  background: var(--brand-light);
  border: 1px solid var(--brand);
  border-radius: 12px;
  max-width: 85%;
}
.auki-progress {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auki-progress-stage {
  font-size: 13px;
  color: var(--text2);
}
.auki-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,.08);
  border-radius: 3px;
  overflow: hidden;
}
.auki-progress-fill {
  height: 100%;
  background: var(--brand);
  transition: width .4s ease;
}

/* Input bar */
.auki-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.auki-text-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.auki-text-input:focus { border-color: var(--brand); }
.auki-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity .15s;
}
.auki-send-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── Dashboard ────────────────────────────────────── */

/* Dashboard layout */
.dash-wrap { max-width: 480px; margin: 0 auto; padding-bottom: 100px; }

/* Header */
.dash-header {
  background: var(--brand);
  color: #fff;
  padding: 20px 20px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dash-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-greeting   { font-size: 18px; font-weight: 700; }
.dash-date        { font-size: 12px; opacity: .8; margin-top: 1px; }
.dash-icons       { display: flex; gap: 14px; align-items: center; }
.dash-icon-btn    { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; position: relative; }
.dash-unread      { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: 10px; display: flex; align-items: center; justify-content: center; }

/* Theme banner */
.dash-theme {
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
}

/* Day tabs */
.day-tabs-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 112px;
  z-index: 99;
}
.day-tabs-wrap::-webkit-scrollbar { display: none; }
.day-tabs { display: flex; padding: 0 12px; gap: 4px; min-width: max-content; }
.day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  min-width: 52px;
  transition: .15s;
}
.day-tab.active { border-bottom-color: var(--brand); }
.day-tab-name   { font-size: 11px; color: var(--text3); font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }
.day-tab-num    { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 2px; }
.day-tab.active .day-tab-name,
.day-tab.active .day-tab-num { color: var(--brand); }
.day-tab-dot    { width: 5px; height: 5px; border-radius: 50%; background: var(--border); margin-top: 4px; }
.day-tab.active .day-tab-dot { background: var(--brand); }
.day-tab.done   .day-tab-dot { background: var(--brand-mid); }
.day-tab.today  .day-tab-num { background: var(--brand); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* Day content */
.day-content { padding: 16px 16px 0; }
.day-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.day-title     { font-size: 18px; font-weight: 700; }
.day-focus     { font-size: 13px; color: var(--text2); margin-bottom: 14px; }
.day-progress  { margin-bottom: 16px; }
.day-prog-row  { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); margin-bottom: 4px; }
.day-prog-bar  { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.day-prog-fill { height: 100%; background: var(--brand-mid); border-radius: 4px; transition: width .3s; }

/* Section headers */
.section-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 16px 0 8px;
}

/* Daily tip */
.daily-tip {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 16px;
  font-style: italic;
}

/* Rest day */
.rest-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 10px;
}
.rest-icon  { font-size: 40px; margin-bottom: 8px; }
.rest-title { font-size: 16px; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.rest-sub   { font-size: 13px; color: var(--text2); }
