/*
Theme Name: CGPA Full Form Theme
Author: Expert Developer
Description: Custom theme converted from PHP site.
Version: 1.0
*/
/* ============================================
   CGPA Full Form - Complete CSS Design System
   Converted from React/Tailwind to Vanilla CSS
   ============================================ */

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-main: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  --bg-solid: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(179, 255, 58, 0.25);
  --glass-border-hover: rgba(179, 255, 58, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-shadow-hover: 0 16px 48px rgba(179, 255, 58, 0.15);
  --glow-primary: rgba(179, 255, 58, 0.3);
  --glow-accent: rgba(142, 219, 0, 0.25);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-border: rgba(179, 255, 58, 0.3);
  --input-focus: rgba(179, 255, 58, 0.6);
}

.dark {
  --bg-main: linear-gradient(135deg, #0a0a0f 0%, #111118 50%, #0a0a0f 100%);
  --bg-solid: #111118;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-bg: rgba(17, 17, 24, 0.7);
  --glass-bg-hover: rgba(17, 17, 24, 0.9);
  --glass-border: rgba(179, 255, 58, 0.15);
  --glass-border-hover: rgba(179, 255, 58, 0.35);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow-hover: 0 16px 48px rgba(179, 255, 58, 0.1);
  --glow-primary: rgba(179, 255, 58, 0.2);
  --glow-accent: rgba(142, 219, 0, 0.15);
  --input-bg: rgba(17, 17, 24, 0.8);
  --input-border: rgba(179, 255, 58, 0.2);
  --input-focus: rgba(179, 255, 58, 0.5);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #84cc16, #b3ff3a, #84cc16);
  z-index: 9999; transition: width 0.1s linear;
}

/* ===== GLASS UTILITIES ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-6px);
}
.glass-card-static:hover { transform: none; }

/* ===== INPUTS ===== */
.glass-input {
  background: var(--input-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--input-border); border-radius: 12px;
  padding: 12px 16px; color: var(--text-primary); font-size: 1rem;
  width: 100%; transition: all 0.3s ease; outline: none; font-family: inherit;
}
.glass-input:focus { border-color: var(--input-focus); box-shadow: 0 0 0 3px rgba(132,204,22,0.15), 0 0 20px rgba(132,204,22,0.1); }
.glass-input::placeholder { color: var(--text-muted); }

.glass-select {
  background: var(--input-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--input-border); border-radius: 12px;
  padding: 12px 16px; color: var(--text-primary); font-size: 1rem;
  width: 100%; transition: all 0.3s ease; outline: none;
  appearance: none; cursor: pointer; font-family: inherit;
}
.glass-select:focus { border-color: var(--input-focus); box-shadow: 0 0 0 3px rgba(132,204,22,0.15); }
.glass-select option { background: var(--bg-solid); color: var(--text-primary); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #84cc16 0%, #b3ff3a 100%);
  color: #1a1a1a; padding: 12px 28px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(132,204,22,0.3); position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(132,204,22,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--glass-bg); backdrop-filter: blur(10px);
  color: var(--text-primary); padding: 12px 28px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; border: 1px solid var(--glass-border);
  cursor: pointer; transition: all 0.3s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); transform: translateY(-2px); }

.btn-small { padding: 8px 18px; font-size: 0.875rem; border-radius: 10px; }

.btn-delete {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444; padding: 6px; border-radius: 8px; cursor: pointer;
  transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center;
}
.btn-delete:hover { background: rgba(239,68,68,0.2); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #84cc16 0%, #b3ff3a 50%, #84cc16 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% center; } 50% { background-position: 200% center; } }

/* ===== FORMULA BLOCKS ===== */
.formula-block {
  background: linear-gradient(135deg, rgba(132,204,22,0.1), rgba(179,255,58,0.08));
  border: 1px solid rgba(132,204,22,0.2); border-radius: 16px;
  padding: 20px 24px; font-weight: 600; text-align: center;
  color: var(--text-primary); position: relative;
}
.formula-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132,204,22,0.4), transparent);
}

