:root{
  --danger:#dc2626;
  --danger-dark:#991b1b;
  --primary:#0f766e;
  --primary-dark:#115e59;
  --dark:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f8fafc;
  --card:#ffffff;
  --shadow:0 20px 55px rgba(15,23,42,.13);
  --radius:24px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(180deg,#fff7f7 0%,#f8fafc 42%,#ecfeff 100%);color:var(--dark)}
a{text-decoration:none;color:inherit}
.text-muted{color:var(--muted)}
.text-center{text-align:center}
.mb-0{margin-bottom:0}
.mt-0{margin-top:0}
.app-shell{width:min(100%,520px);min-height:100vh;margin:0 auto;background:rgba(255,255,255,.72);box-shadow:0 0 0 1px rgba(255,255,255,.8);position:relative;padding-bottom:108px;overflow:hidden}
.app-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:14px 16px;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(226,232,240,.9)}
.app-header img{width:48px;height:48px;border-radius:15px;box-shadow:0 8px 22px rgba(220,38,38,.22)}
.app-header h1{font-size:17px;line-height:1.15;margin:0;font-weight:900}
.app-header span{font-size:12px;color:var(--muted)}
.content{padding:18px 16px 24px}
.card{background:rgba(255,255,255,.94);border:1px solid rgba(226,232,240,.85);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}
.profile-card{display:flex;gap:14px;align-items:center}
.profile-card .avatar{width:84px;height:84px;border-radius:24px;object-fit:cover;border:4px solid #fff;box-shadow:0 12px 26px rgba(15,23,42,.16)}
.profile-card h2{font-size:19px;margin:0 0 6px}
.profile-meta{font-size:13px;color:#374151;line-height:1.45}
.badge{display:inline-flex;align-items:center;border-radius:999px;background:#fee2e2;color:#991b1b;font-weight:800;font-size:12px;padding:5px 10px;margin-bottom:8px}
.sos-area{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 10px 12px}
.sos-btn{width:245px;height:245px;border-radius:50%;border:0;background:radial-gradient(circle at 35% 28%,#fb7185 0%,#dc2626 46%,#7f1d1d 100%);color:#fff;font-size:66px;font-weight:1000;letter-spacing:1px;box-shadow:0 28px 70px rgba(220,38,38,.45), inset 0 -14px 30px rgba(0,0,0,.25), inset 0 10px 28px rgba(255,255,255,.2);cursor:pointer;touch-action:none;position:relative;transition:transform .13s ease, filter .13s ease}
.sos-btn:active,.sos-btn.holding{transform:scale(.96);filter:saturate(1.2)}
.sos-btn::after{content:"";position:absolute;inset:-12px;border-radius:50%;border:3px solid rgba(220,38,38,.24);animation:pulse 1.8s ease-out infinite}
.hold-note{margin:18px 0 0;font-size:15px;text-align:center;font-weight:800;color:#7f1d1d}
.hold-progress{width:min(320px,88vw);height:11px;background:#fee2e2;border-radius:999px;overflow:hidden;margin-top:12px}
.hold-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,#f97316,#dc2626);transition:width .08s linear}@keyframes pulse{0%{transform:scale(.95);opacity:.8}100%{transform:scale(1.17);opacity:0}}
.bottom-menu{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,520px);z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-top:1px solid rgba(226,232,240,.95);padding:9px 9px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);gap:7px}
.bottom-menu a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:64px;border-radius:19px;background:#f8fafc;border:1px solid #eef2f7;color:#0f172a;font-size:11px;font-weight:800}
.bottom-menu .icon{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#dcfce7;color:#166534;font-size:14px;margin-bottom:5px}
.bottom-menu a:nth-child(3) .icon{background:#fee2e2;color:#991b1b}
.bottom-menu a:nth-child(4) .icon{background:#dbeafe;color:#1d4ed8}
.bottom-menu a:nth-child(5) .icon{background:#e0f2fe;color:#0369a1}
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(circle at top,#fee2e2 0,#fff7ed 36%,#ecfeff 100%)}
.auth-card{width:min(100%,520px);background:#fff;border-radius:30px;box-shadow:var(--shadow);padding:22px;border:1px solid #f1f5f9}
.auth-brand{
	align-items:center;
	gap:12px;
	margin-bottom:16px
	}
.auth-brand img{
	width:400px;
	height:170px;
	border-radius:16px
	}
.auth-brand h1{font-size:20px;line-height:1.15;margin:0}
.form-grid{display:grid;gap:12px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-group label{display:block;font-weight:800;font-size:13px;margin-bottom:6px}
.form-control{width:100%;border:1px solid #d1d5db;border-radius:16px;padding:12px 13px;font-size:15px;background:#fff;outline:none}
.form-control:focus{border-color:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.12)}
textarea.form-control{min-height:92px;resize:vertical}
.btn{
	border:0;
	border-radius:16px;
	padding:12px 16px;
	font-weight:900;
	cursor:pointer;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px}
.btn-primary{
	background:linear-gradient(135deg,#0f766e,#14b8a6);
	color:white}
.btn-danger{
	background:linear-gradient(135deg,#dc2626,#f97316);
	color:white}
.btn-light{
	background:#f1f5f9;
	color:#0f172a
	}
.btn-block{
	width:100%
	}
.alert{border-radius:18px;padding:12px 14px;margin-bottom:12px;font-weight:700}
.alert-danger{background:#fee2e2;color:#991b1b}
.alert-success{background:#dcfce7;color:#166534}
.camera-box{border:1px dashed #cbd5e1;border-radius:22px;padding:12px;background:#f8fafc}
.camera-preview{width:100%;border-radius:18px;background:#111827;aspect-ratio:4/3;object-fit:cover}
.snapshot{margin-top:10px;width:120px;height:120px;border-radius:22px;object-fit:cover;border:4px solid #fff;box-shadow:0 10px 22px rgba(0,0,0,.14)}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.65);display:none;align-items:center;justify-content:center;z-index:80;padding:18px}
.modal-backdrop.show{display:flex}
.modal-box{width:min(100%,420px);background:#fff;border-radius:26px;padding:20px;text-align:center;box-shadow:var(--shadow)}
.modal-icon{font-size:48px;margin-bottom:4px}
.admin-layout{min-height:100vh;background:#f8fafc}
.admin-top{background:#111827;color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:50}
.admin-brand{display:flex;align-items:center;gap:10px;font-weight:1000}
.admin-brand img{width:42px;height:42px;border-radius:13px}
.admin-nav{display:flex;gap:8px;overflow-x:auto;padding:12px 14px;background:#fff;border-bottom:1px solid var(--line)}
.admin-nav a{white-space:nowrap;border:1px solid #e5e7eb;padding:10px 13px;border-radius:999px;background:#f8fafc;font-weight:800;font-size:13px}
.admin-content{width:min(1180px,100%);margin:0 auto;padding:18px}
.admin-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.col-4{grid-column:span 4}
.col-6{grid-column:span 6}
.col-8{grid-column:span 8}
.col-12{grid-column:span 12}
.stat{padding:18px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 25px rgba(15,23,42,.06)}
.stat strong{display:block;font-size:34px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:20px;background:#fff}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:12px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:top}th{background:#f8fafc;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.sos-card{border:2px solid #fecaca;background:#fff7f7;border-radius:24px;padding:14px;margin-bottom:14px}
.sos-card h3{margin:0 0 8px;color:#991b1b}
.map-frame{width:100%;height:220px;border:0;border-radius:18px;background:#e5e7eb}
.actions{display:flex;flex-wrap:wrap;gap:8px}
.filter-box{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:14px}
.ad-placeholder{border:1px dashed #cbd5e1;border-radius:18px;padding:14px;text-align:center;color:#64748b;background:#fff;margin-top:14px;font-size:12px}
@media (max-width:820px){
	.admin-grid{grid-template-columns:1fr}
	.col-4,.col-6,.col-8,.col-12{grid-column:span 1}
	.filter-box{grid-template-columns:1fr 1fr}
	.admin-top{align-items:flex-start;flex-direction:column}
	.admin-content{padding:14px}
	.sos-btn{width:220px;height:220px;font-size:58px}
	.bottom-menu{grid-template-columns:repeat(5,1fr);gap:5px}
	.bottom-menu a{font-size:10px;border-radius:16px}
	.profile-card{align-items:flex-start}
	.profile-card .avatar{width:76px;height:76px}
	.form-row{grid-template-columns:1fr}
@media (max-width:360px){
	.sos-btn{width:198px;height:198px;font-size:52px}
	.app-header h1{font-size:15px}
	.bottom-menu a{min-height:58px}
	.bottom-menu .icon{width:27px;height:27px;font-size:12px}}
