/* =========================================
   1. RESET & MAIN SETTINGS
   ========================================= */
* {
	box-sizing: border-box;
	text-rendering: optimizeLegibility;
}

body {
	font-family: 'Cinzel', serif, 'Segoe UI', Tahoma, Geneva, Verdana;
	margin: 0;
	padding: 0;
	color: #DCDCDC;
	line-height: 1.5;
	font-size: 14px;

	background: url('/images/bg3.png') no-repeat center center fixed;
	background-size: cover;
	background-color: #111111;

	padding-top: 60px;

	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: #181818;
}
::-webkit-scrollbar-thumb {
	background: #A0522D;
	border-radius: 4px;
}

.container {
	width: 100%;
	max-width: 960px;
	flex: 1;

	margin: 30px auto;
	padding: 25px;

	background: rgba(20, 20, 20, 0.95);
	border-radius: 10px;
	border: 1px solid #333333;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
	position: relative;

	display: flex;
	flex-direction: column;
}

.section-separator {
	width: 100%;
	height: 1px;
	background: linear-gradient(to right, rgba(0,0,0,0), #A0522D 25%, #A0522D 75%, rgba(0,0,0,0));
	margin: 30px 0;
	opacity: 0.7;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
	color: #FFFFFF;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	margin-top: 0;
	margin-bottom: 15px;
	padding-bottom: 8px;
	display: block;
	width: 100%;
	position: relative;
}

h1::after, h2::after {
	content: '';
	display: block;
	width: 100%;
	height: 2px;
	background: linear-gradient(to right, #A0522D, #222222 50%, #A0522D);
	margin-top: 4px;
	box-shadow: 0 1px 3px rgba(160, 82, 45, 0.2);
}

h1 { font-size: 2.0rem; font-weight: 700; }
h2 { font-size: 1.7rem; font-weight: 700; }
h3 { font-size: 1.3rem; color: #BBBBBB; }

p {
	margin-bottom: 12px;
	font-size: 0.95rem;
	color: #C0C0C0;
}

a {
	color: #A0522D;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

a:hover {
	color: #EAEAEA;
	text-decoration: underline;
}

/* =========================================
   3. HEADER & LOGO
   ========================================= */
.logo-container, .text-logo, .logo-img {
	display: none !important;
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar {
	background: rgba(10, 10, 10, 0.95);
	text-align: center;
	padding: 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	box-shadow: 0 2px 10px rgba(0,0,0,0.9);
	border-bottom: 2px solid #A0522D;
	backdrop-filter: blur(5px);
}

.navbar a {
	display: inline-block;
	padding: 14px 18px;
	color: #DCDCDC;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 1px;
	text-decoration: none;
	transition: all 0.3s ease;
	border-right: 1px solid #333;
	border-left: 1px solid #333;
	margin-right: -1px;
}

.navbar a i {
	margin-right: 6px;
	color: #777777;
	transition: color 0.3s;
}

.navbar a:first-child { border-left: none; }
.navbar a:last-child { border-right: none; }

.navbar a:hover {
	background: #252525;
	color: #A0522D;
	box-shadow: inset 0 -3px 0 #A0522D;
}

.navbar a:hover i {
	color: #A0522D;
}

/* =========================================
   5. FORMS & BUTTONS
   ========================================= */
form { margin-bottom: 12px; }

input[type="text"], input[type="password"], input[type="email"], select, input[type="number"] {
	width: 100%;
	padding: 8px 10px;
	margin: 6px 0 12px 0;
	border: 1px solid #444444;
	border-radius: 3px;
	background: #222222;
	color: #FFFFFF;
	font-size: 13px;
	transition: border-color 0.3s;
}

input:focus {
	outline: none;
	border-color: #A0522D;
	background: #333333;
}

button, .button {
	background: linear-gradient(180deg, #B86940 0%, #A0522D 100%);
	color: #FFFFFF;
	padding: 9px 20px;
	margin: 6px 0;
	border: 1px solid #66331C;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	transition: all 0.2s;
	display: inline-block;
	box-shadow: 0 3px 6px rgba(0,0,0,0.7);
}

button:hover, .button:hover {
	background: linear-gradient(180deg, #D49B6A 0%, #B86940 100%);
	transform: translateY(-2px);
	box-shadow: 0 5px 10px rgba(160, 82, 45, 0.8);
	color: #FFF;
}

button:active, .button:active { transform: translateY(1px); }

.small-btn {
	padding: 5px 10px;
	font-size: 11px;
	margin: 0;
}

.form-submit-button { /* Now used in register.php, change_password.php */
	width: 100%;
	margin-top: 10px;
}

.message-box {
	background: rgba(160, 82, 45, 0.15);
	border-left: 4px solid #A0522D;
	color: #F0E68C;
	padding: 10px 12px;
	margin-bottom: 15px;
	border-radius: 4px;
	font-size: 0.9rem;
}

.message-box.form-margin { /* Used for message boxes inside forms */
	margin-bottom: 15px;
}

/* =========================================
   6. TABLES
   ========================================= */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
	background: #222222;
	border-radius: 6px;
	overflow: hidden;
	font-size: 0.85rem;
}

th, td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #444444;
}

th {
	background-color: #333333;
	color: #FFFFFF;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8rem;
	border-bottom: 2px solid #A0522D;
}

tr:nth-child(even) { background-color: #2A2A2A; }
tr:hover { background-color: #3A3A3A; }

.status-online { color: #7FFF00; font-weight: bold; }
.ranking-table td:nth-child(1) { color: #A0522D; }
.value-white { color: #FFF; }

/* =========================================
   7. FEATURES SECTION
   ========================================= */
.features-container {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.features-sidebar {
	width: 220px;
	flex-shrink: 0;
	padding: 12px;
	background: #1A1A1A;
	border-radius: 6px;
	border: 1px solid #333333;
}

.features-sidebar ul { list-style: none; padding: 0; margin: 0; }

.section-btn {
	width: 100%;
	background: transparent;
	border: none;
	border-left: 3px solid transparent;
	color: #B0B0B0;
	padding: 10px 12px;
	font-size: 13px;
	transition: all 0.2s;
}

.section-btn:hover, .section-btn.active {
	background: #282828;
	color: #FFFFFF;
	border-left-color: #A0522D;
}

.features-main-content {
	flex-grow: 1;
	padding: 20px;
	background: #1A1A1A;
	border-radius: 6px;
	border: 1px solid #333333;
	overflow-wrap: break-word;
}

.features-section th {
	background: transparent;
	color: #A0522D;
	width: 28%;
	vertical-align: top;
	padding: 12px 10px 12px 0;
	font-size: 0.9rem;
	border: none;
	border-right: 2px solid #555555;
	border-bottom: 1px solid #444444;
	text-align: right;
	font-weight: 700;
	line-height: 1.3;
}

.features-section td {
	padding: 12px 0 12px 20px;
	color: #C0C0C0;
	line-height: 1.5;
	font-size: 0.9rem;
}

.features-section td b { color: #FFFFFF; font-weight: 700; }
.features-section ul { list-style-type: none; padding: 0; margin: 5px 0 0 0; }

.features-section li {
	display: flex;
	margin-bottom: 5px;
	color: #C0C0C0;
	align-items: flex-start;
}

.feature-section-icon { /* New - from features.php */
	color: #A0522D;
	margin-right: 10px;
}

.feature-icon-img {
	width: 30px;
	height: 30px;
	min-width: 30px;
	margin-right: 10px;
	border-radius: 3px;
	border: 1px solid #A0522D;
	padding: 2px;
	background: #333333;
	object-fit: contain;
}

.feature-big-img {
	width: auto;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 10px auto;
	border: 1px solid #A0522D;
	padding: 2px;
	background-color: #000;
	border-radius: 4px;
}

/* =========================================
   8. STATISTICS SECTION
   ========================================= */
.ranking-flex-container {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.ranking-main-content { flex-grow: 1; padding-right: 10px; }

.ranking-sidebar {
	width: 220px;
	flex-shrink: 0;
	padding: 15px;
	background: #1A1A1A;
	border-radius: 6px;
	border: 1px solid #333333;
}

.ranking-sidebar h2 {
	color: #FFFFFF;
	text-shadow: none;
	border-bottom: 1px solid #555555;
	padding-bottom: 8px;
	margin-bottom: 12px;
	font-size: 1.3rem;
}

.ranking-form { display: flex; flex-direction: column; gap: 6px; }

.sidebar-button {
	width: 100%;
	padding: 8px 12px;
	font-size: 13px;
	background: linear-gradient(180deg, #444444 0%, #222222 100%);
	color: #FFFFFF;
	border: 1px solid #555555;
}

.sidebar-button i { margin-right: 6px; color: #777777; }
.sidebar-button:hover { background: linear-gradient(180deg, #555555 0%, #333333 100%); color: #FFF; }

/* =========================================
   9. DOWNLOAD SECTION
   ========================================= */
.download-cards-container {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.download-card {
	flex: 0 1 30%;
	min-width: 220px;
	max-width: 300px;
	background: linear-gradient(160deg, #222222, #181818);
	padding: 20px 15px;
	border-radius: 8px;
	border: 1px solid #333333;
	border-bottom: none;
	box-shadow: 0 4px 0 #A0522D, inset 0 0 5px rgba(0, 0, 0, 0.5);
	text-align: center;
	transition: all 0.3s;
}

.download-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 0 #A0522D;
}

.download-card h3 { font-size: 1.3rem; color: #FFFFFF; margin-bottom: 8px; }
.download-card h3 i { margin-right: 8px; }
.download-card p { color: #C0C0C0; font-size: 0.85rem; min-height: 35px; }
.download-card .button { padding: 10px 0; font-size: 13px; width: 80%; }

.action-buttons.download-actions { /* New - from download.php */
	margin-top: 40px;
}

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
	.container, .hero-login-container { max-width: 95%; padding: 15px; }

	.navbar { position: relative; }
	body { padding-top: 0; }

	.navbar a { padding: 10px 8px; font-size: 11px; }

	.features-container, .ranking-flex-container { flex-direction: column; gap: 15px; }
	.features-sidebar, .ranking-main-content, .ranking-sidebar { width: 100%; padding-right: 0; }
	.download-card { min-width: 100%; }

	.hero-login-container { flex-direction: column; text-align: center; }
	.hero-form-wrapper { width: 100%; }
	.hero-subtitle { border-left: none; padding-left: 0; }
	.hero-features li { justify-content: center; }
	.hero-content { margin-bottom: 30px; padding-right: 0; }
	.hero-content h1 { font-size: 2.5rem; }

	/* Fix for character details responsiveness */
	.char-detail-container, .char-stats-wrapper {
		margin-left: 0 !important;
	}
}

/* =========================================
   11. FOOTER
   ========================================= */
.footer {
	text-align: center;
	padding: 1px;
	border-top: 3px solid #A0522D;
	background: #000000;
	color: #666666;
	font-size: 0.85rem;
	width: 100%;
	flex-shrink: 0;
}

/* =========================================
   12. HERO LOGIN SECTION
   ========================================= */
.hero-login-container {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;

	flex: 1;
	min-height: 60vh;
}

.hero-content {
	flex: 1;
	padding-right: 20px;
	animation: fadeIn 0.8s ease-in-out;
}

.hero-content h1 {
	font-size: 3.5rem;
	line-height: 1.1;
	margin-bottom: 15px;
	color: #FFF;
	text-shadow: 0 0 20px rgba(0,0,0,0.8);
	border: none;
}
.hero-content h1::after { display: none; }
.hero-content .highlight { color: #A0522D; display: inline-block; }

.hero-subtitle {
	font-size: 1.2rem; color: #CCC; margin-bottom: 25px;
	border-left: 3px solid #A0522D; padding-left: 15px;
}

.hero-features { list-style: none; padding: 0; }
.hero-features li {
	font-size: 1.1rem; color: #DCDCDC; margin-bottom: 10px;
	display: flex; align-items: center;
}
.hero-features li i {
	color: #7FFF00; margin-right: 10px;
	background: rgba(0,0,0,0.5); padding: 5px; border-radius: 50%;
	font-size: 0.8rem;
}

.hero-form-wrapper {
	flex: 0 0 400px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid rgba(160, 82, 45, 0.3);
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	transition: transform 0.3s;
}
.hero-form-wrapper:hover {
	transform: translateY(-5px);
	border-color: #A0522D;
	box-shadow: 0 15px 40px rgba(160, 82, 45, 0.2);
}

.login-header { text-align: center; margin-bottom: 20px; }
.login-header h2 { font-size: 1.8rem; border: none; margin-bottom: 5px; }
.login-header h2::after { display: none; }
.login-header p { font-size: 0.9rem; color: #888; }

.register-link { text-align: center; margin-top: 15px; font-size: 0.9rem; }

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.captcha-container {
	margin: 15px 0;
	display: flex;
	justify-content: center;
}

@media (max-width: 768px) {
	.hero-login-container {
		flex-direction: column !important;
		align-items: center !important;
	}
	.hero-content, .hero-form-wrapper {
		width: 100% !important;
		margin-left: 0 !important;
		flex: none !important;
		margin-bottom: 20px;
	}
}

/* =========================================
   13. ACCOUNT & CHARACTER DETAILS
   ========================================= */

.hero-login-container.is-dashboard,
.hero-login-container.char-detail-container {
	align-items: flex-start;
}

.account-sidebar {
	flex: 0 0 300px;
	padding-right: 0;
}

.account-sidebar .hero-form-wrapper {
	width: 100%;
	text-align: center;
}

.dashboard-header {
	margin-bottom: 15px;
}

.account-icon {
	font-size: 4rem;
	color: #A0522D;
	margin-bottom: 10px;
}

.account-name {
	font-size: 1.4rem;
	border: none;
	margin: 0;
	color: #FFF;
}

.account-subtitle {
	color: #888;
	font-size: 0.9rem;
}

.account-info-list {
	list-style: none;
	padding: 0;
	text-align: left;
	margin-bottom: 25px;
	border-top: 1px solid #444;
	border-bottom: 1px solid #444;
	padding: 15px 0;
}

.account-info-list li {
	margin-bottom: 8px;
	color: #CCC;
	display: flex;
	justify-content: space-between;
}

.account-info-list li i {
	width: 20px;
	color: #A0522D;
}

.account-info-list li b.value-online { color: #7FFF00; }
.account-info-list li b.value-hidden { color: #888; }

.form-dashboard-btn {
	margin-bottom: 10px;
}
.form-dashboard-btn .button, .button-logout {
	width: 100%;
}

.button-logout {
	background: linear-gradient(180deg, #444 0%, #222 100%);
	border-color: #555;
}

.character-list-wrapper, .char-stats-wrapper {
	flex: 1;
	margin-left: 30px;
	max-width: none;
}

.character-list-header {
	text-align: left;
	border-bottom: 1px solid #444;
	padding-bottom: 15px;
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.character-list-header h2 {
	font-size: 1.5rem;
	margin: 0;
	border: none;
}

.character-list-header p {
	margin: 0;
	font-size: 0.85rem;
	color: #888;
}

.character-list-header i {
	font-size: 2rem;
	color: #333;
}

.characters-table.no-margin {
	margin: 0;
}

.no-characters-message {
	padding: 40px;
	text-align: center;
	color: #666;
}

.no-characters-icon {
	font-size: 4rem;
	margin-bottom: 20px;
	display: block;
	opacity: 0.5;
}

.no-characters-message p.title {
	font-size: 1.1rem;
}

.no-characters-message p.subtitle {
	font-size: 0.9rem;
}

.char-action-form {
	margin: 0;
}

.char-status-online-text {
	font-size: 0.8rem;
	color: #555;
	font-style: italic;
}

/* --- Character Details Page --- */

.char-detail-sidebar {
	flex: 0 0 350px;
	padding-right: 0;
}

.char-detail-sidebar .hero-form-wrapper {
	width: 100%;
	text-align: center;
}

.char-message-wrapper {
	width: 100%;
	text-align: center;
}

.char-avatar-section {
	margin-bottom: 20px;
}

.char-avatar-frame {
	width: 100px;
	height: 100px;
	margin: 0 auto;
	background: #222;
	border: 2px solid #A0522D;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 15px rgba(160, 82, 45, 0.3);
}

.char-avatar-icon {
	font-size: 3rem;
	color: #CCC;
}

.char-name-title {
	font-size: 2rem;
	color: #FFF;
	margin-bottom: 5px;
	border: none;
}

.char-title-text {
	color: #A0522D;
	font-size: 1rem;
	font-style: italic;
	margin-bottom: 15px;
}

.char-title-none {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 15px;
}

.char-level-box {
	background: rgba(0,0,0,0.3);
	padding: 10px;
	border-radius: 6px;
	margin-bottom: 20px;
}

.char-level-value {
	font-size: 1.5rem;
	font-weight: bold;
	color: #FFF;
	display: block;
}

.char-class-value {
	color: #BBB;
}

.char-status-section {
	margin-bottom: 20px;
}

.char-status-online {
	font-size: 1.1rem;
	border: 1px solid #7FFF00;
	padding: 5px 15px;
	border-radius: 20px;
	background: rgba(127, 255, 0, 0.1);
	display: block;
}

.char-status-offline {
	color: #888;
	font-size: 1.1rem;
	border: 1px solid #666;
	padding: 5px 15px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.2);
	display: block;
}

.char-status-icon {
	font-size: 10px;
}

.char-back-button {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 20px;
}

.stats-header {
	text-align: left;
	border-bottom: 1px solid #444;
	padding-bottom: 15px;
	margin-bottom: 20px;
}

.stats-header h2 {
	font-size: 1.5rem;
	margin: 0;
	border: none;
}

.stats-header p {
	margin: 0;
	font-size: 0.85rem;
	color: #888;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}

.stat-card {
	background: rgba(0,0,0,0.4);
	padding: 15px;
	border-radius: 6px;
	border-left: 3px solid transparent;
}

.stat-card.stat-pvp { border-left-color: #7FFF00; }
.stat-card.stat-pk { border-left-color: #DC143C; }
.stat-card.stat-online { border-left-color: #1E90FF; }
.stat-card.stat-activity { border-left-color: #FFD700; }

.stat-card-icon {
	font-size: 1.2rem;
	float: right;
}

.stat-card-icon.color-pvp { color: #7FFF00; }
.stat-card-icon.color-pk { color: #DC143C; }
.stat-card-icon.color-online { color: #1E90FF; }
.stat-card-icon.color-activity { color: #FFD700; }

.stat-card-label {
	color: #888;
	font-size: 0.85rem;
	display: block;
}

.stat-card-value {
	color: #FFF;
	font-size: 1.4rem;
	font-weight: bold;
}

.stat-card-value-small {
	color: #FFF;
	font-size: 1.2rem;
	font-weight: bold;
}

.last-access-info {
	margin-top: 20px;
	padding: 15px;
	background: rgba(0,0,0,0.2);
	border-radius: 6px;
	display: flex;
	align-items: center;
}

.last-access-icon {
	color: #A0522D;
	font-size: 1.5rem;
	margin-right: 15px;
}

.last-access-info div span {
	display: block;
}

.last-access-info div span:first-child {
	color: #888;
	font-size: 0.85rem;
}

.last-access-info div span:last-child {
	color: #FFF;
	font-size: 1rem;
}

.troubleshoot-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #444;
}

.troubleshoot-section h3 {
	font-size: 1.1rem;
	color: #FFF;
	margin-bottom: 10px;
}

.troubleshoot-form {
	display: flex;
	gap: 10px;
	align-items: center;
}

.troubleshoot-text {
	margin: 0;
	color: #888;
	font-size: 0.9rem;
	flex: 1;
}

.button-repair {
	background: linear-gradient(180deg, #555 0%, #333 100%);
	border-color: #666;
}

/* =========================================
   14. RAID BOSS STATUS (FINAL VISUALS)
   ========================================= */

.rb-table td {
	vertical-align: middle;
}

.rb-table th:nth-child(2) {
	text-align: right; 
	width: 45%; 
}

.rb-boss-name {
	font-weight: bold;
	color: #A0522D;
	cursor: help; 
	position: relative; 
}

.rb-status-cell {
	width: 45%; 
	text-align: right; 
	padding-right: 12px; 
}

.rb-status-badge {
	padding: 4px 10px; 
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8rem; 
	display: inline-block;
	min-width: 120px; 
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	transition: all 0.2s;
}

.rb-status-up .rb-status-badge {
	background: rgba(127, 255, 0, 0.1);
	color: #7FFF00; 
	border: 1px solid #7FFF00;
}

.rb-status-down .rb-status-badge {
	background: rgba(160, 50, 50, 0.15); 
	color: #CD5C5C; 
	border: 1px solid #8B4513; 
}

.rb-status-down .rb-status-badge b {
	color: #CD5C5C; 
}

.boss-tooltip {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	top: 100%; 
	left: 50%;
	transform: translate(-50%, 5px); 
	z-index: 1000;
	background: #181818;
	border: 1px solid #A0522D;
	border-radius: 4px;
	padding: 10px;
	min-width: 350px; 
	text-align: left;
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none; 
	box-shadow: 0 5px 15px rgba(0,0,0,0.8);
	max-height: 400px; 
	overflow-y: auto; 
}

.rb-boss-name.tooltip-down:hover .boss-tooltip, 
.rb-boss-name:not(.tooltip-up):hover .boss-tooltip 
{
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 10px); 
}

.rb-boss-name.tooltip-up .boss-tooltip {
	top: auto; 
	bottom: 100%; 
	transform: translate(-50%, -5px); 
}

.rb-boss-name.tooltip-up:hover .boss-tooltip {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, -10px); 
}

/* =========================================
   15. ITEM TOOLTIP STYLES 
   ========================================= */

.drop-list-container {
	margin-top: 5px;
	padding-top: 5px;
	border-top: 1px solid #333333;
}

.item-tooltip-line {
	display: flex;
	align-items: center;
	margin-bottom: 4px;
	font-size: 0.8rem;
	color: #E0E0E0;
	line-height: 1.1;
}

.item-icon {
	width: 20px; 
	height: 20px;
	margin-right: 8px;
	border: 1px solid #555;
	border-radius: 2px;
}

.error-line {
	color: #FF0000;
}

/* =========================================
   16. DONATE & VOTE MANAGEMENT STYLES (General)
   ========================================= */

/* Styl przycisku Donate / Top-up w index.php */
.button-donate {
	background: linear-gradient(180deg, #38761d 0%, #274e13 100%); /* Green/Goldish Tone */
	border: 1px solid #548b2f;
}

.button-donate:hover {
	background: linear-gradient(180deg, #548b2f 0%, #38761d 100%);
	box-shadow: 0 5px 10px rgba(56, 118, 29, 0.8);
}

/* NOWY: Styl przycisku Vote / Top-up w index.php */
.button-vote {
	background: linear-gradient(180deg, #4b3e8a 0%, #302758 100%); /* Purple/Blue Tone for Vote */
	border: 1px solid #6c58a8;
}

.button-vote:hover {
	background: linear-gradient(180deg, #6c58a8 0%, #4b3e8a 100%);
	box-shadow: 0 5px 10px rgba(75, 62, 138, 0.8);
}

/* Wiersz Donate Coin w index.php */
.account-info-list li.donate-coin-row {
    font-weight: bold;
    color: #ffd700; /* Gold */
}

.account-info-list li.donate-coin-row i {
    color: #ffd700;
}

.account-info-list li.donate-coin-row b {
    color: #FFFFFF;
}

/* NOWY: Wiersz Vote Coin w index.php */
.account-info-list li.vote-coin-row {
    font-weight: bold;
    color: #9370DB; /* Medium Purple */
}

.account-info-list li.vote-coin-row i {
    color: #9370DB;
}
.account-info-list li.vote-coin-row b {
    color: #FFFFFF;
}

/* Styl dla donate_management.php/vote_management.php - KONTENERY */
.split-content {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.buy-section, .transfer-section {
    flex: 1;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box; 
}

.buy-section h4, .transfer-section h4 {
    font-size: 1.2rem;
    color: #A0522D;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

/* Wyróżnienie koloru nagłówka sekcji Vote */
.transfer-section h4.vote-header {
    color: #9370DB; 
}


/* Przycisk PayPal */
.button-paypal {
    width: 100%;
    background: linear-gradient(180deg, #009cde 0%, #0070ba 100%); 
    border-color: #00457c;
}
.button-paypal:hover {
    background: linear-gradient(180deg, #00b0f0 0%, #009cde 100%);
}

/* Poprawiony styl przycisku TRANSFER */
.button-transfer-action {
    width: 100%;
    background: linear-gradient(180deg, #B86940 0%, #A0522D 100%); 
    border-color: #66331C;
}
.button-transfer-action:hover {
    background: linear-gradient(180deg, #D49B6A 0%, #B86940 100%);
    box-shadow: 0 5px 10px rgba(160, 82, 45, 0.8);
}

/* NOWY: Styl dla akcji transferu Vote Coin, aby się odróżniał */
.button-vote-transfer-action {
    width: 100%;
    background: linear-gradient(180deg, #9370DB 0%, #6A5ACD 100%); 
    border-color: #483D8B;
}
.button-vote-transfer-action:hover {
    background: linear-gradient(180deg, #B0A0E8 0%, #9370DB 100%);
    box-shadow: 0 5px 10px rgba(147, 112, 219, 0.8);
}


.button-back-action {
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border-color: #555;
    padding: 8px 15px;
}
.button-back-action:hover {
    background: linear-gradient(180deg, #555 0%, #333 100%);
}

.coin-management-summary h3 {
    text-align: center;
    font-size: 1.5rem;
    border: none;
}
.coin-management-summary h3 strong {
    color: #ffd700;
    font-size: 1.8rem;
}

.exchange-rate {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #181818;
    text-align: center;
}

/* Responsywność */
@media (max-width: 768px) {
    .split-content {
        flex-direction: column;
    }
}

/* =========================================
   17. DONATE PACKAGES STYLES
   ========================================= */

.package-grid {
    display: grid;
    /* 4 kolumny na desktopie, minmax zapewnia, że się dopasują */
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
    gap: 15px;
    margin-top: 20px;
}

.paypal-package-form {
    margin: 0;
}

.package-item {
    /* Mała, zwarta karta */
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 120px;
}

.package-item:hover {
    border-color: #A0522D;
    box-shadow: 0 0 15px rgba(160, 82, 45, 0.6);
    transform: translateY(-3px);
}

.package-item.premium-package {
    /* Wyróżnienie pakietów z bonusem */
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.coins-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.coins-amount i {
    color: #ffd700;
    font-size: 1.3rem;
    margin-left: 3px;
}

.package-info {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.package-price-small {
    font-size: 1.1rem;
    color: #A0522D;
    font-weight: bold;
}

.package-bonus-label {
    color: #7FFF00; 
    font-weight: bold;
    text-transform: uppercase;
}

.package-button {
    /* Przyciski są małe, nie zajmują całej szerokości karty */
    width: 90%; 
    padding: 5px 10px;
    font-size: 12px;
    margin: 0;
    margin-top: auto; /* Wyrównanie przycisków do dołu */
}

/* =========================================
   18. VOTE PACKAGES STYLES (NOWA SEKCJA)
   ========================================= */

.vote-grid {
    display: grid;
    /* Dwie kolumny na desktopie, minmax zapewnia, że się dopasują */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    margin-top: 20px;
}

.vote-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vote-card:hover {
    border-color: #9370DB;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.6);
    transform: translateY(-3px);
}

.vote-card h5 {
    font-size: 1.1rem;
    color: #FFF;
    margin-bottom: 10px;
}

.vote-banner-img {
    width: 100%;
    height: auto;
    max-height: 90px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 4px;
    object-fit: contain;
    background-color: #222;
}

.vote-reward-label {
    color: #ffd700;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.vote-cooldown-timer {
    color: #FF6347; /* Tomato Red */
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.button-vote-action {
    width: 100%;
    margin-top: 10px;
    padding: 9px 20px; /* Standard button padding */
}

.button-vote-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #333 !important;
    border-color: #555 !important;
}

@media (max-width: 768px) {
    .package-grid {
        /* 2 kolumny na urządzeniach mobilnych, żeby nie były zbyt małe */
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .package-grid, .vote-grid {
        /* Pełna szerokość na bardzo małych telefonach */
        grid-template-columns: 1fr;
    }
}
