/* ═══════════════════════════════════════════
   AC Final Papers — Main Stylesheet
   2026 A/L Biology Special
═══════════════════════════════════════════ */

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

:root {
  --primary:       #1d4ed8;
  --primary-light: #3b82f6;
  --primary-dark:  #1e3a8a;
  --green:         #059669;
  --green-light:   #10b981;
  --purple:        #7c3aed;
  --amber:         #f59e0b;
  --red:           #ef4444;
  --bg:            #f0f4ff;
  --bg2:           #ffffff;
  --card:          #ffffff;
  --border:        #e2e8f0;
  --text:          #0f172a;
  --text2:         #334155;
  --muted:         #64748b;
  --light:         #f8fafc;
  --shadow:        0 4px 24px rgba(29,78,216,.10);
  --shadow-lg:     0 8px 40px rgba(29,78,216,.15);
  --radius:        16px;
  --radius-sm:     10px;
  --transition:    all .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(29,78,216,.3);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 15px; font-weight: 700; color: var(--text); }
.logo-sub  { font-size: 11px; font-weight: 500; color: var(--primary); }

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover { background: var(--bg); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-whatsapp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-whatsapp-nav:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn-whatsapp-nav i { font-size: 16px; }

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-login img { width: 18px; height: 18px; }
.btn-login:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

/* User menu */
#userSection { position: relative; }

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition);
}
.user-menu:hover { border-color: var(--primary); }

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chevron { font-size: 11px; color: var(--muted); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 100;
}
.user-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }

.user-dropdown-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.user-dropdown-info img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.user-dropdown-info p { font-size: 14px; font-weight: 600; color: var(--text); }
.user-dropdown-info small { font-size: 11px; color: var(--muted); word-break: break-all; }

.user-dropdown-status { padding: 8px 14px; border-bottom: 1px solid var(--border); }

.badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-unpaid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-item i { width: 16px; color: var(--muted); }

