/* ===== Nov 2026 update: plans, credits, gallery / notice board (mobile first) ===== */

/* ---------- Plan chooser (/pay/{id}, /plans) ---------- */
.pm-pay-wrap { max-width: 620px; padding: 20px 14px 56px; }
.pm-target { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border, #e5e5e5); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.pm-target img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pm-target strong { display: block; font-size: 1.05rem; color: var(--text-dark, #222); }
.pm-target span { font-size: 13px; color: var(--text-muted, #777); }
.pm-credit-box { background: #eef8f1; border: 1px solid #b9dfc5; border-radius: 14px; padding: 16px; text-align: center; }
.pm-credit-box p { margin: 0 0 12px; font-size: 15px; }
.pm-or { text-align: center; color: var(--text-muted, #777); font-size: 13px; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 1px; }

.pm-plans { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.pm-plan { display: block; cursor: pointer; position: relative; }
.pm-plan input { position: absolute; opacity: 0; pointer-events: none; }
.pm-plan-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "desc price" "per price"; align-items: center; gap: 2px 12px;
  background: #fff; border: 2px solid #e3e3e3; border-radius: 14px; padding: 14px 16px 14px 46px; min-height: 72px; transition: border-color .15s, box-shadow .15s; position: relative; }
.pm-plan-card::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid #bbb; background: #fff; }
.pm-plan input:checked + .pm-plan-card { border-color: var(--green, #1a7a3c); box-shadow: 0 4px 14px rgba(26,122,60,.15); }
.pm-plan input:checked + .pm-plan-card::before { border-color: var(--green, #1a7a3c); background: radial-gradient(circle, var(--green, #1a7a3c) 45%, #fff 50%); }
.pm-plan input:focus-visible + .pm-plan-card { outline: 3px solid #f7b98a; outline-offset: 2px; }
.pm-plan-name { grid-area: name; font-weight: 800; font-size: 15px; color: var(--text-dark, #222); }
.pm-plan-desc { grid-area: desc; font-size: 13px; color: var(--text-muted, #666); line-height: 1.35; }
.pm-plan-per { grid-area: per; font-size: 12px; color: var(--green, #1a7a3c); font-weight: 700; }
.pm-plan-price { grid-area: price; font-size: 1.6rem; font-weight: 800; color: var(--orange, #e55a00); white-space: nowrap; }
.pm-tag { position: absolute; top: -10px; right: 14px; background: var(--orange, #e55a00); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 10px; letter-spacing: .3px; }
.pm-tag-green { background: var(--green, #1a7a3c); }
.pm-plan-best .pm-plan-card { border-color: #f3c3a2; }

.pm-phonepe-btn { width: 100%; background: #5f259f; color: #fff; border: 0; border-radius: 30px; padding: 16px 20px; font-size: 18px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; font-family: inherit; }
.pm-phonepe-btn:active, .pm-phonepe-btn:hover { background: #4a1b7a; }
.pm-note { text-align: center; font-size: 12.5px; color: var(--text-muted, #777); margin: 10px 0 0; }
.pm-help { margin-top: 18px; background: #f0f7f2; border: 1px solid #cfe7d6; border-radius: 12px; padding: 12px; text-align: center; font-size: 14px; }
.pm-help a { color: var(--green, #1a7a3c); font-weight: 800; }

/* ---------- Dashboard credits card ---------- */
.pm-dash-plan { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, #eef8f1, #fff6ee); border: 1px solid #cfe7d6; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.pm-dash-plan-num { font-size: 2rem; font-weight: 800; color: var(--green-dark, #145f2e); line-height: 1; }
.pm-dash-plan-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted, #777); }
.pm-dash-plan-txt { flex: 1; min-width: 180px; font-size: 14px; color: var(--text-body, #444); }
.pm-dash-plan .btn { border-radius: 20px; }

/* ---------- Homepage pricing ---------- */
.pm-home-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 900px; margin: 0 auto; }
.pm-home-plan { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 2px solid #e3e3e3; border-radius: 14px; padding: 16px 10px; text-decoration: none; color: inherit; }
.pm-home-plan.pm-plan-best { border-color: var(--orange, #e55a00); }
.pm-home-plan .pm-plan-price { font-size: 1.7rem; margin: 4px 0; }
@media (min-width: 760px) { .pm-home-plans { grid-template-columns: repeat(4, 1fr); gap: 16px; } .pm-plans { gap: 12px; } }

/* ---------- Notice board ---------- */
.nb-section { padding: 22px 0 6px; }
.nb-board { background: #fffdf6; border: 1px solid #ecdcb4; border-top: 6px solid var(--green, #1a7a3c); border-radius: 16px; padding: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.06); margin-bottom: 22px; }
.nb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nb-head h2 { font-size: 1.25rem; margin: 0; color: var(--green-dark, #145f2e); display: inline-block; }
.nb-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-muted, #777); }
.nb-pin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--orange, #e55a00); margin-right: 8px; box-shadow: 0 2px 0 rgba(0,0,0,.2); vertical-align: 2px; }
.nb-all { font-size: 13px; font-weight: 700; color: var(--green, #1a7a3c); white-space: nowrap; padding: 8px 14px; border: 1.5px solid var(--green, #1a7a3c); border-radius: 20px; }

/* ---------- Slider ---------- */
.gs { position: relative; border-radius: 12px; overflow: hidden; background: #111; }
.gs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gs-track::-webkit-scrollbar { display: none; }
.gs-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; position: relative; aspect-ratio: 4 / 3; }
.gs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 30px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.gs-slide figcaption strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.gs-date { display: inline-block; background: var(--orange, #e55a00); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; margin-bottom: 6px; }
.gs-cap { display: block; font-size: 13px; opacity: .9; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #222; font-size: 26px; line-height: 1; cursor: pointer; display: none; }
.gs-prev { left: 10px; } .gs-next { right: 10px; }
.gs-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.gs-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.gs-dots button.on { background: #fff; width: 20px; border-radius: 4px; }
@media (min-width: 760px) {
  .gs-slide { aspect-ratio: 16 / 7; }
  .gs-nav { display: block; }
  .nb-board { padding: 20px; }
}

/* ---------- Gallery page ---------- */
.gl-wrap { padding: 18px 14px 56px; }
.gl-empty { text-align: center; padding: 50px 16px; color: var(--text-muted, #777); }
.gl-group { margin-bottom: 26px; }
.gl-group-head h2 { font-size: 1.1rem; margin: 4px 0 2px; color: var(--text-dark, #222); }
.gl-group-head p { font-size: 14px; color: var(--text-muted, #666); margin: 0 0 8px; }
.gl-date { font-size: 12px; font-weight: 700; color: var(--orange, #e55a00); }
.gl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.gl-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #eee; }
.gl-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) { .gl-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; } }
.gl-pager { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 14px; }
.gl-pager a { padding: 10px 16px; border: 1.5px solid var(--green, #1a7a3c); border-radius: 20px; color: var(--green, #1a7a3c); font-weight: 700; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 99999; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px 22px; color: #fff; font-size: 14px; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* ---------- Mobile top bar fix (was wider than the phone screen, zooming the whole site out) ---------- */
@media (max-width: 700px) {
  .topbar-inner { height: auto; flex-direction: column; align-items: stretch; padding: 0; }
  .topbar-left { justify-content: center; height: 32px; }
  .topbar-phone { border-left: 0; font-size: 12.5px; }
  .topbar-right { height: 34px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-top: 1px solid #333; justify-content: flex-start; }
  .topbar-right::-webkit-scrollbar { display: none; }
  .topbar-right .topbar-link { flex: 1 0 auto; justify-content: center; padding: 0 12px; }
  .topbar-right .topbar-link:first-child { border-left: 0; }
  .topbar-right a[href$="/pages/about.php"], .topbar-right a[href$="/pages/contact.php"] { display: none; }
  .lb img { max-height: 78vh; }
}
