/* NAV Cookie Consent — branded (matches login popup design system)
   ------------------------------------------------------------------ */
:root {
	--ncc-primary: #1E5FAA;
	--ncc-accent: #00C9D7;
	--ncc-gradient: linear-gradient(135deg, #1E5FAA 0%, #00C9D7 100%);
	--ncc-bg: #FFFFFF;
	--ncc-bg-soft: #F5F9FC;
	--ncc-fg: #1E5FAA;
	--ncc-muted: #6B8AAF;
	--ncc-border: #E0EAF2;
	--ncc-overlay: rgba(0, 100, 130, 0.5);
	--ncc-shadow-btn: 0 4px 12px rgba(30, 95, 170, 0.2);
	--ncc-shadow-btn-hover: 0 6px 16px rgba(30, 95, 170, 0.3);
	--ncc-shadow-modal: 0 20px 60px rgba(0, 100, 130, 0.25);
	--ncc-shadow-banner: 0 -8px 32px rgba(0, 100, 130, 0.12);
	--ncc-radius-card: 12px;
	--ncc-radius-btn: 10px;
	--ncc-radius-modal: 16px;
	--ncc-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--ncc-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ncc-banner,
.ncc-modal-overlay {
	font-family: raleway, Arial, sans-serif;
	color: #1E5FAA;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.ncc-banner *,
.ncc-modal-overlay * {
	box-sizing: border-box;
}

/* ---------- Banner ---------- */
.ncc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	background: var(--ncc-bg);
	border: 1px solid var(--ncc-border);
	border-radius: var(--ncc-radius-modal);
	box-shadow: var(--ncc-shadow-banner);
	padding: 22px 26px;
	max-width: 1180px;
	margin: 0 auto;
	transform: translateY(140%);
	opacity: 0;
	transition: transform 0.4s var(--ncc-bounce), opacity 0.3s var(--ncc-ease);
}

.ncc-banner.ncc-visible {
	transform: translateY(0);
	opacity: 1;
}

.ncc-banner-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}

.ncc-banner-icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(30, 95, 170, 0.08), rgba(0, 201, 215, 0.08));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ncc-primary);
}

.ncc-banner-icon svg {
	width: 26px;
	height: 26px;
}

.ncc-banner-text {
	flex: 1 1 320px;
	min-width: 0;
}

.ncc-banner-title {
	margin: 0 0 4px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--ncc-primary);
	letter-spacing: -0.01em;
}

.ncc-banner-desc {
	margin: 0;
	color: var(--ncc-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

.ncc-banner-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

/* ---------- Buttons ---------- */
.ncc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border-radius: var(--ncc-radius-btn);
	border: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
	transition: all 0.3s var(--ncc-ease);
	white-space: nowrap;
	letter-spacing: 0.005em;
}

.ncc-btn:focus-visible {
	outline: 2px solid var(--ncc-accent);
	outline-offset: 3px;
}

.ncc-btn-primary {
	background: var(--ncc-gradient);
	color: #ffffff;
	box-shadow: var(--ncc-shadow-btn);
	min-width: 150px;
}

.ncc-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--ncc-shadow-btn-hover);
}

.ncc-btn-primary:active {
	transform: translateY(0);
}

.ncc-btn-secondary {
	background: #ffffff;
	color: var(--ncc-primary);
	border: 2px solid var(--ncc-accent);
	padding: 12px 22px;
	min-width: 150px;
}

.ncc-btn-secondary:hover {
	background: rgba(0, 201, 215, 0.08);
}

.ncc-btn-link {
	background: transparent;
	color: var(--ncc-muted);
	border: 1px solid var(--ncc-border);
}

.ncc-btn-link:hover {
	background: var(--ncc-bg-soft);
	color: var(--ncc-primary);
	border-color: var(--ncc-accent);
}

/* ---------- Modal ---------- */
.ncc-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--ncc-overlay);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.2s var(--ncc-ease);
}

.ncc-modal-overlay.ncc-visible {
	display: flex;
	opacity: 1;
}

.ncc-modal {
	background: var(--ncc-bg);
	color: var(--ncc-fg);
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: var(--ncc-radius-modal);
	padding: 32px;
	position: relative;
	box-shadow: var(--ncc-shadow-modal);
	transform: scale(0.95);
	opacity: 0;
	transition: transform 0.3s var(--ncc-ease), opacity 0.3s var(--ncc-ease);
}

