/* ============================================
   KingOpinion V2 - Panel Dashboard
   Tailwind-first, custom overrides only
   ============================================ */

:root {
	--ko-navy-950: #0F172A;
	--ko-navy-900: #1E293B;
	--ko-navy-800: #334155;
	--ko-navy-700: #475569;
	--ko-navy-600: #64748B;
	--ko-navy-500: #5278A5;
	--ko-navy-400: #94A3B8;
	--ko-navy-300: #CBD5E1;
	--ko-navy-200: #E2E8F0;
	--ko-navy-100: #F1F5F9;
	--ko-navy-50: #F8FAFC;
	--ko-gold: #FFB800;
	--ko-gold-light: #FFD54F;
	--ko-gold-pale: #FFF3CD;
	--ko-money: #00D26A;
	--ko-money-dark: #00B85C;
	--ko-cta: #FF6B00;
	--ko-cta-hover: #E85D00;
	--ko-danger: #EF4444;
	--ko-sidebar-width: 272px;
	--ko-sidebar-collapsed: 72px;
	--ko-header-height: 56px;
}

/* ---- Global ---- */
html, body {
	overflow-x: hidden;
	max-width: 100%;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	background-color: #F1F5F9;
	color: #334155;
}

/* SVG inline (override Tailwind preflight which sets svg{display:block}) */
.ko-inline-svg svg,
svg.ko-inline { display: inline-block; vertical-align: middle; }

/* Survey rating stars row */
.ko-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	vertical-align: middle;
}
.ko-stars svg { display: block; }
.ko-stars-count {
	font-size: 11px;
	color: #94A3B8;
	margin-left: 4px;
}

a { color: var(--ko-navy-500); text-decoration: none; }
a:hover { color: var(--ko-navy-900); }

::selection {
	background-color: #DDE7F0;
	color: #22364F;
}

/* ---- Sidebar ---- */
.ko-sidebar {
	width: var(--ko-sidebar-width);
	/* iOS Safari : 100vh inclut la zone sous la barre d'URL → le bas (Langue,
	   Déconnexion) sort du viewport visible. On utilise 100svh (small viewport
	   height) qui correspond TOUJOURS à la zone visible. Fallback 100vh pour
	   les anciens navigateurs. */
	height: 100vh;
	height: 100svh;
	max-height: 100vh;
	max-height: 100svh;
	background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
	color: #fff;
	transition: width 0.3s ease, transform 0.3s ease;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1040;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.ko-sidebar::-webkit-scrollbar { width: 4px; }
.ko-sidebar::-webkit-scrollbar-track { background: transparent; }
.ko-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 10px; }
.ko-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

.ko-sidebar .sidebar-brand {
	height: 72px;
	display: flex;
	align-items: center;
	padding: 0 24px;
	position: relative;
}

.ko-sidebar .sidebar-brand::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 24px;
	right: 24px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ko-sidebar .sidebar-nav {
	list-style: none;
	/* padding-bottom : env(safe-area-inset-bottom) pour respecter le home
	   indicator iPhone X+ (sinon le dernier item "Déconnexion" passe
	   sous la barre du home indicator et reste inaccessible).
	   Le max(20px, ...) garantit un minimum sur les devices sans notch. */
	padding: 12px 0 max(20px, env(safe-area-inset-bottom));
	margin: 0;
}

.ko-sidebar .sidebar-nav .nav-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
	margin: 8px 24px;
}

.ko-sidebar .sidebar-nav .nav-section-label {
	padding: 16px 28px 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.25);
}

/* Nav links with pill icon background */
.ko-sidebar .sidebar-nav .nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	margin: 3px 14px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 12px;
	position: relative;
}

.ko-sidebar .sidebar-nav .nav-link .icon-pill {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	transition: all 0.2s ease;
	flex-shrink: 0;
	font-size: 16px;
}

.ko-sidebar .sidebar-nav .nav-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.ko-sidebar .sidebar-nav .nav-link:hover .icon-pill {
	background: rgba(255, 255, 255, 0.12);
	transform: scale(1.05);
}

