/* ==========================================================================
   ResumeHero — Standalone Design System & RPG Fantasy Stylesheet (v1.25)
   100% Standalone CSS3 (Zero reliance on external JS CSS compilers)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@600;700;800;900&family=MedievalSharp&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

.font-fantasy {
  font-family: 'Cinzel', 'MedievalSharp', serif !important;
  letter-spacing: 0.03em;
  line-height: 1.35 !important;
  overflow: visible !important;
}

.font-hero-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif !important;
  letter-spacing: 0.04em;
  line-height: 1.3 !important;
  overflow: visible !important;
  text-shadow: 0 0 25px rgba(168, 85, 247, 0.45), 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- GLOBAL ANTI-CLIPPING & RESPONSIVE SCALING UTILITIES --- */
button, a {
  line-height: 1.3 !important;
  white-space: normal;
  word-break: break-word;
  overflow: visible !important;
}

abbr[title] {
  cursor: help !important;
  text-decoration: underline dotted rgba(168, 85, 247, 0.7) !important;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* --- 1. CSS RESET & CORE VARIABLES --- */
:root {
  --bg-main: #090d16;
  --bg-sidebar: #0f172a;
  --bg-card: #131c31;
  --bg-card-hover: #1e293b;
  --bg-input: #0a0f1d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent-purple: #9333ea;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
}

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

html, body {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom dark scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 70, 229, 0.8);
}

/* --- 2. LAYOUT & STRUCTURE UTILITIES --- */
.flex { display: flex !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-baseline { align-items: baseline !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }

.space-y-1 > * + * { margin-top: 0.25rem !important; }
.space-y-1\.5 > * + * { margin-top: 0.375rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-3\.5 > * + * { margin-top: 0.875rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }
.space-y-8 > * + * { margin-top: 2rem !important; }

.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
}

.w-full { width: 100% !important; }
.w-64 { width: 16rem !important; }
.w-80 { width: 20rem !important; }
.h-16 { height: 4rem !important; }
.min-h-screen { min-height: 100vh !important; }
.max-w-7xl { max-w: 80rem !important; max-width: 1280px !important; }
.max-w-6xl { max-w: 72rem !important; max-width: 1152px !important; }
.max-w-5xl { max-w: 64rem !important; max-width: 1024px !important; }
.max-w-4xl { max-w: 56rem !important; max-width: 896px !important; }
.max-w-3xl { max-w: 48rem !important; max-width: 768px !important; }
.max-w-2xl { max-w: 42rem !important; max-width: 672px !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-md { max-width: 28rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-3 { padding: 0.75rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.mb-0\.5 { margin-bottom: 0.125rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }

.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.sticky { position: sticky !important; }
.fixed { position: fixed !important; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-50 { z-index: 50 !important; }

/* --- 3. COLORS, BACKGROUNDS & BORDERS --- */
.bg-slate-950 { background-color: #090d16 !important; }
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.95) !important; }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.88) !important; }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.65) !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-800\/80 { background-color: rgba(30, 41, 59, 0.8) !important; }
.bg-slate-800\/60 { background-color: rgba(30, 41, 59, 0.6) !important; }
.bg-slate-700 { background-color: #334155 !important; }
.bg-indigo-600 { background-color: #4f46e5 !important; }
.bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2) !important; }
.bg-purple-600 { background-color: #9333ea !important; }
.bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2) !important; }
.bg-amber-500 { background-color: #f59e0b !important; }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2) !important; }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2) !important; }
.bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2) !important; }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2) !important; }

/* ==========================================================================
   4. GLOBAL COLOR & BORDER THEME OVERRIDES (.theme-emerald, .theme-amber, etc.)
   100% OF BORDERS (.border, .border-2, .border-slate-800, etc.) CHANGE COLOR!
   ========================================================================== */

/* 1. CYBER INDIGO THEME (#4f46e5) */
body.theme-indigo .border,
body.theme-indigo .border-2,
body.theme-indigo .border-slate-800,
body.theme-indigo .border-slate-700,
body.theme-indigo .border-indigo-500,
body.theme-indigo .border-indigo-500\/30,
body.theme-indigo .border-indigo-500\/40 {
  border-color: rgba(99, 102, 241, 0.45) !important;
}

