/* Index */
.page-header { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 12px 0 16px; display: flex; align-items: center; gap: 12px; }
.page-header .ph-back { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.08); color: var(--text); }
.page-header .ph-title { font-size: 18px; font-weight: bold; }
.daily-card { position: relative; overflow: hidden; }
.daily-card .dc-label { position: absolute; top: 12px; left: 12px; background: var(--theme); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; z-index: 1; }
.daily-card .dc-img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 12px; margin-bottom: 12px; background: #f0f0f0; }
.daily-card .dc-title { font-size: 18px; font-weight: bold; margin-bottom: 6px; }
.daily-card .dc-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-entry { display: flex; gap: 12px; margin-bottom: 16px; }
.cat-entry .ce-card { flex: 1; border-radius: var(--radius); padding: 20px 16px; color: #fff; cursor: pointer; }
.cat-entry .ce-cat { background: linear-gradient(135deg, #FF8C5A, #FF6B35); }
.cat-entry .ce-dog { background: linear-gradient(135deg, #FFA940, #FF8C00); }
.cat-entry .ce-icon { font-size: 36px; margin-bottom: 8px; }
.cat-entry .ce-name { font-size: 16px; font-weight: bold; }
.cat-entry .ce-count { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.hot-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.hot-scroll .hs-item { flex-shrink: 0; width: 130px; cursor: pointer; }
.hot-scroll .hs-img { width: 130px; height: 130px; border-radius: 12px; object-fit: cover; background: #f0f0f0; }
.hot-scroll .hs-name { font-size: 13px; text-align: center; margin-top: 6px; font-weight: 500; }
.section-title { font-size: 18px; font-weight: bold; margin: 20px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 18px; background: var(--theme); border-radius: 2px; }

/* List */
.filter-bar { margin-bottom: 12px; }
.filter-label { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.breed-grid { display: flex; gap: 10px; }
.breed-grid .col { flex: 1; }
.breed-card { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); cursor: pointer; }
.breed-card .bc-img { width: 100%; display: block; }
.breed-card .bc-info { padding: 10px; }
.breed-card .bc-name { font-size: 14px; font-weight: bold; margin-bottom: 4px; }
.breed-card .bc-en { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.breed-card .bc-desc { font-size: 11px; color: var(--text-mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Detail */
.swiper-wrap { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.swiper-wrap .swiper-img { width: 100%; height: 280px; object-fit: cover; object-position: center top; display: block; background: #f0f0f0; }
.swiper-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.swiper-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.swiper-dots .dot.active { background: var(--theme); width: 20px; border-radius: 4px; }
.detail-name { font-size: 22px; font-weight: bold; }
.detail-name-en { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-tag-item { flex: 1; min-width: 80px; text-align: center; padding: 10px 8px; background: #f8f8f8; border-radius: 10px; }
.detail-tag-item .dtv { font-size: 14px; font-weight: bold; color: var(--text); margin-top: 2px; }
.detail-tag-item .dtl { font-size: 11px; color: var(--text-light); }
.rating-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.rating-row:last-child { border-bottom: none; }
.rating-row .rr-label { font-size: 14px; }
.rating-row .rr-stars { color: #ffb800; letter-spacing: 2px; }
.section-head { font-size: 16px; font-weight: bold; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.detail-bottom { position: sticky; bottom: 0; width: 100%; display: flex; gap: 12px; padding: 16px; background: #fff; border-top: 1px solid #f0f0f0; z-index: 5; }
.detail-bottom button { flex: 1; padding: 12px; border-radius: 24px; border: none; font-size: 14px; cursor: pointer; }
.detail-bottom .db-fav { flex: 0.6; background: #f5f5f5; color: var(--text-mid); }
.detail-bottom .db-fav.liked { background: var(--theme-light); color: var(--theme); }
.detail-bottom .db-cmp { flex: 1; background: #f5f5f5; color: var(--text); }
.detail-bottom .db-share { flex: 0.6; background: var(--theme); color: #fff; }

/* Recommend */
.quiz-card { background: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.quiz-card .q-title { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.quiz-card .q-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-card .q-opt { padding: 10px 18px; border-radius: 20px; border: 1px solid #e0e0e0; background: #fff; font-size: 14px; cursor: pointer; color: var(--text-mid); }
.quiz-card .q-opt.selected { border-color: var(--theme); background: var(--theme-light); color: var(--theme); }
.rec-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.rec-item .ri-rank { width: 32px; height: 32px; border-radius: 50%; background: var(--theme); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; flex-shrink: 0; }
.rec-item .ri-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f0f0f0; }
.rec-item .ri-info { flex: 1; }
.rec-item .ri-name { font-size: 15px; font-weight: bold; }
.rec-item .ri-bar { height: 6px; border-radius: 3px; background: #f0f0f0; margin-top: 6px; overflow: hidden; }
.rec-item .ri-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--theme), #FFA940); }

/* Compare */
.compare-row { display: flex; align-items: center; padding: 0 16px; margin-bottom: 20px; gap: 8px; }
.compare-row-multi { flex-wrap: wrap; justify-content: center; }
.compare-col { flex: 1; text-align: center; cursor: pointer; }
.compare-col .cc-img { width: 100%; height: 140px; border-radius: 12px; object-fit: cover; background: #f0f0f0; }
.compare-col .cc-name { font-size: 14px; font-weight: 500; margin-top: 8px; }
.compare-vs { width: 48px; height: 48px; border-radius: 50%; background: var(--theme-light); color: var(--theme); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; flex-shrink: 0; }
.cc-slot { flex: 1; min-width: 100px; max-width: 160px; text-align: center; cursor: pointer; position: relative; }
.cc-slot .cc-img { width: 100%; height: 120px; border-radius: 12px; object-fit: cover; background: #f0f0f0; }
.cc-slot .cc-name { font-size: 12px; font-weight: 500; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-slot .cc-remove { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #e74c3c; color: #fff; font-size: 14px; line-height: 22px; text-align: center; z-index: 2; }
.cc-slot.cc-add { cursor: pointer; }
.cc-slot .cc-empty { display: flex; align-items: center; justify-content: center; font-size: 36px; color: #ccc; width: 100%; height: 120px; border-radius: 12px; background: #f5f5f5; }
.cmp-table { border-radius: 12px; overflow: hidden; }
.cmp-tr { display: flex; }
.cmp-tr:nth-child(odd) { background: #fafafa; }
.cmp-tr.cmp-header { background: var(--theme-light); }
.cmp-td { flex: 1.5; padding: 12px 8px; font-size: 13px; text-align: center; }
.cmp-td:first-child { flex: 1; color: var(--text-light); text-align: left; }
.cmp-td.diff { color: var(--theme); font-weight: bold; }

/* Favorites */
.fav-item { display: flex; align-items: center; padding: 12px; background: #fff; border-radius: 12px; margin-bottom: 10px; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.fav-item .fi-img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: #f0f0f0; margin-right: 12px; flex-shrink: 0; }
.fav-item .fi-info { flex: 1; }
.fav-item .fi-name { font-size: 15px; font-weight: 500; }
.fav-item .fi-desc { font-size: 12px; color: var(--text-light); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-item .fi-arrow { color: #ccc; margin-left: 8px; }
.fav-item .fi-delete { flex-shrink:0; width:32px; height:32px; border:1px solid #f5c6cb; border-radius:50%; background:#fff5f5; color:#e74c3c; font-size:18px; line-height:30px; text-align:center; cursor:pointer; margin-left:10px; transition:all 0.2s; }
.fav-item .fi-delete:hover { background:#e74c3c; color:#fff; }

/* Mine */
.mine-header { background: linear-gradient(135deg, #FF8C5A, #FF6B35); border-radius: var(--radius); padding: 32px 20px; color: #fff; display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.mine-header .mh-avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.mine-header .mh-name { font-size: 18px; font-weight: bold; }
.mine-header .mh-sub { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.mine-header .mh-edit { margin-left:auto; font-size:12px; background:rgba(255,255,255,0.25); padding:4px 12px; border-radius:12px; cursor:pointer; white-space:nowrap; }
.menu-item { display: flex; align-items: center; padding: 16px; background: #fff; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.menu-item:first-child { border-radius: 12px 12px 0 0; }
.menu-item:last-child { border-radius: 0 0 12px 12px; border-bottom: none; }
.menu-item .mi-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; }
.menu-item .mi-text { flex: 1; font-size: 15px; }
.menu-item .mi-badge { background: var(--theme); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-right: 8px; }
.menu-item .mi-arrow { color: #ccc; }
.version { text-align: center; padding: 30px; color: var(--text-light); font-size: 12px; }

/* Tips grid */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 12px; }
.tips-card { background: #fff; border-radius: 12px; padding: 14px 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.tips-card:active { transform: scale(0.97); box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.tips-card .tc-badge { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 10px; font-size: 18px; margin-bottom: 8px; }
.tips-card .tc-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; }
.tips-card .tc-content { font-size: 11px; color: #999; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* News feed */
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; margin: 0 12px; cursor: pointer; }
.news-item:active { background: #fafafa; }
.news-item:last-child { border-bottom: none; }
.news-item .ni-left { width: 40px; flex-shrink: 0; text-align: center; }
.news-item .ni-left .ni-rank { width: 28px; height: 28px; line-height: 28px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: bold; margin: 0 auto 4px; }
.news-item .ni-left .ni-hot { font-size: 10px; color: #FF6B35; }
.news-item .ni-mid { flex: 1; min-width: 0; }
.news-item .ni-mid .ni-title { font-size: 15px; font-weight: 500; color: #222; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .ni-mid .ni-meta { font-size: 11px; color: #bbb; margin-top: 6px; display: flex; gap: 10px; }
.news-item .ni-right { width: 80px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.news-item .ni-right .ni-thumb { width: 100%; height: 100%; object-fit: cover; }
.news-item .ni-right .ni-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* MEMBER/VIP */
#member-body .card { margin: 16px; text-align: center; }
#test-body button:disabled { opacity: 0.5; cursor: not-allowed; }
#product-section .section-head { color: var(--theme); }

/* Admin */
.admin-card { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; border-radius: 10px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
#admin-form input, #admin-form textarea { width: 100%; padding: 10px; margin-top: 8px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; box-sizing: border-box; }
#admin-form textarea { resize: vertical; font-family: inherit; }
#admin-form input:focus, #admin-form textarea:focus { border-color: #FF6B35; }

/* Banner */
#banner-track { scroll-behavior: smooth; }
#banner-track::-webkit-scrollbar { display: none; }

/* Detail Modal */
.detail-modal { background:#fff; border-radius:16px; width:90%; max-width:480px; max-height:85vh; overflow:hidden; display:flex; flex-direction:column; }

/* Progress bars */
.bar-row { display:flex; align-items:center; gap:10px; padding:8px 0; }
.bar-row:not(:last-child) { border-bottom:1px solid #f5f5f5; }
.bar-label { width:90px; font-size:13px; color:#555; flex-shrink:0; }
.bar-track { flex:1; height:8px; background:#f0f0f0; border-radius:4px; overflow:hidden; }
.bar-fill { height:100%; border-radius:4px; transition:width 0.5s ease; }
.bar-val { width:30px; font-size:12px; color:#999; text-align:right; flex-shrink:0; }

/* Pet index */
.pet-index-wrap { display:flex; align-items:center; gap:20px; }
.pet-index-circle { width:80px; height:80px; border-radius:50%; background:conic-gradient(#FF6B35 calc(var(--pi)*1%), #eee 0); display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; flex-shrink:0; }
.pet-index-circle::after { content:''; position:absolute; width:62px; height:62px; border-radius:50%; background:#fff; }
.pi-val { font-size:22px; font-weight:bold; color:#FF6B35; position:relative; z-index:1; }
.pi-sub { font-size:11px; color:#999; position:relative; z-index:1; }
.pi-desc { font-size:13px; color:#666; line-height:1.5; }

/* Cost */
.cost-summary { text-align:center; padding:12px; background:#FFF8F0; border-radius:10px; }
.cost-row { display:flex; justify-content:space-between; padding:8px 12px; font-size:13px; }
.cost-row:not(:last-child) { border-bottom:1px solid #f5f5f5; }

/* Checklist */
.checklist-item { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#555; line-height:1.6; }
.check-dot { width:6px; height:6px; border-radius:50%; background:#FF6B35; flex-shrink:0; margin-top:7px; }

/* Similar breeds */
.sim-item { display:flex; align-items:center; gap:12px; padding:10px 0; cursor:pointer; }
.sim-item:not(:last-child) { border-bottom:1px solid #f0f0f0; }
.sim-item:active { background:#fafafa; }
.sim-img { width:56px; height:56px; border-radius:10px; object-fit:cover; background:#f0f0f0; flex-shrink:0; }
.sim-info { flex:1; min-width:0; }
.sim-name { font-size:14px; font-weight:500; }
.sim-en { font-size:11px; color:#999; margin-bottom:4px; }
.sim-score-bar { height:4px; background:#eee; border-radius:2px; margin-top:4px; overflow:hidden; }
.sim-score-fill { height:100%; background:linear-gradient(90deg,#FF6B35,#FFA940); border-radius:2px; }
.sim-score-label { font-size:11px; color:#FF6B35; margin-top:2px; }

/* Reminder */
.rem-item { border-bottom:1px solid #f0f0f0; }
.rem-item:last-child { border-bottom:none; }
.rem-header { display:flex; align-items:center; gap:12px; padding:14px 16px; cursor:pointer; }
.rem-icon { font-size:24px; width:40px; text-align:center; }
.rem-info { flex:1; }
.rem-name { font-size:15px; font-weight:500; }
.rem-desc { font-size:12px; color:#999; }
.rem-switch { width:48px; height:28px; border-radius:14px; background:#ddd; position:relative; flex-shrink:0; transition:background 0.2s; }
.rem-switch.on { background:#4CAF50; }
.rem-sw-knob { width:24px; height:24px; border-radius:50%; background:#fff; position:absolute; top:2px; left:2px; transition:left 0.2s; box-shadow:0 1px 3px rgba(0,0,0,0.2); }
.rem-switch.on .rem-sw-knob { left:22px; }
.rem-config { padding:0 16px 14px 68px; display:flex; flex-direction:column; gap:8px; }
.rem-config-row { display:flex; align-items:center; gap:8px; font-size:13px; }
.rem-config-row > span:first-child { width:60px; color:#666; flex-shrink:0; }

/* Tools grid */
.tools-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 12px; }
.tools-card { background:#fff; border-radius:12px; padding:20px 16px; box-shadow:0 2px 8px rgba(0,0,0,0.04); cursor:pointer; transition:transform 0.15s; }
.tools-card:active { transform:scale(0.97); }
.tools-card .tc-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:10px; }
.tools-card .tc-title { font-size:15px; font-weight:600; color:#333; margin-bottom:4px; }
.tools-card .tc-desc { font-size:12px; color:#999; line-height:1.5; }

/* Admin breed upload */
.breed-upload-item { display:flex; align-items:center; gap:10px; padding:10px; background:#fff; border-radius:8px; margin-bottom:6px; }
.breed-upload-item .bu-img { width:48px; height:48px; border-radius:8px; object-fit:cover; background:#f0f0f0; }
.breed-upload-item .bu-info { flex:1; min-width:0; }
.breed-upload-item .bu-name { font-size:14px; font-weight:500; }
.breed-upload-item .bu-count { font-size:11px; color:#999; }
.upload-zone { border:2px dashed #ddd; border-radius:12px; padding:30px; text-align:center; background:#fafafa; margin:12px 0; cursor:pointer; }
.upload-zone:hover { border-color:#FF6B35; background:#FFF8F0; }
.upload-preview { max-width:200px; max-height:150px; border-radius:8px; margin-top:10px; display:none; }

/* Food query */
.food-search { width:100%; padding:12px; border:1px solid #e0e0e0; border-radius:10px; font-size:14px; margin-bottom:12px; background:#fff; box-sizing:border-box; }
.food-cats { display:flex; gap:8px; overflow-x:auto; padding-bottom:8px; margin-bottom:12px; }
.food-cat { flex-shrink:0; padding:6px 16px; border-radius:16px; font-size:13px; background:#f0f0f0; color:#666; cursor:pointer; white-space:nowrap; }
.food-cat.active { background:#FF6B35; color:#fff; }
.food-item { display:flex; align-items:center; gap:12px; background:#fff; border-radius:12px; padding:14px 12px; margin-bottom:8px; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.fi-left { flex-shrink:0; }
.fi-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:bold; color:#fff; }
.fi-icon.food-safe { background:#27ae60; }
.fi-icon.food-caution { background:#f39c12; }
.fi-icon.food-forbidden { background:#e74c3c; }
.fi-body { flex:1; min-width:0; }
.fi-name { font-size:15px; font-weight:600; color:#333; }
.fi-reason { font-size:12px; color:#999; margin-top:2px; line-height:1.4; }
.fi-badge { font-size:11px; padding:3px 10px; border-radius:10px; font-weight:500; white-space:nowrap; }
.fi-badge.food-safe { background:#e8f5e9; color:#27ae60; }
.fi-badge.food-caution { background:#fff8e1; color:#f39c12; }
.fi-badge.food-forbidden { background:#fce4ec; color:#e74c3c; }

/* ===== Weight & Expense Common ===== */
.w-card { background:#fff; border-radius:12px; padding:16px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.w-card-title { font-size:13px; font-weight:600; color:#999; margin-bottom:12px; }
.w-form-row { display:flex; gap:8px; align-items:stretch; }
.w-form-row .w-input { flex:1; min-width:0; padding:10px 12px; border:1px solid #e0e0e0; border-radius:8px; font-size:14px; background:#fff; box-sizing:border-box; }
.w-form-row .w-input:focus { border-color:#FF6B35; outline:none; }
.w-form-row .w-btn { flex-shrink:0; padding:0 18px; min-width:60px; background:#FF6B35; color:#fff; border:none; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; }
.w-form-row .w-btn:active { background:#E55B2B; }
.w-type-tabs { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.w-tab { padding:6px 14px; border-radius:20px; border:1px solid #e0e0e0; background:#fff; font-size:13px; color:#666; cursor:pointer; }
.w-tab.on { border-color:#FF6B35; background:#FFF3E0; color:#FF6B35; font-weight:600; }
.w-std-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; background:#f9f9f9; border-radius:8px; margin-top:10px; font-size:13px; color:#666; }
.w-std-bar .ws-status { font-weight:600; }
.w-chart-box { background:#fff; border-radius:12px; padding:12px 8px 4px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.w-list { }
.w-item { display:flex; align-items:center; gap:12px; padding:12px; background:#fff; border-radius:8px; margin-bottom:6px; box-shadow:0 1px 3px rgba(0,0,0,0.03); }
.w-item-date { font-size:13px; color:#999; width:90px; flex-shrink:0; }
.w-item-val { font-size:15px; font-weight:600; color:#FF6B35; flex:1; }
.w-item-del { color:#ccc; font-size:18px; cursor:pointer; padding:0 4px; flex-shrink:0; }
.w-item-del:active { color:#e74c3c; }

/* Expense */
.e-summary { display:flex; gap:10px; margin-bottom:12px; }
.e-sum-card { flex:1; background:#fff; border-radius:12px; padding:16px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.e-sum-num { font-size:26px; font-weight:bold; }
.e-sum-label { font-size:12px; color:#999; margin-top:4px; }
.e-bars-card { background:#fff; border-radius:12px; padding:16px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.e-bar-row { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.e-bar-label { width:32px; font-size:12px; color:#666; text-align:right; flex-shrink:0; }
.e-bar-track { flex:1; height:8px; background:#f0f0f0; border-radius:4px; overflow:hidden; }
.e-bar-fill { height:100%; border-radius:4px; transition:width 0.3s; }
.e-bar-amt { width:50px; font-size:12px; color:#666; text-align:right; flex-shrink:0; }
.e-item { display:flex; align-items:center; gap:6px; padding:11px 10px; background:#fff; border-radius:8px; margin-bottom:6px; box-shadow:0 1px 3px rgba(0,0,0,0.03); }
.e-item-date { font-size:11px; color:#aaa; width:78px; flex-shrink:0; white-space:nowrap; }
.e-item-cat { font-size:11px; color:#999; width:40px; flex-shrink:0; text-align:center; }
.e-item-amt { font-size:14px; font-weight:600; flex:1; text-align:right; }
.e-item-del { color:#ccc; font-size:16px; cursor:pointer; flex-shrink:0; }
.e-item-del:active { color:#e74c3c; }

/* For expense form, make dropdown wider */
#exp-cat { min-width:60px; }

/* Expense */
.exp-summary { margin-bottom:12px; }

/* Forum */
.forum-nick { font-size:13px; color:#999; cursor:pointer; background:#f5f5f5; padding:4px 10px; border-radius:12px; }
.forum-post-box { background:#fff; border-radius:12px; padding:14px; margin-bottom:14px; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.forum-post-box textarea { width:100%; border:1px solid #e0e0e0; border-radius:8px; padding:10px; font-size:14px; resize:vertical; box-sizing:border-box; font-family:inherit; }
.forum-post-item { display:flex; gap:10px; background:#fff; border-radius:12px; padding:14px; margin-bottom:10px; box-shadow:0 1px 4px rgba(0,0,0,0.04); cursor:pointer; }
.fpi-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#FF6B35,#FF8C5A); color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:bold; flex-shrink:0; }
.fpi-body { flex:1; min-width:0; }
.fpi-nick { font-size:14px; font-weight:600; color:#333; }
.fpi-time { font-size:11px; color:#bbb; font-weight:400; margin-left:8px; }
.fpi-content { font-size:14px; color:#444; margin-top:6px; line-height:1.6; word-break:break-word; }
.fpi-footer { font-size:12px; color:#999; margin-top:8px; }

/* Comment items */
.fc-item { display:flex; gap:8px; padding:10px 0; border-bottom:1px solid #f8f8f8; }
.fc-reply { padding-left:40px; background:#fafafa; border-radius:8px; padding:10px 10px 10px 40px; margin:4px 0; }
.fc-avatar { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#9C27B0,#E91E63); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:bold; flex-shrink:0; }
.fc-body { flex:1; min-width:0; }
.fc-content { font-size:14px; color:#333; margin-top:4px; line-height:1.5; word-break:break-word; }
.fc-actions { display:flex; gap:16px; margin-top:6px; font-size:12px; color:#999; }
.fc-actions span { cursor:pointer; }
.fc-actions span:active { color:#FF6B35; }

/* Forum detail */
.fd-scroll { padding:0 12px; padding-bottom:64px; }
.fd-bar { position:fixed; bottom:0; left:0; right:0; background:#fff; padding:8px 12px; box-shadow:0 -1px 6px rgba(0,0,0,0.06); z-index:100; display:flex; gap:8px; align-items:flex-end; }
.fd-input { flex:1; border:1px solid #ddd; border-radius:10px; padding:9px 12px; font-size:14px; resize:none; box-sizing:border-box; font-family:inherit; line-height:1.4; height:36px; min-height:36px; max-height:100px; outline:none; background:#f8f8f8; }
.fd-input:focus { border-color:#FF6B35; background:#fff; }
.fd-send { flex-shrink:0; width:56px; height:36px; border:none; border-radius:10px; background:#FF6B35; color:#fff; font-size:14px; font-weight:600; cursor:pointer; }
.fd-send:active { background:#e55a2b; }

#page-login, #page-register { padding:0 !important; }
.login-page { min-height:100vh; background:linear-gradient(180deg,#FF9A56 0%,#FFBB7C 35%,#FFF5EC 35%,#FFF5EC 100%); position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; }
.login-bg { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.lp-paw { position:absolute; font-size:32px; opacity:0.15; }
.lp-paw-1 { top:12%; left:8%; transform:rotate(-25deg); font-size:28px; }
.lp-paw-2 { top:22%; right:12%;transform:rotate(15deg); font-size:38px; }
.lp-paw-3 { bottom:20%; left:5%; transform:rotate(-10deg); font-size:34px; }
.login-brand { text-align:center; padding-top:14vh; margin-bottom:28px; position:relative; z-index:1; }
.lb-logo { width:72px; height:72px; background:rgba(255,255,255,0.25); border-radius:20px; display:flex; align-items:center; justify-content:center; font-size:40px; margin:0 auto 14px; }
.lb-name { font-size:26px; font-weight:800; color:#fff; letter-spacing:1px; text-shadow:0 2px 8px rgba(0,0,0,0.1); }
.lb-desc { font-size:14px; color:rgba(255,255,255,0.85); margin-top:6px; }
.login-card { width:calc(100% - 48px); max-width:360px; background:#fff; border-radius:24px; padding:32px 24px 24px; box-shadow:0 8px 30px rgba(0,0,0,0.06); position:relative; z-index:1; }
.lc-field { margin-bottom:24px; }
.lc-label { font-size:15px; color:#333; font-weight:500; margin-bottom:8px; }
.lc-line { border-bottom:1.5px solid #e8e8e8; padding-bottom:6px; transition:border-color 0.2s; }
.lc-line:focus-within { border-color:#FF6B35; }
.lc-input { width:100%; border:none; outline:none; font-size:16px; color:#333; background:transparent; padding:4px 0; font-family:inherit; }
.lc-input::placeholder { color:#ccc; }
.lc-btn { width:100%; padding:14px; background:linear-gradient(135deg,#FF6B35,#FF8C5A); color:#fff; border:none; border-radius:30px; font-size:17px; font-weight:700; cursor:pointer; margin-top:8px; box-shadow:0 4px 14px rgba(255,107,53,0.35); }
.lc-btn:active { opacity:0.85; transform:scale(0.98); }
.lc-links { display:flex; justify-content:space-between; margin-top:18px; }
.lc-links span { font-size:13px; cursor:pointer; }
.lc-links span:first-child { color:#999; }
.lc-links span:last-child { color:#FF6B35; font-weight:500; }
.login-guest { margin-top:20px; padding:12px 40px; border:1.5px solid rgba(255,107,53,0.4); border-radius:30px; color:#FF6B35; font-size:15px; font-weight:500; cursor:pointer; background:rgba(255,255,255,0.6); position:relative; z-index:1; }
.login-guest:active { background:rgba(255,107,53,0.08); }
.lp-dots { display:flex; gap:8px; margin-top:32px; position:relative; z-index:1; }
.lp-dots span { width:6px; height:6px; border-radius:50%; background:#ddd; }
.lp-dots span.on { background:#FF6B35; width:18px; border-radius:3px; }

/* Profile */
.profile-card { background:#fff; border-radius:12px; padding:24px 20px; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.pf-avatar { width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg,#FF6B35,#FF8C5A); color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:bold; margin:0 auto 20px; }
.pf-field { margin-bottom:16px; }
.pf-field label { display:block; font-size:13px; color:#999; margin-bottom:6px; }
.pf-field input { width:100%; padding:10px 12px; border:1px solid #e0e0e0; border-radius:8px; font-size:15px; box-sizing:border-box; }
.pf-field .pf-value { padding:10px 12px; font-size:14px; color:#666; background:#f9f9f9; border-radius:8px; word-break:break-all; }

/* Knowledge */
.know-card { display:flex; align-items:center; gap:12px; background:#fff; border-radius:12px; padding:16px 14px; margin-bottom:10px; box-shadow:0 1px 4px rgba(0,0,0,0.04); cursor:pointer; }
.know-icon { width:44px; height:44px; border-radius:12px; background:#f5f5f5; display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }
.know-info { flex:1; min-width:0; }
.know-name { font-size:15px; font-weight:600; color:#333; }
.know-desc { font-size:12px; color:#999; margin-top:2px; }
.know-body { padding:16px 0; font-size:15px; line-height:1.9; color:#333; }
.know-body h2 { font-size:18px; margin:20px 0 10px; color:#FF6B35; }
.know-body h3 { font-size:16px; margin:16px 0 8px; }
.know-body ul,.know-body ol { padding-left:20px; margin:8px 0; }
.know-body li { margin-bottom:6px; }

.vip-teaser { position: relative; overflow: hidden; min-height: 140px; cursor: pointer; transition: transform 0.2s; }
.vip-teaser:active { transform: scale(0.98); }
.vip-overlay { position: absolute; bottom: 0; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; border-radius: 14px; }
.vip-lock-icon { font-size: 32px; margin-bottom: 8px; }
.vip-unlock-btn { margin-top: 10px; padding: 6px 24px; background: linear-gradient(135deg,#FFD700,#FF8C00); color: #fff; border-radius: 16px; font-size: 13px; font-weight: 600; }
.vip-deep-card { background: linear-gradient(180deg, #FFFDE7 0%, #fff 40%); border: 1px solid #FFE082; }
.vip-chart-section { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.vip-chart-section:last-child { border-bottom: none; }
.vip-chart-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.vip-chart-desc { font-size: 12px; color: #FF6B35; margin-top: 4px; text-align: center; }
.vip-gauge { display: flex; align-items: center; gap: 10px; }
.vip-gauge-bar { flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.vip-gauge-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.vip-gauge-val { font-size: 14px; font-weight: bold; color: #FF6B35; }
.vip-routine-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.vip-routine-dot { width: 6px; height: 6px; border-radius: 50%; background: #FFD700; flex-shrink: 0; margin-top: 6px; }

.member-wrap { padding: 0; }
.member-card { text-align: center; padding: 24px 20px; margin: 0 -16px; border-radius: 0 0 24px 24px; background: linear-gradient(135deg, #FFF8E1, #fff); }
.member-card.m-gold { background: linear-gradient(135deg, #FFD700 0%, #FFA000 40%, #FFD54F 100%); color: #fff; }
.mc-crown { font-size: 44px; margin-bottom: 4px; }
.mc-badge { font-size: 22px; font-weight: 700; }
.member-card.m-gold .mc-badge { text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.mc-expire { font-size: 13px; opacity: 0.85; margin-top: 8px; }
.mc-title { font-size: 18px; font-weight: 700; color: #FF6B35; }
.mc-subtitle { font-size: 13px; color: #999; margin-top: 4px; }
.member-benefits { padding: 16px 0; }
.mb-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; padding-left: 4px; }
.mb-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.mb-item.mb-locked { opacity: 0.6; background: #f9f9f9; }
.mbi-icon { font-size: 24px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #FFF8E1; border-radius: 10px; flex-shrink: 0; }
.mbi-info { flex: 1; min-width: 0; }
.mbi-title { font-size: 14px; font-weight: 600; color: #333; }
.mbi-desc { font-size: 11px; color: #999; margin-top: 2px; }
.mbi-check { color: #FFD700; font-size: 18px; font-weight: bold; }
.mbi-lock-icon { font-size: 16px; }
.member-redeem { margin: 16px 0; padding: 16px; background: #FFF8E1; border-radius: 12px; }
.mr-label { font-size: 13px; color: #666; font-weight: 500; }

.picker-item.selected { background: #FFF8E1; }
.picker-item.selected .pi-name { color: #FF6B35; }
.know-body strong { color:#FF6B35; }

.tools-vip-label { font-size: 13px; font-weight: 600; color: #FF8C00; padding: 8px 16px 4px; }
.vip-card { position: relative; }
.vip-card::after { content: 'VIP'; position: absolute; top: 6px; right: 6px; background: linear-gradient(135deg,#FFD700,#FF8C00); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }

.auth-btn { display: inline-block; padding: 12px 28px; border-radius: 24px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; background: linear-gradient(135deg,#FF6B35,#FF8C5A); color: #fff; box-shadow: 0 4px 12px rgba(255,107,53,0.3); transition: transform 0.15s; }
.auth-btn:active { transform: scale(0.97); }

.feed-section { margin-bottom: 16px; }
.feed-cat-title { font-size: 15px; font-weight: 600; color: #555; margin: 8px 0 6px 4px; }
.feed-breed-item { display: inline-block; padding: 6px 14px; margin: 4px 6px 4px 0; background: #FFF8E1; border-radius: 16px; font-size: 13px; color: #333; cursor: pointer; transition: all 0.2s; }
.feed-breed-item:active { background: #FFE082; transform: scale(0.96); }
.feed-info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.feed-info-row:last-child { border-bottom: none; }
.fir-label { font-size: 13px; color: #888; }
.fir-val { font-size: 14px; font-weight: 600; color: #333; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feed-tag { display: inline-block; padding: 4px 12px; background: #E8F5E9; color: #2E7D32; border-radius: 12px; font-size: 12px; }
.feed-tag-bad { background: #FFEBEE; color: #C62828; }
.feed-tips { padding-left: 18px; margin: 0; }
.feed-tips li { font-size: 13px; color: #555; line-height: 1.8; }

.health-row { display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.health-row:last-child { border-bottom: none; }
.hl-age { width: 70px; font-size: 13px; font-weight: 600; color: #FF6B35; flex-shrink: 0; padding-top: 2px; }
.hl-info { flex: 1; padding-left: 8px; }
.hl-item { font-size: 14px; font-weight: 500; color: #333; }
.hl-note { font-size: 11px; color: #999; margin-top: 2px; }

.vip-lock-page { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.vlp-icon { font-size: 56px; margin-bottom: 16px; }
.vlp-title { font-size: 18px; font-weight: 700; color: #FF6B35; margin-bottom: 8px; }
.vlp-desc { font-size: 14px; color: #999; margin-bottom: 24px; }
.vlp-btn { padding: 10px 36px; background: linear-gradient(135deg,#FFD700,#FF8C00); color: #fff; border: none; border-radius: 20px; font-size: 15px; font-weight: 600; cursor: pointer; }

.age-result-card { text-align: center; padding: 28px 16px; margin: 12px 0; }
.age-human { font-size: 56px; font-weight: 800; color: #FF6B35; }
.age-label { font-size: 14px; color: #999; margin-top: 4px; }
.age-note { font-size: 12px; color: #bbb; margin-top: 10px; white-space: pre-line; line-height: 1.6; }