/* ===== RESULT DISPLAY ===== */
.result-display {
  background: linear-gradient(135deg, rgba(132,204,22,0.15), rgba(179,255,58,0.1));
  border: 1px solid rgba(132,204,22,0.25); border-radius: 20px;
  padding: 24px; text-align: center; position: relative; overflow: hidden;
  animation: fadeScale 0.4s ease;
}
.result-display::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(132,204,22,0.1)); pointer-events: none;
}
.result-value { font-size: 3rem; font-weight: 900; }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ===== ANIMATED BLOBS ===== */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: blobFloat 8s ease-in-out infinite; pointer-events: none; }
.blob-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(179,255,58,0.15), transparent 70%); top: -100px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(142,219,0,0.12), transparent 70%); bottom: -80px; left: -80px; animation-delay: -3s; }
.blob-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(163,230,53,0.1), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -5s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.03); }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.spinner { width: 48px; height: 48px; border: 3px solid var(--glass-border); border-top-color: #84cc16; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FOOTER ===== */
.site-footer { position: relative; margin-top: 80px; border-top: 1px solid var(--glass-border); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 48px 16px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-logo-img { width: 36px; height: 36px; border-radius: 12px; }
.footer-logo-text { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }

.footer-heading { font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #84cc16; }

.footer-bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--glass-border); display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copyright { font-size: 0.875rem; color: var(--text-muted); }
.footer-socials { display: flex; align-items: center; gap: 16px; }
.footer-socials a { color: var(--text-secondary); transition: color 0.2s; }
.footer-socials a:hover { color: #84cc16; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px; transition: padding 0.3s;
}
.site-header.scrolled { padding: 8px 16px; }

.header-nav {
  width: 100%; max-width: 900px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled .header-nav {
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}

.header-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.header-logo img { width: 32px; height: 32px; border-radius: 8px; }
.header-logo-text { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); display: none; }
@media (min-width: 640px) { .header-logo-text { display: inline; } }

.desktop-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.nav-link {
  padding: 8px 12px; font-size: 0.875rem; font-weight: 500; border-radius: 8px;
  color: var(--text-secondary); transition: all 0.2s; background: none; border: none;
  display: flex; align-items: center; gap: 4px; text-decoration: none;
}
.nav-link:hover, .nav-link.active { background: rgba(132,204,22,0.1); color: #84cc16; }
.nav-dropdown-trigger svg { transition: transform 0.2s; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown.open .nav-dropdown-trigger { color: #84cc16; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 8px; padding: 12px; border-radius: 16px;
  background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px) scale(0.96);
  transition: all 0.2s ease; pointer-events: none;
}
.nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); pointer-events: all; }

.dropdown-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; width: 420px; }
.dropdown-single { display: flex; flex-direction: column; gap: 4px; width: 260px; }

.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-primary); text-decoration: none; transition: background 0.2s;
}
.dropdown-item:hover { background: rgba(132,204,22,0.08); }
.dropdown-icon { font-size: 1rem; flex-shrink: 0; width: 24px; text-align: center; }
.dropdown-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 0 12px; margin-bottom: 4px; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  padding: 8px; border-radius: 12px; background: transparent;
  border: 1px solid var(--glass-border); color: var(--text-primary);
  transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: rgba(132,204,22,0.1); }
.dark .icon-sun { display: block; }
.dark .icon-moon { display: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }

.header-cta-link { display: none; text-decoration: none; }
@media (min-width: 640px) { .header-cta-link { display: inline-flex; } }
.header-cta {
  padding: 8px 16px; font-size: 0.875rem; font-weight: 600; border-radius: 12px;
  background: linear-gradient(135deg, #84cc16, #b3ff3a); color: #1a1a1a; border: none;
}

.mobile-menu-toggle {
  display: flex; padding: 8px; border-radius: 12px;
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-primary); align-items: center; justify-content: center;
}
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.active .icon-menu { display: none; }
.mobile-menu-toggle.active .icon-close { display: block; }

/* ===== MOBILE MENU ===== */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px); display: none;
}
.mobile-overlay.open { display: block; }
@media (min-width: 1024px) { .mobile-overlay { display: none !important; } }

.mobile-nav {
  position: absolute; right: 0; top: 0; bottom: 0; width: 320px;
  padding: 80px 24px 24px; display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; background: var(--bg-solid); border-left: 1px solid var(--glass-border);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-overlay.open .mobile-nav { transform: translateX(0); }

.mobile-link {
  display: block; padding: 12px 16px; border-radius: 12px; font-size: 1rem;
  font-weight: 500; color: var(--text-primary); text-decoration: none;
}
.mobile-link:hover { background: rgba(132,204,22,0.08); }

.mobile-accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 16px; border-radius: 12px; font-size: 1rem;
  font-weight: 500; background: none; border: none; color: var(--text-primary);
}
.mobile-accordion-trigger:hover { background: rgba(132,204,22,0.08); }
.mobile-accordion-trigger svg { transition: transform 0.2s; }
.mobile-accordion-trigger.open svg { transform: rotate(180deg); }

.mobile-accordion-content {
  display: none; padding-left: 16px; overflow: hidden;
}
.mobile-accordion-content.open { display: block; animation: slideDown 0.2s ease; }
@keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 1000px; } }

