/* Base RTL Persian font */
body { font-family: 'Vazirmatn', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif; }

.hero { background: radial-gradient(90% 120% at 100% 0%, #e7f1ff 0%, #ffffff 60%); }

.content-card { background: #fff; }

.prose p { line-height: 1.9; margin-bottom: 1rem; }
.prose h2, .prose h3 { margin-top: 1.5rem; margin-bottom: 1rem; }

.stat-card { background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%); }

/* Buttons subtle micro-interactions */
.btn { transition: transform .05s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08); }

/* Card hover */
.card { transition: transform .15s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 .8rem 1.4rem rgba(0,0,0,.12); }

footer { 
	background: #fafbff; 
}

/* Footer responsive fixes */
@media (max-width: 767.98px) {
	footer {
		padding-bottom: 2rem !important;
		text-align: center;
	}
	footer .container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	footer .small {
		font-size: 0.85rem !important;
	}
}


/* Homepage hero image: no border/shadow, smaller size */
.hero-image {
	box-shadow: none !important;
	border: 0 !important;
	outline: 0 !important;
	border-radius: 0 !important;
	max-width: 420px;
	width: 70%;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Mobile hero image - small at top-left */
.hero-image-mobile {
	box-shadow: none !important;
	border: 0 !important;
	outline: 0 !important;
	border-radius: 8px !important;
	max-width: 80px;
	width: 80px;
	display: block;
	margin-left: 0;
	margin-right: auto;
	float: left;
	margin-left: 0;
}

/* Design tokens */
:root {
	--brand-primary: #0d6efd;
	--brand-secondary: #6c757d;
	--surface: #ffffffcc;
	--backdrop: rgba(255,255,255,0.55);
	--shadow-lg: 0 1rem 2rem rgba(0,0,0,.12);
	--radius-lg: 1rem;
}

/* Glass cards */
.glass {
	background: var(--surface);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border: 1px solid rgba(255,255,255,0.4);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

/* Gradient text utility */
.gradient-text {
	background: linear-gradient(90deg, #0d6efd, #6610f2);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Better prose */
.prose {
	color: #1f2937;
	font-size: .98rem;
	line-height: 1.85;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	hyphens: auto;
	overflow-wrap: anywhere;
}
.prose h1, .prose h2, .prose h3 { color: #0f172a; line-height: 1.6; }
.prose h1 { font-size: 1.5rem; margin: 1.25rem 0 .75rem; }
.prose h2 { font-size: 1.35rem; margin: 1.1rem 0 .6rem; }
.prose h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.prose p { margin-bottom: .9rem; }
.prose ul, .prose ol { padding-right: 1.2rem; margin-bottom: .9rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: .75rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); margin: .5rem 0; }
.prose blockquote {
    border-right: 4px solid #cfe2ff;
    background: #f8f9ff;
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin: .75rem 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.prose table th, .prose table td { border: 1px solid #e9ecef; padding: .5rem .75rem; }
.prose table th { background: #f8f9fa; font-weight: 600; }

/* Buttons */
.btn-gradient {
	background-image: linear-gradient(90deg, #0d6efd, #6610f2);
	color: #fff;
	border: 0;
}
.btn-gradient:hover { filter: brightness(1.05); }

/* Tables */
.table thead th { position: sticky; top: 0; background: #f8f9fa; z-index: 1; }
.table-hover tbody tr:hover { background-color: #f7fbff; }

/* Navbar subtle blur */
.navbar { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Dropdown menu styling */
.dropdown-menu {
	border-radius: 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
	padding: 0.5rem;
}

.dropdown-item {
	border-radius: 0.5rem;
	padding: 0.6rem 1rem;
	transition: all 0.2s ease;
	font-size: 0.95rem;
}

.dropdown-item:hover {
	background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(102, 16, 242, 0.05));
	color: #0d6efd;
	transform: translateX(-3px);
}

.dropdown-item i {
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.dropdown-item:hover i {
	opacity: 1;
}

/* Forms */
.form-control:focus { box-shadow: 0 0 0 .25rem rgba(13,110,253,.15); border-color: #86b7fe; }

/* Mobile app-like bottom bar */
.app-bottom-bar { position: fixed; right: 0; left: 0; bottom: 0; z-index: 1030; }
.app-bottom-inner {
	margin: 0 auto;
	max-width: 768px;
	background: #ffffffee;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-top: 1px solid rgba(0,0,0,.06);
	box-shadow: 0 -0.5rem 1rem rgba(0,0,0,.06);
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: .4rem .75rem calc(.4rem + env(safe-area-inset-bottom));
}
.app-bottom-item { color: #475569; text-align: center; font-size: .8rem; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .25rem .5rem; }
.app-bottom-item i { font-size: 1.2rem; line-height: 1; }
.app-bottom-item.active, .app-bottom-item:hover { color: var(--brand-primary); }

@media (max-width: 767.98px) {
	main { padding-bottom: 84px; }
	footer { margin-bottom: 74px; }
}

/* Modern fancy cards */
.card.glass {
	position: relative;
	border-radius: var(--radius-lg);
	border: 1px solid transparent;
	background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.9)) padding-box,
				linear-gradient(135deg, #e6f0ff, #f6e6ff) border-box;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.card.glass::before {
	content: "";
	position: absolute; inset: 0 -40% auto -40%; height: 2px;
	background: linear-gradient(90deg, #0d6efd, #6610f2, #0d6efd);
	opacity: .35;
	filter: blur(.6px);
}
.card.glass::after {
	content: "";
	position: absolute; inset: -20% -20% auto -20%; height: 140px;
	background: radial-gradient(60% 60% at 20% 0%, rgba(13,110,253,.12), transparent 60%);
	pointer-events: none;
}
.card.glass:hover {
	transform: translateY(-6px);
	box-shadow: 0 1.25rem 2rem rgba(13,110,253,.12);
}
.card.glass h3, .card.glass .h6 {
	margin-bottom: .35rem;
	transition: color .2s ease, transform .2s ease;
}
.card.glass:hover h3, .card.glass:hover .h6 { color: var(--brand-primary); transform: translateY(-1px); }
.card.glass .text-muted.small { color: #6b7280 !important; }

/* Make anchor-wrapped cards fully clickable and nice */
a.text-decoration-none > .card.glass { cursor: pointer; }
a.text-decoration-none:hover { text-decoration: none; }

/* FAQ Page Styles */
.hero-faq {
	background: radial-gradient(80% 100% at 50% 0%, #e7f1ff 0%, #ffffff 70%);
	min-height: 300px;
	display: flex;
	align-items: center;
}

.faq-icon-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, #0d6efd, #6610f2);
	border-radius: 50%;
	animation: float 3s ease-in-out infinite;
}

.faq-icon {
	font-size: 2.5rem;
	color: #fff;
}

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

/* FAQ Accordion Styles */
.glass-faq {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border: 1px solid rgba(13, 110, 253, 0.1);
	border-radius: 1rem;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: all 0.3s ease;
}

.glass-faq:hover {
	transform: translateY(-2px);
	box-shadow: 0 0.8rem 1.5rem rgba(13, 110, 253, 0.15);
	border-color: rgba(13, 110, 253, 0.3);
}

.glass-faq .accordion-button {
	background: transparent;
	border: 0;
	padding: 1.25rem 1.5rem;
	font-weight: 600;
	font-size: 1.05rem;
	color: #1f2937;
	transition: all 0.3s ease;
	box-shadow: none !important;
}

.glass-faq .accordion-button:not(.collapsed) {
	background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(102, 16, 242, 0.05));
	color: #0d6efd;
}

.glass-faq .accordion-button::after {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	transform: scale(1.1);
}

.glass-faq .accordion-button:hover {
	background: rgba(13, 110, 253, 0.05);
}

.glass-faq .accordion-button i {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.glass-faq .accordion-button:not(.collapsed) i {
	transform: scale(1.1);
}

.glass-faq .accordion-body {
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.5);
	border-top: 1px solid rgba(13, 110, 253, 0.1);
	color: #374151;
	line-height: 1.8;
}

.glass-faq .accordion-body p {
	margin-bottom: 1rem;
}

.glass-faq .accordion-body p:last-child {
	margin-bottom: 0;
}

.glass-faq .accordion-body ul,
.glass-faq .accordion-body ol {
	margin-bottom: 0;
	padding-right: 1.5rem;
}

.glass-faq .accordion-body li {
	margin-bottom: 0.75rem;
	color: #4b5563;
}

.glass-faq .accordion-body li:last-child {
	margin-bottom: 0;
}

.glass-faq .accordion-body strong {
	color: #0d6efd;
	font-weight: 600;
}

/* CTA Box */
.cta-box {
	background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(102, 16, 242, 0.05));
	border: 2px solid rgba(13, 110, 253, 0.1);
	transition: all 0.3s ease;
}

.cta-box:hover {
	transform: translateY(-4px);
	box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.12);
	border-color: rgba(13, 110, 253, 0.3);
}

.cta-box i {
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

/* Responsive FAQ */
@media (max-width: 767.98px) {
	.faq-icon-wrapper {
		width: 60px;
		height: 60px;
	}
	
	.faq-icon {
		font-size: 2rem;
	}
	
	.glass-faq .accordion-button {
		font-size: 0.95rem;
		padding: 1rem 1.25rem;
	}
	
	.glass-faq .accordion-button i {
		font-size: 1rem;
	}
	
	.glass-faq .accordion-body {
		padding: 1.25rem;
		font-size: 0.9rem;
	}
	
	.cta-box {
		padding: 2rem 1.5rem !important;
	}
}

/* Vulnerability Report Page Styles */
.report-hero {
	background: radial-gradient(80% 100% at 50% 0%, #fee2e2 0%, #ffffff 70%);
	min-height: 400px;
	display: flex;
	align-items: center;
}

.report-badge {
	animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.stat-mini {
	min-width: 140px;
	text-align: center;
	transition: all 0.3s ease;
}

.stat-mini:hover {
	transform: translateY(-4px);
	box-shadow: 0 0.8rem 1.5rem rgba(13, 110, 253, 0.15);
}

.stat-card {
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.stat-icon-circle {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 70px;
	min-height: 70px;
}

.chart-container {
	padding: 1rem;
}

/* Domain Cards */
.domain-card {
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.domain-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 1.2rem 2rem rgba(0, 0, 0, 0.15);
}

.domain-header {
	position: relative;
}

.domain-header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
}

.domain-body {
	background: rgba(255, 255, 255, 0.95);
}

.recommendation-item {
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.recommendation-item:hover {
	border-color: rgba(13, 110, 253, 0.2);
	transform: translateX(-4px);
	box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.1);
}

/* Progress bars custom styling */
.progress {
	border-radius: 10px;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
	border-radius: 10px;
	transition: width 1s ease-in-out;
}

/* Responsive Report */
@media (max-width: 767.98px) {
	.report-hero {
		min-height: 300px;
	}
	
	.stat-mini {
		min-width: 110px;
		font-size: 0.85rem;
	}
	
	.stat-mini i {
		font-size: 1.2rem !important;
	}
	
	.stat-card {
		margin-bottom: 1rem;
	}
	
	.stat-icon-circle {
		width: 60px;
		height: 60px;
	}
	
	.stat-icon-circle i {
		font-size: 1.5rem !important;
	}
	
	.icon-box {
		min-width: 50px;
		min-height: 50px;
	}
	
	.icon-box i {
		font-size: 1.5rem !important;
	}
	
	.chart-container {
		height: 300px !important;
		padding: 0.5rem;
	}
	
	.domain-header {
		padding: 1.5rem !important;
	}
	
	.domain-header i {
		font-size: 2rem !important;
	}
}


