/* =========================================
   핀버디 (PIN BUDDY) — 완전 구현 CSS
   스크린샷 9개 화면 100% 재현
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --orange: #FFA726;
  --orange-dk: #F57C00;
  --orange-lt: #FFF8E1;
  --teal: #2D9E9E;
  --teal-lt: #4DB6AC;
  --teal-xlt: #B2EBF2;
  --bg-aqua: #E8F6F8;
  --bg-page: #EEF9FB;
  --white: #FFFFFF;
  --text: #1A2B2A;
  --text2: #4A6360;
  --text3: #9DB8B5;
  --border: #D4EDF0;
  --card: #FFFFFF;
  --input-bg: #EBF5F8;
  --green: #4CAF50;
  --red: #E05555;
  --blue: #4A90D9;
  --shadow: 0 2px 12px rgba(0, 100, 110, 0.09);
  --r: 14px;
  --r-sm: 10px;
  --r-lg: 20px;
  --font: 'Noto Sans KR', sans-serif;
  --max-w: 390px;
  --kakao: #FEE500;
  --naver: #03C75A;
}

html,
body {
  height: 100%;
  font-family: var(--font);
  background: #082025;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent
}

#app {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-page);
  box-shadow: 0 0 60px rgba(0, 0, 0, .5)
}

/* ── screens ── */
.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  transition: opacity .2s ease
}

.screen.active {
  opacity: 1;
  pointer-events: auto
}

.aqua-page {
  background: var(--bg-page)
}

.white-page {
  background: var(--white)
}

/* ════════════════════════════════
   01. 로그인
════════════════════════════════ */
#screen-login {
  display: block;
  overflow-y: auto;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.login-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #A8E6CF 0%, #DCEDC8 20%, #FFE082 50%, #FFAB91 78%, #F48FB1 100%);
  overflow: hidden;
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100%;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
}

.login-logo-block {
  text-align: center;
}

.app-main-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.app-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-top: 12px;
}

.app-sub {
  font-size: 13.5px;
  color: var(--text2);
  margin-top: 6px;
  font-weight: 500;
}

.login-card {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  padding: 30px 24px 24px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 40, 50, 0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-underline {
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-underline:focus-within {
  border-bottom-color: var(--teal);
}

.input-underline input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14.5px;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  padding: 6px 0;
}

.input-underline input::placeholder {
  color: var(--text3);
}

.pw-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pw-wrap input {
  flex: 1;
}

.eye-btn {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-btn:hover {
  color: var(--text2);
}

.login-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.chk-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
}

.chk-label input {
  accent-color: var(--teal);
  width: 14px;
  height: 14px;
}

.link-muted {
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

.link-muted:hover {
  color: var(--teal);
}

.btn-orange {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--r);
  padding: 15px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 167, 38, 0.2);
}

.btn-orange:hover {
  background: var(--orange-dk);
  box-shadow: 0 6px 16px rgba(245, 124, 0, 0.3);
  transform: translateY(-1px);
}

.btn-orange:active {
  transform: scale(0.98) translateY(0);
}

/* 데모 계정 체험 버튼 */
.btn-demo-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: var(--r);
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(45, 158, 158, 0.05);
}

.btn-demo-outline:hover {
  background: rgba(45, 158, 158, 0.08);
  color: var(--teal-lt);
  border-color: var(--teal-lt);
  transform: translateY(-1px);
}

.btn-demo-outline:active {
  transform: scale(0.98) translateY(0);
}

.w100 {
  width: 100%;
}

.mt8 {
  margin-top: 8px;
}

.divider-text {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  position: relative;
  margin: 6px 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background: var(--border);
}

.divider-text::before {
  left: 0;
}

.divider-text::after {
  right: 0;
}

.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 4px;
}

.soc-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.soc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 40, 50, 0.15);
  opacity: 1;
}

.soc-btn:active {
  transform: scale(0.94) translateY(-1px);
}

.kakao {
  background: #FEE500;
}

.naver {
  background: #03C75A;
}

.google {
  background: white;
  border: 1.5px solid #EAEAEA;
}

.signup-row {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 30, 40, 0.15);
}

