/* ============================================================
   JAIIBSHORTS — Main App Stylesheet
   /assets/css/app.css
   Mobile-first · PWA · Shorts/Reels/Flip-card UI
   Design inspired by the provided ParkSaver stylesheet patterns
   ============================================================ */

/* ── CSS Custom Properties ───────────────────────────────────
   Merged and extended from the reference stylesheets          */
:root {
  /* Brand Colors */
  --ps-green:      #2d6a4f;
  --ps-green-lt:   #52b788;
  --ps-green-pale: #e8f5e9;
  --ps-amber:      #e9c46a;
  --ps-orange:     #f4a261;
  --ps-red:        #e63946;
  --ps-dark:       #1b1b2f;
  --ps-dark-2:     #2d2d44;
  --ps-gray-bg:    #f3f7f4;
  --ps-text:       #2b2d42;
  --ps-text-muted: #6c757d;
  --ps-border:     #e2e8f0;
  --ps-card-bg:    #ffffff;

  /* Shadows */
  --ps-shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --ps-shadow:     0 4px 24px rgba(0,0,0,.10);
  --ps-shadow-lg:  0 12px 40px rgba(0,0,0,.15);

  /* Radius */
  --ps-radius:     14px;
  --ps-radius-sm:  8px;
  --ps-radius-xs:  5px;

  /* Transitions */
  --ps-trans:      .2s ease;

  /* Flip card depth */
  --flip-depth: 700px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ps-gray-bg);
  color: var(--ps-text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Loading state — hide flash of unstyled content */
body.js-loading .flip-card-inner { transition: none !important; }

a {
  color: var(--ps-green);
  text-decoration: none;
  transition: color var(--ps-trans);
}
a:hover { color: var(--ps-green-lt); }

img { max-width: 100%; height: auto; }

/* ── Scrollbar Styling (WebKit) ───────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.ps-navbar {
  background: var(--ps-dark);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.ps-navbar .navbar-brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff !important;
  letter-spacing: -.5px;
  line-height: 1;
}

.ps-navbar .navbar-brand span {
  color: var(--ps-green-lt);
}

.ps-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-weight: 500;
  font-size: .875rem;
  padding: .45rem .85rem !important;
  border-radius: var(--ps-radius-sm);
  transition: background var(--ps-trans), color var(--ps-trans);
  display: flex;
  align-items: center;
}

.ps-navbar .nav-link:hover,
.ps-navbar .nav-link.active {
  background: rgba(82,183,136,.2);
  color: #fff !important;
}

.btn-nav-cta {
  background: var(--ps-green-lt) !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: .4rem 1.2rem !important;
  font-weight: 700 !important;
  font-size: .875rem !important;
  transition: background var(--ps-trans) !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.btn-nav-cta:hover {
  background: var(--ps-green) !important;
  text-decoration: none !important;
}

.nav-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ps-green-lt);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.3);
}

.mobile-nav-icon {
  color: rgba(255,255,255,.8);
  font-size: 1.2rem;
  padding: .3rem .4rem;
  display: flex;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   NOTICE STRIP
══════════════════════════════════════════════════════════ */
.notice-strip {
  background: #fff8e1;
  border-bottom: 2px solid var(--ps-amber);
  padding: .55rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  font-size: .875rem;
  position: relative;
  z-index: 900;
}

.notice-scroller {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.4;
}

.notice-sep { opacity: .5; margin: 0 .35rem; }

.notice-info    { color: #0d47a1; }
.notice-warning { color: #e65100; }
.notice-success { color: #1b5e20; }
.notice-danger  { color: #880e4f; }

.notice-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ps-text-muted);
  padding: 0 .25rem;
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: .1rem;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.ps-hero {
  background: linear-gradient(135deg, var(--ps-dark) 0%, var(--ps-green) 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay (from reference CSS) */
.ps-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: rgba(255,255,255,.9);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--ps-amber);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.3); }
}

/* Hero heading */
.ps-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
}

.hero-highlight {
  color: var(--ps-amber);
  position: relative;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 520px;
  line-height: 1.7;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats .stat-item {
  text-align: left;
}

.hero-stats .stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ps-amber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stats .stat-label {
  font-size: .75rem;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: .2rem;
  display: block;
}

/* Hero CTA buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: var(--ps-green-lt);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--ps-trans);
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(82,183,136,.4);
}

.btn-hero-primary:hover {
  background: #fff;
  color: var(--ps-green) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(82,183,136,.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: all var(--ps-trans);
  text-decoration: none !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Trust badges */
.trust-badges {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: .82rem;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ── Hero Phone Mockup ───────────────────────────────────── */
.hero-phone-wrap {
  position: relative;
  display: inline-block;
}

.hero-phone-frame {
  width: 280px;
  background: #111;
  border-radius: 36px;
  border: 8px solid #222;
  box-shadow:
    0 30px 80px rgba(0,0,0,.5),
    inset 0 0 0 2px #333;
  overflow: hidden;
}

.hero-phone-statusbar {
  background: #000;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .4rem .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: .5px;
}

.hero-phone-nav {
  background: var(--ps-dark);
  color: #fff;
  font-weight: 900;
  font-size: .85rem;
  padding: .5rem 1rem;
  letter-spacing: -.3px;
}

.hero-phone-nav span { color: var(--ps-green-lt); }

.hero-phone-body {
  padding: 1rem .75rem .75rem;
  background: #f3f7f4;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Phone floating badges */
.phone-float-badge {
  position: absolute;
  background: #fff;
  border-radius: 20px;
  padding: .35rem .85rem;
  font-size: .75rem;
  font-weight: 700;
  box-shadow: var(--ps-shadow);
  color: var(--ps-text);
  white-space: nowrap;
  animation: floatBadge 3s ease-in-out infinite;
}

.phone-float-1 { top: 20%; right: -60px; animation-delay: 0s; }
.phone-float-2 { bottom: 25%; right: -55px; animation-delay: 1.5s; }

@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Hero preview card inside phone */
.hero-preview-card {
  cursor: pointer;
  flex: 1;
}

.hero-phone-actions {
  display: flex;
  gap: .4rem;
  justify-content: space-around;
  padding: .5rem 0 .25rem;
  border-top: 1px solid var(--ps-border);
}

.hpa-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  font-size: .65rem;
  color: var(--ps-text-muted);
  padding: .25rem .5rem;
  border-radius: var(--ps-radius-sm);
  transition: background var(--ps-trans), color var(--ps-trans);
  text-decoration: none;
}

.hpa-btn i { font-size: 1.1rem; display: block; }

.hpa-btn:hover, .hpa-btn.active { background: var(--ps-green-pale); color: var(--ps-green); }
.hpa-like.liked { color: #e63946; }

.hc-subject {
  font-size: .65rem;
  font-weight: 700;
  color: var(--ps-green);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .4rem;
}

.hc-badge { margin-bottom: .5rem; }

.hc-q {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ps-text);
  line-height: 1.5;
  flex: 1;
}

.hc-a {
  font-size: .78rem;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  flex: 1;
}

.hc-tap-hint {
  font-size: .65rem;
  color: var(--ps-text-muted);
  margin-top: auto;
  padding-top: .5rem;
  display: flex;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════════════════════════ */
.search-bar-wrap {
  padding-top: 1.5rem;
  padding-bottom: .5rem;
}

.ps-search-bar {
  background: #fff;
  border-radius: 50px;
  padding: .3rem .3rem .3rem 1rem;
  display: flex;
  align-items: center;
  box-shadow: var(--ps-shadow);
  max-width: 680px;
  margin: 0 auto;
  border: 2px solid transparent;
  transition: border-color var(--ps-trans), box-shadow var(--ps-trans);
}

.ps-search-bar:focus-within {
  border-color: var(--ps-green-lt);
  box-shadow: 0 0 0 4px rgba(82,183,136,.15);
}

.ps-search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: .95rem;
  background: transparent;
  color: var(--ps-text);
  font-family: inherit;
  padding: .4rem 0;
  min-width: 0;
}

.ps-search-bar input::placeholder { color: #aaa; }

.btn-search {
  background: var(--ps-green);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: .55rem 1.5rem;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: background var(--ps-trans);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}

.btn-search:hover { background: var(--ps-green-lt); }

/* ══════════════════════════════════════════════════════════
   FILTER TABS
══════════════════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: nowrap;
  padding: .75rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem 1.1rem;
  border: 2px solid var(--ps-border);
  border-radius: 50px;
  background: #fff;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ps-trans);
  color: var(--ps-text);
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-tab:hover {
  border-color: var(--ps-green);
  color: var(--ps-green);
  text-decoration: none !important;
}

.filter-tab.active {
  background: var(--ps-green);
  border-color: var(--ps-green);
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(45,106,79,.3);
}

/* ══════════════════════════════════════════════════════════
   SECTIONS & RAILS
══════════════════════════════════════════════════════════ */
.main-section { padding: .5rem 0; }

/* Rail block */
.rail-block {
  margin-bottom: 2rem;
}

.rail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.rail-header-left { flex: 1; }

.rail-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ps-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.2;
}

.rail-sub {
  color: var(--ps-text-muted);
  font-size: .85rem;
  margin: .2rem 0 0;
}

.rail-see-all {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ps-green);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  text-decoration: none !important;
  transition: color var(--ps-trans);
}

.rail-see-all:hover { color: var(--ps-green-lt); }

/* Scroll wrapper with arrow buttons */
.rail-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.rail-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ps-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  color: var(--ps-text);
  transition: all var(--ps-trans);
  box-shadow: var(--ps-shadow-sm);
  z-index: 2;
  display: none; /* shown on desktop via media query */
}

.rail-arrow:hover {
  background: var(--ps-green);
  border-color: var(--ps-green);
  color: #fff;
}

/* ── Horizontal scroll rail ─────────────────────────────── */
.cards-rail {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: .4rem .1rem .85rem;
  flex: 1;
  scrollbar-width: none;
}

.cards-rail::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════════════════════
   CAPSULE CARDS — FLIP CARD SYSTEM
══════════════════════════════════════════════════════════ */
.flip-card {
  width: 220px;
  min-width: 220px;
  height: 280px;
  scroll-snap-align: start;
  perspective: var(--flip-depth);
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
}

/* Allow keyboard flip */
.flip-card:focus .flip-card-inner,
.flip-card:focus-visible .flip-card-inner {
  outline: 3px solid var(--ps-green-lt);
  outline-offset: 3px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  transform-style: preserve-3d;
  border-radius: var(--ps-radius);
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

/* Trigger flip on click (JS also handles this, CSS is fallback) */
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--ps-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* FRONT */
.flip-card-front {
  background: var(--ps-card-bg);
  border: 1px solid var(--ps-border);
  box-shadow: var(--ps-shadow);
}

/* BACK */
.flip-card-back {
  background: linear-gradient(145deg, var(--ps-green), #1b5e20);
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: var(--ps-shadow-lg);
}

/* Card hover lift — only on devices without touch */
@media (hover: hover) {
  .flip-card:hover .flip-card-inner:not(.flipped) {
    transform: translateY(-4px) rotateY(0deg);
    box-shadow: var(--ps-shadow-lg);
  }
}

/* Capsule card inner elements */
.capsule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6rem;
}

.capsule-premium-tag {
  background: linear-gradient(90deg, #f4a261, #e9c46a);
  color: var(--ps-dark);
  font-size: .65rem;
  font-weight: 800;
  padding: .15rem .6rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.capsule-free-tag {
  background: var(--ps-green-pale);
  color: var(--ps-green);
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 20px;
}

.capsule-views {
  font-size: .65rem;
  color: var(--ps-text-muted);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.capsule-question {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ps-text);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.capsule-tap-hint {
  font-size: .7rem;
  color: var(--ps-text-muted);
  margin-top: auto;
  padding-top: .5rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%,100% { opacity: .7; }
  50%      { opacity: 1; }
}

.capsule-answer {
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255,255,255,.93);
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}

.capsule-answer::-webkit-scrollbar { width: 3px; }
.capsule-answer::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); }

.capsule-action-row {
  display: flex;
  gap: .4rem;
  justify-content: flex-end;
  padding-top: .6rem;
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: auto;
}

.cap-action-btn {
  background: rgba(255,255,255,.12);
  border: none;
  color: rgba(255,255,255,.85);
  border-radius: var(--ps-radius-sm);
  padding: .3rem .55rem;
  font-size: .78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: background var(--ps-trans), color var(--ps-trans);
  text-decoration: none;
}

.cap-action-btn:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.cap-action-btn.btn-like.liked { color: #ff6b6b; }
.cap-action-btn.btn-like.liked i::before { content: '\f417'; } /* heart-fill */

/* Premium blur overlay */
.premium-blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,27,47,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border-radius: var(--ps-radius);
  padding: 1rem;
  font-size: .85rem;
}

.btn-unlock {
  background: var(--ps-amber);
  color: var(--ps-dark) !important;
  font-weight: 700;
  font-size: .82rem;
  padding: .45rem 1.2rem;
  border-radius: 20px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .5rem;
  transition: background var(--ps-trans);
}

.btn-unlock:hover { background: var(--ps-orange); }

/* Rail end tile */
.rail-end-tile {
  width: 140px;
  min-width: 140px;
  height: 280px;
  scroll-snap-align: start;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border: 2px dashed var(--ps-border);
  border-radius: var(--ps-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ps-text-muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--ps-trans);
  flex-shrink: 0;
  line-height: 1.4;
  padding: 1rem;
}

.rail-end-tile:hover {
  background: var(--ps-green-pale);
  border-color: var(--ps-green);
  color: var(--ps-green);
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADINGS (reused from reference)
══════════════════════════════════════════════════════════ */
.ps-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ps-dark);
  margin-bottom: .2rem;
  line-height: 1.2;
}

.ps-section-sub {
  color: var(--ps-text-muted);
  font-size: .9rem;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   SHORTS STRIP  (vertical thumbnail row)
══════════════════════════════════════════════════════════ */
.shorts-section {
  background: linear-gradient(180deg, #f3f7f4 0%, #fff 100%);
}

.shorts-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--ps-red);
  border-radius: 50%;
  margin-right: .4rem;
  animation: shortsDot 1.2s ease-in-out infinite;
}

@keyframes shortsDot {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

.shorts-strip {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: .25rem .1rem 1rem;
  scrollbar-width: none;
}

.shorts-strip::-webkit-scrollbar { display: none; }

.short-thumb-card {
  width: 130px;
  min-width: 130px;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none !important;
  color: var(--ps-text);
  transition: transform var(--ps-trans);
}

.short-thumb-card:hover { transform: translateY(-3px); }

.short-thumb-img {
  width: 100%;
  height: 200px;
  border-radius: var(--ps-radius);
  background: var(--ps-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ps-shadow);
}

.short-thumb-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  opacity: 0;
  transition: opacity var(--ps-trans);
}

.short-thumb-card:hover .short-thumb-play { opacity: 1; }

.short-thumb-duration {
  position: absolute;
  bottom: .4rem;
  right: .5rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 4px;
}

.short-thumb-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ps-text);
  margin-top: .45rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-thumb-meta {
  font-size: .7rem;
  color: var(--ps-text-muted);
  margin-top: .2rem;
  display: flex;
  align-items: center;
}