.ko-sidebar .sidebar-nav .nav-link.active {
	color: #fff;
	background: rgba(255, 184, 0, 0.1);
}

.ko-sidebar .sidebar-nav .nav-link.active .icon-pill {
	background: linear-gradient(135deg, #FFB800, #FFD54F);
	color: #1E293B;
	box-shadow: 0 2px 8px rgba(255, 184, 0, 0.3);
}

.ko-sidebar .sidebar-nav .nav-link.active::before {
	content: '';
	position: absolute;
	left: -14px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 24px;
	background: linear-gradient(180deg, #FFB800, #FFD54F);
	border-radius: 0 3px 3px 0;
}

.ko-sidebar .sidebar-nav .nav-link .menu-text {
	white-space: nowrap;
}

.ko-sidebar .sidebar-nav .badge {
	font-size: 10px;
	padding: 2px 7px;
	margin-left: auto;
	background: var(--ko-danger);
	color: #fff;
	border-radius: 10px;
	font-weight: 600;
}

/* Submenu */
.ko-sidebar .sidebar-nav .nav-submenu {
	list-style: none;
	padding: 2px 0 4px;
	margin: 0 14px;
	display: none;
	background: rgba(0, 0, 0, 0.15);
	border-radius: 0 0 12px 12px;
}

.ko-sidebar .sidebar-nav .nav-item.open > .nav-submenu {
	display: block;
	animation: koSubmenuSlide 0.2s ease-out;
}

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

.ko-sidebar .sidebar-nav .nav-submenu .nav-link {
	padding: 8px 14px 8px 60px;
	margin: 0;
	font-size: 12.5px;
	border-radius: 0;
}

.ko-sidebar .sidebar-nav .nav-submenu .nav-link:hover {
	background: rgba(255, 255, 255, 0.04);
}

.ko-sidebar .sidebar-nav .nav-submenu .nav-link.active {
	background: rgba(255, 184, 0, 0.08);
}

.ko-sidebar .sidebar-nav .nav-submenu .nav-link.active::before { display: none; }

.ko-sidebar .sidebar-nav .menu-arrow {
	margin-left: auto;
	font-size: 12px;
	transition: transform 0.2s ease;
}

.ko-sidebar .sidebar-nav .nav-item.open > .nav-link .menu-arrow {
	transform: rotate(90deg);
}

/* Cash label */
.ko-sidebar .label.cash {
	background: linear-gradient(135deg, var(--ko-money), var(--ko-money-dark));
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 8px;
	margin-left: 4px;
	font-weight: 600;
}

/* Add mobile link */
.ko-sidebar .add-mobile-link { padding: 8px 14px; }
.ko-sidebar .add-mobile-link img { max-width: 180px; opacity: 0.85; transition: opacity 0.2s; }
.ko-sidebar .add-mobile-link img:hover { opacity: 1; }

/* Sidebar notif box */
.ko-sidebar .sidebar-notif-box {
	background: rgba(255, 184, 0, 0.1);
	border: 1px solid rgba(255, 184, 0, 0.2);
	border-radius: 12px;
	padding: 12px 14px;
	margin: 8px 14px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
}

.ko-sidebar .sidebar-notif-badge {
	background: linear-gradient(135deg, var(--ko-money), var(--ko-money-dark));
	color: #fff;
	display: inline-block;
	padding: 2px 8px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 600;
	margin-top: 6px;
}

.ko-sidebar .sidebar-notif-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	align-items: center;
}

.ko-sidebar .btn-notif-dismiss {
	color: rgba(255, 255, 255, 0.4);
	font-size: 16px;
}

.ko-sidebar .btn-notif-activate {
	background: linear-gradient(135deg, #FFB800, #FFD54F);
	color: #1E293B;
	padding: 4px 12px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 600;
}

/* ---- Sidebar Overlay (mobile) ---- */
.ko-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 1035;
}

.ko-sidebar-overlay.active { display: block; }

/* ---- Mobile Header ---- */
.ko-mobile-header {
	background: linear-gradient(135deg, #1E293B, #0F172A);
	color: #fff;
	padding: 0 16px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 1030;
}

.ko-mobile-header .btn-toggle {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
}

.ko-mobile-header .vignette {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--ko-danger);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---- Desktop Header ---- */
.ko-header {
	background: #fff;
	border-bottom: 1px solid #E2E8F0;
	padding: 0 24px;
	height: var(--ko-header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 20;
}

.ko-header .breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--ko-navy-600);
}

.ko-header .breadcrumb a { color: var(--ko-navy-400); }
.ko-header .breadcrumb a:hover { color: var(--ko-navy-900); }
.ko-header .breadcrumb .active { color: var(--ko-navy-800); font-weight: 500; }

.ko-header .user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(135deg, #FFB800, #FFD54F);
	color: #1E293B;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

/* ---- Footer ---- */
.ko-footer {
	padding: 16px 24px;
	border-top: 1px solid #E2E8F0;
	font-size: 12px;
	color: var(--ko-navy-400);
	background: #fff;
}

/* ---- Layout ---- */
.main-content {
	margin-left: var(--ko-sidebar-width);
	min-width: 0;
	max-width: calc(100% - var(--ko-sidebar-width));
	transition: margin-left 0.3s ease;
}
@media (max-width: 1023px) {
	.main-content { max-width: 100%; }
}

/* ---- Cards ---- */
.ko-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid #E2E8F0;
	padding: 24px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ---- Bloc Publicité (transparence Google AdSense / GDPR) ----
   Style aligné sur templates/ (surveoo) : border 2px de couleur marque
   + petit tag "Annonce publicitaire" en débordement haut-gauche.
   Discret mais clairement identifiable comme espace sponsorisé. */
.ko-ad-block {
	position: relative;
	margin-top: 36px; /* place pour le tag en débordement (20px) + respiration (16px) */
	padding: 18px 18px 14px;
	background: #fff;
	border: 2px solid #FFB800;
	border-radius: 0 12px 12px 12px; /* coin top-left carré pour le tag */
	text-align: center;
}
.ko-ad-block-tag {
	position: absolute;
	top: -20px;
	left: -2px; /* aligné sur la border 2px */
	background: #FFB800;
	color: #0F172A;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 3px 12px;
	border-radius: 4px 4px 0 0;
	text-transform: none;
}
.ko-ad-block > div,
.ko-ad-block > ins { max-width: 100%; }

.ko-card:hover {
	border-color: rgba(255, 184, 0, 0.3);
	box-shadow: 0 4px 24px rgba(255, 184, 0, 0.08);
}

.ko-card-gold {
	border-color: rgba(255, 184, 0, 0.25);
	box-shadow: 0 2px 12px rgba(255, 184, 0, 0.06);
}

/* ---- Hero Banner ---- */
.ko-hero {
	background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
	border-radius: 16px;
	padding: 28px 32px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.ko-hero::before {
	content: '';
	position: absolute;
	top: -30%;
	right: -10%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
	border-radius: 50%;
}

.ko-hero h1, .ko-hero h2 {
	position: relative;
	z-index: 1;
}

/* ---- Buttons ---- */
.ko-btn-primary {
	background: linear-gradient(135deg, #FFB800, #FFD54F);
	color: #1E293B;
	font-weight: 600;
	padding: 10px 24px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ko-btn-primary:hover {
	box-shadow: 0 4px 16px rgba(255, 184, 0, 0.35);
	transform: translateY(-1px);
}

.ko-btn-cta {
	background: linear-gradient(135deg, #FF6B00, #FF8C00);
	color: #fff;
	font-weight: 600;
	padding: 10px 24px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ko-btn-cta:hover {
	box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
	transform: translateY(-1px);
}

.ko-btn-outline {
	background: transparent;
	color: var(--ko-navy-600);
	font-weight: 500;
	padding: 8px 20px;
	border-radius: 12px;
	border: 1px solid #E2E8F0;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 13px;
}

.ko-btn-outline:hover {
	border-color: var(--ko-gold);
	color: var(--ko-navy-900);
	background: var(--ko-gold-pale);
}

/* ---- Progress Bar ---- */
.ko-progress {
	height: 10px;
	border-radius: 5px;
	background: #E2E8F0;
	overflow: hidden;
}

.ko-progress-bar {
	height: 100%;
	border-radius: 5px;
	background: linear-gradient(90deg, #FFB800, #FFD54F);
	transition: width 0.6s ease;
}

.ko-progress-bar.green {
	background: linear-gradient(90deg, #00D26A, #00F27D);
}

/* ---- DataTables override ---- */
table.dataTable {
	border-collapse: collapse !important;
	width: 100% !important;
}

table.dataTable thead th {
	font-size: 12px;
	font-weight: 600;
	color: var(--ko-navy-600);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-bottom: 2px solid #E2E8F0;
	padding: 12px 16px;
}

table.dataTable tbody td {
	font-size: 13px;
	color: var(--ko-navy-800);
	padding: 12px 16px;
	border-bottom: 1px solid #F1F5F9;
	vertical-align: middle;
}

table.dataTable tbody tr:hover {
	background: #FEFCE8 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
	background: linear-gradient(135deg, #FFB800, #FFD54F) !important;
	color: #1E293B !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	border-radius: 8px !important;
	border: 1px solid #E2E8F0 !important;
	color: var(--ko-navy-600) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: var(--ko-gold-pale) !important;
	border-color: var(--ko-gold) !important;
	color: var(--ko-navy-900) !important;
}

/* ---- Status Badges ---- */
.ko-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 600;
}

.ko-badge-success { background: #DCFCE7; color: #166534; }
.ko-badge-warning { background: #FEF3C7; color: #92400E; }
.ko-badge-danger { background: #FEE2E2; color: #991B1B; }
.ko-badge-info { background: #DBEAFE; color: #1E40AF; }
.ko-badge-gold { background: var(--ko-gold-pale); color: #92400E; }

/* ---- XP Level badges ---- */
.ko-level-bronze { background: linear-gradient(135deg, #CD7F32, #E6A856); color: #fff; }
.ko-level-silver { background: linear-gradient(135deg, #94A3B8, #CBD5E1); color: #1E293B; }
.ko-level-gold { background: linear-gradient(135deg, #FFB800, #FFD54F); color: #1E293B; }
.ko-level-platinum { background: linear-gradient(135deg, #5278A5, #7BA3D0); color: #fff; }
.ko-level-diamond { background: linear-gradient(135deg, #0F172A, #334155); color: #FFD54F; }

/* ---- Draw winner banner ---- */
.ko-draw-winner-banner {
	background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(255, 213, 79, 0.1));
	border: 1px solid rgba(255, 184, 0, 0.3);
	border-radius: 16px;
	padding: 16px 24px;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.ko-draw-winner-banner .winner-banner-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, #FFB800, #FFD54F);
	color: #1E293B;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.ko-draw-winner-banner .winner-claim-btn {
	background: linear-gradient(135deg, #FFB800, #FFD54F);
	color: #1E293B;
	border: none;
	padding: 8px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	margin-left: auto;
	transition: all 0.2s ease;
}

.ko-draw-winner-banner .winner-claim-btn:hover {
	box-shadow: 0 4px 16px rgba(255, 184, 0, 0.35);
}

/* ---- Social Proof Toast (matches social-proof.js classes) ---- */
.sv-social-toast {
	position: fixed;
	bottom: 24px;
	left: calc(var(--ko-sidebar-width) + 24px);
	z-index: 1041;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15), 0 2px 8px rgba(15, 23, 42, 0.06);
	border: 1px solid #F1F5F9;
	padding: 12px 14px 12px 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 340px;
	min-width: 260px;
	opacity: 0;
	transform: translateY(20px) scale(0.95);
	transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}

.sv-social-toast.show {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.sv-social-toast.hide {
	opacity: 0;
	transform: translateY(-8px) scale(0.97);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.sv-social-toast .toast-flag {
	width: 32px;
	height: 24px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sv-social-toast .toast-content {
	flex: 1;
	min-width: 0;
}

.sv-social-toast .toast-text {
	font-size: 13px;
	color: #334155;
	line-height: 1.35;
	margin-bottom: 2px;
}
.sv-social-toast .toast-text strong { color: #0F172A; font-weight: 700; }

.sv-social-toast .toast-loi {
	color: #94A3B8;
	font-size: 11px;
	font-weight: 500;
}

.sv-social-toast .toast-time {
	font-size: 11px;
	color: #94A3B8;
	line-height: 1.3;
}

.sv-social-toast .toast-amount {
	color: #00B85C;
	font-weight: 700;
	font-size: 12px;
}

.sv-social-toast .toast-close {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: transparent;
	border: none;
	color: #CBD5E1;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all 0.15s ease;
}
.sv-social-toast .toast-close:hover { background: #F1F5F9; color: #475569; }

/* Mobile: ultra-compact pill toast pinned to bottom, doesn't block content */
@media (max-width: 1023px) {
	.sv-social-toast {
		bottom: 8px;
		left: 50%;
		right: auto;
		max-width: calc(100vw - 24px);
		width: max-content;
		min-width: 0;
		padding: 5px 28px 5px 8px;
		gap: 7px;
		border-radius: 999px;
		box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18), 0 1px 3px rgba(15, 23, 42, 0.08);
		opacity: 0;
		transform: translateX(-50%) translateY(20px) scale(0.95);
	}
	.sv-social-toast.show {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
	.sv-social-toast.hide {
		opacity: 0;
		transform: translateX(-50%) translateY(6px) scale(0.97);
	}
	.sv-social-toast .toast-flag {
		width: 18px;
		height: 13px;
		border-radius: 3px;
	}
	.sv-social-toast .toast-content {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 6px;
		min-width: 0;
	}
	.sv-social-toast .toast-text {
		font-size: 11.5px;
		line-height: 1.2;
		margin-bottom: 0;
		max-width: 200px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.sv-social-toast .toast-loi { display: none; }
	/* Keep toast-time mounted (it wraps toast-amount), but visually hide the timestamp text via font-size:0; */
	.sv-social-toast .toast-time {
		font-size: 0;
		line-height: 0;
		flex: 0 0 auto;
		white-space: nowrap;
	}
	.sv-social-toast .toast-amount {
		font-size: 11.5px;
		line-height: 1.2;
		font-weight: 700;
		white-space: nowrap;
	}
	.sv-social-toast .toast-close {
		top: 50%;
		right: 4px;
		transform: translateY(-50%);
		width: 18px;
		height: 18px;
		font-size: 12px;
	}
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
	.ko-sidebar {
		transform: translateX(-100%);
	}

	.ko-sidebar.active {
		transform: translateX(0);
	}

	.main-content {
		margin-left: 0;
	}

	.ko-header { display: none; }
}

/* Hide mobile header on desktop */
@media (min-width: 1024px) {
	.ko-mobile-header { display: none !important; }
}

/* ---- SweetAlert2 override ---- */
.swal2-styled.swal2-confirm {
	background: linear-gradient(135deg, #FFB800, #FFD54F) !important;
	color: #1E293B !important;
	border-radius: 12px !important;
	font-weight: 600 !important;
	padding: 10px 24px !important;
}

.swal2-styled.swal2-cancel {
	border-radius: 12px !important;
}

/* ---- Quality Onboarding (premium 4-step modal) ---- */
.ko-onboarding {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.ko-onboarding.is-open { opacity: 1; }
.ko-onboarding.is-leaving { opacity: 0; transition: opacity 0.28s ease; }

.ko-onboarding-backdrop {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 20%, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.92));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.ko-onboarding-wrap {
	position: relative;
	width: 100%;
	max-width: 540px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	transform: translateY(20px) scale(0.96);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.ko-onboarding.is-open .ko-onboarding-wrap {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.ko-onboarding-card {
	position: relative;
	width: 100%;
	background: #fff;
	border-radius: 24px;
	padding: 44px 36px 28px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

/* Subtle gradient sheen at top of card */
.ko-onboarding-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #FFB800, #FFD54F, #FFB800);
	background-size: 200% 100%;
	animation: ko-onb-sheen 4s ease-in-out infinite;
}

@keyframes ko-onb-sheen {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* Dots indicator */
.ko-onboarding-dots {
	position: absolute;
	top: 22px;
	right: 24px;
	display: flex;
	gap: 7px;
}
.ko-onboarding-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #E2E8F0;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ko-onboarding-dot.is-done { background: #CBD5E1; }
.ko-onboarding-dot.is-active {
	background: #0F172A;
	width: 22px;
	border-radius: 4px;
}

/* Stage / steps */
.ko-onboarding-stage {
	position: relative;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ko-onboarding-step {
	position: absolute;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 8px;
}
.ko-onboarding-step.is-active { display: flex; }
.ko-onboarding-step.is-entering-right { animation: ko-onb-slide-in-right 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ko-onboarding-step.is-entering-left { animation: ko-onb-slide-in-left 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes ko-onb-slide-in-right {
	from { opacity: 0; transform: translateX(28px); }
	to { opacity: 1; transform: translateX(0); }
}
@keyframes ko-onb-slide-in-left {
	from { opacity: 0; transform: translateX(-28px); }
	to { opacity: 1; transform: translateX(0); }
}

/* Icon circle */
.ko-onboarding-icon {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin-bottom: 22px;
	position: relative;
	animation: ko-onb-icon-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ko-onboarding-icon::after {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1px solid currentColor;
	opacity: 0.15;
	animation: ko-onb-icon-ring 2.5s ease-in-out infinite;
}

@keyframes ko-onb-icon-pop {
	from { opacity: 0; transform: scale(0.7); }
	to { opacity: 1; transform: scale(1); }
}
@keyframes ko-onb-icon-ring {
	0%, 100% { opacity: 0.15; transform: scale(1); }
	50% { opacity: 0.05; transform: scale(1.08); }
}

.ko-onboarding-icon--amber {
	background: linear-gradient(135deg, #FEF3C7, #FDE68A);
	color: #B45309;
	box-shadow: 0 12px 32px rgba(180, 83, 9, 0.18);
}
.ko-onboarding-icon--green {
	background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
	color: #15803D;
	box-shadow: 0 12px 32px rgba(21, 128, 61, 0.18);
}
.ko-onboarding-icon--red {
	background: linear-gradient(135deg, #FEE2E2, #FECACA);
	color: #B91C1C;
	box-shadow: 0 12px 32px rgba(185, 28, 28, 0.18);
}
.ko-onboarding-icon--blue {
	background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
	color: #1D4ED8;
	box-shadow: 0 12px 32px rgba(29, 78, 216, 0.18);
}

/* Badge pill */
.ko-onboarding-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 14px;
	letter-spacing: -0.005em;
}
.ko-onboarding-badge i { font-size: 10px; }
.ko-onboarding-badge--amber { background: #FEF3C7; color: #92400E; }
.ko-onboarding-badge--green { background: #DCFCE7; color: #166534; }
.ko-onboarding-badge--red { background: #FEE2E2; color: #991B1B; }
.ko-onboarding-badge--blue { background: #DBEAFE; color: #1E3A8A; }

.ko-onboarding-title {
	font-size: 22px;
	font-weight: 800;
	color: #0F172A;
	line-height: 1.28;
	margin: 0 0 12px;
	letter-spacing: -0.025em;
	max-width: 100%;
}

.ko-onboarding-text {
	font-size: 14px;
	line-height: 1.65;
	color: #64748B;
	margin: 0;
	max-width: 440px;
}

/* Consequence list (step 3) — visual hierarchy: soft vs severe */
.ko-onboarding-consequences {
	list-style: none;
	padding: 0;
	margin: 14px 0 0;
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ko-onboarding-consequences li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 13px;
	background: #FEF2F2;
	border: 1px solid #FECACA;
	border-radius: 10px;
	font-size: 12.5px;
	color: #7F1D1D;
	text-align: left;
	line-height: 1.35;
}
.ko-onboarding-consequences-icon {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: #FECACA;
	color: #991B1B;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	flex-shrink: 0;
}
.ko-onboarding-consequences li.is-severe {
	background: linear-gradient(135deg, #FEE2E2, #FECACA);
	border-color: #DC2626;
	color: #7F1D1D;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
	animation: ko-onb-severe-pulse 3s ease-in-out infinite;
}
.ko-onboarding-consequences li.is-severe .ko-onboarding-consequences-icon {
	background: #DC2626;
	color: #fff;
}
.ko-onboarding-consequences li.is-severe strong { font-weight: 700; }

@keyframes ko-onb-severe-pulse {
	0%, 100% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12); }
	50% { box-shadow: 0 4px 18px rgba(220, 38, 38, 0.22); }
}

.ko-onboarding-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
	margin: 26px 0 20px;
}

/* Actions */
.ko-onboarding-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

.ko-onboarding-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid #E2E8F0;
	background: #fff;
	color: #475569;
	cursor: pointer;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: inherit;
}
.ko-onboarding-btn[hidden] { display: none; }
.ko-onboarding-btn i { font-size: 11px; }

.ko-onboarding-btn--ghost:hover {
	border-color: #CBD5E1;
	background: #F8FAFC;
	color: #0F172A;
}

.ko-onboarding-btn--primary {
	background: linear-gradient(135deg, #1E293B, #0F172A);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
	margin-left: auto;
}
.ko-onboarding-btn--primary:hover {
	background: linear-gradient(135deg, #334155, #1E293B);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.32);
}

.ko-onboarding-btn--cta {
	background: linear-gradient(135deg, #FFB800, #FFD54F);
	color: #1E293B;
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(255, 184, 0, 0.35);
	margin-left: auto;
}
.ko-onboarding-btn--cta:hover {
	color: #1E293B;
	background: linear-gradient(135deg, #FFD54F, #FFB800);
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(255, 184, 0, 0.45);
}

/* Progress label below card */
.ko-onboarding-progress {
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.ko-onboarding-progress strong { color: #fff; font-weight: 700; }

/* Mobile */
@media (max-width: 540px) {
	.ko-onboarding { padding: 12px; }
	.ko-onboarding-card { padding: 36px 22px 22px; border-radius: 22px; }
	.ko-onboarding-dots { top: 18px; right: 18px; }
	.ko-onboarding-stage { min-height: 340px; }
	.ko-onboarding-icon { width: 64px; height: 64px; font-size: 24px; margin-bottom: 18px; }
	.ko-onboarding-title { font-size: 19px; }
	.ko-onboarding-text { font-size: 13.5px; }
	.ko-onboarding-btn { padding: 10px 16px; font-size: 12.5px; }
	.ko-onboarding-divider { margin: 22px 0 18px; }
}

@media (max-width: 380px) {
	.ko-onboarding-btn { padding: 10px 12px; font-size: 12px; }
	.ko-onboarding-btn span { white-space: nowrap; }
}

/* ---- Notification Bar (mobile) ---- */
#kt_notif {
	position: sticky;
	bottom: 0;
	background: #fff;
	border-top: 1px solid #E2E8F0;
	padding: 12px 16px;
	z-index: 100;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

/* ---- FormValidation overrides ---- */
.fv-plugins-message-container .fv-help-block {
	font-size: 12px;
	color: var(--ko-danger);
	margin-top: 4px;
}

/* ---- Lang dropdown ---- */
.ko-lang-dropdown {
	position: relative;
}

.ko-lang-dropdown .dropdown-menu {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	max-height: 60vh;
	overflow-y: auto;
	padding: 4px;
}

.ko-lang-dropdown .dropdown-item {
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	color: var(--ko-navy-700);
}

.ko-lang-dropdown .dropdown-item:hover,
.ko-lang-dropdown .dropdown-item.active {
	background: var(--ko-gold-pale);
	color: var(--ko-navy-900);
}

/* ---- Misc ---- */
.gold-text {
	background: linear-gradient(135deg, #FFB800, #FFD54F);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.crown-icon {
	display: inline-block;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