.signup-row a {
  color: #FFE082;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}

/* 로딩 애니메이션 오버레이 */
.login-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 32, 37, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(178, 235, 242, 0.2);
  border-left-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================
   비밀번호 찾기 / 계정 복구 CSS
   ========================================= */
.px-20 { padding-left: 20px; padding-right: 20px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.text-right { text-align: right; }

.center-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.circle-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-icon.light-blue { background: #CDECF3; }
.circle-icon.light-green { background: #81E2BB; }

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: #1A2B3C;
  margin-bottom: 8px;
}
.auth-sub {
  font-size: 14px;
  color: #4A5B6C;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-box {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.input-label {
  font-size: 13px;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 6px;
}
.input-with-icon {
  display: flex;
  align-items: center;
  background: #EAF3F5;
  border-radius: 8px;
  padding: 0 14px;
  height: 48px;
}
.input-with-icon.border-style {
  background: #EAF3F5;
  border: 1px solid #BCE0E6;
}
.input-with-icon input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #333;
}
.input-with-icon input::placeholder {
  color: #A0B3C0;
}
.input-with-icon .center-placeholder {
  text-align: center;
}
.icon-right {
  color: #7D97A5;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.auth-help-txt {
  font-size: 13px;
  color: #7A8D9B;
}

.btn-brown {
  height: 52px;
  background: #7E5F3D;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(126,95,61,0.2);
}
.btn-ghost {
  height: 52px;
  background: transparent;
  color: #4A5B6C;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.support-card {
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.support-info {
  flex: 1;
}
.support-label {
  color: #105C3A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.support-title {
  color: #1A2B3C;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.support-link {
  color: #4A6A7A;
  font-size: 13px;
  text-decoration: underline;
}
.support-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #EAF3F5;
}

.hero-banner-img {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  background: #EAF3F5;
}

.link-green {
  color: #105C3A;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.status-cards-row {
  display: flex;
  gap: 12px;
}
.status-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.st-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-icon.green-bg { background: #E1F3EA; }
.st-icon.orange-bg { background: #FDEED9; }
.st-text {
  font-size: 14px;
  font-weight: 600;
  color: #2C3E50;
}

/* 메인 로고 교체용 CSS */
.app-main-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}


/* 기존 호환 유지 */
.btn-text-lg {
  background: none;
  border: none;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  color: var(--text2);
  font-family: var(--font);
  cursor: pointer
}

/* ════════════════════════════════
   PAGE WRAPPER / HEADER
════════════════════════════════ */
.page-wrap {
  display: flex;
  flex-direction: column;
  height: 100%
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  flex-shrink: 0
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text)
}

.page-title-ico {
  font-size: 18px;
  margin-right: 6px
}

.hdr-left {
  display: flex;
  align-items: center
}

.hdr-right {
  display: flex;
  gap: 6px
}

.border-hdr {
  border-bottom: 1px solid var(--border)
}

.back-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 50%
}

.back-btn:hover {
  background: rgba(0, 0, 0, .05)
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  padding: 6px;
  display: flex;
  align-items: center
}

.page-body {
  flex: 1;
  overflow: hidden
}

.scroll-y {
  overflow-y: auto
}

.scroll-y::-webkit-scrollbar {
  display: none
}

.pb-nav {
  padding-bottom: 80px
}

/* ════════════════════════════════
   03. 회원가입
════════════════════════════════ */
.reg-banner {
  position: relative;
  margin: 0 20px 20px;
  border-radius: var(--r);
  overflow: hidden;
  height: 130px
}

.reg-banner-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1A6B5A, #2DAA70 50%, #4DC090)
}

.reg-banner-img::after {
  content: '🐠';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  opacity: .35
}

.reg-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 20px;
  color: white
}

.reg-banner-overlay p {
  font-size: 15px;
  line-height: 1.5
}

.reg-banner-overlay strong {
  font-size: 16px;
  font-weight: 700
}

.form-block {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2)
}

.field-input {
  width: 100%;
  border: none;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--input-bg);
  outline: none;
  transition: box-shadow .15s
}

.field-input:focus {
  background: white;
  box-shadow: 0 0 0 2px var(--teal-lt)
}

.field-input::placeholder {
  color: var(--text3)
}

.field-pw {
  position: relative
}

.field-pw .field-input {
  padding-right: 44px
}

.eye-btn.inside {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%)
}

.field-hint {
  font-size: 11px;
  color: var(--text3);
  padding: 0 4px
}

.terms-box {
  background: var(--input-bg);
  border-radius: var(--r-sm);
  padding: 16px
}

.terms-all-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  cursor: pointer
}

.terms-all-row input {
  accent-color: var(--orange);
  width: 16px;
  height: 16px
}

.terms-items {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.terms-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer
}

.terms-item-row input {
  accent-color: var(--orange)
}

.tarr {
  margin-left: auto;
  color: var(--text3);
  font-size: 16px
}

/* ════════════════════════════════
   04. 홈 (Crystal Care)
════════════════════════════════ */
.home-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  flex-shrink: 0
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 8px
}

.brand-fish-ico {
  font-size: 26px
}

.brand-nm {
  font-size: 18px;
  font-weight: 700;
  color: var(--text)
}

/* 수조 히어로 */
.tank-hero-card {
  border-radius: var(--r);
  overflow: hidden;
  margin: 8px 16px 14px;
  box-shadow: var(--shadow);
  position: relative
}

