:root {
    --card: #111827;
    --primary2: #818cf8;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* BLOBS */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
}
.blob-1 {
    width: 700px;
    height: 700px;
    background: rgba(99, 102, 241, 0.06);
    top: -200px;
    right: -200px;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.04);
    bottom: -100px;
    left: -100px;
}

/* NAVBAR */
.navbar-custom {
    background: rgba(7, 9, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.navbar-brand-custom {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}
.btn-nav-register {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border: none;
    color: #fff;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 6px 16px;
    text-decoration: none;
}

/* PAGE HERO */
.page-hero {
    position: relative;
    z-index: 1;
}
.page-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}
.page-sub {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* PREVIEW SECTION */
.preview-section {
    position: relative;
    z-index: 1;
    padding: 0 0 60px;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--primary2);
}
.section-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 20px;
}

/* PDF PAGES PREVIEW */
.pdf-pages-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pdf-page {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    width: 794px;
    height: 1123px;
    margin: 0 auto;
    position: relative;
    font-family: "Cairo", sans-serif;
    display: flex;
    flex-direction: column;
}
.page-label {
    position: absolute;
    top: -28px;
    right: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ── PDF INTERNAL STYLES ── */
/* Direction inherits from <html dir="..."> so the report flows RTL in Arabic and LTR in English */
.pdf-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
    padding: 28px 36px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pdf-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdf-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-logo-icon i {
    color: #a5b4fc;
    font-size: 1rem;
}
.pdf-logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}
.pdf-logo-text span {
    color: #818cf8;
}
.pdf-header-right {
    text-align: end;
}
.pdf-report-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c7d2fe;
}

.pdf-body {
    padding: 24px 36px;
    flex: 1;
    overflow: hidden;
}
.pdf-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 6px;
}
.pdf-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 14px;
    background: #6366f1;
    border-radius: 2px;
}

/* Cover page */
.pdf-cover {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pdf-cover-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e3a5f 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pdf-cover-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
}
.pdf-cover-hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
}
.pdf-cover-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}
.pdf-cover-icon i {
    font-size: 2rem;
    color: #a5b4fc;
}
.pdf-cover-main-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.pdf-cover-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.pdf-cover-name-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 28px;
    display: inline-block;
    position: relative;
    z-index: 1;
}
.pdf-cover-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}
.pdf-cover-name-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}
.pdf-cover-footer {
    background: #f8f9ff;
    padding: 16px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pdf-cover-meta {
    font-size: 0.65rem;
    color: #6b7280;
}

/* Score page */
.pdf-score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.pdf-kpi {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 12px 14px;
    border-inline-start: 3px solid #6366f1;
}
.pdf-kpi.green {
    border-inline-start-color: #10b981;
}
.pdf-kpi.yellow {
    border-inline-start-color: #f59e0b;
}
.pdf-kpi.cyan {
    border-inline-start-color: #06b6d4;
}
.pdf-kpi-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1e1b4b;
}
.pdf-kpi-label {
    font-size: 0.62rem;
    color: #6b7280;
    margin-top: 2px;
}
.pdf-kpi-sub {
    font-size: 0.6rem;
    color: #9ca3af;
    margin-top: 1px;
}

.pdf-dim-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pdf-dim-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pdf-dim-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #374151;
}
.pdf-dim-bar-wrap {
    flex: 1;
    height: 7px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
}
.pdf-dim-bar {
    height: 100%;
    border-radius: 50px;
}
.pdf-dim-score {
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 28px;
    text-align: end;
}
.pdf-dim-status {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
}
.pdf-status-strong {
    background: #d1fae5;
    color: #065f46;
}
.pdf-status-good {
    background: #e0e7ff;
    color: #3730a3;
}
.pdf-status-average {
    background: #fef3c7;
    color: #92400e;
}
.pdf-status-weak {
    background: #fee2e2;
    color: #991b1b;
}

