/* Stillwild v2 look: deep forest + warm sand, bigger touch targets */
:root { --forest: #123524; --forest-2: #1c4a33; --moss: #3f7d55; --amber: #e0a43b; --red: #d6453d; --card: #ffffff; --bg: #f3f1ea; }
html, body { background: var(--bg); }
.topbar { background: var(--forest); color: #fff; border: 0; box-shadow: none; }
.topbar .icon-btn, .topbar .app-title, .topbar .logo-small { color: #fff; }
.content { background: var(--bg); }
.bottom-nav { background: #fff; border-top: 1px solid #e6e1d6; box-shadow: 0 -6px 24px rgba(18,53,36,.06); }
.nav-item { position: relative; font-size: 11px; font-weight: 600; }
.nav-item.active { color: var(--forest); }
.nav-item.active svg { background: #e3efe6; border-radius: 12px; padding: 3px 12px; width: 46px; height: 28px; }
.nav-badge { position: absolute; top: 2px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.btn-primary { background: var(--forest); }
.btn-primary:hover { background: var(--forest-2); }
.btn-light { background: #fff; color: var(--forest); font-weight: 700; }
.btn-ghost { background: transparent; color: var(--muted); }
.link-btn { color: var(--moss); font-weight: 600; }

.v2-greet { margin: 4px 2px 14px; }
.v2-greet p { color: var(--muted); font-size: 14px; }
.v2-greet h2 { font-size: 28px; color: var(--forest); }

.v2-hero { background: linear-gradient(150deg, #1c4a33 0%, #123524 60%, #0c2619 100%); color: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 14px 34px rgba(18,53,36,.25); position: relative; overflow: hidden; }
.v2-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(224,164,59,.35), transparent 70%); }
.v2-hero h2 { font-size: 26px; margin: 10px 0 6px; color: #fff; }
.v2-hero p { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.45; }
.v2-hero.empty { text-align: center; padding: 28px 22px; }
.v2-hero.empty .btn { margin-top: 16px; }
.v2-hero-ic { font-size: 40px; }
.v2-hero-row { display: flex; align-items: center; justify-content: space-between; }
.v2-hero-sub { font-size: 13px; color: rgba(255,255,255,.7); }
.v2-live { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.v2-live i { width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 0 rgba(94,224,138,.7); animation: v2pulse 2s infinite; }
@keyframes v2pulse { 70% { box-shadow: 0 0 0 8px rgba(94,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(94,224,138,0); } }
.v2-hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 16px; }
.v2-hero-stats div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px; }
.v2-hero-stats b { display: block; font-size: 22px; font-family: 'Outfit', sans-serif; }
.v2-hero-stats span { font-size: 11px; color: rgba(255,255,255,.75); }

.v2-quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 14px 0 4px; }
.v2-quick button { background: #fff; border: 0; border-radius: 16px; padding: 12px 4px; font-size: 11.5px; font-weight: 600; color: var(--forest); display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow); cursor: pointer; }
.v2-quick span { font-size: 20px; }

.v2-section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.v2-section-head h3 { font-size: 18px; color: var(--forest); }

.v2-alert-mini-list { display: grid; gap: 8px; }
.v2-alert-mini { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 0; border-left: 4px solid var(--amber); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); cursor: pointer; }
.v2-alert-mini.poacher { border-left-color: var(--red); background: #fff6f5; }
.v2-am-ic { font-size: 22px; }
.v2-am-txt { flex: 1; display: flex; flex-direction: column; }
.v2-am-txt small { color: var(--muted); }
.v2-chev { color: var(--muted); font-size: 22px; }

.v2-sum-card { display: block; width: 100%; text-align: left; background: #fffdf7; border: 1px solid #ece4cf; border-radius: 18px; padding: 16px; cursor: pointer; }
.v2-sum-card h4 { font-size: 17px; margin: 8px 0 6px; color: var(--forest); }
.v2-sum-card p { font-size: 14px; line-height: 1.5; color: #3b4339; }
.v2-readmore { display: inline-block; margin-top: 8px; color: var(--moss); font-weight: 600; font-size: 13px; }
.v2-pill { display: inline-block; background: #e3efe6; color: var(--forest); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }

.v2-trig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2-trig { position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: #222; cursor: pointer; box-shadow: var(--shadow); }
.v2-trig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-trig-tag { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.92); color: var(--forest); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.v2-trig-tag.person, .v2-trig-tag.vehicle { background: #fff1d6; color: #8a5300; }
.v2-trig-tag.red { background: var(--red); color: #fff; }
.v2-trig-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 11px; text-align: left; }

/* alerts */
.v2-alert-tabs { margin-bottom: 12px; }
.v2-alert { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); border-left: 4px solid var(--amber); }
.v2-alert.poacher { border-left-color: var(--red); }
.v2-alert.resolved { opacity: .65; border-left-color: #c9cfc7; }
.v2-alert-photo { flex: 0 0 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: #eee; cursor: pointer; }
.v2-alert-photo img { width: 100%; height: 100%; object-fit: cover; }
.v2-noph { display: flex; align-items: center; justify-content: center; font-size: 30px; }
.v2-alert-main { flex: 1; min-width: 0; }
.v2-alert-main h4 { font-size: 15px; margin: 4px 0; }
.v2-alert-main p { font-size: 13px; color: #4a5248; line-height: 1.4; }
.v2-alert-top, .v2-alert-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.v2-alert-foot { margin-top: 8px; }
.v2-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #fff1d6; color: #8a5300; }
.v2-tag.red { background: var(--red); color: #fff; }
.v2-empty { text-align: center; padding: 36px 20px; }
.v2-empty-ic { font-size: 40px; }
.v2-empty h4 { margin: 8px 0 6px; font-size: 18px; }

/* summary */
.v2-summary { background: #fff; border-radius: 18px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.v2-summary-main { background: #fffdf7; border: 1px solid #ece4cf; }
.v2-sum-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v2-summary h3 { font-size: 21px; color: var(--forest); margin: 10px 0 12px; }
.v2-sum-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 12px; }
.v2-sum-stats div { background: #f1efe6; border-radius: 12px; padding: 8px 4px; text-align: center; }
.v2-sum-stats b { display: block; font-size: 18px; font-family: 'Outfit', sans-serif; color: var(--forest); }
.v2-sum-stats span { font-size: 10.5px; color: var(--muted); }
.v2-sum-body p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; color: #2d332c; font-family: Georgia, 'Times New Roman', serif; }
.v2-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 6px 0 10px; }
.v2-thumb { flex: 0 0 92px; height: 70px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; position: relative; }
.v2-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v2-thumb span { position: absolute; bottom: 2px; left: 4px; color: #fff; font-size: 10px; text-shadow: 0 1px 2px #000; }
.v2-foot { text-align: center; margin: 8px 12px 20px; }

/* sheet */
.v2-sheet { position: fixed; inset: 0; background: rgba(10,25,16,.5); z-index: 1000; display: flex; align-items: flex-end; }
.v2-sheet-card { background: #fff; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + var(--safe-bottom)); max-height: 92vh; overflow-y: auto; transform: translateY(30px); transition: transform .2s ease; }
.v2-sheet.open .v2-sheet-card { transform: none; }
.v2-grab { width: 40px; height: 5px; border-radius: 3px; background: #ddd; margin: 0 auto 12px; }
.v2-sheet-card h3 { font-size: 21px; color: var(--forest); }
.v2-opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: #f7f6f1; border: 2px solid transparent; border-radius: 16px; padding: 14px; margin-top: 10px; cursor: pointer; position: relative; }
.v2-opt.rec { border-color: var(--moss); background: #eef6f0; }
.v2-opt b { display: block; font-size: 15px; color: var(--forest); margin-bottom: 3px; padding-right: 70px; }
.v2-opt small { color: #555d53; font-size: 12.5px; line-height: 1.4; }
.v2-opt-ic { font-size: 24px; }
.v2-opt em { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 10.5px; font-weight: 700; background: var(--moss); color: #fff; padding: 2px 8px; border-radius: 99px; }

/* settings */
.v2-settings { background: #fff; border-radius: 16px; padding: 6px 16px 14px; margin: 14px 0; box-shadow: var(--shadow); }
.v2-settings h4 { margin: 14px 0 4px; color: var(--forest); }
.v2-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0ede4; cursor: pointer; }
.v2-switch-row span { display: flex; flex-direction: column; }
.v2-switch-row small { color: var(--muted); font-size: 12px; }
.v2-switch-row input { display: none; }
.v2-switch-row i { flex: 0 0 44px; height: 26px; border-radius: 13px; background: #d5d9d3; position: relative; transition: .2s; }
.v2-switch-row i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.v2-switch-row input:checked + i { background: var(--moss); }
.v2-switch-row input:checked + i::after { left: 21px; }
.v2-note { background: #f7f3e6; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #5b5440; }

/* auth */
.auth-bg { background: linear-gradient(160deg, #1c4a33, #0c2619) !important; }
.v2-summary .ns-species { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-summary .ns-species span { background: #e3efe6; color: var(--forest); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