.short-see-all-tile .short-thumb-img {
  background: linear-gradient(135deg, var(--ps-dark), var(--ps-dark-2)) !important;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
}

/* ══════════════════════════════════════════════════════════
   MOCK TEST CTA BANNER
══════════════════════════════════════════════════════════ */
.mock-cta-banner {
  background: linear-gradient(135deg, var(--ps-dark), #2d3561);
  border-radius: var(--ps-radius);
  color: #fff;
  padding: 2rem 2rem;
  box-shadow: var(--ps-shadow-lg);
  border: 1px solid rgba(255,255,255,.05);
}

.mock-cta-banner h3 {
  font-weight: 800;
  margin-bottom: .35rem;
  font-size: 1.3rem;
}

.mock-cta-icon {
  font-size: 3rem;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   PRICING PREVIEW CARDS
══════════════════════════════════════════════════════════ */
.pricing-preview-section {
  background: linear-gradient(180deg, #fff 0%, var(--ps-gray-bg) 100%);
}

.pricing-card {
  background: #fff;
  border-radius: var(--ps-radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--ps-shadow);
  border: 2px solid var(--ps-border);
  position: relative;
  transition: transform var(--ps-trans), box-shadow var(--ps-trans);
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ps-shadow-lg);
}

.pricing-card-popular {
  border-color: var(--ps-green);
  background: linear-gradient(180deg, var(--ps-green-pale), #fff 30%);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ps-green);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-plan-name {
  font-weight: 800;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ps-text-muted);
  margin-bottom: .5rem;
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ps-green);
  line-height: 1;
  margin-bottom: 1rem;
}

.pricing-period {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ps-text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}

.pricing-features li {
  font-size: .85rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--ps-border);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.4;
}

