/* ── JudgeMySchool Public CSS ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Noto+Sans+Myanmar:wght@400;600;700&display=swap');

:root {
  --g:        #00bf63;
  --g-mid:    #00a857;
  --g-dark:   #007a3e;
  --g-light:  #e6f9f0;
  --g-pale:   #f0fdf7;
  --ink:      #1a1a1a;
  --ink2:     #4a4a4a;
  --ink3:     #8a8a8a;
  --border:   #e8e8e8;
  --white:    #ffffff;
  --red:      #ef4444;
  --red-light:#fef2f2;
}

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

body { font-family: 'Nunito', 'Noto Sans Myanmar', sans-serif; background: #f7f7f7; color: var(--ink); }

#jms-app { max-width: 480px; margin: 0 auto; background: var(--white); min-height: 100vh; position: relative; }

/* ── TOPBAR ── */
.jms-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--white);
  border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.jms-logo-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: 0;
}
.jms-logo-icon {
  width: 34px; height: 34px; background: var(--g); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.jms-logo-icon svg { width: 18px; height: 18px; fill: white; }
.jms-logo-text { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -0.3px; }
.jms-logo-text span { color: var(--g); }
.jms-nav-right { display: flex; align-items: center; gap: 4px; }
.jms-nav-link {
  padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: none; background: none; font-family: inherit;
  color: var(--ink2); transition: all 0.15s; white-space: nowrap;
}
.jms-nav-link:hover { background: var(--g-light); color: var(--g-dark); }
.jms-nav-link.active { background: var(--g-light); color: var(--g); }
.jms-lang-tog {
  display: flex; background: var(--g-light); border-radius: 8px; overflow: hidden; margin-left: 4px;
}
.jms-lt-btn {
  padding: 5px 9px; font-size: 11px; font-weight: 800;
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; color: var(--g-dark); transition: all 0.15s;
}
.jms-lt-btn.active { background: var(--g); color: white; border-radius: 6px; }

/* ── PAGES ── */
.jms-page { display: none; }
.jms-page.active { display: block; }

/* ── HERO ── */
.jms-hero {
  background: var(--g); padding: 32px 20px 28px; text-align: center;
}
.jms-hero-icon {
  width: 80px; height: 80px; background: none; border-radius: 0;
  margin: 0 auto 14px; display: flex; align-items: center;
  justify-content: center; font-size: 30px;
}
.jms-hero h1 { font-size: 22px; font-weight: 900; color: white; line-height: 1.3; margin-bottom: 8px; }
.jms-hero p  { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 20px; font-weight: 600; }
.jms-hero-btns { display: flex; flex-direction: column; gap: 10px; }
.jms-btn-white {
  padding: 14px; background: white; color: var(--g); border: none;
  border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer;
  font-family: inherit; width: 100%; transition: all 0.15s;
}
.jms-btn-white:hover { background: var(--g-light); }
.jms-btn-ghost {
  padding: 13px; background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.5); border-radius: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  width: 100%; transition: all 0.15s;
}
.jms-btn-ghost:hover { border-color: white; }

/* ── STATS BAR ── */
.jms-stats-bar {
  display: flex; justify-content: center; gap: 24px;
  padding: 14px 20px; background: var(--g-pale);
  border-bottom: 1px solid var(--g-light);
}
.jms-stat-item { text-align: center; }
.jms-stat-num { font-size: 20px; font-weight: 900; color: var(--g); }
.jms-stat-lbl { font-size: 10px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }

/* ── SECTION ── */
.jms-section { padding: 20px 16px; }
.jms-sec-head { font-size: 12px; font-weight: 800; color: var(--ink3); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }

/* ── SCHOOL CARD ── */
.jms-school-card {
  background: var(--white); border: 2px solid var(--border); border-radius: 16px;
  padding: 14px; margin-bottom: 10px; cursor: pointer;
  transition: all 0.15s; display: flex; align-items: center; gap: 12px;
}
.jms-school-card:hover { border-color: var(--g); background: var(--g-pale); }
.jms-school-card:active { transform: scale(0.98); }
.jms-sc-avatar {
  width: 44px; height: 44px; border-radius: 12px; background: var(--g-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.jms-sc-body { flex: 1; min-width: 0; }
.jms-sc-name  { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jms-sc-loc   { font-size: 11px; color: var(--ink3); margin-top: 2px; font-weight: 600; }
.jms-sc-tags  { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.jms-sc-tag   { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--g-light); color: var(--g-dark); }
.jms-sc-right { text-align: right; flex-shrink: 0; }
.jms-sc-rating { font-size: 20px; font-weight: 900; color: var(--g); }
.jms-sc-stars  { font-size: 10px; color: var(--g); letter-spacing: 1px; }
.jms-sc-count  { font-size: 10px; color: var(--ink3); margin-top: 2px; font-weight: 600; }

/* ── CTA BANNER ── */
.jms-cta-banner {
  margin: 0 16px 20px; background: var(--g-light); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  border: 1.5px solid rgba(0,191,99,0.25);
}
.jms-cta-icon  { font-size: 24px; flex-shrink: 0; }
.jms-cta-text p    { font-size: 12px; font-weight: 800; color: var(--g-dark); }
.jms-cta-text span { font-size: 11px; color: var(--ink3); font-weight: 600; }
.jms-cta-btn {
  padding: 8px 14px; background: var(--g); color: white; border: none;
  border-radius: 10px; font-size: 12px; font-weight: 800; cursor: pointer;
  font-family: inherit; white-space: nowrap; margin-left: auto; flex-shrink: 0;
}

/* ── BROWSE / SEARCH ── */
.jms-search-wrap { padding: 14px 16px 8px; }
.jms-search-box {
  display: flex; align-items: center; gap: 10px; background: var(--g-pale);
  border: 2px solid var(--g-light); border-radius: 14px; padding: 10px 14px;
}
.jms-search-box input {
  border: none; background: transparent; font-size: 14px; font-family: inherit;
  outline: none; flex: 1; color: var(--ink); font-weight: 600;
}
.jms-search-box input::placeholder { color: var(--ink3); }
.jms-chips { display: flex; gap: 8px; padding: 8px 16px 12px; overflow-x: auto; }
.jms-chips::-webkit-scrollbar { display: none; }
.jms-chip {
  padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 800;
  white-space: nowrap; cursor: pointer; border: 2px solid var(--border);
  background: var(--white); color: var(--ink2); transition: all 0.15s; font-family: inherit;
}
.jms-chip.active { background: var(--g); color: white; border-color: var(--g); }
.jms-browse-list { padding: 0 16px 20px; }

/* ── SCHOOL DETAIL ── */
.jms-detail-hero { background: var(--g); padding: 18px 18px 22px; }
.jms-back-btn {
  background: rgba(255,255,255,0.2); border: none; border-radius: 8px;
  padding: 6px 12px; color: white; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 4px;
}
.jms-detail-name { font-size: 19px; font-weight: 900; color: white; margin-bottom: 4px; line-height: 1.2; }
.jms-detail-sub  { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 600; }

.jms-rating-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 16px; padding: 16px; margin: 16px 16px 0;
}
.jms-rating-big { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.jms-big-score  { font-size: 52px; font-weight: 900; color: var(--g); line-height: 1; }
.jms-big-stars  { font-size: 18px; color: var(--g); letter-spacing: 2px; }
.jms-big-sub    { font-size: 11px; color: var(--ink3); font-weight: 700; margin-top: 3px; }
.jms-crit-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jms-crit-row   { padding: 8px 10px; background: var(--g-pale); border-radius: 10px; }
.jms-crit-lbl   { font-size: 10px; font-weight: 700; color: var(--ink3); margin-bottom: 4px; }
.jms-crit-bar-wrap { height: 5px; background: var(--border); border-radius: 3px; }
.jms-crit-bar-fill { height: 100%; border-radius: 3px; background: var(--g); }
.jms-crit-val   { font-size: 12px; font-weight: 900; color: var(--g); margin-top: 3px; }

.jms-reviews-section { padding: 16px; }
.jms-review-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 10px;
}
.jms-rv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.jms-rv-avatar {
  width: 32px; height: 32px; border-radius: 10px; background: var(--g-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--g); flex-shrink: 0;
}
.jms-rv-type  { font-size: 12px; font-weight: 700; color: var(--ink2); }
.jms-rv-stars { margin-left: auto; color: var(--g); font-size: 12px; font-weight: 700; }
.jms-rv-text  { font-size: 13px; color: var(--ink2); line-height: 1.55; font-weight: 600; }
.jms-rv-date  { font-size: 10px; color: var(--ink3); margin-top: 6px; font-weight: 700; }
.jms-write-btn {
  display: block; width: calc(100% - 32px); margin: 0 16px 20px;
  padding: 15px; background: var(--g); color: white; border: none;
  border-radius: 14px; font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit; text-align: center; transition: all 0.15s;
}
.jms-write-btn:hover { background: var(--g-mid); }

/* ── REVIEW FORM ── */
.jms-form-header { background: var(--g); padding: 20px 20px 24px; text-align: center; }
.jms-form-header h2 { font-size: 18px; font-weight: 900; color: white; margin-bottom: 4px; }
.jms-form-header p  { font-size: 12px; color: rgba(255,255,255,0.8); font-weight: 600; }
.jms-form-body { padding: 16px; }
.jms-f-label { font-size: 12px; font-weight: 800; color: var(--ink); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.3px; }
.jms-f-group { margin-bottom: 16px; }
.jms-f-select, .jms-f-textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border);
  border-radius: 12px; font-size: 14px; font-family: inherit;
  background: var(--white); color: var(--ink); font-weight: 700; outline: none;
}
.jms-f-select:focus, .jms-f-textarea:focus { border-color: var(--g); }
.jms-f-textarea { min-height: 90px; resize: vertical; font-weight: 600; }
.jms-f-textarea::placeholder { color: var(--ink3); }
.jms-crit-form-list { display: flex; flex-direction: column; gap: 8px; }
.jms-cf-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  background: var(--g-pale); border-radius: 12px; border: 2px solid var(--g-light);
  transition: border-color 0.15s;
}
.jms-cf-row.rated { border-color: var(--g); }
.jms-cf-left { flex: 1; min-width: 0; }
.jms-cf-name { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.jms-cf-desc { font-size: 11px; color: var(--ink3); font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.jms-cf-stars { display: flex; gap: 4px; }
.jms-cf-star { font-size: 28px; cursor: pointer; color: #d0d0d0; transition: color 0.1s; line-height: 1; user-select: none; }
.jms-cf-star.lit { color: var(--g); }
.jms-cf-score { font-size: 13px; font-weight: 900; color: var(--g); min-width: 24px; text-align: right; flex-shrink: 0; padding-top: 2px; }
.jms-anon-badge {
  display: flex; align-items: center; gap: 8px; background: var(--g-pale);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
  border: 1.5px solid var(--g-light);
}
.jms-anon-badge span { font-size: 12px; font-weight: 700; color: var(--g-dark); }
.jms-submit-btn {
  width: 100%; padding: 16px; background: var(--g); color: white; border: none;
  border-radius: 14px; font-size: 16px; font-weight: 900; cursor: pointer;
  font-family: inherit; transition: all 0.15s;
}
.jms-submit-btn:hover { background: var(--g-mid); }
.jms-submit-btn:active { transform: scale(0.98); }
.jms-submit-btn:disabled { background: #ccc; cursor: not-allowed; }
.jms-error-msg { background: var(--red-light); border: 1.5px solid rgba(239,68,68,0.3); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; font-weight: 700; color: var(--red); }

/* ── SUCCESS ── */
.jms-success-screen { padding: 48px 24px; text-align: center; }
.jms-success-icon {
  width: 72px; height: 72px; background: var(--g); border-radius: 22px;
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: white; font-weight: 900;
}
.jms-success-screen h3 { font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.jms-success-screen p  { font-size: 13px; color: var(--ink3); font-weight: 600; line-height: 1.6; }

/* ── ABOUT ── */
.jms-about-hero { background: var(--g); padding: 28px 20px; text-align: center; }
.jms-about-hero h2 { font-size: 20px; font-weight: 900; color: white; margin-bottom: 6px; }
.jms-about-hero p  { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 600; line-height: 1.6; }
.jms-about-body { padding: 20px 16px; }
.jms-about-block {
  background: var(--g-pale); border-radius: 14px; padding: 16px;
  margin-bottom: 12px; border: 1.5px solid var(--g-light);
}
.jms-about-block h4 { font-size: 14px; font-weight: 900; color: var(--g-dark); margin-bottom: 6px; }
.jms-about-block p  { font-size: 13px; color: var(--ink2); font-weight: 600; line-height: 1.6; }
.jms-disclaimer {
  background: #fff8e6; border-radius: 12px; padding: 14px;
  border: 1.5px solid #fce196; margin-top: 4px;
}
.jms-disclaimer p { font-size: 12px; color: #7a5c00; font-weight: 600; line-height: 1.6; }

/* ── LOADING ── */
.jms-loading {
  text-align: center; padding: 40px 20px; color: var(--ink3);
  font-size: 14px; font-weight: 700;
}
.jms-loading::after { content: ''; display: block; width: 28px; height: 28px; border: 3px solid var(--g-light); border-top-color: var(--g); border-radius: 50%; margin: 12px auto 0; animation: jms-spin 0.8s linear infinite; }
@keyframes jms-spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  #jms-app { max-width: 100%; border-radius: 0; }
  .jms-nav-link { padding: 7px 8px; font-size: 12px; }
}
.jms-footer{background:#f8fffe;border-top:1px solid #d1f5e8;padding:32px 20px 24px;margin-top:32px;}
.jms-footer-block{margin-bottom:20px;}
.jms-footer-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--brand);margin-bottom:6px;}
.jms-footer p{font-size:12px;color:#666;line-height:1.6;margin:0;}
.jms-footer a{color:var(--brand);text-decoration:none;font-weight:600;}
.jms-footer-copy{font-size:11px;color:#aaa;text-align:center;padding-top:16px;border-top:1px solid #e8f8f2;margin-top:8px;}
