/**
 * AcademyFlow Profile and Jobs - Public Styles
 * LinkedIn-inspired professional profile design with RTL support
 */

/* ===========================
   Variables & Reset
   =========================== */
/* Bridge to shared AcademyFlow design tokens */
:root {
    --afp-primary: var(--afl-primary);
    --afp-primary-hover: var(--afl-primary-hover);
    --afp-text: var(--afl-text);
    --afp-text-light: var(--afl-text-muted);
    --afp-border: var(--afl-border-strong);
    --afp-bg: var(--afl-bg-card);
    --afp-bg-disabled: var(--afl-gray-100);
    --afp-danger: var(--afl-danger);
    --afp-success: var(--afl-success);
    --afp-radius: var(--afl-radius-md);
    --afp-shadow: var(--afl-shadow-md);
}

.afp-profile-container,
.afp-login-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.afp-profile-container *,
.afp-login-container * {
	box-sizing: border-box;
}

/* ===========================
   Containers
   =========================== */
.afp-login-container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
	padding: 20px;
}

.afp-profile-container {
	display: flex;
	justify-content: center;
	padding: 40px 20px;
	background-color: #f9fafb;
}

.afp-login-form,
.afp-profile-form {
	width: 100%;
	background: var(--afp-bg);
	border-radius: 12px;
	box-shadow: var(--afp-shadow);
	padding: 40px;
}

.afp-login-form {
	max-width: 400px;
}

.afp-profile-form {
	max-width: 800px;
}

/* ===========================
   Typography
   =========================== */
.afp-profile-title,
.afp-login-title {
	margin: 0 0 24px 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--afp-text);
	text-align: center;
}

.afp-section-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--afp-text);
	margin: 0 0 20px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
}

.afp-profile-description {
	margin: 0 0 30px 0;
	font-size: 14px;
	color: var(--afp-text-light);
	text-align: center;
	line-height: 1.5;
}

/* ===========================
   Tabs
   =========================== */
.afp-tabs {
	display: flex;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 30px;
}

.afp-tab-link {
	padding: 12px 24px;
	font-weight: 600;
	color: var(--afp-text-light);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
}

.afp-tab-link:hover {
	color: var(--afp-primary);
}

.afp-tab-link.active {
	color: var(--afp-primary);
	border-bottom-color: var(--afp-primary);
}

.afp-tab-content {
	display: none;
	animation: fadeIn 0.3s ease;
}

.afp-tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Profile Picture Upload
   =========================== */
.afp-profile-picture-wrapper {
	text-align: center;
	margin-bottom: 30px;
	position: relative;
	width: 120px;
	height: 120px;
	margin-left: auto;
	margin-right: auto;
}

.afp-profile-picture-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid white;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.afp-profile-picture-upload-btn {
	position: absolute;
	bottom: 0;
	right: 0;
	background: var(--afp-primary);
	color: white;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.afp-profile-picture-upload-btn:hover {
	background: var(--afp-primary-hover);
	transform: scale(1.1);
}

.afp-profile-picture-upload-btn svg {
	width: 16px;
	height: 16px;
}

.afp-hidden-file-input {
	display: none;
}

/* ===========================
   Layout & Grid
   =========================== */
.afp-form-section {
	margin-bottom: 30px;
}

.afp-form-separator {
	height: 1px;
	background-color: #e5e7eb;
	margin: 30px 0;
}

.afp-grid-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.afp-grid-row {
		grid-template-columns: 1fr 1fr;
	}
	
	.afp-full-width {
		grid-column: 1 / -1;
	}
}

/* ===========================
   Form Elements
   =========================== */
.afp-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.afp-form-label {
	font-size: 14px;
	font-weight: 500;
	color: #374151;
}

.afp-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.afp-form-input,
.afp-form-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--afp-border);
	border-radius: var(--afp-radius);
	font-size: 15px;
	color: var(--afp-text);
	background: var(--afp-bg);
	transition: all 0.2s ease;
	outline: none;
}