.pricing-features li:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════════════════
   BLOG CARDS
══════════════════════════════════════════════════════════ */
.blog-card-link {
  display: block;
  text-decoration: none !important;
  color: var(--ps-text);
  height: 100%;
}

.blog-card {
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow-sm);
  border: 1px solid var(--ps-border);
  overflow: hidden;
  height: 100%;
  transition: transform var(--ps-trans), box-shadow var(--ps-trans);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ps-shadow-lg);
}

.blog-card-img {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--ps-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-size: .75rem;
  color: var(--ps-text-muted);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
}

.blog-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ps-text);
  line-height: 1.4;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: .83rem;
  color: var(--ps-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-read-more {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ps-green);
  margin-top: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ══════════════════════════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════════════════════════ */
.product-card {
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow-sm);
  border: 1px solid var(--ps-border);
  overflow: hidden;
  transition: transform var(--ps-trans), box-shadow var(--ps-trans);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ps-shadow);
}

.product-card-img {
  height: 140px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-text-muted);
  flex-shrink: 0;
}

.product-card-body {
  padding: .85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-type-badge {
  font-size: .7rem;
  font-weight: 600;
  color: var(--ps-text-muted);
  margin-bottom: .35rem;
}

.product-card-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ps-text);
  line-height: 1.35;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ps-green);
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS (shared)
══════════════════════════════════════════════════════════ */
.btn-deal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ps-green);
  color: #fff !important;
  border: none;
  border-radius: var(--ps-radius-sm);
  padding: .5rem 1.25rem;
  font-weight: 700;
  font-size: .875rem;
  transition: background var(--ps-trans), transform .1s;
  text-decoration: none !important;
  cursor: pointer;
  gap: .35rem;
}

