/* Shared page shells: auth notices, popup, demo downloads */

.is-hidden {
	display: none !important;
}

.section_title {
	width: var(--layout-content);
	max-width: 100%;
	margin: 10px auto;
	text-align: center;
	font-weight: bold;
	box-sizing: border-box;
}
.section_content {
	width: var(--layout-content);
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

#main.wrapper_table,
.wrapper_table {
	margin-left: auto;
	margin-right: auto;
	width: var(--layout-content);
	max-width: 100%;
	box-sizing: border-box;
}

.history-page .history-redirect-notice {
	padding: 12px 16px 16px;
}

/* Auth pages (register / forgot / minilogin) — legacy section_* shell */
.auth-page .section_title {
	color: var(--site-green);
}
.auth-page .section_title .error,
.auth-page .section_content .error {
	color: #ff6b6b;
}
.auth-page .section_title .success,
.auth-page .section_content .success {
	color: var(--site-green);
}
.auth-page .borderstyle {
	background-color: var(--site-panel);
	border: 1px solid var(--site-border);
	border-radius: 10px;
}
.auth-page .borderstyle td {
	color: #cfe0cd;
}
.auth-page input[type="text"].formstyle,
.auth-page input[type="password"].formstyle {
	background: var(--site-panel-2);
	border: 1px solid var(--site-border);
	color: #e6efe4;
	border-radius: 6px;
	padding: 6px 9px;
}
.auth-page input[type="text"].formstyle:focus,
.auth-page input[type="password"].formstyle:focus {
	border-color: var(--site-green);
	box-shadow: 0 0 0 2px rgba(47, 227, 106, 0.18);
	outline: none;
}
.auth-page input.field-valid {
	border-color: var(--site-green) !important;
}
.auth-page input.field-invalid {
	border-color: #ff6b6b !important;
}
.auth-page input[type="submit"].formstyle,
.auth-page button[name] {
	background: linear-gradient(180deg, #2fe36a 0%, #24b85a 100%);
	border: 1px solid #28c85c;
	color: #0b0b0b;
	font-weight: 700;
	border-radius: 6px;
	padding: 7px 18px;
	height: auto;
	cursor: pointer;
	transition: background .15s ease, box-shadow .15s ease;
}
.auth-page input[type="submit"].formstyle:hover,
.auth-page button[name]: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);
}
.auth-page input[type="submit"].formstyle:disabled,
.auth-page button[name]:disabled {
	opacity: .5;
	cursor: not-allowed;
	box-shadow: none;
}
.auth-page input[type="button"].formstyle {
	background: var(--site-panel);
	border: 1px solid var(--site-border);
	color: #cfe0cd;
	font-weight: 700;
	border-radius: 6px;
	padding: 7px 18px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.auth-page input[type="button"].formstyle:hover {
	background: var(--site-green-soft);
	border-color: var(--site-green);
	color: var(--site-green);
}

/* reset_password.php — modern auth-form-table */
.auth-page .auth-shell-head {
	margin-top: 0;
}
.auth-page .auth-panel-inner {
	padding-bottom: 12px;
}
.auth-page .auth-form-table {
	width: 100%;
	max-width: var(--layout-medium);
	margin: 0 auto;
}
.auth-page .auth-form-table td {
	padding: 8px 10px;
	vertical-align: middle;
}
.auth-page .auth-form-label {
	color: #2fe36a;
	font-weight: bold;
	text-align: right;
	white-space: nowrap;
}

/* Auth legacy tables (register / forgot / minilogin) */
.content_table {
	width: var(--layout-content);
	padding: 5px;
	margin: 15px auto;
	background: transparent;
	border: none;
	color: #ffffff;
}

.history-page.popup-page {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}
.history-page.popup-page .history-col-price {
	width: 70px;
}
.history-page.popup-page .cart-summary-total {
	padding: 12px 16px;
	text-align: right;
	font-weight: bold;
}
body.popup-body {
	margin: 0 auto;
	width: 900px;
	max-width: 100%;
	background: #222;
}

.history-page.demo-acc-page .demo-acc-title {
	margin: 0;
	padding: 0;
}
.history-page.demo-acc-page .demo-got {
	color: #2fe36a;
}
.history-page.demo-acc-page .demo-pending {
	color: #858796;
}

.history-page.demo-acc-view .demo-view-head {
	padding: 12px 16px;
	border-bottom: 1px solid #444;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.history-page.demo-acc-view .demo-view-category {
	padding: 4px 8px;
	background: #795548;
	border-radius: 3px;
	font-size: 11px;
}
.history-page.demo-acc-view .demo-view-title {
	margin: 0;
	font-size: 16px;
	color: #eee;
}
.history-page.demo-acc-view .demo-view-body {
	padding: 12px 16px;
	border-bottom: 1px solid #444;
	line-height: 1.6;
}
.history-page.demo-acc-view .demo-bbcode {
	border-left: 3px solid #c84448;
	margin: 8px 0;
	background: #292929;
}
.history-page.demo-acc-view .demo-bbcode.is-revealed {
	border-left-color: #2fe36a;
}
.history-page.demo-acc-view .demo-bbcode-title {
	padding: 6px 10px;
	font-size: 11px;
	background: #242424;
	font-weight: bold;
}
.history-page.demo-acc-view .demo-bbcode-content {
	padding: 8px 10px;
	word-break: break-all;
}
.history-page.demo-acc-view .demo-view-actions {
	padding: 12px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.history-page.demo-acc-view .demo-view-footer {
	padding: 10px 16px 14px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-style: italic;
	color: #aaa;
	font-size: 10px;
}

.history-page.login-success-page {
	padding: 24px 16px;
	text-align: center;
}
.history-page.login-success-page a {
	color: #2fe36a;
}

.history-page.verification-page .history-inline-message {
	text-align: center;
}
.history-page.verification-page .verification-form-wrap {
	padding: 16px 20px 24px;
}
.history-page.verification-page .verification-form {
	display: inline-block;
	width: 100%;
	max-width: 340px;
	margin: 0 auto;
}
.history-page.verification-page .verification-form-field {
	margin-bottom: 14px;
}
.history-page.verification-page .verification-form-label {
	display: block;
	color: #2fe36a;
	font-weight: bold;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-bottom: 6px;
}
.history-page.verification-page .verification-input {
	width: 300px;
	max-width: 100%;
	box-sizing: border-box;
}
.history-page.verification-page .verification-captcha-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
.history-page.verification-page .verification-captcha-input {
	width: 140px;
	box-sizing: border-box;
}
.history-page.verification-page .verification-form-actions {
	justify-content: center;
	margin-top: 6px;
}

.history-page.change-mail-page .change-mail-verify-note {
	padding: 4px 20px 12px;
	color: #aaa;
	font-size: 12px;
	line-height: 1.5;
}
.history-page.change-mail-page .change-mail-hint {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	min-height: 14px;
}
.history-page.change-mail-page .history-filter-actions input.history-filter-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	background: #3a3a3a;
	border-color: #555;
	color: #888;
}

.history-page.upgrade-page .upgrade-status {
	padding: 0 16px 8px;
}
.history-page.upgrade-page .upgrade-status .pink {
	color: #ff66cc;
}