.tank-hero-img {
  width: 100%;
  height: 190px;
  background: url('../img/planted_tank.png') center/cover no-repeat, linear-gradient(135deg, #0D3D2C, #1A5C3A 40%, #2DAA70)
}

.tank-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .35) 100%)
}

.tank-hero-top {}

.tank-name-tag {
  background: rgba(0, 0, 0, .35);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px)
}

.tank-hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between
}

.tank-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  margin-right: 6px
}

.tank-status-txt {
  color: white;
  font-size: 12px;
  font-weight: 500
}

.tank-params {
  display: flex;
  gap: 6px
}

.param-pill {
  background: rgba(0, 0, 0, .38);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px
}

/* 퀵메뉴 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 16px 14px
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: none;
  border-radius: var(--r-sm);
  padding: 14px 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s
}

.quick-btn:hover {
  transform: translateY(-2px)
}

.qi {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px
}

.qi-aqua {
  background: #E0F7FA
}

.qi-orange {
  background: #FFF3E0
}

.qi-green {
  background: #E8F5E9
}

.qi-gray {
  background: #F5F5F5
}

.quick-btn span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text2);
  text-align: center;
  line-height: 1.3
}

/* 섹션 카드 */
.section-card {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  margin: 0 16px 14px;
  box-shadow: var(--shadow)
}

.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px
}

.sec-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text)
}

.sec-more {
  font-size: 12px;
  color: var(--text3);
  text-decoration: none
}

/* 투두 */
.todo-list {
  display: flex;
  flex-direction: column
}

.todo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #F5F5F5
}

.todo-row:last-child {
  border-bottom: none
}

.todo-lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer
}

.todo-lbl input {
  display: none
}

.todo-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s
}

.done-circle {
  background: var(--orange);
  border-color: var(--orange)
}

.done-circle::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 700
}

.todo-info {
  display: flex;
  flex-direction: column;
  gap: 1px
}

.todo-info strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text)
}

.todo-row.done .todo-info strong {
  color: var(--text3);
  text-decoration: none
}

.todo-info span {
  font-size: 11px;
  color: var(--text3)
}

.todo-ico {
  font-size: 20px;
  flex-shrink: 0
}

/* 게이지 */
.gauge-card .sec-header {
  margin-bottom: 10px
}

.gauge-ico {
  font-size: 20px
}

.gauge-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.gauge-bar {
  height: 14px;
  background: var(--input-bg);
  border-radius: 7px;
  overflow: hidden
}

.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #80DEEA, #2D9E9E);
  border-radius: 7px;
  transition: width .5s ease
}

.gauge-label-row {
  display: flex;
  justify-content: flex-end
}

.gauge-label {
  font-size: 11px;
  color: var(--text3)
}

/* FAB */
.fab {
  position: absolute;
  right: 20px;
  bottom: 76px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 167, 38, .45);
  z-index: 20;
  transition: transform .15s
}

.fab:hover {
  transform: scale(1.06)
}

.dark-fab {
  background: #2D6B6B
}

/* bottom nav */
.bottom-nav {
  display: flex;
  align-items: center;
  background: white;
  border-top: 1px solid var(--border);
  height: 64px;
  flex-shrink: 0
}

.nav-it {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 10px;
  font-family: var(--font);
  padding: 8px 0
}

.nav-it.active {
  color: var(--orange)
}

.nav-it.active svg {
  stroke: var(--orange) !important
}

.nav-it:not(.active) svg[fill="currentColor"] {
  fill: var(--text3)
}

.nav-it.active svg[fill="currentColor"] {
  fill: var(--orange)
}

/* ════════════════════════════════
   05. AquaCare (물고기 추가)
════════════════════════════════ */
/* 이모지 피커 */
.aqua-hero {
  padding: 16px 20px 12px
}

.aqua-hero h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px
}

.aqua-hero p {
  font-size: 13px;
  color: var(--text2)
}

.emoji-pick-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 20px 20px;
  background: var(--card);
  border-radius: var(--r);
  padding: 20px 16px;
  box-shadow: var(--shadow)
}

.emoji-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  border: 3px solid var(--teal-lt);
  box-shadow: 0 2px 10px rgba(45, 158, 158, .15)
}

.emoji-pick-label {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%
}

.emoji-btn {
  background: var(--input-bg);
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  padding: 10px 0;
  font-size: 22px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center
}

.emoji-btn:hover {
  background: var(--teal-xlt);
  border-color: var(--teal-lt)
}

.emoji-btn.active {
  background: var(--teal-xlt);
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal)
}

.fish-form {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px
}

/* fish-form input 풀너비 */
.fish-row-input input {
  width: 100%
}

.fish-row {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.fish-row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text)
}

.fish-row-input {
  display: flex;
  align-items: center;
  gap: 8px
}

.fish-row-input input {
  flex: 1;
  border: none;
  border-radius: var(--r-sm);
  background: var(--input-bg);
  padding: 13px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none
}