.btn-deal:hover {
  background: var(--ps-green-lt);
  transform: scale(1.02);
}

.btn-deal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ps-green) !important;
  border: 2px solid var(--ps-green);
  border-radius: var(--ps-radius-sm);
  padding: .45rem 1.25rem;
  font-weight: 700;
  font-size: .875rem;
  transition: all var(--ps-trans);
  text-decoration: none !important;
  cursor: pointer;
}

.btn-deal-outline:hover {
  background: var(--ps-green);
  color: #fff !important;
}

/* ══════════════════════════════════════════════════════════
   NEWSLETTER SECTION
══════════════════════════════════════════════════════════ */
.newsletter-section {
  background: var(--ps-gray-bg);
}

.newsletter-box {
  background: linear-gradient(135deg, var(--ps-dark) 0%, #2d3561 100%);
  border-radius: var(--ps-radius);
  padding: 2.5rem 2rem;
  color: #fff;
  box-shadow: var(--ps-shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}

.nwl-emoji {
  font-size: 3rem;
  line-height: 1;
}

.newsletter-box h3 {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.nwl-desc {
  opacity: .82;
  font-size: .95rem;
  line-height: 1.6;
}

.nwl-trust {
  font-size: .8rem;
  opacity: .75;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.nwl-form-row {
  display: flex;
  gap: .65rem;
  margin-bottom: .65rem;
  flex-wrap: wrap;
}

.nwl-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: var(--ps-radius-sm);
  padding: .7rem 1rem;
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--ps-trans);
}

.nwl-input::placeholder { color: rgba(255,255,255,.45); }

.nwl-input:focus {
  border-color: var(--ps-green-lt);
  background: rgba(255,255,255,.15);
}

.nwl-btn {
  width: 100%;
  background: var(--ps-green-lt);
  color: #fff;
  border: none;
  border-radius: var(--ps-radius-sm);
  padding: .85rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--ps-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
}

.nwl-btn:hover { background: var(--ps-green); }

.nwl-disclaimer {
  font-size: .78rem;
  opacity: .6;
  margin: 0;
  text-align: center;
}

.nwl-success {
  background: rgba(255,255,255,.1);
  border-radius: var(--ps-radius-sm);
  padding: 2rem;
  text-align: center;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.ps-footer {
  background: var(--ps-dark);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1;
}

.footer-brand span { color: var(--ps-green-lt); }

.footer-tagline {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin-top: .35rem;
}

.footer-desc {
  font-size: .85rem;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
}

.ps-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ps-footer a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  display: block;
  margin-bottom: .4rem;
  transition: color var(--ps-trans);
  text-decoration: none;
}

.ps-footer a:hover {
  color: var(--ps-green-lt);
  text-decoration: none;
}

.footer-socials {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7) !important;
  font-size: 1rem;
  transition: background var(--ps-trans), color var(--ps-trans);
  text-decoration: none !important;
}

.footer-social-icon:hover {
  background: var(--ps-green-lt);
  color: #fff !important;
}

.btn-app-badge {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--ps-radius-sm);
  padding: .5rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ps-trans);
  display: inline-flex;
  align-items: center;
  font-family: inherit;
}

