/* =====================================================
   🌌 LEADERBOARD CYBER CELESTIAL
===================================================== */

.leaderboard-card{

	border-radius:20px;

	background:
	radial-gradient(circle at top left, rgba(0,220,255,.12), transparent 45%),
	radial-gradient(circle at bottom right, rgba(0,140,255,.08), transparent 45%),
	linear-gradient(180deg,#07131f,#0b1828,#102033);

	border:1px solid rgba(0,220,255,.22);

	box-shadow:
	0 0 28px rgba(0,180,255,.12),
	inset 0 0 20px rgba(0,220,255,.05);

	margin-top:.8rem;

	overflow:hidden;
}


/* =====================================================
   🔷 HEADER
===================================================== */

.leaderboard-card-header{

	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:1rem;

	padding:1rem 1.2rem .95rem;

	border-bottom:1px solid rgba(0,220,255,.12);

	background:
	linear-gradient(90deg,
	rgba(0,220,255,.04),
	rgba(0,0,0,0),
	rgba(0,140,255,.04));
}

.leaderboard-title{

	margin:0;

	font-size:1.35rem;
	font-weight:900;

	color:#8fe9ff;

	text-transform:uppercase;
	letter-spacing:.05em;

	text-shadow:
	0 0 12px rgba(0,220,255,.45);
}

.leaderboard-subtitle{

	margin:.2rem 0 0;

	color:rgba(220,245,255,.68);

	font-size:.92rem;
}


/* =====================================================
   🏷️ TAG
===================================================== */

.leaderboard-tag{

	display:inline-flex;
	align-items:center;
	justify-content:center;

	padding:.45rem .95rem;

	font-size:.82rem;
	font-weight:800;

	background:
	linear-gradient(135deg,#00d9ff,#35b6ff);

	color:#041018;

	border-radius:999px;

	box-shadow:
	0 0 14px rgba(0,220,255,.35),
	inset 0 0 8px rgba(255,255,255,.18);

	border:1px solid rgba(255,255,255,.12);

	white-space:nowrap;
}


/* =====================================================
   📦 BODY
===================================================== */

.leaderboard-card-body{
	padding:1rem 1.2rem 1.2rem;
}


/* =====================================================
   📊 TABLE
===================================================== */

.leaderboard-table{

	font-size:.95rem;

	color:#dff8ff;

	min-width:100%;

	border-collapse:separate;
	border-spacing:0;
}

.leaderboard-table th,
.leaderboard-table td{

	padding:.95rem .85rem;
	vertical-align:middle;
}

.leaderboard-table thead th{

	color:#7fe4ff;

	font-weight:800;

	text-transform:uppercase;

	font-size:.82rem;

	letter-spacing:.08em;

	border-bottom:1px solid rgba(0,220,255,.12);
}


/* =====================================================
   🧊 ROWS
===================================================== */

.leaderboard-table tbody tr{

	background:
	linear-gradient(90deg,
	rgba(255,255,255,.02),
	rgba(255,255,255,.03));

	transition:.25s;
}

.leaderboard-table tbody tr:hover{

	background:
	linear-gradient(90deg,
	rgba(0,220,255,.08),
	rgba(0,140,255,.04));

	transform:scale(1.003);
}


/* =====================================================
   👑 TOP 1 2 3
===================================================== */

.leaderboard-table tbody tr:nth-child(1){

	background:
	linear-gradient(90deg,
	rgba(0,255,255,.14),
	rgba(0,180,255,.08));

	box-shadow:
	inset 0 0 18px rgba(0,255,255,.08);

	color:#ffffff;
}

.leaderboard-table tbody tr:nth-child(2){

	background:
	linear-gradient(90deg,
	rgba(120,220,255,.10),
	rgba(0,140,255,.05));

	color:#eafcff;
}

.leaderboard-table tbody tr:nth-child(3){

	background:
	linear-gradient(90deg,
	rgba(80,180,255,.08),
	rgba(0,100,255,.04));

	color:#dff8ff;
}


/* =====================================================
   📝 NOTE
===================================================== */

.leaderboard-note{

	font-size:.92rem;
	line-height:1.6;

	color:rgba(220,245,255,.82);
}

.leaderboard-note strong{

	color:#8fe9ff;

	text-shadow:
	0 0 8px rgba(0,220,255,.35);
}

.leaderboard-note .warning{

	color:#ff8ea1;

	font-weight:700;
}


/* =====================================================
   🌀 BADGE
===================================================== */

.leaderboard-badge{

	display:inline-block;

	padding:.28rem .7rem;

	border-radius:999px;

	background:
	linear-gradient(135deg,
	rgba(0,220,255,.18),
	rgba(0,140,255,.14));

	color:#dffcff;

	font-size:.78rem;
	font-weight:800;

	border:1px solid rgba(0,220,255,.18);

	box-shadow:
	0 0 10px rgba(0,220,255,.14);
}

/* =====================================================
   KIEM THAN THEME - visual overrides only
===================================================== */
.leaderboard-card{
	position:relative;
	border:1px solid rgba(216,169,61,.68);
	border-radius:20px 20px 7px 7px;
	background:
		linear-gradient(90deg,transparent,rgba(255,225,139,.55),transparent) top/68% 1px no-repeat,
		radial-gradient(circle at 12% 0,rgba(195,40,31,.24),transparent 34%),
		linear-gradient(155deg,#1c1b1a,#090a0b 72%);
	box-shadow:0 18px 40px rgba(0,0,0,.65),0 0 24px rgba(190,38,30,.18),inset 0 0 26px rgba(216,169,61,.05);
}

.leaderboard-card::before,
.leaderboard-card::after{
	content:"◆";
	position:absolute;
	top:12px;
	z-index:2;
	color:#e2b44d;
	font-size:10px;
	text-shadow:0 0 10px rgba(255,202,76,.75);
}
.leaderboard-card::before{left:11px;}
.leaderboard-card::after{right:11px;}

.leaderboard-card-header{
	min-height:96px;
	padding:1.15rem 1.45rem;
	border-bottom:1px solid rgba(216,169,61,.34);
	background:
		linear-gradient(90deg,rgba(105,20,20,.65),rgba(23,18,17,.88) 42%,rgba(65,14,16,.45));
}

.leaderboard-title{
	font-family:"Philosopher",serif;
	font-size:clamp(1.45rem,2.5vw,2rem);
	color:#ffe39a !important;
	letter-spacing:.09em;
	text-shadow:0 2px 2px #000,0 0 16px rgba(216,169,61,.48);
}

.leaderboard-subtitle{
	color:#d7c7a8;
	font-size:.86rem;
	font-weight:600;
	letter-spacing:.025em;
}

.leaderboard-tag{
	padding:.62rem 1.15rem;
	border:1px solid #d8a93d;
	border-radius:10px 10px 4px 4px;
	background:linear-gradient(180deg,#a92320,#4b1013);
	color:#fff0bd;
	box-shadow:0 7px 16px rgba(0,0,0,.5),inset 0 1px rgba(255,230,151,.2),0 0 14px rgba(205,43,34,.25);
	text-shadow:0 1px 2px #000;
}

.leaderboard-card-body{
	padding:1.15rem;
	background:linear-gradient(180deg,rgba(216,169,61,.025),transparent);
}

.leaderboard-card-body > div[style*="background-color"]{
	min-height:180px;
	padding:28px 20px !important;
	border:1px solid rgba(216,169,61,.34);
	border-radius:14px 14px 5px 5px !important;
	background:
		radial-gradient(circle at 50% 0,rgba(137,24,24,.18),transparent 48%),
		linear-gradient(145deg,#141414,#08090a) !important;
	box-shadow:inset 0 0 20px rgba(216,169,61,.04),0 10px 24px rgba(0,0,0,.48) !important;
}

.leaderboard-card-body > div[style*="background-color"] p:first-child{
	color:#ff776b !important;
	font-size:15px !important;
	line-height:1.6;
	text-shadow:0 0 10px rgba(218,43,35,.25);
}

.leaderboard-card-body > div[style*="background-color"] p:nth-child(2){
	color:#f0c75d !important;
	line-height:1.6;
}

.leaderboard-card-body > div[style*="background-color"] a{
	min-width:160px;
	padding:11px 24px !important;
	border:1px solid #d8a93d;
	border-radius:10px 10px 4px 4px !important;
	background:linear-gradient(180deg,#aa2420,#4b1013) !important;
	color:#fff0bd !important;
	box-shadow:0 8px 18px rgba(0,0,0,.55),inset 0 1px rgba(255,230,151,.18),0 0 14px rgba(208,42,33,.22);
	transition:transform .2s ease,filter .2s ease,box-shadow .2s ease;
}

.leaderboard-card-body > div[style*="background-color"] a:hover{
	transform:translateY(-2px);
	filter:brightness(1.14);
	box-shadow:0 10px 22px rgba(0,0,0,.62),0 0 22px rgba(220,48,37,.4);
}

.leaderboard-table{color:#f5ead7;}
.leaderboard-table thead th{color:#f2c75d;border-color:rgba(216,169,61,.3);}
.leaderboard-table tbody tr:hover{background:linear-gradient(90deg,rgba(154,29,27,.24),rgba(216,169,61,.06));}

@media(max-width:600px){
	.leaderboard-card-header{min-height:auto;padding:1rem;align-items:flex-start;flex-direction:column;gap:.7rem;}
	.leaderboard-title{font-size:1.35rem;}
	.leaderboard-subtitle{font-size:.72rem;line-height:1.55;}
	.leaderboard-tag{padding:.48rem .8rem;font-size:.7rem;}
	.leaderboard-card-body{padding:.65rem;}
	.leaderboard-card-body > div[style*="background-color"]{min-height:0;padding:22px 12px !important;}
	.leaderboard-card-body > div[style*="background-color"] p:first-child{font-size:13px !important;}
	.leaderboard-card-body > div[style*="background-color"] p:nth-child(2){font-size:12px !important;}
}

/* Shared readable colors for every leaderboard, including inline legacy text. */
body#huynhcuong.cv-inner .du-ranking.rank-reference .rank-table > tbody > tr > td {
    color: #4f270f !important;
    background: #fffbf3 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
body#huynhcuong.cv-inner .du-ranking.rank-reference .rank-table > tbody > tr:nth-child(1) > td { background: #fff0bf !important; }
body#huynhcuong.cv-inner .du-ranking.rank-reference .rank-table > tbody > tr:nth-child(2) > td { background: #edf2f5 !important; }
body#huynhcuong.cv-inner .du-ranking.rank-reference .rank-table > tbody > tr:nth-child(3) > td { background: #f8e1c9 !important; }
body#huynhcuong.cv-inner .du-ranking.rank-reference .rank-table > tbody > tr:hover > td { background: #ffe5ad !important; }
body#huynhcuong.cv-inner .du-ranking.rank-reference .rank-table > tbody > tr > td * {
    color: inherit !important;
    text-shadow: none !important;
}
body#huynhcuong.cv-inner .du-ranking.rank-reference .rank-table > tbody > tr:nth-child(1) > td:nth-child(2) { color: #9a300a !important; }