.dropdown-signout { color: var(--red); }
.dropdown-signout:hover { background: #fef2f2; color: var(--red); }
.dropdown-signout i { color: var(--red); }

/* ── Nav Left Profile ── */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-profile-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition);
}
.nav-profile-left:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.nav-avatar-left {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.nav-profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-profile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.nav-profile-status {
  font-size: 11px;
  font-weight: 600;
}
.nav-profile-status.status-paid    { color: var(--green); }
.nav-profile-status.status-pending { color: var(--amber); }

/* Nav right user */
.nav-right-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-admin-nav:hover { border-color: var(--primary); color: var(--primary); }

.btn-signout-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.btn-signout-nav:hover { border-color: var(--red); color: var(--red); background: #fef2f2; }

/* ── Profile Modal ── */
.profile-modal-box { max-width: 480px; }

.profile-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-big-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
  box-shadow: 0 4px 16px rgba(29,78,216,.2);
}

.profile-access-badge { text-align: center; }

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-field label i { color: var(--primary); font-size: 12px; }

.profile-field input {
  padding: 10px 14px;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
}
.profile-field input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.profile-field input.disabled-input {
  color: var(--muted);
  cursor: not-allowed;
  background: #f1f5f9;
}

/* Status cards */
.status-paid-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
}
.status-paid-card i { color: var(--green); font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.status-paid-card strong { display: block; font-size: 14px; color: #065f46; margin-bottom: 2px; }
.status-paid-card span   { font-size: 13px; color: #047857; }

.status-pending-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
}
.status-pending-card i { color: var(--amber); font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.status-pending-card strong { display: block; font-size: 14px; color: #92400e; margin-bottom: 2px; }
.status-pending-card span   { display: block; font-size: 13px; color: #b45309; margin-bottom: 8px; }

.btn-wa-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-wa-small:hover { background: #1ebe5d; }

.btn-save-profile {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(29,78,216,.25);
}
.btn-save-profile:hover    { opacity: .92; }
.btn-save-profile:disabled { opacity: .6; cursor: wait; }

.profile-save-msg { font-size: 13px; font-weight: 600; text-align: center; min-height: 20px; }
.profile-save-msg.success   { color: var(--green); }
.profile-save-msg.error-msg { color: var(--red); }

/* Paper locked overlay */
.paper-locked .paper-icon i { color: #94a3b8; }

.spinner-sm {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  margin-left: auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 50%, #f5f3ff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}

.c1 {
  width: 600px; height: 600px;
  background: rgba(59,130,246,.25);
  top: -200px; right: -100px;
}
.c2 {
  width: 400px; height: 400px;
  background: rgba(124,58,237,.2);
  bottom: -100px; left: -50px;
}
.c3 {
  width: 300px; height: 300px;
  background: rgba(16,185,129,.2);
  top: 40%; left: 40%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(29,78,216,.1);
  color: var(--primary);
  border: 1px solid rgba(29,78,216,.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}
.hero-badge i { color: var(--amber); }

.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -2px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text2);
  max-width: 520px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(29,78,216,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,78,216,.4); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-outline .fa-whatsapp { color: #25D366; font-size: 17px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat span   { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

.stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

/* Hero visual */
.hero-image {
  position: absolute;
  right: -30px; top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  display: none;
}

@media (min-width: 1024px) {
  .hero { flex-direction: row; }
  .hero-content { max-width: 600px; padding: 100px 0 80px 24px; }
  .hero-image { display: block; right: 60px; }
}

.hero-main-visual {
  width: 260px; height: 260px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: morphBlob 8s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(29,78,216,.3);
}
.hero-main-visual i { font-size: 80px; color: rgba(255,255,255,.9); }

@keyframes morphBlob {
  0%,100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50%      { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}
.hero-card-float i { font-size: 18px; }

.card-f1 { top: 10%; left: 0; animation-delay: 0s; }
.card-f1 i { color: var(--primary); }

.card-f2 { top: 40%; right: 0; animation-delay: 1.3s; }
.card-f2 i { color: var(--green); }

.card-f3 { bottom: 15%; left: 5%; animation-delay: 2.6s; }
.card-f3 i { color: var(--red); }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ═══ FEATURES ═══ */
.features {
  padding: 60px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-3px); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-icon.blue   { background: #dbeafe; color: var(--primary); }
.feature-icon.green  { background: #d1fae5; color: var(--green); }
.feature-icon.purple { background: #ede9fe; color: var(--purple); }

.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ═══ PAPERS SECTION ═══ */
.papers-section {
  padding: 80px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(29,78,216,.08);
  color: var(--primary);
  border: 1px solid rgba(29,78,216,.15);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tabs */
.papers-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: fit-content;
}

.tab-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover   { color: var(--primary); background: var(--bg); }
.tab-btn.active  { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(29,78,216,.25); }
.tab-btn.tab-final {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-weight: 700;
}
.tab-btn.tab-final:hover { opacity: .9; color: #fff; background: linear-gradient(135deg, #6d28d9, #7c3aed); }
.tab-btn.tab-final.active { background: linear-gradient(135deg, #5b21b6, #7c3aed); box-shadow: 0 2px 8px rgba(124,58,237,.4); }

/* Not logged in */
.not-logged-msg {
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.msg-card {
  text-align: center;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 400px;
}
.msg-card i { font-size: 56px; color: var(--primary); opacity: .3; margin-bottom: 16px; display: block; }
.msg-card h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.msg-card p  { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* Papers grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.loading-papers {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px;
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.no-papers {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px;
  color: var(--muted);
  font-size: 15px;
}
.no-papers i { font-size: 48px; opacity: .3; }

/* Paper card */
.paper-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.paper-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.paper-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
}

.paper-type-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.paper-type-badge.final { background: linear-gradient(135deg,#7c3aed,#a78bfa); color: #fff; }
.paper-type-badge.past  { background: #dbeafe; color: var(--primary); }
.paper-type-badge.model { background: #d1fae5; color: var(--green); }
.paper-type-badge.mcq   { background: #fef3c7; color: #92400e; }
.paper-type-badge.essay { background: #ede9fe; color: var(--purple); }

.paper-lock {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.paper-lock.locked { background: #fef3c7; color: #92400e; }
.paper-lock.open   { background: #d1fae5; color: var(--green); }

.paper-icon {
  padding: 20px 16px 8px;
  font-size: 40px;
  color: #ef4444;
  opacity: .85;
}

.paper-info { padding: 0 16px 12px; flex: 1; }
.paper-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.paper-desc  { font-size: 13px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }

.paper-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.paper-meta span {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.paper-meta i { font-size: 10px; color: var(--primary); }

.paper-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.btn-view-paper {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-view-paper:hover { opacity: .92; }

.btn-unlock-paper {
  width: 100%;
  padding: 9px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-unlock-paper:hover { background: #fde68a; }

/* ═══ CTA SECTION ═══ */
.cta-section {
  padding: 80px 0;
  background: #fff;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  border-radius: 24px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.12) 0%, transparent 60%);
}

.cta-content { position: relative; z-index: 2; max-width: 560px; }

.cta-badge {
  display: inline-flex;
  padding: 5px 12px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.cta-content h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.cta-content p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  line-height: 1.7;
}

.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-whatsapp-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
}
.btn-whatsapp-big:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.5); }
.btn-whatsapp-big i { font-size: 20px; }

.cta-btns .btn-primary {
  background: rgba(255,255,255,.15);
  box-shadow: none;
  border: 1.5px solid rgba(255,255,255,.4);
}
.cta-btns .btn-primary:hover {
  background: rgba(255,255,255,.25);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.cta-deco {
  font-size: 130px;
  color: rgba(255,255,255,.07);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand .logo-main { color: #fff; }
.footer-brand .logo-sub  { color: rgba(255,255,255,.6); }
.footer-brand .logo-icon { background: rgba(255,255,255,.15); }
.footer-brand p { font-size: 14px; line-height: 1.7; }

.footer-links h4, .footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }

.btn-whatsapp-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
}
.btn-whatsapp-footer:hover { background: #1ebe5d; }
.btn-whatsapp-footer i { font-size: 18px; }

.footer-note { font-size: 12px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 13px;
}

/* ═══ MODALS ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  overflow: hidden;
  width: 100%;
  transform: scale(.95) translateY(10px);
  transition: transform .25s ease;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text); }

.modal-close {
  width: 34px; height: 34px;
  background: var(--bg);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  transition: var(--transition);
}
.modal-close:hover { background: #fee2e2; color: var(--red); }

.modal-body { flex: 1; overflow: auto; }

/* PDF Modal */
.pdf-modal-box { max-width: 900px; height: 90vh; }
.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Payment Modal */
.payment-modal-box { max-width: 460px; }

.payment-content {
  padding: 28px;
  text-align: center;
}

.payment-icon {
  width: 72px; height: 72px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: #ef4444;
}

.payment-content h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.payment-content > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.payment-steps {
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.step-num {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text { display: flex; flex-direction: column; gap: 2px; }
.step-text strong { font-size: 14px; font-weight: 600; color: var(--text); }
.step-text span   { font-size: 12px; color: var(--muted); }

.payment-content .btn-whatsapp-big {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.payment-email-note {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--light);
  border-radius: 8px;
  word-break: break-all;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1/-1; }
  .cta-deco       { display: none; }
  .cta-card       { padding: 40px 32px; }
}

@media (max-width: 768px) {
  .nav-links          { display: none; }
  .btn-whatsapp-nav span { display: none; }
  .mobile-menu-btn    { display: flex; }
  .nav-profile-info   { display: none; }
  .nav-profile-left   { padding: 4px; border-radius: 50%; }
  .nav-avatar-left    { width: 36px; height: 36px; }

  .hero { padding: 0 0 40px; }
  .hero-content { padding: 90px 20px 40px; }
  .hero-stats { gap: 16px; }

  .footer-content { grid-template-columns: 1fr; gap: 32px; }

  .papers-tabs { overflow-x: auto; padding-bottom: 4px; }
}

@media (max-width: 480px) {
  .cta-card { padding: 28px 20px; }
  .cta-btns { flex-direction: column; }
  .cta-btns button { width: 100%; justify-content: center; }
  .hero-btns { flex-direction: column; }
  .hero-btns button { width: 100%; justify-content: center; }
}