/* 2. EMERALD GROWTH THEME (#10b981) */
body.theme-emerald .bg-indigo-600,
body.theme-emerald [data-view-target].bg-indigo-600,
body.theme-emerald button.bg-indigo-600 {
  background-color: #10b981 !important;
  color: #ffffff !important;
}
body.theme-emerald .hover\:bg-indigo-500:hover,
body.theme-emerald button.bg-indigo-600:hover {
  background-color: #059669 !important;
}
body.theme-emerald .text-indigo-400,
body.theme-emerald .text-indigo-300 {
  color: #34d399 !important;
}
body.theme-emerald .border,
body.theme-emerald .border-2,
body.theme-emerald .border-slate-800,
body.theme-emerald .border-slate-700,
body.theme-emerald .border-indigo-500,
body.theme-emerald .border-indigo-500\/30,
body.theme-emerald .border-indigo-500\/40,
body.theme-emerald .border-purple-500\/30,
body.theme-emerald .border-purple-500\/40,
body.theme-emerald .border-purple-500\/50,
body.theme-emerald .border-amber-500\/30,
body.theme-emerald .border-amber-500\/40,
body.theme-emerald .border-emerald-500\/30,
body.theme-emerald .border-emerald-500\/40,
body.theme-emerald .border-emerald-500\/60,
body.theme-emerald .border-blue-500\/30,
body.theme-emerald .border-red-500\/30 {
  border-color: rgba(16, 185, 129, 0.45) !important;
}
body.theme-emerald .bg-indigo-500\/20 {
  background-color: rgba(16, 185, 129, 0.2) !important;
}
body.theme-emerald .from-indigo-600,
body.theme-emerald .from-indigo-900\/40 {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.8), rgba(4, 120, 87, 0.6), #0f172a) !important;
}

/* 3. AMBER EXECUTIVE THEME (#f59e0b) */
body.theme-amber .bg-indigo-600,
body.theme-amber [data-view-target].bg-indigo-600,
body.theme-amber button.bg-indigo-600 {
  background-color: #f59e0b !important;
  color: #090d16 !important;
  font-weight: 800 !important;
}
body.theme-amber .hover\:bg-indigo-500:hover,
body.theme-amber button.bg-indigo-600:hover {
  background-color: #d97706 !important;
}
body.theme-amber .text-indigo-400,
body.theme-amber .text-indigo-300 {
  color: #fbbf24 !important;
}
body.theme-amber .border,
body.theme-amber .border-2,
body.theme-amber .border-slate-800,
body.theme-amber .border-slate-700,
body.theme-amber .border-indigo-500,
body.theme-amber .border-indigo-500\/30,
body.theme-amber .border-indigo-500\/40,
body.theme-amber .border-purple-500\/30,
body.theme-amber .border-purple-500\/40,
body.theme-amber .border-purple-500\/50,
body.theme-amber .border-amber-500\/30,
body.theme-amber .border-amber-500\/40,
body.theme-amber .border-emerald-500\/30,
body.theme-amber .border-blue-500\/30 {
  border-color: rgba(245, 158, 11, 0.45) !important;
}
body.theme-amber .bg-indigo-500\/20 {
  background-color: rgba(245, 158, 11, 0.2) !important;
}
body.theme-amber .from-indigo-600,
body.theme-amber .from-indigo-900\/40 {
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.8), rgba(180, 83, 9, 0.6), #0f172a) !important;
}

/* 4. OCEAN BLUE THEME (#3b82f6) */
body.theme-blue .bg-indigo-600,
body.theme-blue [data-view-target].bg-indigo-600,
body.theme-blue button.bg-indigo-600 {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}
body.theme-blue .hover\:bg-indigo-500:hover,
body.theme-blue button.bg-indigo-600:hover {
  background-color: #2563eb !important;
}
body.theme-blue .text-indigo-400,
body.theme-blue .text-indigo-300 {
  color: #60a5fa !important;
}
body.theme-blue .border,
body.theme-blue .border-2,
body.theme-blue .border-slate-800,
body.theme-blue .border-slate-700,
body.theme-blue .border-indigo-500,
body.theme-blue .border-indigo-500\/30,
body.theme-blue .border-indigo-500\/40,
body.theme-blue .border-purple-500\/30,
body.theme-blue .border-purple-500\/40,
body.theme-blue .border-purple-500\/50,
body.theme-blue .border-amber-500\/30,
body.theme-blue .border-emerald-500\/30,
body.theme-blue .border-blue-500\/30 {
  border-color: rgba(59, 130, 246, 0.45) !important;
}
body.theme-blue .bg-indigo-500\/20 {
  background-color: rgba(59, 130, 246, 0.2) !important;
}
body.theme-blue .from-indigo-600,
body.theme-blue .from-indigo-900\/40 {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(29, 78, 216, 0.6), #0f172a) !important;
}