.mobile-sub-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 8px; font-size: 0.875rem; color: var(--text-secondary); text-decoration: none;
}
.mobile-sub-link:hover { color: #84cc16; }

.mobile-cta-wrapper { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.mobile-cta {
  display: block; width: 100%; padding: 12px; text-align: center;
  font-size: 1rem; font-weight: 600; border-radius: 12px;
  background: linear-gradient(135deg, #84cc16, #b3ff3a); color: #1a1a1a; text-decoration: none;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  padding: 12px; border-radius: 16px; border: none;
  background: linear-gradient(135deg, #84cc16, #b3ff3a); color: white;
  box-shadow: 0 8px 25px rgba(132,204,22,0.4);
  opacity: 0; visibility: hidden; transform: scale(0.8);
  transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: scale(1); }
.back-to-top:hover { transform: scale(1.1); }

/* ===== MAIN CONTENT ===== */
.main-content { position: relative; padding-top: 96px; padding-bottom: 64px; min-height: 100vh; width: 100%; }

/* ===== LAYOUT GRIDS ===== */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Tool grid layout */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: 2fr 1fr; } }

/* Subject row grid */
.subject-row { display: grid; grid-template-columns: 5fr 4fr 2fr 1fr; gap: 8px; margin-bottom: 8px; align-items: center; }

/* ===== TOOL LAYOUT ===== */
.tool-page { min-height: 100vh; padding: 32px 16px; }
.tool-page .tool-container { max-width: 900px; margin: 0 auto; }

.breadcrumb { margin-bottom: 24px; display: flex; align-items: center; gap: 8px; font-size: 0.875rem; flex-wrap: wrap; color: var(--text-muted); }
.breadcrumb a { text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: #84cc16; }

.tool-header { margin-bottom: 32px; }
.tool-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
@media (min-width: 640px) { .tool-title { font-size: 1.875rem; } }
.tool-description { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); }

.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Formula sidebar */
.formula-sidebar { height: fit-content; }
.formula-sidebar h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.formula-steps { display: flex; flex-direction: column; gap: 12px; }
.formula-step { display: flex; gap: 12px; align-items: flex-start; }
.formula-step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: white;
  background: linear-gradient(135deg, #84cc16, #65a30d);
}
.formula-step p { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); padding-top: 4px; }

/* ===== ARTICLE LAYOUT ===== */
.article-page { min-height: 100vh; padding: 32px 16px; }
.article-container { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--glass-border); }
.article-title { font-size: 1.875rem; font-weight: 900; margin-bottom: 24px; line-height: 1.15; color: var(--text-primary); }
@media (min-width: 640px) { .article-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .article-title { font-size: 3rem; } }
.article-desc { font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); }
.article-updated { margin-top: 16px; font-size: 0.875rem; color: #84cc16; }
.article-body { color: var(--text-secondary); }
.article-body h2 { color: var(--text-primary); font-size: 1.5rem; font-weight: 700; margin: 32px 0 16px; }
.article-body h3 { color: var(--text-primary); font-size: 1.25rem; font-weight: 600; margin: 24px 0 12px; }
.article-body p { margin-bottom: 16px; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body ul { list-style-type: disc; }
.article-body ol { list-style-type: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body a { color: #84cc16; text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--text-primary); }

/* ===== FAQ ACCORDION ===== */
.faq-item { border-radius: 14px; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px; background: none; border: none; color: var(--text-primary);
  text-align: left; cursor: pointer;
}
.faq-trigger span { font-weight: 500; font-size: 0.875rem; padding-right: 16px; }
@media (min-width: 640px) { .faq-trigger span { font-size: 1rem; } }
.faq-trigger svg { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.faq-trigger.open svg { transform: rotate(180deg); }
.faq-answer { padding: 0 16px 16px; font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); display: none; animation: fadeIn 0.2s ease; }
.faq-answer.open { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== RELATED TOOLS ===== */
.related-section { margin-top: 48px; }
.related-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; color: var(--text-primary); }
@media (min-width: 640px) { .related-section h2 { font-size: 1.5rem; } }

.related-tool-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px; height: 100%;
}
.related-tool-card:hover { transform: translateY(-4px); }
.tool-icon-box {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.125rem; transition: transform 0.3s;
}
.related-tool-card:hover .tool-icon-box { transform: scale(1.1); }
.related-tool-card h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); transition: color 0.2s; }
.related-tool-card:hover h3 { color: #84cc16; }
.related-tool-card p { font-size: 0.75rem; line-height: 1.5; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.related-guide-card { text-align: center; padding: 20px; position: relative; overflow: hidden; }
.related-guide-card:hover { transform: translateY(-4px); }
.related-guide-card .emoji { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.related-guide-card h3 { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); transition: color 0.2s; }
.related-guide-card:hover h3 { color: #84cc16; }

.browse-all { text-align: center; padding-top: 16px; }
.browse-all a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: #84cc16; transition: gap 0.2s; }
.browse-all a:hover { gap: 12px; }

/* ===== UNIVERSITY SELECTOR ===== */
.uni-selector { border-radius: 16px; padding: 16px 20px; }
.uni-selector-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: var(--text-primary); cursor: pointer;
}
.uni-selector-toggle svg { color: var(--text-muted); transition: transform 0.2s; }
.uni-selector-toggle.open svg { transform: rotate(180deg); }
.uni-selector-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.875rem; }
.uni-selector-body { margin-top: 16px; display: none; }
.uni-selector-body.open { display: block; animation: fadeIn 0.2s ease; }
.uni-country-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.uni-country-btn {
  padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-secondary);
}
.uni-country-btn.active {
  background: linear-gradient(135deg, #84cc16, #b3ff3a);
  border-color: #84cc16; color: #1a1a1a;
}
.uni-info {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
  border-radius: 12px; background: rgba(132,204,22,0.08); border: 1px solid rgba(132,204,22,0.15);
  margin-top: 12px; font-size: 0.75rem; color: var(--text-secondary);
}
.uni-info strong { color: var(--text-primary); }

/* ===== TOOL CONTENT SECTIONS ===== */
.tool-content-sections { margin-top: 48px; display: flex; flex-direction: column; gap: 32px; }
.content-section { padding: 24px; border-radius: 20px; }
@media (min-width: 640px) { .content-section { padding: 32px; } }
.content-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
@media (min-width: 640px) { .content-section h2 { font-size: 1.5rem; } }
.content-section .prose-content { font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); }
@media (min-width: 640px) { .content-section .prose-content { font-size: 1rem; } }
.content-section .prose-content p { margin-bottom: 12px; }
.content-section .prose-content ul { margin: 0 0 12px 20px; list-style-type: disc; }
.content-section .prose-content li { margin-bottom: 8px; }
.content-section .prose-content strong { color: var(--text-primary); }
.content-section .prose-content code { background: rgba(132,204,22,0.1); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ===== SECTION HELPERS ===== */
.section { position: relative; z-index: 20; padding: 96px 16px; }
@media (min-width: 640px) { .section { padding: 128px 24px; } }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #84cc16; margin-bottom: 12px; }
.section-title { font-size: 1.875rem; font-weight: 900; margin-bottom: 20px; color: var(--text-primary); }
@media (min-width: 640px) { .section-title { font-size: 3rem; } }
.section-subtitle { font-size: 1.125rem; max-width: 640px; margin: 0 auto; color: var(--text-secondary); }

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 10; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 96px 16px 80px; text-align: center;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image: linear-gradient(var(--text-primary) 1px, transparent 1px), linear-gradient(90deg, var(--text-primary) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 800px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 10; max-width: 900px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 9999px; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(132,204,22,0.12), rgba(179,255,58,0.08));
  border: 1px solid rgba(132,204,22,0.25); color: var(--text-secondary); margin-bottom: 32px;
}
.hero-title { font-size: 2.5rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 24px; color: var(--text-primary); }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

.hero-subtitle { font-size: 1.125rem; max-width: 640px; margin: 0 auto 40px; line-height: 1.6; color: var(--text-secondary); }
@media (min-width: 640px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; } }
.hero-cta .btn-primary, .hero-cta .btn-secondary { font-size: 1rem; padding: 16px 32px; }
@media (min-width: 640px) { .hero-cta .btn-primary, .hero-cta .btn-secondary { font-size: 1.125rem; } }