.fish-row-input input::placeholder {
  color: var(--text3)
}

.fish-row-input input:focus {
  background: white;
  box-shadow: 0 0 0 2px var(--teal-lt)
}

.row-ico-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--input-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  flex-shrink: 0
}

.species-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.sp-chip {
  background: var(--input-bg);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  transition: all .15s
}

.sp-chip:hover,
.sp-chip.active {
  background: var(--teal);
  color: white
}

.fish-actions {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

/* ════════════════════════════════
   06. 기록
════════════════════════════════ */
.rec-summary {
  padding: 16px 20px 12px
}

.rec-week-label {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 4px
}

.rec-count {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px
}

.rec-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-right: 4px
}

.rec-tags {
  display: flex;
  gap: 8px
}

.rec-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500
}

.rec-tag.green {
  background: #E8F5E9;
  color: #388E3C
}

.rec-tag.aqua {
  background: #E0F7FA;
  color: #00838F
}

.rec-date-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 12px;
  color: var(--text2);
  font-weight: 600
}

.date-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text3);
  flex-shrink: 0
}

.rec-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #F5F5F5
}

.rec-ico-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px
}

.aqua-ico {
  background: #E0F7FA
}

.orange-ico {
  background: #FFF3E0
}

.blue-ico {
  background: #E3F2FD
}

.red-ico {
  background: #FFEBEE
}

.rec-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.rec-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.rec-title-row strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text)
}

.rec-time {
  font-size: 11px;
  color: var(--text3)
}

.rec-body p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6
}

.rec-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content
}

.rec-badge.ideal {
  background: #E8F5E9;
  color: #388E3C
}

.rec-photo {
  height: 80px;
  border-radius: var(--r-sm);
  background: url('https://images.unsplash.com/photo-1559128010-7c1ad6e1b6a5?w=300&h=80&fit=crop') center/cover no-repeat, linear-gradient(135deg, #1A6B5A, #4DC090);
  margin-top: 4px
}

/* ════════════════════════════════
   07. 일정
════════════════════════════════ */
.cal-card {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow)
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px
}

.cal-month {
  font-size: 15px;
  font-weight: 700;
  color: var(--text)
}

.cal-nav {
  display: flex;
  gap: 4px
}

.cal-nav button {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text2);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center
}

.cal-nav button:hover {
  background: var(--input-bg)
}

.cal-week-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px
}

.cal-week-labels span {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
  padding: 4px 0
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px
}

.cal-day {
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px
}

.cal-day:hover {
  background: var(--input-bg)
}

.cal-day.prev {
  color: var(--text3)
}

.cal-day.today {
  background: var(--teal);
  color: white;
  border-radius: 50%;
  font-weight: 700
}

.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange)
}

.sched-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  margin-top: 4px
}

.sched-section-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text)
}

.sched-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #F5F5F5
}

.sched-ico-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.sched-info {
  flex: 1
}

.sched-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px
}

.sched-info span {
  font-size: 12px;
  color: var(--text2)
}

.sched-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0
}

.brown-dot {
  background: #8D6E63
}

.green-dot {
  background: #4CAF50
}

.month-stat-card {
  display: flex;
  background: var(--card);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 12px 16px;
  box-shadow: var(--shadow);
  gap: 20px
}

.month-stat-left {
  flex: 1
}

.stat-label {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 4px
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px
}

.stat-bar {
  height: 6px;
  background: var(--input-bg);
  border-radius: 3px;
  overflow: hidden
}

.stat-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px
}

.month-stat-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px
}

.next-check-label {
  font-size: 12px;
  color: var(--text2)
}

.next-check-day {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal)
}

.next-check-link {
  font-size: 12px;
  color: var(--teal);
  text-decoration: underline
}

/* ════════════════════════════════
   08. 설정
════════════════════════════════ */
.set-section {
  padding: 16px 20px 8px
}

.set-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px
}

.set-sub {
  font-size: 13px;
  color: var(--text2)
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 8px 16px;
  box-shadow: var(--shadow)
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--teal-xlt)
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.profile-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text)
}

.member-badge {
  display: inline-block;
  background: var(--orange-lt);
  color: var(--orange-dk);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin: 4px 0
}

.profile-edit-link {
  display: block;
  font-size: 12px;
  color: var(--teal);
  text-decoration: none;
  margin-top: 2px
}

.set-group {
  background: var(--card);
  border-radius: var(--r);
  padding: 0;
  margin: 8px 16px;
  box-shadow: var(--shadow);
  overflow: hidden
}

.set-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #F5F5F5;
  font-size: 13px;
  font-weight: 700;
  color: var(--text)
}

.add-link {
  font-size: 12px;
  color: var(--teal);
  background: none;
  border: none;
  cursor: pointer
}

.tank-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #F5F5F5
}

.tank-list-item:last-child {
  border-bottom: none
}