/* 5. ROSE CRIMSON THEME (#e11d48) */
body.theme-rose .bg-indigo-600,
body.theme-rose [data-view-target].bg-indigo-600,
body.theme-rose button.bg-indigo-600 {
  background-color: #e11d48 !important;
  color: #ffffff !important;
}
body.theme-rose .hover\:bg-indigo-500:hover,
body.theme-rose button.bg-indigo-600:hover {
  background-color: #be123c !important;
}
body.theme-rose .text-indigo-400,
body.theme-rose .text-indigo-300 {
  color: #fb7185 !important;
}
body.theme-rose .border,
body.theme-rose .border-2,
body.theme-rose .border-slate-800,
body.theme-rose .border-slate-700,
body.theme-rose .border-indigo-500,
body.theme-rose .border-indigo-500\/30,
body.theme-rose .border-indigo-500\/40,
body.theme-rose .border-purple-500\/30,
body.theme-rose .border-purple-500\/40,
body.theme-rose .border-purple-500\/50,
body.theme-rose .border-amber-500\/30,
body.theme-rose .border-emerald-500\/30,
body.theme-rose .border-blue-500\/30 {
  border-color: rgba(225, 29, 72, 0.45) !important;
}
body.theme-rose .bg-indigo-500\/20 {
  background-color: rgba(225, 29, 72, 0.2) !important;
}
body.theme-rose .from-indigo-600,
body.theme-rose .from-indigo-900\/40 {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.8), rgba(159, 18, 57, 0.6), #0f172a) !important;
}

/* 6. CARBON MINIMAL THEME (#334155) */
body.theme-carbon .bg-indigo-600,
body.theme-carbon [data-view-target].bg-indigo-600,
body.theme-carbon button.bg-indigo-600 {
  background-color: #475569 !important;
  color: #ffffff !important;
}
body.theme-carbon .hover\:bg-indigo-500:hover,
body.theme-carbon button.bg-indigo-600:hover {
  background-color: #334155 !important;
}
body.theme-carbon .text-indigo-400,
body.theme-carbon .text-indigo-300 {
  color: #cbd5e1 !important;
}
body.theme-carbon .border,
body.theme-carbon .border-2,
body.theme-carbon .border-slate-800,
body.theme-carbon .border-slate-700,
body.theme-carbon .border-indigo-500,
body.theme-carbon .border-indigo-500\/30,
body.theme-carbon .border-indigo-500\/40,
body.theme-carbon .border-purple-500\/30,
body.theme-carbon .border-purple-500\/40,
body.theme-carbon .border-purple-500\/50,
body.theme-carbon .border-amber-500\/30,
body.theme-carbon .border-emerald-500\/30,
body.theme-carbon .border-blue-500\/30 {
  border-color: rgba(148, 163, 184, 0.35) !important;
}
body.theme-carbon .bg-indigo-500\/20 {
  background-color: rgba(148, 163, 184, 0.2) !important;
}
body.theme-carbon .from-indigo-600,
body.theme-carbon .from-indigo-900\/40 {
  background: linear-gradient(135deg, #1e293b, #0f172a, #090d16) !important;
}

/* 7. CUSTOM HEX COLOR THEME (.theme-custom — USES DYNAMIC CSS VARIABLES!) */
body.theme-custom .bg-indigo-600,
body.theme-custom [data-view-target].bg-indigo-600,
body.theme-custom button.bg-indigo-600 {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}
body.theme-custom .hover\:bg-indigo-500:hover,
body.theme-custom button.bg-indigo-600:hover {
  background-color: var(--primary-hover) !important;
}
body.theme-custom .text-indigo-400,
body.theme-custom .text-indigo-300 {
  color: var(--primary) !important;
}
body.theme-custom .border,
body.theme-custom .border-2,
body.theme-custom .border-slate-800,
body.theme-custom .border-slate-700,
body.theme-custom .border-indigo-500,
body.theme-custom .border-indigo-500\/30,
body.theme-custom .border-indigo-500\/40,
body.theme-custom .border-purple-500\/30,
body.theme-custom .border-purple-500\/40,
body.theme-custom .border-purple-500\/50,
body.theme-custom .border-amber-500\/30,
body.theme-custom .border-emerald-500\/30,
body.theme-custom .border-blue-500\/30 {
  border-color: var(--border-hover) !important;
}
body.theme-custom .bg-indigo-500\/20 {
  background-color: rgba(255, 255, 255, 0.12) !important;
}
body.theme-custom .from-indigo-600,
body.theme-custom .from-indigo-900\/40 {
  background: linear-gradient(135deg, var(--primary), #0f172a, #090d16) !important;
}

/* --- 5. TYPOGRAPHY & TEXT STYLES --- */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }

.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }
.font-mono { font-family: 'JetBrains Mono', monospace !important; }