.hero-extension { margin-top: 32px; display: flex; justify-content: center; }
.extension-badge {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  border-radius: 16px; border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-decoration: none; transition: all 0.2s;
}
.extension-badge:hover { transform: scale(1.03); border-color: rgba(255,255,255,0.2); }
.extension-badge img { width: 32px; height: 32px; }
.extension-badge-text { display: flex; flex-direction: column; align-items: flex-start; }
.extension-badge-text small { font-size: 0.625rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); line-height: 1; margin-bottom: 4px; }
.extension-badge-text span { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); line-height: 1; }

.stats-bar { margin-top: 80px; max-width: 640px; margin-left: auto; margin-right: auto; border-radius: 20px; padding: 6px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-grid > div + div { border-left: 1px solid var(--glass-border); }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 20px 16px; }
.stat-icon { color: #84cc16; margin-bottom: 8px; }
.stat-value { font-size: 1.5rem; font-weight: 900; }
@media (min-width: 640px) { .stat-value { font-size: 1.875rem; } }
.stat-label { font-size: 0.75rem; font-weight: 500; margin-top: 4px; color: var(--text-muted); }

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  animation: bounceScroll 2s infinite;
}
.scroll-indicator-dot { width: 6px; height: 6px; border-radius: 50%; background: #84cc16; animation: scrollDot 2s infinite; }
@keyframes bounceScroll { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scrollDot { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(12px); opacity: 0.3; } }

/* ===== TRUST MARQUEE ===== */
.trust-marquee { position: relative; z-index: 20; padding: 24px 0; overflow: hidden; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-track span { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== TOOL CARDS (Home) ===== */
.tool-card { text-decoration: none; display: block; height: 100%; }
.tool-card .glass-card { padding: 24px; height: 100%; display: flex; flex-direction: column; }
.tool-card .top-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0; transition: opacity 0.5s; }
.tool-card:hover .top-line { opacity: 1; }
.tool-card-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; transition: all 0.3s; font-size: 1.5rem;
}
.tool-card:hover .tool-card-icon { transform: scale(1.1) rotate(3deg); }
.tool-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.tool-card p { font-size: 0.875rem; flex-grow: 1; line-height: 1.6; margin-bottom: 16px; color: var(--text-secondary); }
.tool-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; transition: gap 0.3s; }
.tool-card:hover .tool-card-link { gap: 12px; }