.tank-list-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: #E0F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.tank-list-info {
  flex: 1
}

.tank-list-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px
}

.tank-list-info span {
  font-size: 11px;
  color: var(--text2)
}

.drag-ico {
  font-size: 18px;
  color: var(--text3)
}

.set-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #F5F5F5
}

.set-toggle-row:last-child {
  border-bottom: none
}

.set-toggle-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px
}

.set-toggle-info p {
  font-size: 11px;
  color: var(--text2)
}

/* Toggle switch */
.sw {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0
}

.sw input {
  opacity: 0;
  width: 0;
  height: 0
}

.sw-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: .2s
}

.sw-track::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2)
}

.sw input:checked+.sw-track {
  background: var(--teal)
}

.sw input:checked+.sw-track::before {
  transform: translateX(20px)
}

.set-etc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #F5F5F5;
  font-size: 13px;
  font-weight: 600;
  color: var(--text)
}

.set-etc-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #F5F5F5;
  font-size: 13px;
  color: var(--text)
}

.set-etc-row2 span {
  flex: 1
}

.btn-logout {
  background: none;
  border: 2px solid var(--orange);
  color: var(--orange);
  border-radius: 30px;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-bottom: 12px
}

.ver-info {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.7
}

/* ════════════════════════════════
   09. Pin Buddy 대시보드
════════════════════════════════ */
.pb-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 4px
}

.pb-date {
  display: flex;
  align-items: center;
  gap: 8px
}

.pb-date-txt {
  font-size: 18px;
  font-weight: 700;
  color: var(--text)
}

.pb-cal-btn {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 4px
}

.pb-fish-select {
  background: var(--input-bg);
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font)
}

.pb-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 16px
}

.pb-stat-card {
  background: var(--card);
  border-radius: var(--r);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px
}

.pb-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 4px
}

.aqua-circle {
  background: #E0F7FA
}

.beige-circle {
  background: #FFF3E0
}

.pb-stat-label {
  font-size: 12px;
  color: var(--text2)
}

.pb-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text)
}

.pb-ph-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  margin: 0 16px 14px;
  box-shadow: var(--shadow)
}

.pb-ph-left {
  display: flex;
  align-items: center;
  gap: 10px
}

.pb-ph-ico-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E0F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.pb-ph-label {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 2px
}

.pb-ph-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px
}

.ph-status {
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  background: #E0F7FA;
  padding: 2px 8px;
  border-radius: 10px
}

.pb-ph-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.pb-ph-bar {
  height: 10px;
  background: linear-gradient(90deg, #E53935 0%, #FFEB3B 35%, #4CAF50 50%, #FFEB3B 65%, #E53935 100%);
  border-radius: 5px;
  position: relative
}

.pb-ph-range {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .4);
  border-radius: 5px
}

.pb-ph-pointer {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 18px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%)
}

.pb-ph-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text3)
}

.sec-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  margin-bottom: 4px
}

.sec-header-row h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text)
}

.act-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #F5F5F5;
  cursor: pointer
}

.act-item.orange-border {
  border-left: 3px solid var(--orange)
}

.act-ico-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.aqua-bg-ico {
  background: #E0F7FA
}

.orange-bg-ico {
  background: #FFF3E0
}

.red-bg-ico {
  background: #FFEBEE
}

.act-info {
  flex: 1
}

.act-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px
}

.act-info span {
  font-size: 11px;
  color: var(--text2)
}

.act-orange-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0
}

.btn-save-data {
  display: block;
  width: calc(100% - 32px);
  margin: 16px;
  background: #2D6B6B;
  color: white;
  border: none;
  border-radius: var(--r);
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s
}

.btn-save-data:hover {
  background: #1E4A4A
}

/* =========================================
   10. 알림 (Notifications)
   ========================================= */
