/* Shopee-style look for the MAIGA store app (student, visitor, staff and sub-agent homes).
   Shared on purpose: every app home uses these .shp-* blocks so the sides look like one app.
   Colours: MAIGA blue for headers and links, orange for prices and deals, grey page ground. */
.shp {
  --shp-blue: #2176AE; --shp-blue-dark: #123E5C; --shp-orange: #C2410C; --shp-green: #1F7A4D;
  --shp-purple: #6D3FA8; --shp-brown: #3D2817; --shp-ink: #1F1A17; --shp-muted: #6B625A;
  --shp-line: #E7E2DC; --shp-soft: #F6F3EF; --shp-ground: #EDEDED;
  background: var(--shp-ground); color: var(--shp-ink); min-height: 100vh; padding-bottom: 1rem;
  font-size: 14px; line-height: 1.45;
}
.shp a { text-decoration: none; color: inherit; }
.shp *, .shp *::before, .shp *::after { box-sizing: border-box; }
.shp-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Blue header with the search field */
.shp-head { background: var(--shp-blue); padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.shp-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; height: 42px; padding: 0 10px; color: var(--shp-muted); }
.shp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--shp-ink); }
.shp-search button { border: 0; background: var(--shp-orange); color: #fff; border-radius: 6px; font: inherit; font-weight: 800; font-size: 13px; padding: 6px 12px; }
.shp-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shp-chips::-webkit-scrollbar { display: none; }
.shp-chip { flex: none; color: #fff; background: rgba(255,255,255,.18); border-radius: 14px; padding: 5px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Banner carousel (offers) */
.shp-banners { background: var(--shp-blue); padding: 0 12px 14px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shp-banners::-webkit-scrollbar { display: none; }
.shp a.shp-banner, .shp-banner { scroll-snap-align: center; flex: 0 0 100%; min-height: 140px; border-radius: 12px; background: var(--shp-blue-dark); color: #fff; padding: 14px 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.shp-banner::before { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: var(--shp-blue); }
.shp-banner::after { content: ""; position: absolute; inset-inline-end: 40px; bottom: -70px; width: 120px; height: 120px; border-radius: 50%; background: var(--shp-orange); }
.shp-banner > * { position: relative; z-index: 1; max-width: 72%; }
.shp-banner b { font-size: 19px; line-height: 1.3; color: #fff; }
.shp-banner .shp-banner-sub { color: #fff; }
.shp-banner .shp-banner-sub { font-size: 13px; opacity: .92; }
.shp-banner .shp-banner-cta { align-self: flex-start; background: #fff; color: var(--shp-orange); font-weight: 800; font-size: 13px; border-radius: 6px; padding: 5px 12px; }
.shp-banner img { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); width: 72px; height: 72px; border-radius: 50%; background: #fff; object-fit: contain; padding: 6px; z-index: 2; max-width: none; }

/* Category icon grid */
.shp-cats { background: #fff; padding: 14px 6px 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 14px; }
.shp-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.25; color: var(--shp-ink); }
.shp-cat-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.shp-cat-ic .shp-ic { width: 24px; height: 24px; }
.shp-c-blue { background: #E3EFF8; color: var(--shp-blue); }
.shp-c-orange { background: #FDE9DF; color: var(--shp-orange); }
.shp-c-green { background: #E5F3EC; color: var(--shp-green); }
.shp-c-purple { background: #EFE8F6; color: var(--shp-purple); }
.shp-c-brown { background: #F3EEE8; color: var(--shp-brown); }

/* Sections */
.shp-sec { background: #fff; margin-top: 8px; padding: 14px 12px; }
.shp-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.shp-sec-h h2 { margin: 0; font-size: 16px; font-weight: 800; color: var(--shp-ink); }
.shp-sec-h a { font-size: 13px; font-weight: 700; color: var(--shp-blue); white-space: nowrap; }
.shp-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -12px; padding: 0 12px; }
.shp-row::-webkit-scrollbar { display: none; }
.shp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shp-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 6px; }
.shp-divider { display: flex; align-items: center; gap: 10px; padding: 16px 12px 8px; color: var(--shp-orange); font-weight: 800; font-size: 15px; }
.shp-divider::before, .shp-divider::after { content: ""; flex: 1; height: 1px; background: #D9CFC4; }

/* Product-like cards */
.shp-card { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; color: var(--shp-ink); }
.shp-row .shp-card { flex: none; width: 132px; border: 1px solid var(--shp-line); }
.shp-card-media { height: 104px; display: flex; align-items: center; justify-content: center; position: relative; background: var(--shp-soft); }
.shp-feed .shp-card-media { height: 128px; }
.shp-card-media img { max-width: 70%; max-height: 70%; object-fit: contain; }
.shp-card-media .shp-mono { font-size: 24px; font-weight: 800; color: #fff; }
.shp-card-body { padding: 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shp-card-title { font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.shp-card-sub { font-size: 11px; color: var(--shp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shp-price { color: var(--shp-orange); font-weight: 800; font-size: 15px; }
.shp-price s { color: var(--shp-muted); font-weight: 500; font-size: 11px; margin-inline-start: 4px; }
.shp-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.shp-tag { font-size: 10px; font-weight: 700; border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; line-height: 16px; }
.shp-tag-orange { color: var(--shp-orange); }
.shp-tag-blue { color: var(--shp-blue); }
.shp-tag-green { color: var(--shp-green); }
.shp-badge { position: absolute; top: 0; inset-inline-start: 0; background: var(--shp-orange); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-end-end-radius: 8px; }
.shp-badge-alt { inset-inline-start: auto; inset-inline-end: 6px; top: auto; bottom: 6px; background: #fff; color: var(--shp-blue); border-radius: 4px; }

/* Event cards */
.shp-event { flex: none; width: 230px; border: 1px solid var(--shp-line); border-radius: 10px; overflow: hidden; background: #fff; }
.shp-event-media { height: 100px; position: relative; background: #2F6E9A; background-size: cover; background-position: center; }
.shp-date { position: absolute; top: 8px; inset-inline-start: 8px; background: #fff; border-radius: 6px; padding: 3px 8px; text-align: center; line-height: 1.1; color: var(--shp-ink); }
.shp-date b { display: block; font-size: 17px; }
.shp-date span { font-size: 11px; font-weight: 700; color: var(--shp-muted); }
.shp-event-cat { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(31,26,23,.75); color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 7px; }
.shp-event-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.shp-event-body b { font-size: 14px; line-height: 1.35; }

/* Round logos (universities, centres) */
.shp-logo { flex: none; width: 86px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.shp-logo-img { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--shp-line); display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; color: var(--shp-blue); }
.shp-logo-img img { width: 78%; height: 78%; object-fit: contain; }
.shp-logo span { font-size: 12px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shp-logo small { font-size: 11px; color: var(--shp-muted); }

/* Small tiles (guides, quick facts) */
.shp-tile { display: flex; align-items: center; gap: 8px; background: var(--shp-soft); border-radius: 10px; padding: 10px; color: var(--shp-ink); }
.shp-tile-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #fff; color: var(--shp-blue); display: flex; align-items: center; justify-content: center; }
.shp-tile b { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shp-tile small { font-size: 11px; color: var(--shp-muted); }
.shp-list-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #F0EBE5; }
.shp-list-item:last-child { border-bottom: 0; }
.shp-thumb { width: 72px; height: 56px; flex: none; border-radius: 8px; background: var(--shp-soft) center/cover no-repeat; }

/* Progress tracker (student applications) */
.shp-track { background: #fff; border-radius: 12px; margin: 8px; overflow: hidden; border: 1px solid var(--shp-line); }
.shp-track-head { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #F0EBE5; }
.shp-track-logo { width: 44px; height: 44px; flex: none; border-radius: 8px; background: var(--shp-blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shp-track-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.shp-track-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shp-track-title b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shp-track-title span { font-size: 12px; color: var(--shp-muted); }
.shp-pill { font-size: 11px; font-weight: 800; border-radius: 4px; padding: 3px 7px; white-space: nowrap; background: #E5F3EC; color: var(--shp-green); }
.shp-pill-warn { background: #FDE9DF; color: var(--shp-orange); }
.shp-steps { display: flex; align-items: flex-start; position: relative; padding: 16px 6px 6px; }
.shp-steps::before { content: ""; position: absolute; top: 29px; inset-inline: 8%; height: 3px; background: var(--shp-line); }
.shp-steps-fill { position: absolute; top: 29px; inset-inline-start: 8%; height: 3px; background: var(--shp-green); }
.shp-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.shp-step i { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #D9CFC4; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; color: #8A7F75; }
.shp-step span { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.2; color: var(--shp-muted); }
.shp-step.done i { background: var(--shp-green); border-color: var(--shp-green); color: #fff; }
.shp-step.now i { border-color: var(--shp-green); color: var(--shp-green); box-shadow: 0 0 0 4px rgba(31,122,77,.15); }
.shp-step.done span, .shp-step.now span { color: var(--shp-ink); }
.shp-next { margin: 4px 12px 12px; background: var(--shp-soft); border-radius: 8px; padding: 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.shp-next b { color: var(--shp-ink); }
.shp-track-foot { display: flex; border-top: 1px solid #F0EBE5; }
.shp-track-foot a { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--shp-blue); }
.shp-track-foot a + a { border-inline-start: 1px solid #F0EBE5; }

/* Call-to-action strips */
.shp-cta { margin: 8px; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--shp-line); }
.shp-cta-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.shp-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shp-cta-text b { font-size: 14px; }
.shp-cta-text span { font-size: 12px; color: var(--shp-muted); }
.shp-btn { flex: none; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 800; background: var(--shp-orange); color: #fff !important; white-space: nowrap; }
.shp-btn-blue { background: var(--shp-blue); }
.shp-btn-ghost { background: #fff; color: var(--shp-blue) !important; border: 1px solid var(--shp-blue); }

/* "Me" page */
.shp-me-head { background: var(--shp-blue); color: #fff; padding: 16px 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.shp-me-id { display: flex; align-items: center; gap: 12px; }
.shp-avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; background: #fff; color: var(--shp-blue); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; overflow: hidden; border: 2px solid rgba(255,255,255,.6); }
.shp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shp-me-id b { font-size: 17px; display: block; }
.shp-me-id small { font-size: 12px; opacity: .9; }
.shp-status-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shp-status { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; font-size: 11px; font-weight: 700; color: var(--shp-ink); }
.shp-status .shp-ic { width: 26px; height: 26px; color: #4A423B; }
.shp-count { position: absolute; top: -6px; inset-inline-end: 22%; background: var(--shp-orange); color: #fff; font-size: 10px; font-weight: 800; border-radius: 9px; padding: 0 5px; min-width: 16px; line-height: 16px; }
.shp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shp-stat { background: var(--shp-soft); border-radius: 8px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.shp-stat b { font-size: 16px; }
.shp-stat span { font-size: 11px; color: var(--shp-muted); }
.shp-menu { background: #fff; margin-top: 8px; }
.shp-menu a { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 50px; border-bottom: 1px solid #F0EBE5; color: var(--shp-ink); }
.shp-menu a .shp-menu-t { flex: 1; font-size: 14px; }
.shp-menu a small { font-size: 12px; color: var(--shp-muted); }
.shp-menu a .shp-chev { width: 16px; height: 16px; color: #8A7F75; }

html[dir="ltr"] .shp-chev, html[lang="en"] .shp-chev { transform: scaleX(-1); }
@media (min-width: 720px) {
  .shp { max-width: 720px; margin: 0 auto; }
  .shp-cats { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .shp-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
