/* Logged-in history-page shell */
.history-page {
	width: var(--layout-content);
	margin: 0 auto;
	box-sizing: border-box;
	color: #e8e8e8;
}
.history-page .history-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 10px 0 0;
	padding: 10px 14px;
	background: var(--site-panel);
	border: 1px solid var(--site-border);
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	box-sizing: border-box;
}
.history-page .history-header-title {
	color: #2fe36a;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}
.history-page .history-tabs {
	width: 100%;
	margin: 0;
	padding: 0 6px;
	border: 1px solid var(--site-border);
	border-top: none;
	border-bottom: 1px solid var(--site-border);
	background: var(--site-panel);
	box-sizing: border-box;
}
.history-page .history-tab-link {
	display: inline-block;
	color: #bdbdbd;
	text-decoration: none;
	padding: 11px 14px 9px;
	font-size: 11px;
	font-weight: bold;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.history-page .history-tab-link.active,
.history-page .history-tab-link:hover {
	color: #2fe36a;
	border-bottom-color: #2fe36a;
	background: transparent;
}
.history-page .history-tab-link .red {
	color: #ff2200;
	font-weight: bold;
}
.history-page .history-panel {
	width: 100%;
	border: 1px solid var(--site-border);
	border-top: none;
	background: var(--site-panel);
	border-radius: 0 0 10px 10px;
	box-sizing: border-box;
	padding-bottom: 4px;
}
.history-page .history-subtitle {
	padding: 14px 16px 0;
	color: #2fe36a;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.history-page .history-inline-message {
	padding: 10px 16px 0;
}
.history-page .history-inline-message .success,
.history-page .history-inline-message .error {
	display: block;
	padding: 8px 10px;
	border: 1px solid var(--site-border);
	background: var(--site-panel-2);
}
.history-page .history-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0 16px 12px;
}
.history-page .history-summary-all,
.history-page .history-summary-compact {
	flex-wrap: nowrap;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
	border-radius: 8px;
	padding: 14px 0;
	margin: 0 16px 12px;
	box-sizing: border-box;
}
.history-page .history-summary-all .history-summary-card,
.history-page .history-summary-compact .history-summary-card {
	flex: 1 1 0;
	min-width: 0;
}
.history-page .history-summary-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 2px 18px;
	border: none;
	background: transparent;
	box-shadow: none;
	border-right: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 0;
}
.history-page .history-summary-card:last-child {
	border-right: none;
}
.history-page .history-summary-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: bold;
	line-height: 1;
	color: #ffffff;
}
.history-page .history-icon-deposit {
	background: rgba(47, 227, 106, 0.14);
	border: none;
}
.history-page .history-icon-deposit::before {
	content: '$';
	color: #2fe36a;
}
.history-page .history-icon-spent {
	background: rgba(255, 34, 0, 0.14);
	border: none;
}
.history-page .history-icon-spent::before {
	content: '-';
	color: #ff2200;
	font-size: 18px;
}
.history-page .history-icon-time {
	background: rgba(90, 159, 212, 0.16);
	border: none;
}
.history-page .history-icon-time::before {
	content: '\23F1';
	color: #9fd4ff;
	font-size: 14px;
}
.history-page .history-icon-vip {
	background: rgba(168, 108, 255, 0.16);
	border: none;
}
.history-page .history-icon-vip::before {
	content: '\2605';
	color: #d4a5ff;
	font-size: 14px;
}
.history-page .history-icon-success {
	background: rgba(47, 227, 106, 0.14);
	border: none;
}
.history-page .history-icon-success::before {
	content: '\2713';
	color: #2fe36a;
	font-size: 15px;
}
.history-page .history-icon-order {
	background: rgba(255, 184, 77, 0.14);
	border: none;
}
.history-page .history-icon-order::before {
	content: '\25A1';
	color: #ffd27a;
	font-size: 13px;
}
.history-page .history-icon-check {
	background: rgba(74, 163, 255, 0.16);
	border: none;
}
.history-page .history-icon-check::before {
	content: '\2714';
	color: #9fd4ff;
	font-size: 14px;
}
.history-page .history-icon-password {
	background: rgba(255, 184, 77, 0.14);
	border: none;
}
.history-page .history-icon-password::before {
	content: '\26BF';
	color: #ffd27a;
	font-size: 14px;
}
.history-page .history-icon-email {
	background: rgba(74, 163, 255, 0.16);
	border: none;
}
.history-page .history-icon-email::before {
	content: '@';
	color: #9fd4ff;
	font-size: 15px;
}
.history-page .history-icon-cards {
	background: rgba(255, 184, 77, 0.14);
	border: none;
}
.history-page .history-icon-cards::before {
	content: '\25AD';
	color: #ffd27a;
	font-size: 14px;
}
.history-page .history-icon-pending {
	background: rgba(160, 160, 160, 0.16);
	border: none;
}
.history-page .history-icon-pending::before {
	content: '\003F';
	color: #cccccc;
	font-size: 16px;
	font-weight: bold;
}
.history-page .history-icon-refund {
	background: rgba(255, 34, 0, 0.14);
	border: none;
}
.history-page .history-icon-refund::before {
	content: '\21A9';
	color: #ff2200;
	font-size: 16px;
}
.history-page .history-icon-rate {
	background: rgba(168, 108, 255, 0.16);
	border: none;
}
.history-page .history-icon-rate::before {
	content: '%';
	color: #d4a5ff;
	font-size: 15px;
	font-weight: bold;
}
.history-page .history-summary-body {
	flex: 1 1 auto;
	min-width: 0;
}
.history-page .history-summary-label {
	color: #8a8a8a;
	font-size: 10px;
	text-transform: uppercase;
	margin-bottom: 6px;
	letter-spacing: 0.5px;
}
.history-page .history-summary-value {
	font-size: 20px;
	font-weight: bold;
	color: #ffffff;
	line-height: 1.15;
}
.history-page .history-summary-all .history-summary-value {
	font-size: 17px;
}
.history-page .history-summary-card-plain .history-summary-body {
	padding-left: 2px;
}
.history-page .history-filter {
	margin: 0 16px 12px;
	padding: 12px;
	border: 1px solid var(--site-border);
	border-radius: 8px;
	background: var(--site-panel-2);
}
.history-page .history-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
}
.history-page .history-filter-label {
	display: block;
	color: #777;
	font-size: 10px;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.history-page .history-date-input {
	width: 145px;
}
.history-page .history-search-input {
	width: 230px;
}
.history-page .history-filter-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}
.history-page .history-filter-btn:not(.cards-actionbar-btn),
.history-page .history-filter-reset {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	height: 28px;
	line-height: 26px;
	min-width: 74px;
	margin: 0;
	padding: 0 14px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border: 1px solid var(--site-border);
	border-radius: 6px;
	cursor: pointer;
}
/* Primary action: submit/button with history-filter-btn (filter, account, verify, upgrade, …) */
.history-page input.history-filter-btn:not(.history-filter-reset):not(.history-filter-btn-secondary):not(.items-action-btn-delete):not(.cart-btn-delete):not(.cards-actionbar-btn),
.history-page button.history-filter-btn:not(.history-filter-reset):not(.history-filter-btn-secondary):not(.items-action-btn-delete):not(.cart-btn-delete):not(.cards-actionbar-btn) {
	background: linear-gradient(180deg, #2fe36a 0%, #24b85a 100%);
	border-color: #28c85c;
	color: #0b0b0b;
}
.history-page input.history-filter-btn:not(.history-filter-reset):not(.history-filter-btn-secondary):not(.items-action-btn-delete):not(.cart-btn-delete):not(.cards-actionbar-btn):hover,
.history-page button.history-filter-btn:not(.history-filter-reset):not(.history-filter-btn-secondary):not(.items-action-btn-delete):not(.cart-btn-delete):not(.cards-actionbar-btn):hover {
	background: linear-gradient(180deg, #45ef7d 0%, #2fe36a 100%);
	border-color: #2fe36a;
	color: #0b0b0b;
	box-shadow: 0 0 0 2px rgba(47, 227, 106, 0.22);
}
/* Destructive actions: red — must not look like primary submit */
.history-page input.history-filter-btn.items-action-btn-delete,
.history-page input.history-filter-btn.cart-btn-delete,
.history-page button.history-filter-btn.items-action-btn-delete,
.history-page button.history-filter-btn.cart-btn-delete {
	background: #2f2020;
	border-color: #7a3b34;
	color: #ff9a8c;
}
.history-page input.history-filter-btn.items-action-btn-delete:hover,
.history-page input.history-filter-btn.cart-btn-delete:hover,
.history-page button.history-filter-btn.items-action-btn-delete:hover,
.history-page button.history-filter-btn.cart-btn-delete:hover {
	background: #3a2424;
	border-color: #b23b2e;
	color: #ffb3a6;
	box-shadow: 0 0 0 2px rgba(224, 74, 56, 0.18);
}
/* Secondary: Clear link, Cancel, Reset */
.history-page a.history-filter-btn,
.history-page .history-filter-reset,
.history-page input.history-filter-btn-secondary,
.history-page input.history-filter-reset,
.history-page button.history-filter-btn-secondary {
	background: #10130f;
	color: #cfe0cd;
}
.history-page a.history-filter-btn:hover,
.history-page .history-filter-reset:hover,
.history-page input.history-filter-btn-secondary:hover,
.history-page input.history-filter-reset:hover,
.history-page button.history-filter-btn-secondary:hover {
	background: var(--site-green-soft);
	border-color: var(--site-green);
	color: var(--site-green);
}
.history-page .history-table-wrap {
	width: auto;
	margin: 0 16px 0;
	padding: 0;
}
.history-page .history-table {
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--site-panel);
	border: 1px solid var(--site-border);
	border-radius: 10px;
	border-collapse: separate;
	border-spacing: 0;
}
.history-page .history-table td {
	padding: 9px 8px;
	border-bottom: 1px solid #23291f;
	vertical-align: middle;
}
.history-page .history-table-head td {
	background: #10130f;
	color: #cfe0cd;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border-bottom: 1px solid var(--site-border);
}
.history-page .history-table-row:nth-child(even) td {
	background: #141814;
}
.history-page .history-table-row:nth-child(odd) td {
	background: #10130f;
}
.history-page .history-table-row:hover td {
	background: #1b241a;
}
.history-page .history-table-empty td {
	padding: 18px 12px;
	text-align: center;
	color: var(--site-muted);
	background: #10130f;
}
.history-page .history-cell-muted {
	color: #bdbdbd;
}
.history-page .history-cell-id {
	color: #ffffff;
	font-weight: bold;
}
.history-page .history-cell-strong {
	color: #ffffff;
	font-weight: bold;
}
.history-page .history-cell-amount {
	font-weight: bold;
}
.history-page .history-amount-credit {
	color: #2fe36a;
}
.history-page.history-account-page .history-summary-value.history-amount-credit {
	color: #ffcc00;
}
.history-page.history-account-page .history-icon-deposit {
	background: rgba(255, 204, 0, 0.14);
}
.history-page.history-account-page .history-icon-deposit::before {
	color: #ffcc00;
}
.history-page .history-amount-debit {
	color: #ff2200;
}
.history-page .history-muted {
	color: #777;
}
.history-page .history-action-link,
.history-page .history-proof-link {
	color: #2fe36a;
	text-decoration: none;
	word-break: break-all;
}
.history-page .history-action-link:hover,
.history-page .history-proof-link:hover {
	text-decoration: underline;
}
.history-page .history-type-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: bold;
	color: #ffffff;
	letter-spacing: 0.3px;
}
.history-page .history-type-deposit { background: #1f6b35; }
.history-page .history-type-order { background: #8a5418; }
.history-page .history-type-upgrade { background: #5a2f91; }
.history-page .history-type-check { background: #1f5f8a; }
.history-page .history-method-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: bold;
	color: #ffffff;
}
.history-page .history-method-bch {
	background: #1f6b35;
	border: 1px solid #35d66a;
}
.history-page .history-method-usdt {
	background: #1a4d7a;
	border: 1px solid #4aa3ff;
}
.history-page .history-method-btc {
	background: #7a4d12;
	border: 1px solid #ff9933;
}
.history-page .history-method-default {
	background: #333;
	border: 1px solid #555;
}
.history-page .history-actions {
	margin: 0 16px 8px;
	padding: 12px 0 4px;
	text-align: center;
	border-top: 1px solid #555;
}
.history-page .history-clear-btn {
	min-width: 180px;
	background: #2f2020;
	border: 1px solid #7a3b34;
	color: #ff9a8c;
}
.history-page .history-clear-btn:hover {
	background: #3a2424;
	border-color: #b23b2e;
	color: #ffb3a6;
	box-shadow: 0 0 0 2px rgba(224, 74, 56, 0.18);
}
.history-page .history-pagination {
	width: auto;
	margin: 0 16px 14px;
	padding: 12px 0 4px;
	text-align: center;
	border-top: 1px solid var(--site-border);
}
.history-page .history-pagination a {
	display: inline-block;
	min-width: 22px;
	margin: 0 2px;
	padding: 2px 6px;
	color: #cfe0cd;
	text-decoration: none;
	border: 1px solid var(--site-border);
	border-radius: 6px;
	background: var(--site-panel-2);
}
.history-page .history-pagination a:hover {
	color: var(--site-green);
	border-color: var(--site-green);
	background: var(--site-green-soft);
}
.history-page .history-pagination .page_go {
	width: 42px;
	margin: 0 4px;
	text-align: center;
	background-color: #191d17;
	border: 1px solid var(--site-border);
	color: #ffffff;
	border-radius: 6px;
}
.history-page .history-dashboard-head {
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding: 16px 16px 14px;
	border-bottom: none;
}
.history-page .history-dashboard-head .history-header-title {
	text-transform: none;
	font-size: 18px;
	letter-spacing: 0.2px;
}
.history-page .history-dashboard-nav {
	display: flex;
	gap: 6px;
	padding: 5px;
	background: var(--site-panel-2);
	border-radius: 10px;
	border: 1px solid var(--site-border);
	box-sizing: border-box;
}
.history-page .history-dashboard-nav-link {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	padding: 10px 12px;
	border-radius: 7px;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	color: #9a9a9a;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.history-page .history-dashboard-nav-link:hover {
	color: #e8e8e8;
	background: rgba(255, 255, 255, 0.06);
}
.history-page .history-dashboard-nav-link.active {
	color: #111;
	background: linear-gradient(180deg, #2fe36a 0%, #24b85a 100%);
	box-shadow: 0 2px 10px rgba(47, 227, 106, .22);
}
.history-page .history-dashboard-activity-tabs {
	margin: 0 0 12px;
	padding: 0;
	border: 1px solid var(--site-border);
	background: var(--site-panel);
}
.history-page .history-dashboard-alert {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 16px 12px;
	padding: 10px 12px;
	border: 1px solid #663333;
	background: #2a2222;
}
.history-page .history-dashboard-quick-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	padding: 0 16px 12px;
}
.history-page .history-dashboard-action-btn {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 10px;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 1.2;
}
.history-page .history-dashboard-action-btn:hover,
.history-page .history-dashboard-action-btn:focus {
	color: #2fe36a;
}
.history-page .history-dashboard-action-btn .history-action-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: bold;
	line-height: 1;
}
.history-page .history-dashboard-action-label {
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.2;
}
.history-page .history-dashboard-recent-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 16px;
}
.history-page .history-dashboard-recent-title {
	margin-bottom: 0;
}
.history-page .history-dashboard-view-all {
	white-space: nowrap;
	font-size: 11px;
	font-weight: bold;
}
.history-page .myaccount-summary td,
.history-page .myaccount-security td,
.history-page .history-dashboard-security td {
	padding: 8px;
	vertical-align: middle;
}
.history-page .myaccount-label {
	width: 180px;
	font-weight: bold;
	text-align: right;
}
.history-page .myaccount-value {
	text-align: left;
}
.history-page .myaccount-input {
	width: 220px;
	max-width: 100%;
}
.history-page .myaccount-actions {
	text-align: center;
	padding-top: 12px;
	vertical-align: top;
}
.history-page .myaccount-actions-inner {
	width: 220px;
	max-width: 100%;
	text-align: center;
}
.history-page .myaccount-actions-inner .history-filter-btn {
	display: inline-block;
}
.history-page .history-dashboard-security-wrap {
	margin: 0 16px 12px;
	padding: 0;
	box-sizing: border-box;
}
.history-page .history-dashboard-security {
	display: flex;
	align-items: stretch;
	gap: 12px;
}
.history-page .history-dashboard-security .myaccount-panel-box {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	height: auto;
	min-height: 210px;
	border: 1px solid #333333;
	box-sizing: border-box;
	padding: 12px;
	background: #222;
}
.history-page .history-dashboard-security .myaccount-panel-box table {
	width: 100%;
}
.history-page .myaccount-panel-title {
	font-weight: bold;
	text-align: center;
	padding-bottom: 10px;
}


/* Myaccount panel theme sync */
/* ===== myaccount SECURITY / BALANCE TRANSFER panels theme sync ===== */
.history-page .history-dashboard-security .myaccount-panel-box {
	background: var(--site-panel-2);
	border: 1px solid var(--site-border);
	border-radius: 10px;
}
.history-page .myaccount-panel-title {
	color: var(--site-green);
	letter-spacing: 0.3px;
}
.history-page .myaccount-actions input.history-filter-btn,
.history-page .myaccount-actions button.history-filter-btn {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: inline-block;
	width: auto;
	min-width: 78px;
	height: auto;
	line-height: normal;
	margin: 3px;
	padding: 7px 16px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	border-radius: 6px;
	cursor: pointer;
	background: linear-gradient(180deg, #2fe36a 0%, #24b85a 100%);
	border: 1px solid #28c85c;
	color: #0b0b0b;
	transition: background .15s ease, box-shadow .15s ease;
}
.history-page .myaccount-actions input.history-filter-btn:hover,
.history-page .myaccount-actions button.history-filter-btn:hover {
	background: linear-gradient(180deg, #45ef7d 0%, #2fe36a 100%);
	border-color: #2fe36a;
	color: #0b0b0b;
	box-shadow: 0 0 0 2px rgba(47, 227, 106, 0.22);
}