/* Category badges */
.category-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 12px;
}

/* ===== TABLES ===== */
.data-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.data-table thead tr { border-bottom: 1px solid var(--glass-border); background: rgba(132,204,22,0.03); }
.data-table th { text-align: left; padding: 16px; font-weight: 600; color: var(--text-primary); }
.data-table tbody tr { border-bottom: 1px solid var(--glass-border); transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(132,204,22,0.03); }
.data-table td { padding: 16px; }
.data-table .mono { font-family: 'Inter', monospace; }
.grade-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 500; display: inline-block; }

/* Scale tab buttons */
.scale-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.scale-tab {
  padding: 12px 20px; border-radius: 12px; font-size: 0.875rem; font-weight: 600;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.scale-tab.active { background: linear-gradient(135deg, #84cc16, #b3ff3a); border-color: rgba(132,204,22,0.5); color: #1a1a1a; }

/* ===== REVIEW CARDS ===== */
.review-card { padding: 24px; display: flex; flex-direction: column; border-radius: 18px; }
.review-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 12px; }
.review-text { font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); flex-grow: 1; margin-bottom: 16px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.review-avatar { font-size: 2rem; }
.review-name { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }
.review-role { font-size: 0.75rem; color: var(--text-muted); }

/* ===== FLOATING BADGES (Desktop Hero) ===== */
.floating-badge {
  position: absolute; display: none; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 16px; font-size: 0.875rem; font-weight: 600;
  color: var(--text-primary); z-index: 1;
  animation: floatIn 0.7s ease forwards; opacity: 0;
}
@media (min-width: 1280px) { .floating-badge { display: flex; } }
@keyframes floatIn { to { opacity: 1; } }
.floating-pulse { width: 8px; height: 8px; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.5; } }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.scale-in { opacity: 0; transform: scale(0.85); transition: opacity 0.5s ease, transform 0.5s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(132,204,22,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(132,204,22,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blob { opacity: 0.2; filter: blur(40px); }
  .blob-1 { width: 200px; height: 200px; }
  .blob-2 { width: 150px; height: 150px; }
  .blob-3 { display: none; }
  .glass-card { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

/* ===== MISC UTILITIES ===== */
.text-center { text-align: center; }
.text-lime { color: #84cc16; }
.text-emerald { color: #10b981; }
.text-violet { color: #8b5cf6; }
.text-rose { color: #e11d48; }
.text-yellow { color: #facc15; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.gap-3 { gap: 12px; }
.gap-5 { gap: 20px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-5 > * + * { margin-top: 20px; }
.hidden { display: none; }

/* ===== FIELD LABEL ===== */
.field-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 8px; color: var(--text-secondary); }

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 0.875rem;
    font-weight: 500;
}
.toast-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* Data Tables */
.table-container {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    text-align: left;
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--glass-border);
}

.data-table td {
    padding: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.dark .data-table th {
    background: rgba(0, 0, 0, 0.2);
}

.dark .data-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