.noti-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4px;
}
.noti-date {
  font-size: 16px;
  font-weight: 700;
  color: #2C4E5E;
}
.noti-read-all {
  font-size: 12px;
  font-weight: 600;
  color: #7A8D9B;
  cursor: pointer;
}
.noti-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.noti-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.noti-icon-box.light-blue { background: #CDECF3; }
.noti-icon-box.light-orange { background: #FDEED9; }
.noti-icon-box.light-green { background: #E1F3EA; }
.noti-icon-box.light-gray { background: #EAF3F5; }

.noti-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.noti-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.noti-title-row strong {
  font-size: 14px;
  font-weight: 700;
}
.text-green { color: #105C3A; }
.text-brown { color: #7E5F3D; }
.text-gray { color: #4A5B6C; }

.noti-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #105C3A;
}
.noti-desc {
  font-size: 14px;
  color: #1A2B3C;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}
.noti-time {
  font-size: 12px;
  color: #7A8D9B;
}

.noti-tip-banner {
  background: #4A6A7A;
  padding: 24px 20px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.tip-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.tip-desc {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.5;
  max-width: 240px;
  position: relative;
  z-index: 2;
}
.tip-bg-icon {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  z-index: 1;
}

/* =========================================
   11. AI 진단 (AI Chat)
   ========================================= */
.ai-hero-icon {
  width: 80px; height: 80px;
  background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 40px auto 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.ai-title {
  text-align: center; font-size: 24px; font-weight: 800; color: #1A4D66; margin-bottom: 10px; letter-spacing: -0.5px;
}
.ai-subtitle {
  text-align: center; font-size: 15px; color: #4A6A7A; line-height: 1.5; margin-bottom: 30px;
}
.ai-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 20px 30px;
}
.ai-card {
  background: white; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.ai-card-icon {
  width: 24px; height: 24px;
}
.ai-card-title {
  font-size: 14px; font-weight: 600; color: #1A2B3C;
}
.ai-suggest-row {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 100px; padding: 0 20px;
}
.ai-suggest-pill {
  background: rgba(255,255,255,0.4); border: 1.5px solid white; border-radius: 20px; padding: 8px 16px; font-size: 14px; color: #4A6A7A; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,0.01); cursor: pointer; white-space: nowrap;
}
.ai-chat-bar-wrap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(to top, var(--bg-page) 60%, transparent);
}
.ai-chat-bar {
  background: white; border-radius: 30px; display: flex; align-items: center; padding: 6px 6px 6px 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); gap: 6px;
}
.ai-chat-btn {
  background: none; border: none; color: #7A8D9B; display: flex; align-items: center; justify-content: center; padding: 4px; cursor: pointer;
}
.ai-chat-input {
  flex: 1; border: none; outline: none; font-size: 15px; color: #333; background: transparent; padding: 0 4px; width: 100%;
}
.ai-chat-input::placeholder { color: #A0B3C0; }
.ai-send-btn {
  width: 38px; height: 38px; border-radius: 50%; background: #0082C8; border: none; color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 130, 200, 0.3); flex-shrink: 0; cursor: pointer;
}

/* =========================================
   12. AI 음성 인식 (AI Voice)
   ========================================= */
.voice-page-bg {
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.9) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(230,248,245,0.9) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(205,236,243,0.6) 0%, transparent 100%),
              #EAF3F5;
}
.voice-title {
  text-align: center; font-size: 22px; font-weight: 800; color: #1A4D66; margin: 40px 0 10px;
}
.voice-subtitle {
  text-align: center; font-size: 14px; color: #7A8D9B; margin-bottom: 50px;
}
.voice-wave-circle {
  width: 140px; height: 140px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 auto 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}
.wave-bar {
  width: 6px; border-radius: 3px; background: #3C5B63; animation: waveAnim 1.2s ease-in-out infinite; transform-origin: center;
}
.wave-1 { height: 24px; animation-delay: 0.0s; }
.wave-2 { height: 40px; animation-delay: 0.1s; }
.wave-3 { height: 56px; animation-delay: 0.2s; }
.wave-4 { height: 36px; animation-delay: 0.3s; }
.wave-5 { height: 48px; animation-delay: 0.4s; }
.wave-6 { height: 28px; animation-delay: 0.5s; }

.voice-speech-box {
  background: white; border-radius: 20px; padding: 40px 20px;
  margin: 0 20px 40px; text-align: center; font-size: 16px; color: #333; font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.voice-type-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 50px; background: white; border-radius: 24px; padding: 12px 24px;
  font-size: 14px; color: #1A4D66; font-weight: 600; border: 1px solid #EAF3F5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02); cursor: pointer; width: fit-content;
}
.voice-action-row {
  display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 100px;
}
.voice-btn-sm {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; color: #4A6A7A; cursor: pointer; border: none;
}
.voice-btn-lg {
  width: 80px; height: 80px; border-radius: 50%; background: #1A4D66;
  display: flex; align-items: center; justify-content: center; color: white;
  box-shadow: 0 0 0 6px #CDECF3; cursor: pointer; border: none;
}

/* =========================================
   13. AI 진단 결과 (AI Result)
   ========================================= */
.ai-result-bg {
  background: linear-gradient(180deg, #E6F2F5 0%, #F4FAFB 100%);
}
.result-card {
  background: white; border-radius: 20px; padding: 24px 20px; margin: 0 16px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03); position: relative; overflow: hidden;
}
.result-badge {
  display: inline-block; background: #F5E8D3; color: #8C6A45; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; margin-bottom: 12px;
}
.result-title {
  font-size: 24px; font-weight: 800; color: #1A2B3C; margin-bottom: 16px; letter-spacing: -0.5px;
}
.result-date {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: #7A8D9B; font-weight: 500;
}
.result-top-icon {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; background: #FDE8C5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #8C6A45; box-shadow: 0 4px 10px rgba(140,106,69,0.1);
}
.result-sec-title {
  display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: #1A2B3C; margin-bottom: 16px;
}
.symptom-item {
  background: #F4F9FA; border-radius: 12px; padding: 14px 16px; margin-bottom: 8px;
  font-size: 14px; color: #4A5B6C; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; font-weight: 500;
}
.symptom-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4A6A7A; margin-top: 7px; flex-shrink: 0;
}
.step-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: #8C6A45; color: white; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.step-content { flex: 1; }
.step-title { font-size: 15px; font-weight: 800; color: #1A2B3C; margin-bottom: 6px; }
.step-desc { font-size: 14px; color: #4A5B6C; line-height: 1.5; font-weight: 500; }
.step-desc strong { color: #8C6A45; }
.result-warning {
  background: #FEF6E7; border: 1px solid #F5E8D3; border-radius: 12px; padding: 16px;
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #8C6A45; line-height: 1.5; font-weight: 600; margin-top: 10px;
}

/* =========================================
   14. 커뮤니티 (Community)
   ========================================= */
.comm-page-bg {
  background-color: #F8F9FA;
}
.comm-header {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: white;
}
.comm-title {
  font-size: 18px; font-weight: 800; color: #1A4D66; letter-spacing: -0.5px; margin-left: 12px; flex: 1;
}
.comm-hdr-icons {
  display: flex; gap: 16px; color: #4A6A7A;
}
.comm-tabs-wrap {
  padding: 16px 20px 8px; background: #F8F9FA;
}
.comm-tabs {
  display: flex; background: #F0F2F5; border-radius: 12px; padding: 4px;
}
.comm-tab {
  flex: 1; text-align: center; padding: 12px 0; font-size: 14px; font-weight: 700; color: #7A8D9B; border-radius: 10px; cursor: pointer;
}
.comm-tab.active {
  background: white; color: #1A4D66; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comm-card {
  background: white; border-radius: 16px; margin: 12px 20px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.comm-author-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.comm-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
}
.comm-avatar-blue { background: #CDECF3; color: #1A4D66; }
.comm-avatar-green { background: #A2EBC6; color: #105C3A; }
.comm-author-info { flex: 1; }
.comm-author-name { font-size: 15px; font-weight: 800; color: #1A2B3C; margin-bottom: 3px; }
.comm-author-meta { font-size: 12px; color: #7A8D9B; font-weight: 500; }
.comm-card-title {
  font-size: 17px; font-weight: 800; color: #1A2B3C; margin-bottom: 10px; line-height: 1.4;
}
.comm-card-desc {
  font-size: 15px; color: #4A5B6C; margin-bottom: 16px; line-height: 1.5; font-weight: 500;
}
.comm-card-img-wrap {
  position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 4/3; background: #EAF3F5;
}
.comm-card-img {
  width: 100%; height: 100%; object-fit: cover;
}
.comm-badge-orange {
  position: absolute; top: 12px; right: 12px; background: #F2994A; color: white; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 16px;
}
.comm-badge-green {
  position: absolute; bottom: 12px; right: 12px; background: #006D5B; color: white; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 16px;
}
.comm-footer {
  display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #F0F2F5; padding-top: 16px;
}
.comm-action-group {
  display: flex; align-items: center; gap: 20px;
}
.comm-action-btn {
  display: flex; align-items: center; gap: 6px; color: #7A8D9B; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; border: none; padding: 0;
}
.comm-action-btn.active { color: #4A6A7A; }
.comm-fab {
  position: absolute; bottom: 80px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background: #006D5B; color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0, 109, 91, 0.3); z-index: 10; border: none; cursor: pointer;
}

/* ── utils ── */
.hidden {
  display: none !important
}

button {
  cursor: pointer
}

/* =========================================
   15. 검색 화면 (Search Screen Redesign)
   ========================================= */
.search-screen-bg {
  background: linear-gradient(180deg, #EBF5F8 0%, #EEF9FB 100%) !important;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 20px 8px;
  background: transparent;
}

.search-header .back-btn {
  background: none;
  border: none;
  padding: 4px;
  color: #1A4D66;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, color 0.15s;
  cursor: pointer;
}

.search-header .back-btn:hover {
  transform: translateX(-3px);
  color: #006D5B;
}

.search-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 80, 90, 0.08);
}

.search-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #1A4D66;
  letter-spacing: -0.5px;
}

.search-bar-container {
  padding: 8px 20px 20px;
}

.search-bar-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: 0 4px 18px rgba(0, 80, 90, 0.04);
  gap: 8px;
  border: 1.5px solid #EBF5F8;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar-input-wrap:focus-within {
  border-color: #9CD0D8;
  box-shadow: 0 4px 22px rgba(0, 80, 90, 0.08);
}

.search-bar-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #1A2B2A;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}

.search-bar-input::placeholder {
  color: #A0B3C0;
}

.search-bar-btn {
  background: none;
  border: none;
  padding: 2px;
  color: #7A8D9B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.search-bar-btn:hover {
  color: #1A4D66;
}

.search-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #4A6A7A;
  margin: 0 20px 14px;
  letter-spacing: -0.3px;
}

.search-recent-section {
  margin-bottom: 28px;
}

.search-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px;
}

.search-chip {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4A6360;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 80, 90, 0.03);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
  border: 1px solid #F0F7F8;
}

.search-chip:hover {
  transform: translateY(-2px);
  background-color: #EBF7F9;
  box-shadow: 0 4px 12px rgba(0, 80, 90, 0.06);
  color: #1A4D66;
}

.search-chip-clock {
  color: #7A8D9B;
  flex-shrink: 0;
}

.search-recommend-section {
  margin-bottom: 30px;
}

.search-recommend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 20px;
}

.search-rec-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 80, 90, 0.03);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid #F4FAFB;
}

.search-rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 80, 90, 0.08);
  border-color: #E0F2F1;
}

.search-rec-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.2s;
}

.search-rec-card:hover .search-rec-icon-wrap {
  transform: scale(1.08);
}

.disease-icon {
  background: #FFEBEB;
  color: #E05555;
}

.water-icon {
  background: #E0F7FA;
  color: #2D9E9E;
}

.maint-icon {
  background: #E8F5E9;
  color: #4CAF50;
}

.feed-icon {
  background: #FFF3E0;
  color: #FF9800;
}

.search-rec-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1A2B2A;
  margin-bottom: 4px;
}

