/**
 * AIAPGET PG Ayurveda Rank Predictor & Cutoff Analysis Styles
 * Ayurved Studies
 */

:root {
  --rp-font: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rp-bg: #f8fafc;
  --rp-surface: #ffffff;
  --rp-surface-card: #ffffff;
  --rp-border: #e2e8f0;
  --rp-border-light: #f1f5f9;
  --rp-text-main: #0f172a;
  --rp-text-muted: #64748b;
  --rp-primary: #0f766e;
  --rp-primary-dark: #115e59;
  --rp-primary-light: #f0fdf4;
  --rp-primary-border: #86efac;
  --rp-accent-gold: #d97706;
  --rp-gold-light: #fffbeb;
  --rp-emerald: #059669;
  --rp-emerald-light: #ecfdf5;
  --rp-blue: #2563eb;
  --rp-blue-light: #eff6ff;
  --rp-purple: #7c3aed;
  --rp-purple-light: #f5f3ff;
  --rp-radius: 16px;
  --rp-radius-sm: 8px;
  --rp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --rp-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --rp-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
}

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

body.rp-body {
  font-family: var(--rp-font);
  background: var(--rp-bg);
  color: var(--rp-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

.rp-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

html, body.rp-body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* ── Header ── */
.rp-header {
  background: #ffffff;
  border-bottom: 1px solid var(--rp-border);
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
}

.rp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.rp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--rp-text-main);
  flex-shrink: 0;
}

.rp-brand-logo {
  border-radius: 8px;
  display: block;
}

.rp-brand-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.2;
}

.rp-brand-title strong {
  font-weight: 800;
  color: var(--rp-primary);
}

.rp-brand-subtitle {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rp-accent-gold);
}

.rp-header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Hamburger & Quick Auth Button (Hidden on Desktop) */
.rp-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  z-index: 502;
}

.rp-hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.rp-menu-toggle.active .rp-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rp-menu-toggle.active .rp-hamburger-bar:nth-child(2) {
  opacity: 0;
}
.rp-menu-toggle.active .rp-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.rp-mobile-quick-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-mobile-quick-btn.has-auth {
  border-color: #86efac;
  background: #f0fdf4;
}

.rp-drawer-header,
.rp-drawer-top-action,
.rp-nav-group-title,
.rp-nav-sublinks {
  display: none;
}

/* Desktop Navigation (min-width: 900px) */
@media (min-width: 900px) {
  .rp-header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .rp-drawer-links {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .rp-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rp-text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .rp-nav-link:hover,
  .rp-nav-link.active {
    color: var(--rp-primary);
    background: var(--rp-primary-light);
  }

  /* Distinct Navigation Highlights for Rank Predictor & E-Books */
  .rp-nav-highlight-predictor {
    background: #eef2ff !important;
    color: #4338ca !important;
    border: 1px solid #c7d2fe !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 7px 15px !important;
    box-shadow: 0 1px 3px rgba(67, 56, 202, 0.1) !important;
    transition: all 0.2s ease !important;
  }
  .rp-nav-highlight-predictor:hover {
    background: #4338ca !important;
    color: #ffffff !important;
    border-color: #4338ca !important;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25) !important;
    transform: translateY(-1px);
  }

  .rp-nav-highlight-ebook {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 7px 15px !important;
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.1) !important;
    transition: all 0.2s ease !important;
  }
  .rp-nav-highlight-ebook:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25) !important;
    transform: translateY(-1px);
  }

  .rp-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .rp-dropdown-trigger-row {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .rp-dropdown-btn {
    width: 22px;
    height: 32px;
    border: none;
    background: transparent;
    padding: 0;
    color: #64748b;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s;
  }

  .rp-dropdown-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
  }

  .rp-dropdown-btn.predictor-caret-btn {
    color: #4338ca;
  }

  .rp-dropdown-caret {
    display: inline-block;
    transition: transform 0.2s ease;
    font-weight: 800;
  }

  .rp-nav-dropdown.is-open .rp-dropdown-caret {
    transform: rotate(180deg);
  }

  .rp-nav-dropdown .rp-nav-sublinks {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    padding: 6px;
    z-index: 600;
    display: none !important;
    border-left: none;
    margin: 0;
  }

  .rp-nav-dropdown.is-open .rp-nav-sublinks {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
  }

  .rp-drawer-top-action {
    display: none !important;
  }

  .rp-nav-desktop-auth {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
  }

  .rp-nav-desktop-auth .rp-nav-btn-auth {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
  }

  .rp-menu-backdrop {
    display: none !important;
  }
}