.text-white { color: #ffffff !important; }
.text-gray-100 { color: #f3f4f6 !important; }
.text-gray-200 { color: #e5e7eb !important; }
.text-gray-300 { color: #d1d5db !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-indigo-300 { color: #a5b4fc !important; }
.text-indigo-400 { color: #818cf8 !important; }
.text-purple-300 { color: #d8b4fe !important; }
.text-purple-400 { color: #c084fc !important; }
.text-amber-300 { color: #fde047 !important; }
.text-amber-400 { color: #fbbf24 !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-blue-300 { color: #93c5fd !important; }
.text-blue-400 { color: #60a5fa !important; }
.text-red-300 { color: #fca5a5 !important; }
.text-red-400 { color: #f87171 !important; }

.uppercase { text-transform: uppercase !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.leading-relaxed { line-height: 1.625 !important; }
.leading-none { line-height: 1 !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* --- 6. INTERACTIVE BUTTONS & FORM INPUTS --- */
button, select, input, textarea {
  font-family: inherit !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}
input[type="text"], input[type="email"], textarea, select {
  background-color: #0a0f1d !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 0.875rem !important;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

button:hover {
  filter: brightness(1.15) !important;
  transform: translateY(-1px) !important;
}
button:active {
  transform: translateY(0) !important;
}

/* --- 7. GLOW CARDS & RPG FANTASY EFFECTS --- */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.55);
  }
}
.glow-card {
  animation: pulse-glow 3s infinite;
}

@keyframes rpg-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.65), inset 0 0 25px rgba(245, 158, 11, 0.25);
  }
}
.rpg-glow-card {
  animation: rpg-pulse 3.5s infinite;
  border: 2px solid rgba(168, 85, 247, 0.6) !important;
}

/* --- 8. KANBAN COLUMN SCROLLBARS --- */
.overflow-y-auto::-webkit-scrollbar {
  width: 4px;
}
.overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ==========================================================================
   8.5 NOVELTY CYBER-HUD, 3D HOVER CARDS, TERMINAL & HUD DOCK SYSTEM (v1.25)
   ========================================================================== */
.novelty-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 35px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible !important;
}

.novelty-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 20px 45px -15px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.novelty-hud-dock {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 44px;
}

.novelty-terminal {
  background: #050812;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.18), inset 0 0 12px rgba(16, 185, 129, 0.08);
  font-family: 'JetBrains Mono', monospace;
  overflow: visible;
  word-break: break-word;
}

.novelty-badge {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.4), rgba(99, 102, 241, 0.25));
  background-size: 200% 100%;
  animation: noveltyShimmer 3s infinite linear;
  border: 1px solid rgba(168, 85, 247, 0.55);
  display: inline-flex;
  align-items: center;
  white-space: normal;
  line-height: 1.35;
}

@keyframes noveltyShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.circular-gauge-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.novelty-grid-bg {
  background-image: radial-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.novelty-pulse {
  animation: noveltyPulseAnim 2s infinite ease-in-out;
}

@keyframes noveltyPulseAnim {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ==========================================================================
   8.8 GLOBAL RPG FANTASY THEMEING SYSTEM (.rpg-theme-active) (v1.25)
   ========================================================================== */
body.rpg-theme-active {
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #090d16 80%) !important;
}

body.rpg-theme-active h1,
body.rpg-theme-active h2,
body.rpg-theme-active h3,
body.rpg-theme-active h4,
body.rpg-theme-active .font-hero-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif !important;
  letter-spacing: 0.04em !important;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.55), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

body.rpg-theme-active #sidebar-nav {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 27, 75, 0.95) 100%) !important;
  border-right: 2px solid rgba(168, 85, 247, 0.45) !important;
  box-shadow: 4px 0 25px rgba(168, 85, 247, 0.15) !important;
}

body.rpg-theme-active #top-header {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom: 2px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2) !important;
}

body.rpg-theme-active .novelty-card,
body.rpg-theme-active .app-view > div > .bg-slate-900,
body.rpg-theme-active .app-view > div > .bg-slate-900\/80,
body.rpg-theme-active .app-view > div > .bg-slate-900\/90 {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.22), inset 0 0 15px rgba(245, 158, 11, 0.08) !important;
}

body.rpg-theme-active .novelty-card:hover,
body.rpg-theme-active .app-view > div > .bg-slate-900:hover {
  border-color: rgba(245, 158, 11, 0.75) !important;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.45), inset 0 0 20px rgba(245, 158, 11, 0.18) !important;
}

body.rpg-theme-active button.bg-indigo-600,
body.rpg-theme-active button.bg-emerald-600 {
  background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35) !important;
}

body.rpg-theme-active .novelty-badge {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.35), rgba(245, 158, 11, 0.35), rgba(168, 85, 247, 0.35)) !important;
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3) !important;
  color: #fde68a !important;
}