/* Comparison table */
.pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
}
.pdf-table th {
    background: #1e1b4b;
    color: #fff;
    padding: 7px 10px;
    text-align: start;
    font-weight: 700;
}
.pdf-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #e5e7eb;
}
.pdf-table tr:nth-child(even) td {
    background: #f8f9ff;
}
.pdf-table .score-cell {
    font-weight: 800;
}
.pdf-table .diff-pos {
    color: #10b981;
    font-weight: 700;
}
.pdf-table .diff-neg {
    color: #ef4444;
    font-weight: 700;
}

/* Recommendations */
.pdf-rec {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-inline-start: 3px solid #6366f1;
}
.pdf-rec.high {
    border-inline-start-color: #ef4444;
}
.pdf-rec.medium {
    border-inline-start-color: #f59e0b;
}

.pdf-rec-priority {
    font-size: 0.58rem;
    font-weight: 700;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 5px;
    background: #dbeafe;
    color: #1e40af;
}
.pdf-rec-priority.high {
    background: #fee2e2;
    color: #991b1b;
}
.pdf-rec-priority.medium {
    background: #fef3c7;
    color: #92400e;
}
.pdf-rec-priority.low {
    background: #d1fae5;
    color: #065f46;
}

.pdf-rec-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 4px;
}
.pdf-rec-body {
    font-size: 0.62rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Footer strip */
.pdf-footer-strip {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 8px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.58rem;
    color: #94a3b8;
}
.pdf-page-num {
    background: #6366f1;
    color: #fff;
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 0.58rem;
    font-weight: 700;
}

/* Charts area */
.pdf-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.pdf-chart-box {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 12px;
}
.pdf-chart-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 8px;
}

/* Gauge in PDF */
.pdf-gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pdf-gauge-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e1b4b;
    line-height: 1;
}
.pdf-gauge-label {
    font-size: 0.62rem;
    color: #6b7280;
}
.pdf-level-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: 6px;
}
.pdf-level-advanced {
    background: #e0e7ff;
    color: #3730a3;
}