/* Mobile Navigation Drawer (max-width: 899px) */
@media (max-width: 899px) {
  .rp-header-inner {
    height: 60px;
    padding: 0 14px;
  }

  .rp-brand-title {
    font-size: 1rem;
  }

  .rp-brand-subtitle {
    display: none;
  }

  .rp-menu-toggle {
    display: flex;
  }

  .rp-mobile-quick-btn {
    display: inline-flex;
  }

  .rp-header-nav {
    position: fixed;
    top: 0;
    right: -340px;
    width: 310px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 2200;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }

  .rp-header-nav.active {
    right: 0 !important;
  }

  .rp-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
  }

  .rp-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .rp-drawer-brand strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.2;
  }

  .rp-drawer-brand small {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #d97706;
    letter-spacing: 0.05em;
  }

  .rp-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 1.1rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .rp-drawer-links {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .rp-nav-group-title {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 10px 4px;
  }

  .rp-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s ease;
  }

  .rp-nav-link:hover,
  .rp-nav-link.active {
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
  }

  .rp-nav-highlight-predictor {
    background: #eef2ff !important;
    color: #4338ca !important;
    border: 1.5px solid #c7d2fe !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin: 4px 0 !important;
  }
  .rp-nav-highlight-predictor:hover {
    background: #4338ca !important;
    color: #ffffff !important;
  }

  .rp-nav-highlight-ebook {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1.5px solid #fde68a !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin: 4px 0 !important;
  }
  .rp-nav-highlight-ebook:hover {
    background: #d97706 !important;
    color: #ffffff !important;
  }

  /* Dropdown Trigger & Sublinks in Mobile Drawer */
  .rp-nav-dropdown {
    width: 100%;
    margin: 2px 0;
  }

  .rp-dropdown-trigger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
  }

  .rp-dropdown-trigger-row > .rp-nav-link {
    flex: 1;
    min-width: 0;
  }

  .rp-dropdown-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
  }

  .rp-dropdown-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
  }

  .rp-dropdown-btn.predictor-caret-btn {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
  }

  .rp-dropdown-caret {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
    font-weight: 800;
  }

  .rp-nav-dropdown.is-open .rp-dropdown-caret {
    transform: rotate(180deg);
  }

  /* Sublinks are OFF by default */
  .rp-nav-sublinks {
    display: none !important;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid #cbd5e1;
    margin: 4px 0 6px 14px;
    animation: rpFadeDown 0.2s ease;
  }

  .rp-nav-dropdown.is-open .rp-nav-sublinks {
    display: flex !important;
  }

  @keyframes rpFadeDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .rp-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
  }

  .rp-sub-link:hover,
  .rp-sub-link.active {
    background: #f0fdf4;
    color: #059669;
    font-weight: 700;
  }

  .rp-drawer-top-action {
    display: block !important;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  .rp-nav-dash-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: linear-gradient(135deg, #042f2e, #0f766e);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.22);
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  .rp-nav-dash-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.32);
  }

  .rp-nav-dash-card.login {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #0f766e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .rp-nav-dash-card.login .rp-dash-label {
    color: #0f766e;
  }

  .rp-nav-dash-card.login .rp-dash-meta {
    color: #64748b;
  }

  .rp-dash-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .rp-nav-dash-card.login .rp-dash-icon-box {
    background: #f0fdf4;
  }

  .rp-dash-text-box {
    flex: 1;
    min-width: 0;
  }

  .rp-dash-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .rp-dash-meta {
    display: block;
    font-size: 0.73rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
  }

  .rp-dash-arrow {
    font-size: 1.2rem;
    font-weight: 800;
    opacity: 0.8;
  }

  .rp-nav-desktop-auth {
    display: none !important;
  }

  /* Backdrop Overlay */
  .rp-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .rp-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
}