body.rpg-theme-active .novelty-terminal {
  background: #060512 !important;
  border: 1px solid rgba(168, 85, 247, 0.55) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25), inset 0 0 12px rgba(168, 85, 247, 0.1) !important;
  color: #e9d5ff !important;
}

body.rpg-theme-active #hud-quick-dock {
  background: rgba(30, 27, 75, 0.9) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3) !important;
}

/* ==========================================================================
   8.9 GUIDED ONBOARDING TOUR & SPOTLIGHT PULSE SYSTEM (.tutorial-highlight-pulse) (v1.25)
   ========================================================================== */
@keyframes tutorialSpotlightPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.8), 0 0 25px rgba(245, 158, 11, 0.5);
    border-color: #f59e0b !important;
    transform: scale(1.01);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.9), 0 0 40px rgba(168, 85, 247, 0.7);
    border-color: #a855f7 !important;
    transform: scale(1.025);
  }
}

.tutorial-highlight-pulse {
  animation: tutorialSpotlightPulse 1.8s infinite ease-in-out !important;
  position: relative;
  z-index: 60 !important;
  border-width: 2px !important;
}

.tutorial-tooltip-card {
  position: fixed;
  z-index: 70 !important;
  max-width: 380px;
  width: calc(100% - 2rem);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 27, 75, 0.98) 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   9. TRUE PDF EXPORT & PRINT STYLES
   ========================================================================== */
