*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #B22234;
  --blue: #002868;
  --white: #ffffff;
  --bg: #ffffff;
  --bg2: #f8f9fa;
  --border: #e2e8f0;
  --text: #1a202c;
  --text2: #718096;
  --radius: 10px;
  --radius-sm: 6px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg2);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

.phone {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* HEADER */
.hdr { background: var(--red); color: #fff; padding: 16px 16px 18px; text-align: center; border-bottom: 4px solid var(--blue); }
.hdr-name { font-size: 19px; font-weight: 600; letter-spacing: .3px; }
.hdr-sub { font-size: 11px; opacity: .85; margin-top: 3px; }
.hdr-stripe { height: 4px; background: #fff; margin: 10px -16px -18px; }

/* GATE */
.gate-wrap { padding: 24px 20px; display: flex; flex-direction: column; align-items: center; }
.gate-icon { width: 60px; height: 60px; background: #fde8e8; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--red); margin-bottom: 14px; }
.gate-wrap h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.gate-wrap p { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 16px; text-align: center; }
.gate-wrap label { font-size: 11px; color: var(--text2); margin-bottom: 4px; display: block; align-self: flex-start; width: 100%; }
.gate-wrap input, .gate-wrap select { width: 100%; margin-bottom: 10px; }
.gate-note { font-size: 10px; color: var(--text2); margin-top: 10px; text-align: center; display: flex; align-items: center; gap: 4px; line-height: 1.4; }

/* INPUTS */
input, select, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); }
textarea { resize: none; min-height: 80px; }

/* BUTTONS */
.cta { width: 100%; background: var(--red); color: #fff; border: none; border-radius: var(--radius-sm); padding: 12px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.cta.blue { background: var(--blue); }
.cta.green { background: #166534; }
.cta:active { opacity: .85; }

/* NAV */
.nav { display: flex; background: var(--bg2); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.nav::-webkit-scrollbar { display: none; }
.nt { flex: 1; min-width: 52px; padding: 9px 2px 7px; text-align: center; font-size: 9px; color: var(--text2); cursor: pointer; border-bottom: 2px solid transparent; }
.nt i { display: block; font-size: 18px; margin-bottom: 2px; }
.nt.on { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* SCREENS */
.sc { padding: 14px; display: none; overflow-y: auto; }
.sc.on { display: block; }
.slabel { font-size: 10px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }

/* HOME */
.verified-badge { display: inline-flex; align-items: center; gap: 4px; background: #dcfce7; color: #166534; font-size: 10px; padding: 3px 8px; border-radius: 20px; margin-bottom: 10px; }
.hero { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 12px; text-align: center; }
.av { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: #fff; margin: 0 auto 10px; }
.hero h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.hero p { font-size: 11px; opacity: .85; line-height: 1.5; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pcard { background: var(--bg2); border-radius: var(--radius-sm); padding: 10px; text-align: center; border: 1px solid var(--border); }
.pnum { font-size: 24px; font-weight: 700; color: var(--red); }
.plbl { font-size: 10px; color: var(--text2); margin-top: 2px; }
.pillar { background: var(--bg2); border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 10px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; }
.pico { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; }
.pico.r { background: #fde8e8; color: var(--red); }
.pico.b { background: #dbeafe; color: var(--blue); }
.pico.w { background: #f1f5f9; color: #475569; }
.ptitle { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.pdesc { font-size: 11px; color: var(--text2); line-height: 1.4; }

/* PLATFORM */
.issue-item { border-left: 3px solid var(--red); padding: 8px 10px; margin-bottom: 9px; background: var(--bg2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.issue-title { font-size: 12px; font-weight: 600; color: var(--text); }
.issue-desc { font-size: 11px; color: var(--text2); margin-top: 3px; line-height: 1.4; }

/* PLEDGE */
.pform { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.pform label { display: block; font-size: 11px; color: var(--text2); margin-bottom: 3px; margin-top: 8px; }
.pform label:first-child { margin-top: 0; }
.garage-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.garage-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.garage-row:last-child { border-bottom: none; }
.garage-name { font-size: 12px; color: var(--text); min-width: 80px; }
.garage-bar-wrap { flex: 1; margin: 0 10px; height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.garage-bar { height: 100%; background: var(--red); border-radius: 3px; transition: width .4s ease; }
.garage-count { font-size: 11px; font-weight: 600; color: var(--red); min-width: 24px; text-align: right; }
.refer-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.refer-box p { font-size: 11px; color: var(--text2); line-height: 1.4; margin-bottom: 4px; }

/* POLL */
.poll-intro { font-size: 11px; color: var(--text2); margin-bottom: 10px; line-height: 1.4; }
.poll-opt { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s; }
.poll-opt.voted { border-color: var(--red); background: #fde8e8; }
.poll-opt-text { font-size: 12px; color: var(--text); flex: 1; }
.poll-bar-wrap { flex: 1; margin: 0 6px; height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; display: none; }
.poll-bar { height: 100%; background: var(--red); border-radius: 3px; }
.poll-pct { font-size: 11px; font-weight: 600; color: var(--red); min-width: 32px; text-align: right; display: none; }

/* TIPS */
.tip-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.tip-box select { margin-bottom: 8px; }
.anon-note { font-size: 10px; color: var(--text2); margin-top: 8px; display: flex; align-items: flex-start; gap: 4px; line-height: 1.4; }

/* ASK */
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.faq-q { padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.faq-q i { color: var(--text2); font-size: 15px; flex-shrink: 0; transition: transform .2s; }
.faq-q.open i { transform: rotate(180deg); }
.faq-a { display: none; padding: 8px 12px 10px; font-size: 11px; color: var(--text2); line-height: 1.5; border-top: 1px solid var(--border); }
.faq-a.open { display: block; }
.feed-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; }
.feed-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--text2); margin-bottom: 5px; }
.feed-q { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.feed-albl { font-size: 10px; font-weight: 600; color: var(--red); margin-bottom: 3px; display: flex; align-items: center; gap: 3px; }
.feed-a { font-size: 11px; color: var(--text2); line-height: 1.4; }
.ask-input-row { display: flex; gap: 8px; margin-top: 8px; }
.ask-input-row input { flex: 1; }
.send-btn { background: var(--red); color: #fff; border: none; border-radius: var(--radius-sm); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 16px; }
.ask-note { font-size: 10px; color: var(--text2); margin-top: 6px; text-align: center; }

/* RIGHTS */
.rights-item { background: var(--bg2); border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.rights-title { font-size: 12px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.rights-title i { font-size: 14px; color: var(--text2); transition: transform .2s; }
.rights-body { display: none; font-size: 11px; color: var(--text2); line-height: 1.5; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.rights-body.open { display: block; }
.rights-item.open .rights-title i { transform: rotate(180deg); }

/* ALERTS */
.notif-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.notif-box label { display: block; font-size: 11px; color: var(--text2); margin-bottom: 4px; margin-top: 8px; }
.notif-box label:first-child { margin-top: 0; }
.notif-pref { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.notif-pref:last-of-type { border-bottom: none; }
.notif-label { font-size: 12px; color: var(--text); }
.notif-sub { font-size: 10px; color: var(--text2); }
.toggle { width: 38px; height: 22px; background: var(--border); border-radius: 11px; position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.toggle::after { content: ''; width: 16px; height: 16px; background: #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: left .2s; }
.toggle.on { background: var(--red); }
.toggle.on::after { left: 19px; }
.share-btn { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; margin-bottom: 8px; cursor: pointer; width: 100%; text-align: left; }
.share-btn i { font-size: 22px; color: var(--blue); }
.share-main { font-size: 12px; color: var(--text); font-weight: 600; display: block; }
.share-sub { font-size: 10px; color: var(--text2); display: block; margin-top: 2px; }