.ncc-modal-overlay.ncc-visible .ncc-modal {
	transform: scale(1);
	opacity: 1;
}

.ncc-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--ncc-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s var(--ncc-ease), color 0.2s var(--ncc-ease);
}

.ncc-modal-close:hover {
	background: var(--ncc-bg-soft);
	color: var(--ncc-primary);
}

.ncc-modal-close svg {
	width: 18px;
	height: 18px;
}

.ncc-modal-header {
	border-bottom: 1px solid var(--ncc-border);
	padding-bottom: 16px;
	margin-bottom: 24px;
	padding-right: 36px;
}

.ncc-modal-title {
	margin: 0 0 6px 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--ncc-primary);
	letter-spacing: -0.015em;
}

.ncc-modal-desc {
	margin: 0;
	color: var(--ncc-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

.ncc-cat {
	background: var(--ncc-bg-soft);
	border: 1px solid var(--ncc-border);
	border-radius: var(--ncc-radius-card);
	padding: 16px;
	margin-bottom: 12px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	transition: border-color 0.2s var(--ncc-ease);
}

.ncc-cat:hover {
	border-color: var(--ncc-accent);
}

.ncc-cat-locked {
	opacity: 0.85;
	background: linear-gradient(135deg, rgba(30, 95, 170, 0.05), rgba(0, 201, 215, 0.05));
}

.ncc-cat-locked:hover {
	border-color: var(--ncc-border);
}

.ncc-cat-text {
	flex: 1;
	min-width: 0;
}

.ncc-cat-title {
	font-weight: 600;
	margin: 0 0 4px 0;
	font-size: 16px;
	color: var(--ncc-primary);
	letter-spacing: -0.005em;
}

.ncc-cat-desc {
	margin: 0;
	color: var(--ncc-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

/* Toggle switch */
.ncc-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	flex-shrink: 0;
	margin-top: 2px;
}

.ncc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ncc-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: var(--ncc-border);
	border-radius: 13px;
	transition: background 0.25s var(--ncc-ease);
}

.ncc-slider::before {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	left: 2px;
	bottom: 2px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 100, 130, 0.2);
	transition: transform 0.25s var(--ncc-ease);
}

.ncc-switch input:checked + .ncc-slider {
	background: var(--ncc-gradient);
}

.ncc-switch input:checked + .ncc-slider::before {
	transform: translateX(22px);
}

.ncc-switch input:disabled + .ncc-slider {
	background: var(--ncc-gradient);
	opacity: 0.55;
	cursor: not-allowed;
}

.ncc-switch input:focus-visible + .ncc-slider {
	outline: 2px solid var(--ncc-accent);
	outline-offset: 3px;
}

.ncc-modal-footer {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--ncc-border);
}

.ncc-modal-footer .ncc-btn {
	flex: 1 1 0;
	min-width: 0;
}

.ncc-modal-link {
	display: inline-block;
	margin-top: 16px;
	font-size: 13px;
	color: var(--ncc-primary);
	text-decoration: none;
	border-bottom: 1px dashed var(--ncc-accent);
	padding-bottom: 1px;
	transition: color 0.2s var(--ncc-ease);
}

.ncc-modal-link:hover {
	color: var(--ncc-accent);
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
	.ncc-banner {
		left: 12px;
		right: 12px;
		bottom: 12px;
		padding: 18px 18px 20px;
		border-radius: 14px;
	}

	.ncc-banner-inner {
		gap: 16px;
	}

	.ncc-banner-icon {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
	}

	.ncc-banner-icon svg {
		width: 22px;
		height: 22px;
	}

	.ncc-banner-title {
		font-size: 16px;
	}

	.ncc-banner-desc {
		font-size: 13.5px;
	}

	.ncc-banner-actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.ncc-banner-actions .ncc-btn {
		width: 100%;
		min-width: 0;
		padding: 13px 18px;
	}

	.ncc-modal {
		padding: 24px 20px;
		border-radius: 14px;
	}

	.ncc-modal-title {
		font-size: 20px;
	}

	.ncc-modal-footer {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ncc-banner,
	.ncc-modal,
	.ncc-modal-overlay,
	.ncc-btn,
	.ncc-slider,
	.ncc-slider::before {
		transition: none !important;
	}

	.ncc-btn-primary:hover {
		transform: none;
	}
}