@media print {
  .no-print,
  #sidebar-nav,
  #top-header,
  #toast-container,
  #pricing-modal,
  #add-job-modal,
  #editor-sidebar-col,
  .print-hide {
    display: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  #app-main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  #view-builder {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #resume-preview-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
  }

  #resume-preview-container > div > div {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}

/* ==========================================================================
   v1.28 OFFLINE CDN-FAILURE FALLBACK LAYER
   --------------------------------------------------------------------------
   ROOT CAUSE FIX: The Certification Roadmap modal (and other modals) relied on
   Tailwind 3 JIT-only utilities (max-h-[88vh], shrink-0, md:grid-cols-3,
   space-y-*, slash opacity colors, arbitrary text-[10px] sizes) that DO NOT
   exist in the Tailwind 2.2.19 static fallback stylesheet. When
   cdn.tailwindcss.com is blocked by a corporate network, ad-blocker, offline
   mode or CSP, the roadmap modal opened but rendered completely unstyled and
   appeared "broken"/invisible to the user.
   These rules guarantee the roadmap is fully usable with ZERO network access.
   ========================================================================== */

/* --- Modal shell sizing & flex scaffolding --- */
.max-h-\[88vh\] { max-height: 88vh !important; }
.max-h-\[80vh\] { max-height: 80vh !important; }
.shrink-0, .flex-shrink-0 { flex-shrink: 0 !important; }
.grow { flex-grow: 1 !important; }
.min-w-0 { min-width: 0 !important; }
.break-words { overflow-wrap: break-word !important; word-break: break-word !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.backdrop-blur-md { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }

/* --- Vertical rhythm (space-y-*) --- */
.space-y-1 > * + * { margin-top: 0.25rem !important; }
.space-y-1\.5 > * + * { margin-top: 0.375rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-2\.5 > * + * { margin-top: 0.625rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }
.space-y-8 > * + * { margin-top: 2rem !important; }

/* --- Responsive grid used by the 3-up certification cards --- */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:text-lg { font-size: 1.125rem !important; }
  .sm\:text-xl { font-size: 1.25rem !important; }
}

/* --- Arbitrary micro font sizes --- */
.text-\[9px\]  { font-size: 9px !important; }
.text-\[10px\] { font-size: 10px !important; }
.text-\[11px\] { font-size: 11px !important; }

/* --- Radii, shadows, borders --- */
.rounded-lg  { border-radius: 0.5rem !important; }
.rounded-xl  { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full{ border-radius: 9999px !important; }
.border-t { border-top-width: 1px !important; border-top-style: solid !important; }
.border-b { border-bottom-width: 1px !important; border-bottom-style: solid !important; }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -4px rgba(0,0,0,.4) !important; }
.shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0,0,0,.45), 0 8px 10px -6px rgba(0,0,0,.45) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.6) !important; }
.transition, .transition-all { transition: all .2s ease-in-out !important; }

