/* RANKINGS FILTER BY CLASS */
.rankings-class-filter {
	display: inline-block;
	list-style-type: none;
	margin: 20px auto;
	padding: 10px 20px;
	border-radius: 10px;
}

.rankings-class-filter li {
	display: inline-block;
	transition: all 0.3s ease;
	margin-bottom: 10px;
}

.rankings-class-filter li:hover {
	filter: grayscale(0%);
}

.rankings-class-filter-selection {
	display: inline-block;
	width: 75px;
	text-align: center;
	color: #000000;
	font-size: 11px;
	cursor: pointer;
}

.rankings-class-filter-selection:hover {
	color: #000000 !important;
}

.rankings-class-filter-selection:hover img {
	filter: brightness(120%);
}

.rankings-class-filter-selection img {
	width: 40px;
	height: auto;
	border-radius: 50%;
	margin-bottom: 5px;
	transition: all 0.3s ease;
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.45);
}

.rankings-class-filter-grayscale {
	filter: grayscale(100%);
}

/* RANKINGS MODULE */
.rankings-table {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
}

.rankings-class-image {
	width: 30px;
	height: auto;
	box-shadow: 0 0 5px #666;
	border-radius: 0px;
}

.rankings-table tr td {
	border-bottom: 1px solid #e3e3e3;
	padding: 10px;
	font-size: 18px;
	vertical-align: middle !important;
	text-align: center;
}

.rankings-table-place {
	color: #666;
	font-weight: bold;
	font-size: 24px;
	text-align: center;
}

.rankings-table tr:first-child td {	
	color: #fbd181;
	font-size: 18px;
	font-family: dinnextw1g;
	border-bottom: 2px solid #fbd181;
}

.rankings-update-time {
	text-align: right;
	font-size: 11px;
	color: #ccc;
	padding: 10px 0px;
}

.rankings_menu {
	width: 100%;
	overflow: auto;
	text-align: center;
	margin-bottom: 10px;
}

.rankings_menu span {
	width: 100%;
	display: inline-block;
	padding: 10px 0px;
	color: #ccc;
	font-size: 24px;
}

.rankings_menu a {
	display: inline-block;
	width: 150px;
	border: 1px solid #cb9a56;
	text-align: center;
	padding: 2px 0px;
	margin: 2px;
	background: #ba8e50!important;
	border-radius: 2px;
	color: #fff;
}

.rankings_menu a.active {
	color: #333;
	border-color: #333;
}

.rankings_guild_logo tr td {
	border: 0px !important;
	padding: 0px !important;
	margin: 0px !important;
}

.rankings-gens-img {
	width: auto !important;
	height: 30px !important;
	border: 0 !important;
	box-shadow: 0 0 0px #000 !important;
	border-radius: 0px !important;
}

/* BOOTSTRAP */
.row {
	height: 440px;
	margin-right: -15px;
	margin-left: -15px;
}

.row2 {
	height: 440px;
	margin-right: -15px;
	margin-left: -15px;
}

.text-center {
	text-align: center;
}

.col-xs-3 {
	width: 25%;
	float: left;
	position: relative;
	min-height: 1px;
	padding-right: 15px;
	padding-left: 15px;
}

.col-xs-4 {
	width: 33.33333333%;
	float: left;
	position: relative;
	min-height: 1px;
	padding-right: 15px;
	padding-left: 15px;
}

/* NEWS MODULE */
.panel-news {
	margin-bottom: 30px;
	color: #333;
	border: 0px;
	border-radius: 0px;
	box-shadow: 0 0 0px #e3e3e3;
}

.panel-news .panel-heading {
	padding-top: 10px;
	padding-bottom: 10px;
}

.panel-news .panel-title {
	color: #000000;
	font-size: 24px;
	font-weight: bold;
}

.panel-news .panel-body {
	padding: 10px;
	color: #ffffff;
}

.panel-news .panel-footer {
	border-top: 2px solid #e7e7e7;
	font-style: italic;
	font-size: 12px;
	height: 40px;
	color: #fbd181;
}

/* PAYPAL */
.paypal-gateway-container {
	width: 100%;
}

.paypal-gateway-content {
	background: #fef2da;
	border: 3px solid #f79433;
	padding: 15px;
	overflow: auto;
	border-radius: 5px;
	font-weight: bold;
}