.rp-btn-sm {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.rp-btn-sm.rp-btn-primary {
  background: var(--rp-primary);
  color: #ffffff;
}

.rp-btn-sm.rp-btn-primary:hover {
  background: var(--rp-primary-dark);
  transform: translateY(-1px);
}

/* ── Hero Section ── */
.rp-hero {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 60%, #115e59 100%);
  color: #ffffff;
  padding: 50px 0 45px;
  position: relative;
  overflow: hidden;
}

.rp-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.rp-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rp-hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #f0fdf4;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.rp-hero-badge.gold {
  background: rgba(217, 119, 6, 0.25);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fef3c7;
}

.rp-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.rp-hero-title span {
  color: #fde68a;
}

.rp-hero-subtitle {
  font-size: 1.05rem;
  color: #ccfbf1;
  max-width: 800px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.rp-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.rp-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-stat-icon {
  font-size: 1.4rem;
}

.rp-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.rp-stat-lbl {
  font-size: 0.78rem;
  color: #99f6e4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ── Free Overall Cutoffs Section ── */
.rp-section {
  padding: 44px 0 20px;
}

.rp-section-header {
  margin-bottom: 24px;
}

.rp-section-tag {
  display: inline-block;
  background: var(--rp-emerald-light);
  color: var(--rp-emerald);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  border: 1px solid var(--rp-primary-border);
}

.rp-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rp-text-main);
  letter-spacing: -0.01em;
}

.rp-section-desc {
  font-size: 0.95rem;
  color: var(--rp-text-muted);
  margin-top: 4px;
}

/* Category Switcher Tabs */
.rp-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--rp-border);
}

.rp-cat-tab {
  background: #ffffff;
  border: 1px solid var(--rp-border);
  padding: 10px 22px;
  border-radius: 12px 12px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rp-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rp-cat-tab:hover {
  color: var(--rp-primary);
  background: var(--rp-primary-light);
}

.rp-cat-tab.active {
  background: var(--rp-primary);
  color: #ffffff;
  border-color: var(--rp-primary);
  box-shadow: var(--rp-shadow-sm);
}

/* Benchmark Cutoff Table Card */
.rp-card {
  background: var(--rp-surface-card);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  overflow: hidden;
  margin-bottom: 30px;
}

.rp-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.rp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rp-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rp-border);
  white-space: nowrap;
}

.rp-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rp-border-light);
  font-size: 0.92rem;
  vertical-align: middle;
}

.rp-table tr:hover td {
  background: #f8fafc;
}

.rp-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--rp-text-main);
}

.rp-quota-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.rp-quota-tag.govt {
  background: #e0f2fe;
  color: #0369a1;
}

.rp-quota-tag.central {
  background: #fef3c7;
  color: #92400e;
}

.rp-quota-tag.aided {
  background: #f3e8ff;
  color: #6b21a8;
}

.rp-rank-pill {
  display: inline-block;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--rp-text-main);
}

.rp-mark-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--rp-text-muted);
  font-weight: 600;
}

.rp-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.rp-trend-badge.relaxed {
  background: var(--rp-emerald-light);
  color: var(--rp-emerald);
}

/* ── Rank Predictor Input Card ── */
.rp-finder-card {
  background: #ffffff;
  border: 2px solid var(--rp-primary);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-lg);
  padding: 32px 30px;
  margin-bottom: 40px;
  position: relative;
}

.rp-finder-card::before {
  content: '🎯 AIAPGET 2025 MATCH ENGINE';
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--rp-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 14px;
  border-radius: 999px;
}

.rp-finder-header {
  margin-bottom: 24px;
}

.rp-finder-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rp-text-main);
}

.rp-finder-header p {
  color: var(--rp-text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.rp-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.rp-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rp-text-main);
}