/* FOOTER */
.footer-dark {
    background: #0e1117;
    border-top: 1px solid var(--border);
    padding: 24px 0 16px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 0;
}
.footer-links-inline {
    display: flex;
    gap: 16px;
}
.footer-links-inline a {
    color: var(--muted);
    font-size: 0.78rem;
    text-decoration: none;
}
.footer-links-inline a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── PAGE 5: SKILLS ── */
.pdf-skill-row { display:flex; align-items:center; gap:10px; margin-bottom:9px; padding:9px 12px; background:#f8f9ff; border-radius:9px; }
.pdf-skill-num { width:20px; height:20px; border-radius:50%; background:#6366f1; color:#fff; font-size:0.58rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.pdf-skill-name { font-size:0.7rem; font-weight:700; color:#1e1b4b; flex:1; }
.pdf-skill-bar-wrap { width:120px; height:6px; background:#e5e7eb; border-radius:50px; overflow:hidden; flex-shrink:0; }
.pdf-skill-bar { height:100%; border-radius:50px; }
.pdf-skill-pct { font-size:0.65rem; font-weight:800; min-width:28px; text-align:end; }
.pdf-skill-lvl { font-size:0.58rem; font-weight:700; padding:2px 8px; border-radius:50px; white-space:nowrap; flex-shrink:0; }
.pdf-skill-lvl.advanced  { background:#e0e7ff; color:#3730a3; }
.pdf-skill-lvl.medium    { background:#fef3c7; color:#92400e; }
.pdf-skill-lvl.beginner  { background:#fee2e2; color:#991b1b; }
.pdf-skill-category { font-size:0.58rem; color:#9ca3af; white-space:nowrap; flex-shrink:0; }
.pdf-skills-legend { display:flex; gap:14px; margin-bottom:12px; flex-wrap:wrap; }
.pdf-legend-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-inline-end:5px; }

/* ── PAGE 6: AI TOOLS ── */
.pdf-tools-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.pdf-tool-card { background:#f8f9ff; border-radius:10px; padding:10px 12px; border-inline-start:3px solid #6366f1; display:flex; flex-direction:column; gap:4px; }
.pdf-tool-card.cyan   { border-inline-start-color:#06b6d4; }
.pdf-tool-card.green  { border-inline-start-color:#10b981; }
.pdf-tool-card.yellow { border-inline-start-color:#f59e0b; }
.pdf-tool-card.purple { border-inline-start-color:#a855f7; }
.pdf-tool-header { display:flex; align-items:center; gap:7px; }
.pdf-tool-icon-box { width:26px; height:26px; border-radius:7px; background:#e0e7ff; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:0.75rem; }
.pdf-tool-name { font-size:0.72rem; font-weight:800; color:#1e1b4b; }
.pdf-tool-class { font-size:0.58rem; color:#9ca3af; }
.pdf-tool-desc { font-size:0.6rem; color:#6b7280; line-height:1.6; }
.pdf-tool-footer { display:flex; align-items:center; justify-content:space-between; margin-top:2px; }
.pdf-tool-score { font-size:0.58rem; font-weight:700; padding:2px 7px; border-radius:50px; }
.pdf-tool-score.high   { background:#d1fae5; color:#065f46; }
.pdf-tool-score.medium { background:#fef3c7; color:#92400e; }
.pdf-tool-url { font-size:0.58rem; color:#6366f1; text-decoration:none; }

/* ── Sponsored section (Page 6 — Tools) ── */
.pdf-sponsored-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 10px;
}
.pdf-sponsored-divider::before,
.pdf-sponsored-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f59e0b 35%, #f59e0b 65%, transparent);
    opacity: 0.55;
}
.pdf-sponsored-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    border: 1px dashed #f59e0b;
    padding: 3px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pdf-sponsored-label i { font-size: 0.55rem; color: #f59e0b; }

.pdf-tool-card.sponsored {
    position: relative;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-inline-start-color: #f59e0b;
    overflow: hidden;
}
.pdf-tool-card.sponsored.whatsapp {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-inline-start-color: #25d366;
}
.pdf-tool-card.sponsored::after {
    content: "";
    position: absolute;
    top: -20px;
    inset-inline-end: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.pdf-tool-card.sponsored.whatsapp::after {
    background: radial-gradient(circle, rgba(37, 211, 102, 0.18) 0%, transparent 70%);
}
.pdf-sponsored-badge {
    position: absolute;
    top: 6px;
    inset-inline-end: 8px;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1px 6px;
    border-radius: 50px;
    z-index: 1;
}
.pdf-tool-card.sponsored.whatsapp .pdf-sponsored-badge {
    color: #065f46;
    background: #dcfce7;
    border-color: #25d366;
}
.pdf-tool-icon-box.sponsored-icon { background: #fef3c7; }
.pdf-tool-card.sponsored.whatsapp .pdf-tool-icon-box.sponsored-icon { background: #dcfce7; }

.pdf-sponsored-cta {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 50px;
    background: #f59e0b;
    color: #fff;
}
.pdf-sponsored-cta.whatsapp { background: #25d366; color: #fff; }

/* ── PAGE 8: MEDIA RECOMMENDATIONS ── */
.pdf-media-section { margin-top: 10px; }
.pdf-media-section:first-of-type { margin-top: 4px; }
.pdf-media-section-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f8f9ff;
    border-inline-start: 3px solid #6366f1;
}
.pdf-media-section-icon {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: #e0e7ff;
    color: #6366f1;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; flex-shrink: 0;
}
.pdf-media-section-title { font-size: 0.7rem; font-weight: 800; color: #1e1b4b; flex: 1; }
.pdf-media-section-count {
    font-size: 0.55rem; font-weight: 700;
    padding: 1px 7px; border-radius: 50px;
    background: #e0e7ff; color: #4338ca;
}
/* Tone variants */
.pdf-media-section.rose   .pdf-media-section-head { background: #fff1f2; border-inline-start-color: #f43f5e; }
.pdf-media-section.rose   .pdf-media-section-icon { background: #ffe4e6; color: #f43f5e; }
.pdf-media-section.rose   .pdf-media-section-count { background: #ffe4e6; color: #9f1239; }
.pdf-media-section.red    .pdf-media-section-head { background: #fef2f2; border-inline-start-color: #ef4444; }
.pdf-media-section.red    .pdf-media-section-icon { background: #fee2e2; color: #ef4444; }
.pdf-media-section.red    .pdf-media-section-count { background: #fee2e2; color: #991b1b; }
.pdf-media-section.purple .pdf-media-section-head { background: #faf5ff; border-inline-start-color: #a855f7; }
.pdf-media-section.purple .pdf-media-section-icon { background: #f3e8ff; color: #a855f7; }
.pdf-media-section.purple .pdf-media-section-count { background: #f3e8ff; color: #6b21a8; }
.pdf-media-section.blue   .pdf-media-section-head { background: #eff6ff; border-inline-start-color: #3b82f6; }
.pdf-media-section.blue   .pdf-media-section-icon { background: #dbeafe; color: #3b82f6; }
.pdf-media-section.blue   .pdf-media-section-count { background: #dbeafe; color: #1e40af; }

.pdf-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pdf-media-card {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid #eef0ff;
    border-radius: 8px;
    padding: 7px 9px;
    text-decoration: none;
    color: inherit;
}
.pdf-media-card-icon {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: #f8f9ff;
    color: #6366f1;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; flex-shrink: 0;
    overflow: hidden;
}
.pdf-media-card-icon img { max-width: 18px; max-height: 18px; }
.pdf-media-section.rose   .pdf-media-card-icon { background: #fff1f2; color: #f43f5e; }
.pdf-media-section.red    .pdf-media-card-icon { background: #fef2f2; color: #ef4444; }
.pdf-media-section.purple .pdf-media-card-icon { background: #faf5ff; color: #a855f7; }
.pdf-media-section.blue   .pdf-media-card-icon { background: #eff6ff; color: #3b82f6; }

.pdf-media-card-body { min-width: 0; }
.pdf-media-card-title { font-size: 0.66rem; font-weight: 800; color: #1e1b4b; line-height: 1.2; }
.pdf-media-card-source { font-size: 0.52rem; color: #9ca3af; margin-top: 1px; }
.pdf-media-card-desc {
    font-size: 0.55rem; color: #6b7280; line-height: 1.5; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.pdf-media-card-cta {
    font-size: 0.55rem; font-weight: 700;
    color: #6366f1;
    white-space: nowrap;
    align-self: flex-start;
}
.pdf-media-section.rose   .pdf-media-card-cta { color: #f43f5e; }
.pdf-media-section.red    .pdf-media-card-cta { color: #ef4444; }
.pdf-media-section.purple .pdf-media-card-cta { color: #a855f7; }
.pdf-media-section.blue   .pdf-media-card-cta { color: #3b82f6; }

/* ── PAGE 9: AI ACADEMIES ── */
.pdf-academy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.pdf-academy-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef0ff;
    border-radius: 12px;
    padding: 16px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.05);
}
.pdf-academy-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}
.pdf-academy-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 9px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.pdf-academy-logo img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}
.pdf-academy-logo i {
    font-size: 1.3rem;
    color: #6366f1;
}
.pdf-academy-name {
    font-size: 0.74rem;
    font-weight: 800;
    color: #1e1b4b;
    line-height: 1.2;
}
.pdf-academy-provider {
    font-size: 0.55rem;
    color: #9ca3af;
    margin-top: 2px;
    font-weight: 600;
}
.pdf-academy-desc {
    font-size: 0.56rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pdf-academy-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}
.pdf-academy-badge {
    font-size: 0.5rem;
    font-weight: 700;
    background: #f0fdf4;
    color: #065f46;
    padding: 1px 7px;
    border-radius: 50px;
    border: 1px solid #d1fae5;
}
.pdf-academy-cta {
    margin-top: auto;
    font-size: 0.58rem;
    font-weight: 700;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0f4ff;
    border-radius: 50px;
    border: 1px solid #e0e7ff;
}

/* ── PAGE 7: AI IMPACT / JOB RISK ── */
.pdf-risk-gauge-wrap { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:14px 0 10px; }
.pdf-risk-score-circle { width:90px; height:90px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; font-family:'Cairo',sans-serif; border:5px solid #ef4444; background:#fff5f5; }
.pdf-risk-score-circle.medium { border-color:#f59e0b; background:#fffbeb; }
.pdf-risk-score-circle.low    { border-color:#10b981; background:#f0fdf4; }
.pdf-risk-num  { font-size:2rem; font-weight:900; color:#ef4444; line-height:1; }
.pdf-risk-num.medium { color:#f59e0b; }
.pdf-risk-num.low    { color:#10b981; }
.pdf-risk-denom { font-size:0.6rem; color:#9ca3af; }
.pdf-risk-bar-track { width:100%; height:10px; background:#f1f5f9; border-radius:50px; overflow:hidden; margin:10px 0 4px; }
.pdf-risk-bar-fill  { height:100%; border-radius:50px; background:linear-gradient(90deg,#10b981 0%,#f59e0b 50%,#ef4444 100%); }
.pdf-risk-needle-wrap { position:relative; width:100%; height:10px; margin-top:-14px; }
.pdf-risk-needle { position:absolute; top:-3px; width:16px; height:16px; background:#1e1b4b; border-radius:50%; border:2px solid #fff; transform:translateX(-50%); box-shadow:0 2px 6px rgba(0,0,0,0.2); }
.pdf-risk-labels { display:flex; justify-content:space-between; font-size:0.55rem; color:#9ca3af; margin-top:4px; }
.pdf-risk-badge { display:inline-block; padding:4px 14px; border-radius:50px; font-size:0.68rem; font-weight:800; margin-top:8px; }
.pdf-risk-badge.high   { background:#fee2e2; color:#991b1b; }
.pdf-risk-badge.medium { background:#fef3c7; color:#92400e; }
.pdf-risk-badge.low    { background:#d1fae5; color:#065f46; }
.pdf-impact-factor { display:flex; align-items:flex-start; gap:8px; padding:8px 10px; background:#f8f9ff; border-radius:8px; margin-bottom:7px; }
.pdf-impact-icon { font-size:1rem; flex-shrink:0; margin-top:1px; }
.pdf-impact-title { font-size:0.68rem; font-weight:800; color:#1e1b4b; margin-bottom:2px; }
.pdf-impact-body  { font-size:0.6rem; color:#6b7280; line-height:1.6; }
.pdf-impact-tag   { display:inline-block; font-size:0.55rem; font-weight:700; padding:1px 7px; border-radius:50px; margin-top:3px; }
.pdf-impact-tag.neg  { background:#fee2e2; color:#991b1b; }
.pdf-impact-tag.pos  { background:#d1fae5; color:#065f46; }
.pdf-impact-tag.neut { background:#e0e7ff; color:#3730a3; }

.pdf-impact-tag.negative  { background:#fee2e2; color:#991b1b; }
.pdf-impact-tag.positive  { background:#d1fae5; color:#065f46; }
.pdf-impact-tag.opportunity { background:#e0e7ff; color:#3730a3; }

.pdf-stat-row { display:flex; gap:8px; margin-bottom:10px; }
.pdf-stat-box { flex:1; background:#f8f9ff; border-radius:9px; padding:10px 12px; text-align:center; }
.pdf-stat-val   { font-size:1.1rem; font-weight:900; color:#1e1b4b; }
.pdf-stat-label { font-size:0.58rem; color:#6b7280; margin-top:2px; }
.pdf-stat-sub   { font-size:0.55rem; color:#9ca3af; }


/* ── PAGE 8: SALARY BOOST ── */
.pdf-salary-arrow-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9ff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.pdf-salary-box {
    text-align: center;
    flex: 1;
}
.pdf-salary-box-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1e1b4b;
    line-height: 1;
}
.pdf-salary-box-lbl {
    font-size: 0.58rem;
    color: #6b7280;
    margin-top: 3px;
}
.pdf-salary-box-sub {
    font-size: 0.55rem;
    color: #9ca3af;
}
.pdf-salary-arrow {
    font-size: 1.4rem;
    color: #6366f1;
    flex-shrink: 0;
}
.pdf-salary-progress-wrap {
    margin-top: 6px;
}
.pdf-salary-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    color: #6b7280;
    margin-bottom: 3px;
}
.pdf-salary-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
}
.pdf-salary-progress-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
}
.pdf-salary-progress-fill.green {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}
.pdf-market-stat {
    flex: 1;
    background: #f8f9ff;
    border-radius: 9px;
    padding: 10px 12px;
    text-align: center;
}
.pdf-market-stat-val {
    font-size: 1rem;
    font-weight: 900;
    color: #1e1b4b;
    line-height: 1;
}
.pdf-market-stat-lbl {
    font-size: 0.58rem;
    color: #6b7280;
    margin-top: 2px;
}
.pdf-market-stat-src {
    font-size: 0.5rem;
    color: #9ca3af;
    margin-top: 1px;
}
.pdf-roadmap-step {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9ff;
    border-radius: 9px;
    margin-bottom: 7px;
    align-items: flex-start;
}
.pdf-roadmap-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.pdf-roadmap-step-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 2px;
}
.pdf-roadmap-step-body {
    font-size: 0.6rem;
    color: #6b7280;
    line-height: 1.55;
}
.pdf-roadmap-step-badge {
    font-size: 0.52rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 50px;
    margin-top: 3px;
    display: inline-block;
}
.pdf-salary-cta {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e3a5f 100%);
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    margin-top: 10px;
}
.pdf-salary-cta-title {
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}
.pdf-salary-cta-sub {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    line-height: 1.6;
}
.pdf-salary-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
    margin-inline-end: 8px;
}
.pdf-salary-cta-btn-outline {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN - MOBILE FIRST APPROACH                                   */
/* ════════════════════════════════════════════════════════════════════════════ */

/* Tablet and small devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Page title and text scaling */
    .page-title {
        font-size: 1.4rem;
    }

    .page-sub {
        font-size: 0.8rem;
    }

    /* PDF page responsive scaling */
    .pdf-page {
        width: 100%;
        height: auto;
        min-height: 600px;
        margin: 0;
        border-radius: 8px;
    }

    .page-label {
        position: static;
        margin-bottom: 12px;
        font-size: 0.68rem;
    }

    /* Adjust PDF body padding */
    .pdf-body {
        padding: 16px 20px;
    }

    .pdf-header {
        padding: 20px 20px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .pdf-header-right {
        text-align: start;
        width: 100%;
    }

    /* Adjust PDF footer */
    .pdf-cover-footer {
        padding: 12px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    /* Score grid to single column */
    .pdf-score-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pdf-kpi {
        padding: 10px 12px;
    }

    .pdf-kpi-val {
        font-size: 1.2rem;
    }

    /* Charts row to single column */
    .pdf-charts-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Tools grid to single column */
    .pdf-tools-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Cover hero padding */
    .pdf-cover-hero {
        padding: 30px 20px;
    }

    .pdf-cover-main-title {
        font-size: 1.3rem;
    }

    .pdf-cover-icon {
        width: 56px;
        height: 56px;
    }

    .pdf-cover-icon i {
        font-size: 1.5rem;
    }

    /* Section title */
    .pdf-section-title {
        font-size: 0.72rem;
    }

    /* Table responsive */
    .pdf-table {
        font-size: 0.6rem;
    }

    .pdf-table th,
    .pdf-table td {
        padding: 5px 8px;
    }
}

/* Mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Page title */
    .page-title {
        font-size: 1.2rem;
    }

    .page-sub {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    /* PDF page */
    .pdf-page {
        width: 100%;
        height: auto;
        min-height: 500px;
    }

    /* PDF body padding */
    .pdf-body {
        padding: 12px 16px;
    }

    .pdf-header {
        padding: 16px;
    }

    .pdf-cover-footer {
        padding: 10px 16px;
        flex-direction: column;
        gap: 8px;
    }

    /* Cover hero */
    .pdf-cover-hero {
        padding: 24px 16px;
    }

    .pdf-cover-main-title {
        font-size: 1.1rem;
    }

    .pdf-cover-sub {
        font-size: 0.75rem;
    }

    .pdf-cover-name {
        font-size: 1rem;
    }

    .pdf-cover-icon {
        width: 48px;
        height: 48px;
    }

    .pdf-cover-icon i {
        font-size: 1.2rem;
    }

    /* KPI cards */
    .pdf-kpi {
        padding: 8px 10px;
    }

    .pdf-kpi-val {
        font-size: 1rem;
    }

    .pdf-kpi-label {
        font-size: 0.58rem;
    }

    /* Dimension rows */
    .pdf-dim-row {
        gap: 6px;
        margin-bottom: 6px;
    }

    .pdf-dim-name {
        font-size: 0.62rem;
    }

    .pdf-dim-bar-wrap {
        width: 80px;
    }

    /* Section title */
    .pdf-section-title {
        font-size: 0.68rem;
    }

    /* Recommendations */
    .pdf-rec {
        padding: 10px 12px;
    }

    .pdf-rec-title {
        font-size: 0.68rem;
    }

    .pdf-rec-body {
        font-size: 0.58rem;
    }

    /* Skills row */
    .pdf-skill-row {
        padding: 7px 10px;
        gap: 8px;
        margin-bottom: 7px;
    }

    .pdf-skill-bar-wrap {
        width: 100px;
    }

    /* Tools card */
    .pdf-tool-card {
        padding: 8px 10px;
    }

    .pdf-tool-name {
        font-size: 0.68rem;
    }

    /* Risk gauge */
    .pdf-risk-score-circle {
        width: 80px;
        height: 80px;
    }

    .pdf-risk-num {
        font-size: 1.8rem;
    }

    /* Salary boxes */
    .pdf-salary-box-val {
        font-size: 1.1rem;
    }

    /* Table */
    .pdf-table {
        font-size: 0.55rem;
    }

    .pdf-table th,
    .pdf-table td {
        padding: 4px 6px;
    }

    /* Footer strip */
    .pdf-footer-strip {
        padding: 6px 16px;
        font-size: 0.54rem;
    }
}

/* Extra small devices (max-width: 360px) */
@media (max-width: 360px) {
    .page-title {
        font-size: 1rem;
    }

    .pdf-page {
        min-height: 400px;
    }

    .pdf-body {
        padding: 10px 12px;
    }

    .pdf-header {
        padding: 12px;
    }

    .pdf-cover-hero {
        padding: 20px 12px;
    }

    .pdf-cover-main-title {
        font-size: 0.95rem;
    }

    .pdf-kpi-val {
        font-size: 0.9rem;
    }

    .pdf-section-title {
        font-size: 0.64rem;
    }
}

/* ── LIGHT MODE OVERRIDES ── */
html[data-theme="light"] .navbar-custom { background: rgba(255,255,255,0.92); border-bottom-color: rgba(0,0,0,0.06); }
html[data-theme="light"] .navbar-brand-custom { color: #1e293b; }
html[data-theme="light"] .page-title { color: #1e293b; }
html[data-theme="light"] .section-title { color: #1e293b; }
html[data-theme="light"] .blob-1 { background: rgba(99,102,241,0.04); }
html[data-theme="light"] .blob-2 { background: rgba(6,182,212,0.03); }