.paypal-gateway-logo {
	width: 100%;
	height: 100px;
	background: #fff9ec url('../img/paypal-logo-200-68.png') no-repeat center;
	background-size: contain;
	margin-bottom: 15px;
	border-radius: 5px;
}

.paypal-gateway-conversion-rate {
	margin: 0px auto;
	text-align: center;
	color: #000;
	font-size: 18px;
	padding: 10px 0px;
}

.paypal-gateway-form {
	width: 100%;
	margin: 20px auto;
	text-align: center;
}

.paypal-gateway-form div {
	display: inline-block;
	padding: 0px 10px;
	color: #000;
	font-size: 24px;
}

.paypal-gateway-form input[type=text] {
	width: 120px;
	font-size: 24px;
	border: 3px solid #f79433;
	border-radius: 5px;
	color: #f79433;
}

.paypal-gateway-continue {
	margin: 0px auto;
	text-align: center;
}

.paypal-gateway-continue input[type=submit] {
	background: url('../img/paypal-submit.jpg') no-repeat;
	width: 200px;
	height: 40px;
	border: 0px;
}

/* LANGUAGE SELECTOR */
.language-selector {
	position: relative;
	display: inline-block;
}

.language-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.language-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-1px);
}

.current-flag {
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
}

.current-lang {
	font-weight: 600;
	letter-spacing: 0.5px;
}

.arrow-down {
	transition: transform 0.3s ease;
}

.language-selector.active .arrow-down {
	transform: rotate(180deg);
}

.language-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 200px;
	background: rgba(30, 35, 50, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 8px 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	z-index: 1000;
}

.language-selector.active .language-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.language-dropdown li {
	margin: 0;
	padding: 0;
}

.language-dropdown a {
	display: flex;
	align-items: center;
	gap: 19px;
	padding: 11px 21px;
	color: #fbd181;
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 14px;
}

.language-dropdown a:hover {
	background: rgba(255, 255, 255, 0.1);
}

.language-dropdown a img {
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
}

.language-dropdown a.active {
	background: rgba(255, 255, 255, 0.15);
	font-weight: 600;
}

/* USER CONTROL PANEL MENU (CUSTOM) */
.topPanel-right {
	position: relative;
}

.topPanel-right .user-enter.main-item {
	position: relative;
	cursor: pointer;
	user-select: none;
}

.usercp-menu-custom {
	position: absolute;
	top: calc(100% + 10px);
	left: 20%;
	transform: translateX(-50%) translateY(-20px);
	min-width: 280px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border: 2px solid #334155;
	border-radius: 16px;
	padding: 12px 0;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
	z-index: 9999;
	pointer-events: none;
}

.usercp-menu-custom.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.usercp-menu-custom li {
	margin: 0;
	padding: 0;
}

.usercp-menu-custom li a {
	display: flex;
	align-items: center;
	padding: 14px 20px;
	color: #e2e8f0;
	text-decoration: none;
	transition: all 0.25s ease;
	font-weight: 500;
	font-size: 15px;
	border-left: 4px solid transparent;
	background: transparent !important;
}

.usercp-menu-custom li a:hover {
	transform: translateX(5px);
}

/* COLOR CLASSES */
.menu-gold a {
	border-left-color: #fbbf24;
	color: #fbbf24;
}
.menu-gold a:hover {
	background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 100%) !important;
}

.menu-green a {
	border-left-color: #10b981;
	color: #10b981;
}
.menu-green a:hover {
	background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%) !important;
}

.menu-purple a {
	border-left-color: #8b5cf6;
	color: #a78bfa;
}
.menu-purple a:hover {
	background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%) !important;
}

.menu-blue a {
	border-left-color: #3b82f6;
	color: #60a5fa;
}
.menu-blue a:hover {
	background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%) !important;
}

.menu-cyan a {
	border-left-color: #06b6d4;
	color: #22d3ee;
}
.menu-cyan a:hover {
	background: linear-gradient(90deg, rgba(6, 182, 212, 0.1) 0%, transparent 100%) !important;
}