.btn-app-badge:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  margin-top: 2.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

.affiliate-disclaimer {
  font-size: .75rem;
  opacity: .55;
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: inherit;
}

/* ══════════════════════════════════════════════════════════
   DEAL TYPE BADGES  (reused on content cards)
══════════════════════════════════════════════════════════ */
.deal-type-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.badge-entrance { background: #e8f5e9; color: #1b5e20; }
.badge-capsule  { background: #e3f2fd; color: #0d47a1; }
.badge-video    { background: #fce4ec; color: #880e4f; }
.badge-pdf      { background: #fff3e0; color: #e65100; }
.badge-tip      { background: #f3e5f5; color: #4a148c; }
.badge-mock     { background: #e0f2f1; color: #004d40; }
.badge-premium  { background: linear-gradient(90deg,#e9c46a,#f4a261); color: #1b1b2f; }

/* ══════════════════════════════════════════════════════════
   PWA INSTALL BANNER
══════════════════════════════════════════════════════════ */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--ps-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  border-top: 3px solid var(--ps-green-lt);
}

.btn-pwa-install {
  background: var(--ps-green-lt);
  color: #fff;
  border: none;
  border-radius: var(--ps-radius-sm);
  padding: .45rem 1.1rem;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.btn-pwa-install:hover { background: var(--ps-green); }

.btn-pwa-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 1rem;
  padding: .25rem;
  display: flex;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   FEED PAGE — Vertical Snap Scroll (Reels / Shorts style)
══════════════════════════════════════════════════════════ */
.feed-reels-container {
  height: calc(100dvh - 56px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-reels-container::-webkit-scrollbar { display: none; }

.reel-item {
  height: calc(100dvh - 56px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Reel video/iframe embed */
.reel-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Reel overlay gradient */
.reel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.4) 50%,
    transparent 100%
  );
  padding: 1.5rem 1rem 1rem;
  z-index: 2;
}

/* Right-side action buttons (TikTok/Reels style) */
.reel-actions {
  position: absolute;
  right: .85rem;
  bottom: 5.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.reel-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background var(--ps-trans), transform var(--ps-trans);
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.reel-action-btn:hover { background: rgba(255,255,255,.25); transform: scale(1.1); }
.reel-action-btn.liked { color: #ff6b6b; }
.reel-action-count { font-size: .65rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* Reel info */
.reel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.reel-subject {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ══════════════════════════════════════════════════════════
   MOCK TEST UI
══════════════════════════════════════════════════════════ */
.mock-question-card {
  background: var(--ps-card-bg);
  border-radius: var(--ps-radius);
  padding: 2rem;
  box-shadow: var(--ps-shadow);
  border: 1px solid var(--ps-border);
}

.mock-option {
  background: #f8f9fa;
  border: 2px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  padding: .85rem 1.25rem;
  margin-bottom: .65rem;
  cursor: pointer;
  transition: all var(--ps-trans);
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .9rem;
  font-weight: 500;
}

.mock-option:hover { border-color: var(--ps-green-lt); background: var(--ps-green-pale); }
.mock-option.selected { border-color: var(--ps-green); background: var(--ps-green-pale); }
.mock-option.correct  { border-color: #4caf50; background: #e8f5e9; color: #1b5e20; }
.mock-option.wrong    { border-color: var(--ps-red); background: #ffebee; color: #c62828; }

.mock-option-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ps-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  transition: background var(--ps-trans), color var(--ps-trans);
}

.mock-option.selected .mock-option-label { background: var(--ps-green); color: #fff; }
.mock-option.correct  .mock-option-label { background: #4caf50; color: #fff; }
.mock-option.wrong    .mock-option-label { background: var(--ps-red); color: #fff; }

/* Progress bar */
.mock-progress-bar {
  height: 5px;
  background: var(--ps-border);
  border-radius: 3px;
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ps-green), var(--ps-green-lt));
  border-radius: 3px;
  transition: width .4s ease;
}

/* ══════════════════════════════════════════════════════════
   PASS/PLAN CARDS (Pricing page)
══════════════════════════════════════════════════════════ */
.pass-card {
  background: var(--ps-card-bg);
  border-radius: var(--ps-radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--ps-shadow);
  border-left: 5px solid var(--ps-green);
  transition: border-color var(--ps-trans), transform var(--ps-trans);
}

.pass-card:hover {
  border-left-color: var(--ps-green-lt);
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════════
   ALERTS / FLASH MESSAGES
══════════════════════════════════════════════════════════ */
.alert {
  border-radius: var(--ps-radius-sm);
  border: none;
  font-size: .88rem;
  padding: .85rem 1.1rem;
}

.alert-success { background: #e8f5e9; color: #1b5e20; }
.alert-danger  { background: #ffebee; color: #c62828; }
.alert-warning { background: #fff8e1; color: #f57f17; }
.alert-info    { background: #e3f2fd; color: #0d47a1; }

/* ══════════════════════════════════════════════════════════
   FORMS (public pages)
══════════════════════════════════════════════════════════ */
.ps-form-card {
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  padding: 2.5rem;
  border: 1px solid var(--ps-border);
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.ps-form-card h2 {
  font-weight: 800;
  color: var(--ps-dark);
  margin-bottom: .25rem;
}

.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ps-text);
  margin-bottom: .35rem;
}

.form-control {
  border: 2px solid var(--ps-border);
  border-radius: var(--ps-radius-sm);
  padding: .7rem 1rem;
  font-size: .9rem;
  font-family: inherit;
  color: var(--ps-text);
  background: #fff;
  transition: border-color var(--ps-trans), box-shadow var(--ps-trans);
}

.form-control:focus {
  border-color: var(--ps-green-lt);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
  outline: none;
}

.form-control::placeholder { color: #bbb; }

.btn-ps-primary {
  background: var(--ps-green);
  color: #fff;
  border: none;
  border-radius: var(--ps-radius-sm);
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--ps-trans);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
}

.btn-ps-primary:hover { background: var(--ps-green-lt); }
.btn-ps-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   SPINNER
══════════════════════════════════════════════════════════ */
.ps-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(0,0,0,.1);
  border-top-color: var(--ps-green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.ps-spinner-sm {
  width: 1.1rem;
  height: 1.1rem;
  border-width: 2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   COMMENT SECTION
══════════════════════════════════════════════════════════ */
.comment-item {
  display: flex;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--ps-border);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ps-green-lt);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-author {
  font-weight: 700;
  font-size: .85rem;
  color: var(--ps-text);
}

.comment-time {
  font-size: .72rem;
  color: var(--ps-text-muted);
  margin-left: .5rem;
}

.comment-text {
  font-size: .875rem;
  color: var(--ps-text);
  margin-top: .2rem;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV  (app-like feel) — CONTINUED
══════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--ps-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}

.mobile-bottom-nav .nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  color: rgba(255,255,255,.55);
  text-decoration: none !important;
  font-size: .62rem;
  font-weight: 600;
  padding: .35rem .5rem;
  border-radius: var(--ps-radius-sm);
  transition: color var(--ps-trans);
  min-width: 52px;
  text-align: center;
  letter-spacing: .2px;
}

.mobile-nav-item i {
  font-size: 1.35rem;
  display: block;
  line-height: 1;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--ps-green-lt);
}

.mobile-nav-item.active i {
  color: var(--ps-green-lt);
}

/* Center play button — special style */
.mobile-nav-item.nav-shorts {
  background: var(--ps-green-lt);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  justify-content: center;
  color: #fff !important;
  margin-top: -14px;
  box-shadow: 0 4px 16px rgba(82,183,136,.5);
}

.mobile-nav-item.nav-shorts i { font-size: 1.5rem; }
.mobile-nav-item.nav-shorts span { display: none; }

/* Badge on nav items */
.nav-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--ps-red);
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   CONTENT DETAIL PAGE
══════════════════════════════════════════════════════════ */
.content-detail-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

.content-detail-card {
  background: var(--ps-card-bg);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  border: 1px solid var(--ps-border);
  overflow: hidden;
}

/* Full-size flip card for detail page */
.flip-card-detail {
  width: 100%;
  height: 380px;
  perspective: var(--flip-depth);
  cursor: pointer;
}

.flip-card-detail .flip-card-inner {
  border-radius: var(--ps-radius) var(--ps-radius) 0 0;
}

.content-detail-actions {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--ps-border);
  flex-wrap: wrap;
  align-items: center;
}

.action-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #f8f9fa;
  border: 1px solid var(--ps-border);
  border-radius: 20px;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ps-trans);
  color: var(--ps-text);
  font-family: inherit;
  text-decoration: none;
}

.action-btn-lg:hover {
  background: var(--ps-green-pale);
  border-color: var(--ps-green);
  color: var(--ps-green);
}

.action-btn-lg.liked {
  background: #ffebee;
  border-color: var(--ps-red);
  color: var(--ps-red);
}

.action-btn-lg.wa-btn {
  background: #e8f5e9;
  border-color: #25D366;
  color: #128C7E;
}

.action-btn-lg.wa-btn:hover {
  background: #25D366;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   SAVINGS COUNTER (gamification widget)
══════════════════════════════════════════════════════════ */
.savings-counter {
  background: linear-gradient(135deg, var(--ps-dark), #2d3561);
  border-radius: var(--ps-radius);
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.savings-counter .big-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--ps-amber);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   CROWD / DIFFICULTY BARS
══════════════════════════════════════════════════════════ */
.difficulty-bar-wrap {
  height: 8px;
  background: var(--ps-border);
  border-radius: 4px;
  overflow: hidden;
}

.difficulty-bar {
  height: 100%;
  border-radius: 4px;
  transition: width .6s ease;
}

.diff-easy   { background: var(--ps-green-lt); }
.diff-medium { background: var(--ps-amber); }
.diff-hard   { background: var(--ps-red); }

/* ══════════════════════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════════════════════ */
.profile-header-card {
  background: linear-gradient(135deg, var(--ps-dark), var(--ps-green));
  border-radius: var(--ps-radius);
  padding: 2rem;
  color: #fff;
  text-align: center;
  box-shadow: var(--ps-shadow-lg);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.3);
  margin: 0 auto .75rem;
  background: var(--ps-green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.profile-email {
  opacity: .75;
  font-size: .88rem;
}

.membership-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--ps-amber);
  color: var(--ps-dark);
  font-weight: 700;
  font-size: .8rem;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-top: .75rem;
}

/* Stats grid on profile */
.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1.25rem;
}

.profile-stat-box {
  background: rgba(255,255,255,.1);
  border-radius: var(--ps-radius-sm);
  padding: .75rem .5rem;
  text-align: center;
}

.profile-stat-box .stat-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ps-amber);
  display: block;
}

.profile-stat-box .stat-lbl {
  font-size: .68rem;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: .1rem;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   LOGIN / REGISTER PAGE
══════════════════════════════════════════════════════════ */
body.auth-page {
  background: linear-gradient(135deg, #1b1b2f 0%, #2d6a4f 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(135deg, var(--ps-dark), var(--ps-green));
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  color: #fff;
}

.auth-logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.5px;
}

.auth-logo span { color: var(--ps-green-lt); }

.auth-card-body { padding: 2rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--ps-text-muted);
  font-size: .82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ps-border);
}

.btn-magic-link {
  width: 100%;
  background: #f0f4ff;
  border: 2px solid #c7d2fe;
  border-radius: var(--ps-radius-sm);
  color: #3730a3;
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem;
  cursor: pointer;
  transition: all var(--ps-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
}

.btn-magic-link:hover {
  background: #e0e7ff;
  border-color: #818cf8;
}

/* ══════════════════════════════════════════════════════════
   PDF VIEWER / DOWNLOAD CARD
══════════════════════════════════════════════════════════ */
.pdf-preview-card {
  background: #fff;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  border: 1px solid var(--ps-border);
  overflow: hidden;
}

.pdf-preview-header {
  background: linear-gradient(135deg, #bf360c, #e64a19);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pdf-icon-lg {
  font-size: 3rem;
  line-height: 1;
}

.pdf-preview-body { padding: 1.5rem; }

.pdf-download-btn {
  background: #bf360c;
  color: #fff !important;
  border: none;
  border-radius: var(--ps-radius-sm);
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: background var(--ps-trans);
  text-decoration: none !important;
}

.pdf-download-btn:hover { background: #e64a19; }

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════════════════ */
#toastContainer {
  position: fixed;
  bottom: 80px;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}

.ps-toast {
  background: var(--ps-dark);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--ps-radius-sm);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--ps-shadow-lg);
  display: flex;
  align-items: center;
  gap: .65rem;
  pointer-events: all;
  animation: toastIn .3s ease forwards;
  max-width: 320px;
  border-left: 4px solid var(--ps-green-lt);
  line-height: 1.4;
}

.ps-toast.toast-success { border-left-color: var(--ps-green-lt); }
.ps-toast.toast-error   { border-left-color: var(--ps-red); }
.ps-toast.toast-warning { border-left-color: var(--ps-amber); }

.ps-toast.toast-out { animation: toastOut .3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ══════════════════════════════════════════════════════════
   FREE DAY CARD  (exam dates widget)
══════════════════════════════════════════════════════════ */
.free-day-card {
  background: linear-gradient(135deg, var(--ps-green) 0%, var(--ps-green-lt) 100%);
  color: #fff;
  border-radius: var(--ps-radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--ps-shadow);
}

.free-day-card .date-display {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ps-amber);
  line-height: 1;
}

.free-day-card .event-name {
  font-weight: 700;
  font-size: 1rem;
  margin-top: .35rem;
}

.free-day-card .days-away {
  font-size: .8rem;
  opacity: .8;
  margin-top: .25rem;
}

/* ══════════════════════════════════════════════════════════
   GAMIFICATION BADGES
══════════════════════════════════════════════════════════ */
.badge-award {
  background: linear-gradient(135deg, var(--ps-amber), var(--ps-orange));
  border-radius: var(--ps-radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--ps-shadow);
  transition: transform var(--ps-trans);
}

.badge-award:hover { transform: scale(1.04); }

.badge-award .badge-emoji { font-size: 2.5rem; line-height: 1; }

.badge-award .badge-name {
  font-weight: 800;
  font-size: .88rem;
  color: var(--ps-dark);
  margin-top: .35rem;
}

.badge-award .badge-desc {
  font-size: .72rem;
  color: rgba(27,27,47,.65);
  margin-top: .2rem;
}

/* ══════════════════════════════════════════════════════════
   GAS / PRICE WIDGET (reused pattern from reference)
   Adapted for: "Today's Revision Topic" widget
══════════════════════════════════════════════════════════ */
.revision-widget {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: var(--ps-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--ps-shadow-sm);
}

.revision-widget .widget-icon { font-size: 2.5rem; flex-shrink: 0; }

.revision-widget .widget-topic {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ps-green);
  line-height: 1.2;
}

.revision-widget .widget-label {
  font-size: .78rem;
  color: var(--ps-text-muted);
  margin-bottom: .2rem;
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════ */
.ps-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--ps-text-muted);
  flex-wrap: wrap;
  padding: .75rem 0 .25rem;
}

.ps-breadcrumb a {
  color: var(--ps-green);
  text-decoration: none;
}

.ps-breadcrumb a:hover { text-decoration: underline; }

.ps-breadcrumb .sep { opacity: .4; }

/* ══════════════════════════════════════════════════════════
   SKELETON LOADERS
══════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--ps-radius-sm);
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  width: 220px;
  min-width: 220px;
  height: 280px;
  border-radius: var(--ps-radius);
}

.skeleton-text {
  height: 14px;
  margin-bottom: .5rem;
}

.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ps-text-muted);
}

.empty-state .empty-icon {
  font-size: 4rem;
  opacity: .35;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h4 {
  font-weight: 700;
  color: var(--ps-text);
  margin-bottom: .5rem;
}

.empty-state p { font-size: .9rem; max-width: 340px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════
   UTILITY CLASSES (project-specific)
══════════════════════════════════════════════════════════ */
.text-green  { color: var(--ps-green) !important; }
.text-amber  { color: var(--ps-amber) !important; }
.text-dark-brand { color: var(--ps-dark) !important; }
.bg-green    { background: var(--ps-green) !important; }
.bg-dark-brand { background: var(--ps-dark) !important; }
.rounded-ps  { border-radius: var(--ps-radius) !important; }
.shadow-ps   { box-shadow: var(--ps-shadow) !important; }

/* Font weight helpers */
.fw-900 { font-weight: 900 !important; }
.fw-800 { font-weight: 800 !important; }

/* Prevent text overflow in cards */
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLETS (≥ 768px)
══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .flip-card {
    width: 240px;
    min-width: 240px;
    height: 300px;
  }

  .rail-arrow { display: flex; }

  .ps-hero { padding: 5rem 0 6rem; }

  .hero-stats .stat-num { font-size: 2.4rem; }

  .shorts-strip .short-thumb-card {
    width: 150px;
    min-width: 150px;
  }

  .shorts-strip .short-thumb-img { height: 230px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (≥ 992px)
══════════════════════════════════════════════════════════ */
@media (min-width: 992px) {
  .flip-card {
    width: 250px;
    min-width: 250px;
    height: 310px;
  }

  .ps-hero { padding: 5.5rem 0 7rem; }

  .feed-reels-container {
    /* On desktop reels show in a centered column */
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 767px)
══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  /* Show mobile bottom nav */
  .mobile-bottom-nav { display: block; }

  /* Push content above bottom nav */
  body { padding-bottom: 70px; }

  .ps-hero { padding: 2.5rem 0 4rem; }

  .ps-hero h1 { font-size: 1.95rem; letter-spacing: -.5px; }

  .hero-stats { gap: 1.25rem; }
  .hero-stats .stat-num { font-size: 1.6rem; }

  .ps-search-bar {
    flex-direction: column;
    border-radius: var(--ps-radius);
    padding: .5rem;
    gap: .5rem;
  }

  .ps-search-bar input {
    width: 100%;
    padding: .5rem .75rem;
  }

  .btn-search {
    width: 100%;
    border-radius: var(--ps-radius-sm);
    justify-content: center;
  }

  .mock-cta-banner { padding: 1.5rem 1.25rem; }
  .mock-cta-banner h3 { font-size: 1.1rem; }

  .newsletter-box { padding: 1.75rem 1.25rem; }

  .nwl-form-row { flex-direction: column; }

  .ps-form-card { padding: 1.75rem 1.25rem; }

  .pricing-card { padding: 1.5rem 1.25rem; }

  .flip-card-detail { height: 320px; }

  #toastContainer { bottom: 80px; right: .75rem; left: .75rem; }
  .ps-toast { max-width: 100%; }

  .phone-float-1, .phone-float-2 { display: none; }

  .content-detail-wrap { padding: .75rem; }

  .profile-stat-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 575px)
══════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  .filter-tabs { gap: .35rem; }
  .filter-tab  { padding: .4rem .85rem; font-size: .78rem; }

  .flip-card {
    width: 195px;
    min-width: 195px;
    height: 260px;
  }

  .short-thumb-card { width: 115px; min-width: 115px; }
  .short-thumb-img  { height: 180px; }

  .rail-title { font-size: 1.1rem; }

  .ps-section-title { font-size: 1.25rem; }

  .footer-socials { gap: .5rem; }
}

/* ══════════════════════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════════════════════ */
@media print {
  .ps-navbar,
  .mobile-bottom-nav,
  .pwa-install-banner,
  .notice-strip,
  .newsletter-section,
  #toastContainer { display: none !important; }

  body { background: #fff; }
  .flip-card-inner { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .flip-card-inner { transition: none !important; }
}

/* Focus visible outlines */
:focus-visible {
  outline: 3px solid var(--ps-green-lt);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .flip-card-front { border: 2px solid #000; }
  .capsule-question { color: #000; }
}