.rp-input,
.rp-select {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--rp-border);
  border-radius: var(--rp-radius-sm);
  font-family: var(--rp-font);
  font-size: 0.95rem;
  color: var(--rp-text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.rp-input:focus,
.rp-select:focus {
  border-color: var(--rp-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.rp-input-rank {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rp-primary);
  letter-spacing: 0.02em;
}

.rp-btn-find {
  background: linear-gradient(135deg, var(--rp-primary) 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: var(--rp-radius-sm);
  padding: 14px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  transition: all 0.2s ease;
  width: 100%;
}

.rp-btn-find:hover {
  background: linear-gradient(135deg, var(--rp-primary-dark) 0%, var(--rp-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

/* ── Results Area ── */
.rp-results-container {
  display: none;
  margin-bottom: 50px;
}

.rp-summary-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
  border-radius: var(--rp-radius);
  padding: 24px 30px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rp-summary-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.rp-summary-subtitle {
  font-size: 0.88rem;
  color: #a7f3d0;
  margin-top: 4px;
}

.rp-chance-counters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.rp-counter-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  text-align: center;
}

.rp-counter-num {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
}

.rp-counter-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d1fae5;
  text-transform: uppercase;
}

/* College Card Item */
.rp-college-card {
  background: #ffffff;
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--rp-shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.rp-college-card:hover {
  border-color: var(--rp-primary-border);
  box-shadow: var(--rp-shadow);
  transform: translateY(-2px);
}

.rp-college-card.premier {
  border-left: 5px solid var(--rp-accent-gold);
  background: #fffdfa;
}

.rp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.rp-col-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--rp-text-main);
  line-height: 1.3;
}

.rp-col-specialty {
  display: inline-block;
  background: #ecfdf5;
  color: var(--rp-emerald);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-top: 6px;
}

.rp-chance-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rp-chance-badge.safe {
  background: #dcfce7;
  color: #15803d;
}

.rp-chance-badge.target {
  background: #dbeafe;
  color: #1d4ed8;
}

.rp-chance-badge.mopup {
  background: #fef3c7;
  color: #b45309;
}

.rp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rp-border-light);
  font-size: 0.85rem;
  color: var(--rp-text-muted);
}

.rp-card-meta strong {
  color: var(--rp-text-main);
}

/* Locked Card Style */
.rp-college-card.locked {
  background: #f8fafc;
  border-style: dashed;
  border-color: #cbd5e1;
  position: relative;
  overflow: hidden;
}

.rp-locked-overlay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* ── Monetization Master Unlock Card (₹99) ── */
.rp-unlock-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e293b 100%);
  color: #ffffff;
  border: 2px solid #6366f1;
  border-radius: var(--rp-radius);
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(49, 46, 129, 0.35);
  margin: 36px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rp-unlock-card::before {
  content: '🔥 LIMITED TIME ₹99 COUNSELLING OFFER';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 14px;
  border-radius: 999px;
}

.rp-unlock-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.rp-unlock-title span {
  color: #fde047;
}

.rp-unlock-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.rp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 800px;
  margin: 0 auto 28px;
  text-align: left;
}

.rp-feature-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
}

.rp-feature-item span {
  color: #4ade80;
  font-weight: 800;
}

.rp-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.rp-current-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
}

.rp-old-price {
  font-size: 1.25rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.rp-discount-pill {
  background: #22c55e;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.rp-btn-unlock {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  padding: 16px 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.45);
  transition: all 0.2s ease;
  text-decoration: none;
}

.rp-btn-unlock:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.6);
}

.rp-secure-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 14px;
}

/* ── Modal Dialog Styles ── */
.rp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rp-modal-overlay.active {
  display: flex;
}

.rp-modal-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
  animation: rpModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rpModalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.rp-modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--rp-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.rp-modal-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--rp-primary);
  background: var(--rp-primary-light);
  border: 1px solid var(--rp-primary-border);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.rp-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--rp-text-main);
  line-height: 1.25;
}

.rp-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.rp-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.rp-modal-body {
  padding: 22px 24px 26px;
}