.menu-orange a {
	border-left-color: #f97316;
	color: #fb923c;
}
.menu-orange a:hover {
	background: linear-gradient(90deg, rgba(249, 115, 22, 0.1) 0%, transparent 100%) !important;
}

.menu-red a {
	border-left-color: #ef4444;
	color: #f87171;
}
.menu-red a:hover {
	background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%) !important;
}

.menu-gray a {
	border-left-color: #64748b;
	color: #94a3b8;
}
.menu-gray a:hover {
	background: linear-gradient(90deg, rgba(100, 116, 139, 0.1) 0%, transparent 100%) !important;
}

.menu-pink a {
	border-left-color: #ec4899;
	color: #f9a8d4;
}
.menu-pink a:hover {
	background: linear-gradient(90deg, rgba(236, 72, 153, 0.1) 0%, transparent 100%) !important;
}

.menu-lime a {
	border-left-color: #84cc16;
	color: #a3e635;
}
.menu-lime a:hover {
	background: linear-gradient(90deg, rgba(132, 204, 22, 0.1) 0%, transparent 100%) !important;
}

/* SEPARATOR */
.menu-separator {
	height: 1px;
	background: linear-gradient(90deg, 
		transparent 0%, 
		rgba(100, 116, 139, 0.2) 20%, 
		rgba(100, 116, 139, 0.3) 50%, 
		rgba(100, 116, 139, 0.2) 80%, 
		transparent 100%
	);
	margin: 8px 20px;
}

/* ANIMATION */
.usercp-menu-custom.active li {
	animation: dropDown 0.4s ease forwards;
	opacity: 0;
}

.usercp-menu-custom.active li:nth-child(1) { animation-delay: 0.05s; }
.usercp-menu-custom.active li:nth-child(2) { animation-delay: 0.1s; }
.usercp-menu-custom.active li:nth-child(3) { animation-delay: 0.15s; }
.usercp-menu-custom.active li:nth-child(4) { animation-delay: 0.2s; }
.usercp-menu-custom.active li:nth-child(5) { animation-delay: 0.25s; }
.usercp-menu-custom.active li:nth-child(6) { animation-delay: 0.3s; }
.usercp-menu-custom.active li:nth-child(7) { animation-delay: 0.35s; }
.usercp-menu-custom.active li:nth-child(8) { animation-delay: 0.4s; }

@keyframes dropDown {
	from {
		opacity: 0;
		transform: translateY(-15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.usercp-menu-custom {
		min-width: 240px;
		left: auto;
		right: 0;
		transform: translateY(-20px);
	}
	
	.usercp-menu-custom.active {
		transform: translateY(0);
	}
	
	.usercp-menu-custom li a {
		padding: 12px 16px;
		font-size: 14px;
		gap: 12px;
	}
}

.credits-amount {
    color: #FFFF00;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

/* Строка баланса: слева текст, справа число+монетка */
.usercp-menu-custom .balance-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:10px 12px;
  text-decoration:none;
}

.usercp-menu-custom .balance-title{
  color:#ffd34a;            /* желтый как на примере */
  font-weight:600;
}

.usercp-menu-custom .balance-right{
  display:flex;
  align-items:center;
  gap:8px;
}

.usercp-menu-custom .balance-value{
  color:#ffffff;
  font-weight:700;
  min-width:24px;
  text-align:right;
}

.usercp-menu-custom .balance-coin{
  width:16px;
  height:16px;
  display:block;
}

.usercp-menu-custom li.has-submenu {
  position: relative;
}

.usercp-menu-custom .submenu {
  display: none;
  position: absolute;
  top: 0;
  min-width: 220px;
  z-index: 9999;
}

.usercp-menu-custom li.has-submenu:hover > .submenu,
.usercp-menu-custom li.has-submenu:focus-within > .submenu {
  display: block;
}

/* вылет влево без щели */
.usercp-menu-custom .submenu-left {
  right: 100%;
  left: auto;
}

/* "мостик" между li и submenu, чтобы hover не слетал */
.usercp-menu-custom li.has-submenu > .submenu-left::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;      /* мостик на стороне, где курсор "перелетает" */
  width: 12px;
  height: 100%;
}


/* (опционально) базовый вид подменю */
.usercp-menu-custom .submenu {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 0;
}

.usercp-menu-custom .submenu li a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