.search-rec-card-sub {
  font-size: 11px;
  font-weight: 500;
  color: #7A8D9B;
}

/* =========================================
   미니멀 할 일 입력 폼
   ========================================= */
.minimal-todo-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #EAF3F5;
}

.minimal-todo-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #1A2B2A;
  outline: none;
}

.minimal-todo-form input::placeholder {
  color: #A0B3C0;
}

.minimal-todo-add-btn {
  background: transparent;
  border: none;
  color: var(--teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.1s;
}

.minimal-todo-add-btn:hover {
  background-color: #EAF3F5;
  transform: scale(1.05);
}

.minimal-todo-add-btn:active {
  transform: scale(0.95);
}

/* Hide default browser calendar icon inside input type="month" */
input[type="month"]::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}
input[type="month"] {
  position: relative;
}

/* ════════════════════════════════
   모바일 최적화 및 활성화 대응 CSS
   - 노치 및 하단 홈 바 대응 (Safe Area)
   - 모바일 브라우저 폰트 줌(자동 확대) 방지
   - 탭 반응성 향상 및 텍스트 선택 방지
   - 모바일 화면 가로 꽉 차게 대응
 ════════════════════════════════ */

/* 모바일 디바이스(가로 480px 이하)에서는 390px 제한을 풀고 꽉 채우기 */
@media (max-width: 480px) {
  #app {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* iOS/Android 디바이스 상단 노치/Status Bar 간섭 방지 */
.page-header {
  padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
}

/* iOS/Android 하단 홈 가상 바(인디케이터) 터치 간섭 방지 */
.bottom-nav {
  height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

/* 네비게이션 영역의 하단 여백 자동 계산 */
.pb-nav {
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
}

/* 모바일에서 터치 포커스 시 브라우저 자동 화면 줌인 방지 (최소 16px 확보) */
@media (max-width: 1024px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* 탭 딜레이 방지 및 터치 동작 개선 */
button,
a,
select,
input,
.nav-it,
.soc-btn,
.quick-btn,
.comm-action-btn,
.ai-card,
.drag-ico {
  touch-action: manipulation;
}

/* 모바일 앱 느낌을 주기 위해 기본 텍스트 드래그(선택) 방지 (입력 필드는 제외) */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* ── AI 채팅 말풍선 및 레이아웃 ── */
.ai-welcome-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ai-chat-messages {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 80px; /* 입력바 및 내비게이션바 간섭을 위해 충분한 하단 여백 추가 */
  overflow-y: auto;
  flex: 1;
}

.chat-bubble-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 85%;
}

.chat-bubble-wrap.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble-wrap.bot {
  align-self: flex-start;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  word-break: break-all;
}

.chat-bubble-wrap.user .chat-bubble {
  background: var(--teal);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble-wrap.bot .chat-bubble {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom-left-radius: 4px;
}

.chat-bubble-wrap.bot.typing .chat-bubble {
  color: var(--text3);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text3);
  border-radius: 50%;
  animation: typingBlink 1.4s infinite both;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }

@keyframes typingBlink {
  0%, 80%, 100% { opacity: .2; transform: scale(0.8); }
  45% { opacity: 1; transform: scale(1.2); }
}