.rp-modal-benefits {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-modal-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rp-benefit-icon {
  font-size: 1.1rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.rp-modal-benefit-item strong {
  font-size: 0.86rem;
  color: #0f172a;
  display: block;
  line-height: 1.2;
  margin-bottom: 2px;
}

.rp-modal-benefit-item p {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

.rp-order-summary {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1.5px solid #5eead4;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rp-account-notice {
  background: #f0fdfa;
  border: 1.5px solid #99f6e4;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.rp-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
  transition: all 0.2s ease;
}

.rp-btn-submit:hover {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.4);
  transform: translateY(-1px);
}

/* ── Navigation Auth & Dashboard Buttons ── */
.rp-nav-btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rp-nav-btn-auth.login {
  background: #ffffff;
  color: var(--rp-primary);
  border: 1.5px solid var(--rp-primary);
}

.rp-nav-btn-auth.login:hover {
  background: var(--rp-primary-light);
  transform: translateY(-1px);
}

.rp-nav-btn-auth.dashboard {
  background: linear-gradient(135deg, #0f766e 0%, #064e3b 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.rp-nav-btn-auth.dashboard:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.4);
  transform: translateY(-1px);
}

.rp-modal-box.rp-modal-sm {
  max-width: 440px;
}

.rp-modal-box.rp-modal-lg {
  max-width: 580px;
}

.rp-btn-logout {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-btn-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

.rp-badge-count {
  font-size: 0.72rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 999px;
}

.dash-item-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.dash-item-card:hover {
  border-color: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
}

.dash-item-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.dash-item-meta {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.dash-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
}

.dash-btn-action.open {
  background: #0f766e;
  color: #ffffff;
}

.dash-btn-action.open:hover {
  background: #115e59;
}

.dash-btn-action.download {
  background: #16a34a;
  color: #ffffff;
}

.dash-btn-action.download:hover {
  background: #15803d;
}

/* ── Print Styles for Choice-Filling Order ── */
@media print {
  body.rp-body {
    background: #ffffff;
    color: #000000;
    padding: 0;
  }
  .rp-header,
  .rp-hero,
  .rp-finder-card,
  .rp-unlock-card,
  .rp-cat-tabs,
  .rp-btn-sm,
  .rp-footer {
    display: none !important;
  }
  .rp-results-container {
    display: block !important;
  }
  .rp-college-card {
    box-shadow: none;
    border: 1px solid #000000;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .rp-hero-title {
    font-size: 1.7rem;
  }
  .rp-finder-card {
    padding: 22px 18px;
  }
  .rp-summary-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .rp-card-top {
    flex-direction: column;
  }
  .rp-hub-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Predictor Hub Cards Grid ── */
.rp-hub-section {
  padding: 45px 0 40px;
}

.rp-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
  margin-top: 24px;
}

.rp-hub-card {
  background: #ffffff;
  border: 1.5px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 32px 28px;
  box-shadow: var(--rp-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.rp-hub-card:hover {
  border-color: var(--rp-primary);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.15);
  transform: translateY(-4px);
}

.rp-hub-card-badge {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.rp-hub-card.featured {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.rp-hub-card.featured:hover {
  border-color: var(--rp-emerald);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.rp-hub-card.state-up {
  border-color: #fde68a;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.rp-hub-card.state-up:hover {
  border-color: #d97706;
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.18);
}

.rp-hub-card.state-mh {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.rp-hub-card.state-mh:hover {
  border-color: #ea580c;
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.18);
}

.rp-hub-card.state-mp {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.rp-hub-card.state-mp:hover {
  border-color: #059669;
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.18);
}

.rp-hub-card.state-rj {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.rp-hub-card.state-rj:hover {
  border-color: #7c3aed;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.18);
}

.rp-hub-card.state-uk {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.rp-hub-card.state-uk:hover {
  border-color: #0369a1;
  box-shadow: 0 12px 32px rgba(3, 105, 161, 0.18);
}

.rp-hub-card.state-gj {
  border-color: #fde68a;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.rp-hub-card.state-gj:hover {
  border-color: #b45309;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.18);
}

.rp-hub-card.state-br {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.rp-hub-card.state-br:hover {
  border-color: #047857;
  box-shadow: 0 12px 32px rgba(4, 120, 87, 0.18);
}

.rp-hub-card.state-pb {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
}

.rp-hub-card.state-pb:hover {
  border-color: #4338ca;
  box-shadow: 0 12px 32px rgba(67, 56, 202, 0.18);
}

.rp-hub-card.state-hr {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}

.rp-hub-card.state-hr:hover {
  border-color: #e11d48;
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.18);
}

.rp-hub-card.state-hp {
  border-color: #a5f3fc;
  background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
}

.rp-hub-card.state-hp:hover {
  border-color: #0891b2;
  box-shadow: 0 12px 32px rgba(8, 145, 178, 0.18);
}

.rp-hub-card.disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: #f8fafc;
}

.rp-hub-card.disabled:hover {
  transform: none;
  box-shadow: var(--rp-shadow);
  border-color: var(--rp-border);
}

.rp-hub-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: inline-block;
}

.rp-hub-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--rp-text-main);
  line-height: 1.3;
  margin-bottom: 10px;
}

.rp-hub-card-desc {
  font-size: 0.92rem;
  color: var(--rp-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.rp-hub-meta-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-hub-meta-item {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.rp-hub-meta-item span {
  color: var(--rp-primary);
  font-weight: 800;
}

.rp-hub-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  border-top: 1px solid var(--rp-border);
}

.rp-hub-btn {
  background: var(--rp-primary);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.rp-hub-card:hover .rp-hub-btn {
  background: var(--rp-primary-dark);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35);
  transform: translateY(-2px);
}

.rp-back-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rp-primary);
  text-decoration: none;
  margin-bottom: 22px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1.5px solid var(--rp-border);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.rp-back-hub:hover {
  background: var(--rp-primary-light);
  border-color: var(--rp-primary-border);
  transform: translateX(-3px);
}

/* ── Executive Student Report Card ── */
.rp-report-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 30px;
  margin-bottom: 26px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.rp-report-card-header {
  margin-bottom: 22px;
}

.rp-report-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.rp-report-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.rp-report-card-sub {
  font-size: 0.94rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.rp-report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.rp-report-stat-card {
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.rp-report-stat-card.safe {
  border: 1.5px solid #86efac;
  background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.08);
}

.rp-report-stat-card.target {
  border: 1.5px solid #93c5fd;
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.rp-report-stat-card.reach {
  border: 1.5px solid #fdba74;
  background: linear-gradient(145deg, #fff7ed 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.08);
}

.rp-stat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rp-stat-badge.safe {
  background: #dcfce7;
  color: #15803d;
}

.rp-stat-badge.target {
  background: #dbeafe;
  color: #1d4ed8;
}

.rp-stat-badge.reach {
  background: #ffedd5;
  color: #c2410c;
}

.rp-stat-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.rp-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.rp-stat-unit {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 700;
}

.rp-stat-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.rp-stat-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.rp-report-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 14px;
}

.rp-report-summary-bar[hidden] {
  display: none;
}

#rp-bottom-report-actions {
  margin: 24px 0;
}

.rp-summary-total {
  font-size: 0.98rem;
  color: #334155;
  font-weight: 600;
}

.rp-summary-total strong {
  color: var(--rp-primary);
  font-size: 1.25rem;
  font-weight: 800;
}

.rp-report-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rp-btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
  transition: all 0.2s ease;
}

.rp-btn-download-pdf:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.rp-btn-print-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-btn-download-pdf.locked {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
}

.rp-btn-download-pdf.locked:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.38);
}

.rp-btn-print-report.locked {
  background: #475569;
  color: #f1f5f9;
}

.rp-btn-print-report.locked:hover {
  background: #334155;
  color: #ffffff;
}

.rp-list-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .rp-report-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Cross-Promotion Card (Linking to Guidance E-Books) ── */
.rp-cross-promo-section {
  margin: 40px auto 20px;
  max-width: 1200px;
  padding: 0;
}

.rp-cross-promo-card {
  background: linear-gradient(135deg, #042f2e 0%, #0f172a 100%);
  border: 1px solid #0d9488;
  border-radius: var(--rp-radius, 16px);
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 10px 30px -5px rgba(13, 148, 136, 0.25);
  position: relative;
  overflow: hidden;
}

.rp-cross-promo-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.rp-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 148, 136, 0.25);
  color: #5eead4;
  border: 1px solid rgba(13, 148, 136, 0.4);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.rp-cross-promo-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.rp-cross-promo-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 14px;
  line-height: 1.5;
  max-width: 680px;
}

.rp-promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-promo-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #f1f5f9;
  font-weight: 500;
}

.rp-promo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 250px;
}

.rp-btn-promo-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d9488;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
  transition: all 0.2s ease;
}

.rp-btn-promo-primary:hover {
  background: #14b8a6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.rp-promo-subtext {
  text-align: center;
  font-size: 0.74rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .rp-cross-promo-card {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
    gap: 20px;
  }
  .rp-promo-actions {
    min-width: 100%;
  }
}