.afp-form-input:focus,
.afp-form-select:focus {
	border-color: var(--afp-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.afp-form-input.afp-disabled {
	background-color: var(--afp-bg-disabled);
	color: #6b7280;
	cursor: not-allowed;
	padding-right: 40px; /* Space for lock icon */
}

/* RTL Support for Input Padding */
[dir="rtl"] .afp-form-input.afp-disabled {
	padding-right: 14px;
	padding-left: 40px;
}

.afp-lock-icon {
	position: absolute;
	right: 12px;
	color: #9ca3af;
	display: flex;
	align-items: center;
	pointer-events: none;
}

[dir="rtl"] .afp-lock-icon {
	right: auto;
	left: 12px;
}

.afp-form-help {
	font-size: 12px;
	color: var(--afp-text-light);
	margin: 2px 0 0 0;
}

/* ===========================
   Buttons
   =========================== */
.afp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: var(--afp-radius);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	text-decoration: none;
}

.afp-btn-sm {
	padding: 8px 16px;
	font-size: 13px;
}

.afp-btn-primary {
	background-color: var(--afp-primary);
	color: white;
	width: 100%;
}

.afp-btn-primary:hover {
	background-color: var(--afp-primary-hover);
}

.afp-btn-primary:disabled {
	opacity: 0.7;
	cursor: wait;
}

.afp-btn-outline {
	background-color: transparent;
	border: 1px solid var(--afp-border);
	color: var(--afp-text);
}

.afp-btn-outline:hover {
	background-color: #f9fafb;
	border-color: #9ca3af;
}

/* Social Buttons */
.afp-social-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.afp-btn-google,
.afp-btn-linkedin {
	background: white;
	border-color: var(--afp-border);
	color: var(--afp-text);
	width: 100%;
}

.afp-btn-google:hover,
.afp-btn-linkedin:hover {
	background-color: #f9fafb;
	border-color: #9ca3af;
}

.afp-btn-icon {
	width: 20px;
	height: 20px;
	margin-right: 12px;
}

[dir="rtl"] .afp-btn-icon {
	margin-right: 0;
	margin-left: 12px;
}

/* ===========================
   Messages
   =========================== */
.afp-form-message {
	margin-top: 20px;
	padding: 12px;
	border-radius: var(--afp-radius);
	font-size: 14px;
	text-align: center;
}

.afp-form-message.success {
	background-color: #d1fae5;
	color: #065f46;
}

.afp-form-message.error {
	background-color: #fee2e2;
	color: #991b1b;
}

.afp-alert {
	padding: 12px 16px;
	border-radius: var(--afp-radius);
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.5;
}

.afp-alert-success {
	background-color: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.afp-alert-warning {
	background-color: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.afp-alert-danger {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.afp-alert-info {
	background-color: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

/* ===========================
   My Courses
   =========================== */
.afp-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Reduced from 240px */
	gap: 20px;
}

.afp-course-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--afp-border);
	border-radius: var(--afp-radius);
	overflow: hidden;
	text-decoration: none;
	transition: all 0.2s ease;
	color: var(--afp-text);
}

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

.afp-course-image {
	height: 120px; /* Reduced from 140px */
	background-color: #f3f4f6;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.afp-course-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afp-course-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #9ca3af;
}

.afp-course-placeholder svg {
	width: 40px; /* Reduced from 48px */
	height: 40px;
}

.afp-course-content {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.afp-course-title {
	margin: 0 0 12px 0;
	font-size: 15px; /* Reduced from 16px */
	font-weight: 600;
	line-height: 1.4;
	color: var(--afp-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.afp-course-progress {
	margin-top: auto;
}

.afp-progress-bar {
	height: 6px;
	background-color: #e5e7eb;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 6px;
}

.afp-progress-fill {
	height: 100%;
	background-color: var(--afp-success);
	border-radius: 3px;
	transition: width 0.3s ease;
}

.afp-progress-text {
	font-size: 12px;
	color: var(--afp-text-light);
	font-weight: 500;
}

/* ===========================
   Certificates
   =========================== */
.afp-certificates-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.afp-certificate-item {
	display: flex;
	align-items: center;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--afp-border);
	border-radius: var(--afp-radius);
	transition: all 0.2s ease;
}

.afp-certificate-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--afp-shadow);
	border-color: var(--afp-primary);
}

.afp-cert-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	background-color: #eff6ff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 20px;
	color: var(--afp-primary);
}

.afp-cert-details {
	flex: 1;
	margin-right: 20px;
}

.afp-cert-title {
	margin: 0 0 5px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--afp-text);
}

.afp-cert-date {
	font-size: 13px;
	color: var(--afp-text-light);
}

.afp-certificate-item .afp-btn svg {
	margin-right: 8px;
}

.afp-no-content {
	text-align: center;
	padding: 40px 20px;
	color: var(--afp-text-light);
}

.afp-no-content-icon {
	margin-bottom: 15px;
	color: #d1d5db;
}

/* RTL Overrides */
[dir="rtl"] .afp-form-select {
	background-position: left 12px center;
	padding-right: 14px;
	padding-left: 40px;
}

[dir="rtl"] .afp-profile-title,
[dir="rtl"] .afp-login-title,
[dir="rtl"] .afp-section-title,
[dir="rtl"] .afp-form-label,
[dir="rtl"] .afp-form-help {
	text-align: right;
}

[dir="rtl"] .afp-profile-picture-upload-btn {
	right: auto;
	left: 0;
}

[dir="rtl"] .afp-cert-icon {
	margin-right: 0;
	margin-left: 20px;
}

[dir="rtl"] .afp-cert-details {
	margin-right: 0;
	margin-left: 20px;
}

[dir="rtl"] .afp-certificate-item .afp-btn svg {
	margin-right: 0;
	margin-left: 8px;
}

/* ===========================
   Repeater Fields
   =========================== */
.afp-section-header-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
border-bottom: 1px solid #e5e7eb;
padding-bottom: 10px;
}

.afp-section-header-row .afp-section-title {
margin: 0;
border: none;
padding: 0;
}

.afp-section-header-row > div {
display: flex;
flex-direction: column;
gap: 3px;
}

