.box_aff {
	background: #1a1a1a;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 0 15px rgba(246, 228, 104, 0.2);
	margin: auto;
	color: rgb(246, 228, 104);
	border: 1px solid rgb(246, 228, 104);
    position: relative;
}

.box_aff h5 {
	position: absolute;
	top: -16px;
	left: 0px;
	right: 0px;
	background: rgb(246, 228, 104);
	color: #111;
	width: 300px;
	margin: auto;
	border-radius: 5px;
	font-size: 18px;
	padding: 5px 3px;
}

.aff_link_input {
	width: 100%;
	padding: 12px;
	border: 1px solid rgb(246, 228, 104);
	border-radius: 8px;
	font-size: 16px;
	margin-bottom: 10px;
	background-color: #000;
	color: rgb(246, 228, 104);
}
.copy_btn {
	background: linear-gradient(to right, rgb(246, 228, 104), rgb(225, 181, 52));
	color: #000;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
}
.copy_btn:hover {
	background: linear-gradient(to right, rgb(225, 181, 52), rgb(165, 111, 33));
}
.tip {
	margin-top: 20px;
	background: rgba(246, 228, 104, 0.1);
	padding: 12px;
	border-left: 5px solid red;
	color: #fff;
	text-align: left;
}
.stats-box {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin-top: 20px;
}
.stat-card {
	background: #000;
	border: 1px solid rgb(246, 228, 104);
	border-radius: 10px;
	padding: 20px;
	flex: 1 1 200px;
	max-width: 240px;
	text-align: center;
	box-shadow: 0 0 10px rgba(246, 228, 104, 0.2);
	transition: transform 0.3s ease;
}
.stat-card:hover {
	transform: translateY(-5px);
}
.stat-card .icon {
	font-size: 28px;
	margin-bottom: 10px;
}
.stat-card .label {
	font-size: 15px;
	color: rgb(225, 181, 52);
	margin-bottom: 5px;
}
.stat-card .value {
	font-size: 20px;
	font-weight: bold;
	color: rgb(246, 228, 104);
}

.history-table-container {
	overflow-x: auto;
	margin-top: 20px;
	border: 1px solid rgb(246, 228, 104);
	border-radius: 10px;
}

.history-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 400px;
	background-color: #000;
	color: rgb(246, 228, 104);
	font-size: 15px;
}

.history-table thead {
	background-color: #1a1a1a;
}

.history-table th, .history-table td {
	padding: 12px 15px;
	text-align: center;
	border-bottom: 1px solid rgba(246, 228, 104, 0.2);
}

.history-table th {
	font-weight: bold;
	color: rgb(225, 181, 52);
}

.success {
	color: rgb(165, 111, 33);
	font-weight: bold;
}

.pending {
	color: rgb(225, 181, 52);
	font-weight: bold;
}

.stat-card.w1002 {
	flex: 1 1 100%;
	max-width: 100%;
}
.reward-box {
	background: #1a1a1a;
	padding: 20px;
	border-radius: 12px;
	color: rgb(246, 228, 104);
	box-shadow: 0 0 15px rgba(246, 228, 104, 0.1);
	margin-bottom: 20px;
  	position: relative;
	border: 1px solid rgb(246, 228, 104);
}

.reward-label {
	color: rgb(225, 181, 52);
	position: absolute;
	top: -11px;
	left: 0px;
	right: 0px;
	background: rgb(246, 228, 104);
	color: #111;
	width: 150px;
	margin: auto;
	border-radius: 5px;
	font-size: 14px;
}

.reward-value {
	font-size: 48px;
	font-weight: bold;
	color: rgb(246, 228, 104);
	margin: 0;
}

.reward-value small {
	font-size: 14px;
	color: rgb(225, 181, 52);
}

.reward-link {
	display: inline-block;
	margin-top: 5px;
	margin-bottom: 15px;
	color: rgb(225, 181, 52);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.reward-link:hover {
	color: rgb(246, 228, 104);
}

.progress {
    background: #333;
    border-radius: 12px;
    overflow: hidden;
    height: 30px;
    box-shadow: 0 0 8px rgba(246, 228, 104, 0.5);
    border: 1px solid rgb(246, 228, 104);
    position: relative;
}

.progress[data-toggle="tooltip"] {
    cursor: pointer;
}

.progress-bar {
    background: linear-gradient(90deg, #f6e468, #e1b534);
    height: 100%;
    line-height: 30px;
    color: #111;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(246, 228, 104, 0.7);
    transition: width 0.5s ease-in-out;
    border-radius: 12px 0 0 12px;
}

.progress-bar[style*="width: 100%"] {
    border-radius: 12px;
}

.box_aff .modal-content {
    background: #333;
}

.box_aff .modal-header {
    border-bottom: 1px solid #555;
}

.box_aff .modal-footer {
    border-top: 1px solid #555;
}

.box_aff .modal-body table {
	font-weight: normal;
}

.box_aff .modal-body table th {
	border: 1px solid #555;
	font-size: 14px;
	color: #ddd;
	background: #1a1a1a;
}

.box_aff .modal-body table td {
	border: 1px solid #555;
	color: #eee;
}

.text_gold {
	color: rgb(246, 228, 104);
}

@media (max-width: 517px) {
	.stat-card {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

@media (max-width: 992px) {
	.stat-card.w100 {
		flex: 1 1 100%;
		max-width: 100%;
	}
}