/* --- Spacing utilities the modal depends on --- */
.p-2 { padding: 0.5rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.pt-3 { padding-top: 0.75rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.mb-1\.5 { margin-bottom: 0.375rem !important; }
.mt-0\.5 { margin-top: 0.125rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.top-4 { top: 1rem !important; }
.right-4 { right: 1rem !important; }
.leading-tight { line-height: 1.25 !important; }

/* --- Translucent surfaces (slash-opacity colors) --- */
.bg-slate-900\/90 { background-color: rgba(15,23,42,.90) !important; }
.bg-slate-900\/95 { background-color: rgba(15,23,42,.95) !important; }
.bg-slate-950\/80 { background-color: rgba(2,6,23,.80) !important; }
.bg-slate-950\/90 { background-color: rgba(2,6,23,.90) !important; }
.bg-emerald-500\/20 { background-color: rgba(16,185,129,.20) !important; }
.bg-indigo-500\/10 { background-color: rgba(99,102,241,.10) !important; }
.bg-indigo-500\/20 { background-color: rgba(99,102,241,.20) !important; }
.border-emerald-500\/30 { border-color: rgba(16,185,129,.30) !important; }
.border-emerald-500\/40 { border-color: rgba(16,185,129,.40) !important; }
.border-emerald-500\/50 { border-color: rgba(16,185,129,.50) !important; }
.border-indigo-500\/30 { border-color: rgba(99,102,241,.30) !important; }
.border-blue-500\/50 { border-color: rgba(59,130,246,.50) !important; }
.border-amber-500\/50 { border-color: rgba(245,158,11,.50) !important; }
.border-slate-800\/80 { border-color: rgba(30,41,59,.80) !important; }

/* --- Hover states --- */
.hover\:bg-emerald-500:hover { background-color: #10b981 !important; }
.hover\:bg-indigo-500:hover { background-color: #6366f1 !important; }
.hover\:bg-slate-700:hover { background-color: #334155 !important; }
.hover\:text-white:hover { color: #fff !important; }
.hover\:border-emerald-500\/60:hover { border-color: rgba(16,185,129,.60) !important; }

/* --- Hard guarantee: an opened modal is always centered and visible --- */
#cert-course-modal:not(.hidden) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#cert-course-content {
  max-height: 65vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  display: block !important;
}

/* ==========================================================================
   v1.31 — "AH AH AH! YOU DIDN'T SAY THE MAGIC WORD!" CLOCK TAMPER LOCKOUT
   A 1993 CRT-terminal homage that fires when a rolled-back device clock is
   used to target an expired Founding Member offer. Playful, never destructive.
   ========================================================================== */

#magic-word-lockout.jp-active {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: block !important;
}

.jp-lock-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

/* Scrolling wall of taunting faces — retro screensaver effect */
.jp-tile-field {
  position: absolute;
  inset: -50%;
  background-image: url('../img/access-denied-taunt.png');
  background-repeat: repeat;
  background-size: 150px 150px;
  opacity: 0.13;
  image-rendering: pixelated;
  animation: jp-drift 26s linear infinite;
  pointer-events: none;
}

@keyframes jp-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(150px, 150px); }
}

/* CRT scanline overlay */
.jp-lock-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.05) 0px,
    rgba(0, 255, 65, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 3;
}

.jp-lock-panel {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px;
  background: rgba(2, 10, 2, 0.93);
  border: 3px solid #00ff41;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.45), inset 0 0 70px rgba(0, 255, 65, 0.07);
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  animation: jp-boot 0.34s steps(3, end);
}

@keyframes jp-boot {
  0%   { opacity: 0; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

.jp-lock-portrait {
  flex: 0 0 190px;
  margin: 0 auto;
}

.jp-lock-portrait img {
  width: 190px;
  height: 190px;
  display: block;
  image-rendering: pixelated;
  border: 2px solid #00ff41;
  border-radius: 6px;
  box-shadow: 0 0 22px rgba(0, 255, 65, 0.5);
  animation: jp-wag 0.9s ease-in-out infinite;
}

/* The finger-wag */
@keyframes jp-wag {
  0%, 100% { transform: rotate(-2.5deg); }
  50%      { transform: rotate(2.5deg); }
}

.jp-lock-body { flex: 1 1 340px; min-width: 0; }

.jp-lock-title {
  font-family: 'Cinzel Decorative', 'Courier New', monospace;
  font-size: clamp(30px, 6.5vw, 50px);
  font-weight: 900;
  color: #00ff41;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.9), 3px 3px 0 rgba(255, 0, 200, 0.55);
  animation: jp-flicker 2.6s infinite;
}

@keyframes jp-flicker {
  0%, 96%, 100% { opacity: 1; }
  97%           { opacity: 0.72; }
  98%           { opacity: 1; }
  99%           { opacity: 0.85; }
}

.jp-lock-sub {
  color: #ffe100;
  font-size: clamp(12px, 2.4vw, 16px);
  font-weight: 700;
  letter-spacing: 1.4px;
  margin: 8px 0 16px;
  text-shadow: 0 0 8px rgba(255, 225, 0, 0.55);
}

.jp-lock-readout {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(0, 255, 65, 0.42);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.jp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  line-height: 1.85;
  color: #7bffa6;
  white-space: nowrap;
}

.jp-row span { opacity: 0.82; }
.jp-row b { color: #e8fff0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.jp-row b.jp-bad { color: #ff4d6d; text-shadow: 0 0 7px rgba(255, 77, 109, 0.6); }
.jp-row b.jp-ok  { color: #00ff41; }

.jp-lock-note {
  color: #c8ffd8;
  font-size: 11.5px;
  line-height: 1.65;
  margin: 0 0 8px;
}
.jp-lock-note strong { color: #fff; }
.jp-lock-note-soft { color: #6f8f7a; font-size: 10.5px; }

.jp-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.jp-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 11px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.jp-btn-primary {
  background: #00ff41;
  color: #001b07;
  border: 2px solid #00ff41;
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.45);
}
.jp-btn-primary:hover { background: #6bff92; box-shadow: 0 0 24px rgba(0, 255, 65, 0.7); }

.jp-btn-ghost {
  background: transparent;
  color: #00ff41;
  border: 2px solid rgba(0, 255, 65, 0.5);
}
.jp-btn-ghost:hover { border-color: #00ff41; background: rgba(0, 255, 65, 0.1); }

@media (max-width: 640px) {
  .jp-lock-panel { padding: 22px; gap: 18px; }
  .jp-lock-portrait { flex-basis: 130px; }
  .jp-lock-portrait img { width: 130px; height: 130px; }
  .jp-row { font-size: 9.5px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .jp-tile-field, .jp-lock-portrait img, .jp-lock-title, .jp-lock-panel { animation: none !important; }
}