/* ── AFP Modal / Toast ── */
#afp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
}
#afp-modal-overlay.afp-modal-open {
    display: flex;
}
.afp-modal-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    padding: 36px 30px 26px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: afpModalIn 0.18s ease;
}
@keyframes afpModalIn {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}
.afp-modal-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    line-height: 1;
}
.afp-modal-message {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 26px;
    line-height: 1.55;
}
.afp-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.afp-modal-btn {
    padding: 10px 26px;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
    outline: none;
}
.afp-modal-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.35);
}
.afp-modal-btn:active { transform: scale(0.97); }
.afp-modal-btn-confirm {
    background: #0a66c2;
    color: #fff;
}
.afp-modal-btn-confirm:hover { background: #084d9a; }
.afp-modal-btn-confirm.afp-modal-btn-danger {
    background: #dc2626;
}
.afp-modal-btn-confirm.afp-modal-btn-danger:hover { background: #b91c1c; }
.afp-modal-btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}
.afp-modal-btn-cancel:hover { background: #e5e7eb; }

/* AFP Toast */
#afp-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.afp-toast {
    background: #1f2937;
    color: #fff;
    padding: 13px 18px;
    border-radius: 9px;
    font-size: 0.875rem;
    max-width: 340px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.22s, transform 0.22s;
    pointer-events: auto;
    line-height: 1.45;
}
.afp-toast.afp-toast-visible {
    opacity: 1;
    transform: translateX(0);
}
.afp-toast.afp-toast-success { background: #065f46; }
.afp-toast.afp-toast-error   { background: #991b1b; }
.afp-toast.afp-toast-warning { background: #92400e; }
.afp-toast.afp-toast-info    { background: #1e40af; }

.afp-section-subtitle {
font-size: 0.78rem;
color: #6b7280;
margin: 0;
font-weight: 400;
line-height: 1.4;
}

.afp-repeater-container {
display: flex;
flex-direction: column;
gap: 20px;
}

.afp-repeater-item {
background: #fff;
border: 1px solid var(--afp-border);
border-radius: var(--afp-radius);
overflow: hidden;
}

.afp-repeater-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #f9fafb;
border-bottom: 1px solid var(--afp-border);
}

.afp-repeater-title {
font-weight: 600;
color: var(--afp-text);
}

.afp-remove-item-btn {
background: transparent;
border: none;
color: var(--afp-danger);
cursor: pointer;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
}

.afp-remove-item-btn:hover {
background: #fee2e2;
}

.afp-repeater-content {
padding: 20px;
}

.afp-checkbox-label {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
font-size: 14px;
color: var(--afp-text);
cursor: pointer;
}

/* ===========================
   Cover Image Upload (Edit Form)
   =========================== */
.afp-cover-image-wrapper {
	position: relative;
	width: 100%;
	height: 200px;
	border-radius: 12px 12px 0 0;
	overflow: hidden;
	margin-bottom: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.afp-cover-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afp-cover-upload-btn {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: background 0.2s ease;
}

.afp-cover-upload-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

.afp-cover-upload-btn svg {
	width: 16px;
	height: 16px;
}

[dir="rtl"] .afp-cover-upload-btn {
	right: auto;
	left: 12px;
}

/* Profile picture overlapping cover */
.afp-has-cover .afp-profile-picture-wrapper {
	margin-top: -60px;
	z-index: 2;
	position: relative;
}

/* ===========================
   About / Bio Section
   =========================== */
.afp-about-textarea {
	width: 100%;
	min-height: 120px;
	padding: 14px;
	border: 1px solid var(--afp-border);
	border-radius: var(--afp-radius);
	font-size: 15px;
	color: var(--afp-text);
	background: var(--afp-bg);
	font-family: inherit;
	line-height: 1.6;
	resize: vertical;
	transition: border-color 0.2s ease;
	outline: none;
}

.afp-about-textarea:focus {
	border-color: var(--afp-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.afp-char-count {
	font-size: 12px;
	color: var(--afp-text-light);
	text-align: right;
	margin-top: 4px;
}

/* ===========================
   Skills Section
   =========================== */
.afp-skills-input-wrapper {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.afp-skills-input-wrapper .afp-form-input {
	flex: 1;
}

.afp-skills-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.afp-skill-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #eff6ff;
	color: var(--afp-primary);
	border: 1px solid #bfdbfe;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

.afp-skill-remove {
	background: none;
	border: none;
	color: var(--afp-primary);
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.afp-skill-remove:hover {
	opacity: 1;
}

.afp-skill-remove svg {
	width: 14px;
	height: 14px;
}

.afp-btn-add-skill {
	flex-shrink: 0;
}

/* ===========================
   Public Profile - LinkedIn-like Cards
   =========================== */
.afp-public-profile-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
	background: #f4f2ee;
	min-height: 100vh;
}

.afp-public-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
	margin-bottom: 8px;
	overflow: hidden;
}

/* Public Cover Image */
.afp-public-cover {
	width: 100%;
	height: 200px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	overflow: hidden;
}

.afp-public-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Public Header (below cover) */
.afp-public-header-content {
	padding: 0 24px 24px;
	position: relative;
}

.afp-public-avatar {
	width: 152px;
	height: 152px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	margin-top: -76px;
	display: block;
}

.afp-public-name {
	font-size: 24px;
	font-weight: 600;
	margin: 16px 0 4px;
	color: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	gap: 8px;
}

.afp-verified-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: var(--afp-primary);
	color: white;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
}

.afp-public-headline {
	font-size: 16px;
	color: rgba(0, 0, 0, 0.9);
	margin: 0 0 8px;
	line-height: 1.4;
}

.afp-public-location {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	gap: 4px;
}

.afp-public-meta-row {
	display: flex;
	gap: 16px;
	margin-top: 4px;
	font-size: 14px;
	color: rgba(0, 0, 0, 0.6);
}

/* Public Section Styling */
.afp-public-card .afp-section-heading {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 16px;
	padding: 24px 24px 0;
	color: rgba(0, 0, 0, 0.9);
	border: none;
}

.afp-public-card .afp-public-item {
	padding: 12px 24px 16px;
	border-bottom: 1px solid #e0e0e0;
}

.afp-public-card .afp-public-item:last-child {
	border-bottom: none;
	padding-bottom: 24px;
}

.afp-public-item .afp-item-title {
	font-weight: 600;
	font-size: 16px;
	color: rgba(0, 0, 0, 0.9);
	margin: 0 0 4px;
}

.afp-public-item .afp-item-subtitle {
	color: rgba(0, 0, 0, 0.9);
	font-size: 14px;
	margin: 0 0 2px;
}

.afp-public-item .afp-item-date {
	color: rgba(0, 0, 0, 0.6);
	font-size: 14px;
	margin-bottom: 8px;
	display: block;
}

.afp-public-item .afp-item-desc {
	color: rgba(0, 0, 0, 0.9);
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-line;
}

/* Public About Section */
.afp-public-about {
	padding: 24px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.9);
	white-space: pre-line;
}

/* Public Skills */
.afp-public-skills {
	padding: 0 24px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.afp-public-skill-pill {
	display: inline-block;
	padding: 6px 16px;
	background: #f3f2ef;
	color: rgba(0, 0, 0, 0.9);
	border-radius: 16px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #e0e0e0;
}

/* Public Project Image */
.afp-project-img {
	width: 100%;
	max-height: 300px;
	object-fit: cover;
	border-radius: 8px;
	margin: 10px 0;
	border: 1px solid #e0e0e0;
}

.afp-project-link {
	display: inline-block;
	margin-top: 8px;
	color: var(--afp-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.afp-project-link:hover {
	text-decoration: underline;
}

/* ────────────────────────────────────────────────────────
 * Certificate Verification Badge (public profile)
 * Replaces the public certificate-URL link in v3.10.14+.
 * The certificate file stays private — only an EH-verified
 * badge is shown publicly (privacy hardening).
 * ──────────────────────────────────────────────────────── */
.afp-cert-verified {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 6px 12px;
	background: #ECFDF5;            /* green-50  */
	color: #065F46;                 /* green-900 */
	border: 1px solid #A7F3D0;      /* green-200 */
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	cursor: help;
	transition: background 0.15s, border-color 0.15s;
}
.afp-cert-verified:hover {
	background: #D1FAE5;            /* green-100 */
	border-color: #10B981;          /* green-500 */
}
.afp-cert-verified-icon {
	flex-shrink: 0;
	color: #10B981;                 /* green-500 */
}

/* Self-reported variant — slightly less authoritative palette */
.afp-cert-verified--self {
	background: #F1F5F9;            /* slate-100 */
	color: #475569;                 /* slate-600 */
	border-color: #CBD5E1;          /* slate-300 */
}
.afp-cert-verified--self:hover {
	background: #E2E8F0;            /* slate-200 */
	border-color: #94A3B8;          /* slate-400 */
}
.afp-cert-verified--self .afp-cert-verified-icon {
	color: #64748B;                 /* slate-500 */
}

/* Public Courses Grid */
.afp-public-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	padding: 0 24px 24px;
}

.afp-public-course-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: box-shadow 0.2s;
}

.afp-public-course-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.afp-public-course-img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	background: #f3f2ef;
}

.afp-public-course-info {
	padding: 12px;
}

.afp-public-course-name {
	font-weight: 600;
	font-size: 14px;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Public Profile — Portfolio Grid */
.afp-public-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	padding: 0 24px 24px;
}

.afp-portfolio-thumb {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #f8f8f8;
	transition: box-shadow 0.2s;
	position: relative;
}

.afp-portfolio-thumb--featured {
	border-color: #0a66c2;
	box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.15);
}

.afp-portfolio-thumb:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.afp-portfolio-thumb img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.afp-portfolio-thumb-placeholder {
	width: 100%;
	height: 140px;
	background: linear-gradient(135deg, #e8f0fb, #c7d9f5);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	font-weight: 700;
	color: #0a66c2;
}

.afp-portfolio-card-info {
	padding: 10px 12px;
}

.afp-portfolio-card-title {
	font-weight: 600;
	font-size: 13px;
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.afp-portfolio-card-link {
	font-size: 12px;
	color: #0a66c2;
	text-decoration: none;
}

.afp-portfolio-card-link:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
	.afp-public-avatar {
		width: 100px;
		height: 100px;
		margin-top: -50px;
	}

	.afp-public-cover {
		height: 150px;
	}

	.afp-cover-image-wrapper {
		height: 150px;
	}

	.afp-public-name {
		font-size: 20px;
	}
}

/* ===========================
   Gamification — Level Badges
   =========================== */
.afp-level-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #fff;
	background-color: var(--level-color, #6b7280);
	vertical-align: middle;
	white-space: nowrap;
}

/* ===========================
   Gamification — User Level Widget
   =========================== */
.afp-user-level-widget {
	background: var(--afp-bg, #fff);
	border: 1px solid var(--afp-border, #e5e7eb);
	border-radius: var(--afp-radius, 8px);
	padding: 16px 20px;
	margin-bottom: 20px;
}

.afp-level-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.afp-level-points {
	font-size: 13px;
	color: var(--afp-text-light, #6b7280);
}

.afp-level-points strong {
	color: var(--afp-text, #111827);
	font-size: 15px;
}

.afp-level-progress-wrap {
	margin-top: 8px;
}

.afp-level-progress-bar {
	width: 100%;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.afp-level-fill {
	height: 100%;
	width: var(--progress, 0%);
	background: var(--afp-primary, #4f46e5);
	border-radius: 4px;
	transition: width .4s ease;
}

.afp-level-next-label {
	font-size: 12px;
	color: var(--afp-text-light, #6b7280);
	margin-top: 6px;
	text-align: right;
}

/* ===========================
   Gamification — Achievements Grid
   =========================== */
.afp-achievements-container {
	margin: 24px 0;
}

.afp-achievements-container h3 {
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.afp-achievement-count {
	font-size: 13px;
	font-weight: 500;
	color: var(--afp-text-light, #6b7280);
	background: #f3f4f6;
	padding: 2px 8px;
	border-radius: 12px;
}

.afp-achievements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

.afp-achievement-card {
	background: var(--afp-bg, #fff);
	border: 1px solid var(--afp-border, #e5e7eb);
	border-radius: var(--afp-radius, 8px);
	padding: 18px 14px;
	text-align: center;
	transition: transform .15s, box-shadow .15s;
	position: relative;
	cursor: default;
}

.afp-achievement-card.earned {
	border-color: #a7f3d0;
	background: #f0fdf4;
}

.afp-achievement-card.locked {
	opacity: .55;
	filter: grayscale(60%);
}

.afp-achievement-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.afp-achievement-icon {
	font-size: 30px;
	margin-bottom: 8px;
	line-height: 1;
}

.afp-achievement-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--afp-text, #111827);
	margin-bottom: 4px;
}

.afp-achievement-desc {
	font-size: 11px;
	color: var(--afp-text-light, #6b7280);
	line-height: 1.4;
	margin-bottom: 6px;
}

.afp-achievement-earned-at {
	font-size: 11px;
	color: #059669;
	margin-top: 6px;
	font-style: italic;
}

.afp-achievement-locked-label {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 6px;
}

.afp-achievement-points-value {
	position: absolute;
	top: 6px;
	right: 8px;
	font-size: 10px;
	color: #f59e0b;
	font-weight: 700;
}

/* ===========================
   Gamification — Points Toast
   =========================== */
.afp-points-toast {
	position: fixed;
	bottom: 24px;
	right: -360px;
	width: 320px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--afp-bg-card, #fff);
	border: 1px solid var(--afp-border, #e5e7eb);
	border-left: 4px solid var(--afp-success, #16a34a);
	border-radius: var(--afp-radius, 10px);
	box-shadow: var(--afp-shadow-lg, 0 12px 32px rgba(0,0,0,.12));
	z-index: 99999;
	transition: right .4s ease;
	font-family: var(--afp-font);
}

.afp-points-toast.afp-toast-visible {
	right: 24px;
}

.afp-toast-icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--afp-success-light, #dcfce7);
	color: var(--afp-success, #16a34a);
	font-size: 14px;
	font-weight: 700;
}

.afp-toast-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.afp-toast-body strong {
	font-size: 14px;
	color: var(--afp-text, #111827);
}

.afp-toast-body span {
	font-size: 12px;
	color: var(--afp-text-muted, #6b7280);
	margin-top: 2px;
}

.afp-toast-close {
	background: none;
	border: none;
	color: var(--afp-text-light, #9ca3af);
	font-size: 20px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
}

.afp-toast-close:hover {
	color: var(--afp-text, #111827);
}

/* ===========================
   Gamification — Public Profile
   =========================== */
.afp-public-gamification {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	justify-content: center;
}

.afp-public-points {
	font-size: 13px;
	color: var(--afp-text-muted, #6b7280);
	font-weight: 500;
}

.afp-public-achievements {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.afp-public-achievements .afp-achievement-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 8px;
	background: var(--afp-bg-page, #f1f5f9);
	border-radius: var(--afp-radius, 10px);
	text-align: center;
}

.afp-public-achievements .afp-achievement-icon {
	font-size: 24px;
}

.afp-public-achievements .afp-achievement-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--afp-text, #111827);
}

/* ===========================
   Gamification — Leaderboard
   =========================== */
.afp-leaderboard-container {
	margin: 24px 0;
}

.afp-leaderboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.afp-leaderboard-header h3 {
	margin: 0;
	font-size: 20px;
}

.afp-leaderboard-filters {
	display: flex;
	gap: 6px;
}

.afp-lb-filter {
	padding: 6px 14px;
	border: 1px solid var(--afp-border, #e5e7eb);
	background: #fff;
	border-radius: 20px;
	font-size: 13px;
	cursor: pointer;
	color: var(--afp-text-light, #6b7280);
	transition: all .15s;
}

.afp-lb-filter.active,
.afp-lb-filter:hover {
	background: var(--afp-primary, #4f46e5);
	border-color: var(--afp-primary, #4f46e5);
	color: #fff;
}

.afp-leaderboard-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.afp-lb-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: var(--afp-bg, #fff);
	border: 1px solid var(--afp-border, #e5e7eb);
	border-radius: var(--afp-radius, 8px);
	transition: box-shadow .15s;
}

.afp-lb-row:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.afp-lb-row.afp-lb-top3 {
	border-left: 3px solid #f59e0b;
	background: #fffbeb;
}

.afp-lb-rank {
	min-width: 40px;
	text-align: center;
}

.afp-lb-medal {
	font-size: 26px;
}

.afp-lb-number {
	font-size: 16px;
	font-weight: 700;
	color: var(--afp-text-light, #6b7280);
}

.afp-lb-avatar img {
	border-radius: 50%;
	object-fit: cover;
}

.afp-lb-info {
	flex: 1;
	min-width: 0;
}

.afp-lb-name {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: var(--afp-text, #111827);
	text-decoration: none;
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.afp-lb-name:hover {
	color: var(--afp-primary, #4f46e5);
}

.afp-lb-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--afp-text-light, #6b7280);
	margin-top: 4px;
}

.afp-lb-rating-num {
	font-weight: 700;
	color: #f59e0b;
}

.afp-lb-review-count {
	color: #9ca3af;
}

.afp-lb-points {
	text-align: right;
	min-width: 60px;
}

.afp-lb-pts-num {
	display: block;
	font-size: 18px;
	font-weight: 800;
	color: var(--afp-primary, #4f46e5);
}

.afp-lb-pts-label {
	font-size: 11px;
	color: var(--afp-text-light, #6b7280);
	text-transform: uppercase;
	letter-spacing: .5px;
}

.afp-lb-empty p {
	color: var(--afp-text-light, #6b7280);
	padding: 24px;
	text-align: center;
	background: #f9fafb;
	border-radius: var(--afp-radius, 8px);
}

/* ===========================
   Gamification — Points History
   =========================== */
.afp-points-history-container {
	margin: 24px 0;
}

.afp-points-total-display {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-radius: var(--afp-radius, 8px);
	color: #fff;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.afp-pts-big {
	font-size: 36px;
	font-weight: 900;
	line-height: 1;
}

.afp-pts-label {
	font-size: 14px;
	opacity: .85;
	flex: 1;
}

.afp-points-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.afp-points-table th,
.afp-points-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--afp-border, #e5e7eb);
}

.afp-points-table th {
	font-weight: 700;
	background: #f9fafb;
	color: var(--afp-text-light, #6b7280);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: .5px;
}

.afp-pts-cell {
	font-weight: 700;
	color: #059669;
	font-size: 14px;
}

.afp-pts-empty {
	padding: 20px;
	color: var(--afp-text-light, #6b7280);
	text-align: center;
	background: #f9fafb;
	border-radius: var(--afp-radius, 8px);
}

/* ===========================
   Reviews — Helpfulness & Featured
   =========================== */
.afp-review-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--afp-border, #f3f4f6);
	flex-wrap: wrap;
	gap: 8px;
}

.afp-review-featured-badge {
	font-size: 12px;
	color: #f59e0b;
	font-weight: 700;
	background: #fffbeb;
	padding: 3px 10px;
	border-radius: 12px;
	border: 1px solid #fde68a;
}

.afp-review-helpful {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--afp-text-light, #6b7280);
}

.afp-helpful-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border: 1px solid var(--afp-border, #e5e7eb);
	border-radius: 20px;
	background: #fff;
	color: var(--afp-text, #374151);
	font-size: 13px;
	cursor: pointer;
	transition: all .15s;
}

.afp-helpful-btn:hover:not([disabled]) {
	background: #f0fdf4;
	border-color: #6ee7b7;
	color: #059669;
}

.afp-helpful-btn.voted,
.afp-helpful-btn[disabled] {
	background: #f9fafb;
	color: #9ca3af;
	cursor: default;
}

.afp-helpful-btn.voted {
	border-color: #6ee7b7;
	color: #059669;
	background: #f0fdf4;
}

/* ===========================
   Role Notification
   =========================== */
.afp-role-notification {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	margin-top: 15px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	animation: slideIn 0.3s ease;
}

.afp-role-notification-success {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	color: #059669;
}

.afp-role-notification-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #dc2626;
}

.afp-role-notification-icon {
	font-size: 16px;
	font-weight: bold;
}

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

/* ===========================
   Role Switcher Enhanced
   =========================== */
.afp-role-switcher-card {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}

.afp-role-switcher-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--afp-text, #374151);
}

.afp-role-switcher-title svg {
	color: #6b7280;
}

.afp-role-switcher-desc {
	margin: 0 0 16px 0;
	font-size: 13px;
	color: #6b7280;
}

.afp-role-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.afp-role-option {
	position: relative;
	cursor: pointer;
}

.afp-role-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.afp-role-option-content {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	transition: all 0.2s ease;
}

.afp-role-option:hover .afp-role-option-content {
	border-color: #d1d5db;
}

.afp-role-option.selected .afp-role-option-content {
	border-color: #3b82f6;
	background: #eff6ff;
}

.afp-role-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex-shrink: 0;
}

.afp-role-icon.seeker {
	background: #dbeafe;
	color: #2563eb;
}

.afp-role-icon.employer {
	background: #dcfce7;
	color: #16a34a;
}

.afp-role-icon.both {
	background: #fef3c7;
	color: #d97706;
}

.afp-role-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.afp-role-info strong {
	font-size: 14px;
	color: var(--afp-text, #374151);
}

.afp-role-info span {
	font-size: 12px;
	color: #6b7280;
}

.afp-seeker-settings {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.afp-seeker-setting-row {
	margin-bottom: 12px;
}

.afp-seeker-setting-row:last-child {
	margin-bottom: 0;
}

.afp-seeker-setting-row label {
	font-size: 13px;
	color: var(--afp-text, #374151);
}

.afp-seeker-setting-row select,
.afp-seeker-setting-row input[type="text"] {
	width: 100%;
	max-width: 300px;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	margin-top: 4px;
}

.afp-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.afp-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* ===========================
   Job Posting Quota
   =========================== */
.afp-quota-info {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 20px;
}

.afp-quota-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.afp-quota-title {
	font-size: 14px;
	font-weight: 600;
	color: #0369a1;
}

.afp-quota-details {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.afp-quota-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.afp-quota-label {
	font-size: 12px;
	color: #6b7280;
}

.afp-quota-value {
	font-size: 16px;
	font-weight: 600;
	color: #374151;
}

.afp-quota-available {
	color: #059669;
}

.afp-quota-exhausted {
	color: #dc2626;
}

.afp-quota-package .afp-quota-value {
	color: #2563eb;
}

.afp-quota-notice {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #bae6fd;
}

.afp-quota-notice p {
	margin: 0 0 12px 0;
	font-size: 13px;
	color: #374151;
}

.afp-quota-notice .button {
	font-size: 13px;
}

/* ===========================
   Job Packages
   =========================== */
.afp-packages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.afp-package-card {
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	transition: all 0.2s ease;
	position: relative;
}

.afp-package-card:hover {
	border-color: #d1d5db;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.afp-package-card.popular {
	border-color: #3b82f6;
}

.afp-package-card.popular::before {
	content: attr(data-badge);
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: #3b82f6;
	color: #fff;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.afp-package-name {
	font-size: 18px;
	font-weight: 700;
	color: #374151;
	margin: 0 0 8px 0;
}

.afp-package-credits {
	font-size: 36px;
	font-weight: 800;
	color: #1f2937;
	margin: 16px 0;
}

.afp-package-credits span {
	font-size: 14px;
	font-weight: 400;
	color: #6b7280;
}

.afp-package-price {
	font-size: 28px;
	font-weight: 700;
	color: #374151;
	margin: 8px 0;
}

.afp-package-price .currency {
	font-size: 18px;
	vertical-align: top;
}

.afp-package-savings {
	display: inline-block;
	background: #dcfce7;
	color: #16a34a;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	margin: 8px 0;
}

.afp-package-description {
	font-size: 13px;
	color: #6b7280;
	margin: 12px 0 20px 0;
}

.afp-package-btn {
	width: 100%;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
}

.afp-package-per-post {
	font-size: 12px;
	color: #9ca3af;
	margin: 0 0 12px 0;
}

.afp-package-success {
	margin-top: 16px;
	padding: 12px;
	background: #dcfce7;
	border-radius: 6px;
	color: #16a34a;
	font-size: 13px;
	font-weight: 500;
}

.afp-current-quota {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 24px;
}

.afp-current-quota h3 {
	margin: 0 0 8px 0;
	font-size: 16px;
	color: #166534;
}

.afp-current-quota p {
	margin: 0;
	font-size: 14px;
	color: #374151;
}

.afp-packages-login-notice {
	text-align: center;
	padding: 24px;
	background: #fef3c7;
	border-radius: 8px;
	margin-top: 24px;
}

.afp-packages-login-notice p {
	margin: 0 0 12px 0;
	color: #92400e;
}

/* Enhanced Packages Styles - appended */
@import url('packages.css');

/* ===========================
   Proposal Notifications & Loading
   =========================== */

/* Notification Styles */
.afp-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 16px 24px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 300px;
	max-width: 500px;
	animation: afp-slide-in 0.3s ease-out;
}

.afp-notification-success {
	background: #10b981;
	color: white;
}

.afp-notification-error {
	background: #ef4444;
	color: white;
}

.afp-notification-info {
	background: #3b82f6;
	color: white;
}

.afp-notification-info a {
	color: #dbeafe;
	text-decoration: underline;
	font-weight: 600;
}

.afp-notification-message {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.afp-notification-close {
	background: none;
	border: none;
	color: inherit;
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.afp-notification-close:hover {
	opacity: 1;
}

@keyframes afp-slide-in {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Loading States */
.afp-loading {
	opacity: 0.6;
	pointer-events: none;
}

.afp-loading-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
	font-size: 14px;
}

.afp-loading-text::after {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid #e5e7eb;
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: afp-spin 0.8s linear infinite;
}

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

/* Proposal Card Loading State */
.afp-proposal-card.afp-loading {
	position: relative;
}

.afp-proposal-card.afp-loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: inherit;
}

/* Form Messages */
.afp-form-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
}

.afp-form-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.afp-form-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Hidden Class for Toggle */
.afp-hidden {
	display: none !important;
}

/* ===========================
   Resume Builder Styles
   =========================== */

.afp-resume-builder {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px;
}

.afp-resume-builder-header {
	text-align: center;
	margin-bottom: 40px;
}

.afp-resume-builder-header h2 {
	font-size: 28px;
	margin: 0 0 10px 0;
	color: #1f2937;
}

.afp-resume-builder-header p {
	color: #6b7280;
	margin: 0;
}

.afp-resume-builder-content {
	background: #fff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Template Selection */
.afp-resume-templates {
	margin-bottom: 30px;
}

.afp-resume-templates h3 {
	font-size: 16px;
	margin: 0 0 20px 0;
	color: #374151;
}

.afp-template-options {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.afp-template-option {
	flex: 1;
	min-width: 150px;
	cursor: pointer;
}

.afp-template-option input {
	display: none;
}

.afp-template-preview {
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	padding: 30px 20px;
	text-align: center;
	transition: all 0.2s;
}

.afp-template-option.selected .afp-template-preview,
.afp-template-option:hover .afp-template-preview {
	border-color: #3b82f6;
	background: #eff6ff;
}

.afp-template-name {
	font-weight: 600;
	color: #374151;
}

/* Section Toggles */
.afp-resume-sections {
	margin-bottom: 30px;
}

.afp-resume-sections h3 {
	font-size: 16px;
	margin: 0 0 20px 0;
	color: #374151;
}

.afp-section-toggles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.afp-section-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: #f9fafb;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.afp-section-toggle:hover {
	background: #f3f4f6;
}

.afp-section-toggle input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #3b82f6;
}

.afp-section-toggle span {
	font-size: 14px;
	color: #374151;
}

/* Actions */
.afp-resume-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.afp-resume-actions .afp-btn {
	padding: 12px 24px;
	font-size: 14px;
}

/* Preview Container */
.afp-resume-preview-container {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 2px solid #e5e7eb;
}

.afp-resume-preview-container h3 {
	font-size: 18px;
	margin: 0 0 20px 0;
	color: #374151;
}

.afp-resume-preview-content {
	background: #f9fafb;
	padding: 20px;
	border-radius: 8px;
}

/* Download Button Shortcode */
.afp-download-resume-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.afp-download-resume-btn::before {
	content: '';
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
	background-size: contain;
}

/* ===========================
   Course-to-Job Matching Styles
   =========================== */

.afp-course-based-matches {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px;
}

.afp-course-based-matches h2 {
	font-size: 24px;
	margin: 0 0 10px 0;
	color: #1f2937;
}

.afp-section-description {
	color: #6b7280;
	margin: 0 0 30px 0;
}

.afp-no-matches {
	text-align: center;
	padding: 60px 20px;
	background: #f9fafb;
	border-radius: 12px;
}

.afp-no-matches p {
	color: #6b7280;
	margin: 0 0 20px 0;
	font-size: 16px;
}

.afp-course-skills-summary {
	background: #eff6ff;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.afp-course-skills-summary p {
	margin: 0 0 12px 0;
	color: #1e40af;
}

.afp-skills-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.afp-skill-tag.afp-skill-verified {
	background: #3b82f6;
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

.afp-more-skills {
	color: #6b7280;
	font-size: 13px;
	padding: 4px 8px;
}

.afp-job-card.afp-has-course-match {
	position: relative;
	border-left: 4px solid #3b82f6;
}

.afp-match-indicator {
	position: absolute;
	top: 20px;
	right: 20px;
	text-align: center;
}

.afp-match-count {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #3b82f6;
	line-height: 1;
}

.afp-match-label {
	font-size: 11px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.afp-matched-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0;
}

.afp-matched-skill {
	background: #dbeafe;
	color: #1e40af;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}
