/*
	Papix Work </> 2025
	Donate — MKMT2  |  Dark Fantasy Theme
	Colors: #901A1D (red), #b40000 (hover), #9C6423 (gold), #c8a96e (light gold)
*/

/* =============================================
   FONTS
   ============================================= */
@font-face {
	font-family: 'MetaPro-Normal';
	src: url('../fonts/metapronormal.woff') format('woff');
	font-weight: normal; font-style: normal;
}
@font-face {
	font-family: 'MetaPro-Medium';
	src: url('../fonts/metapromedium.woff') format('woff');
	font-weight: normal; font-style: normal;
}
@font-face {
	font-family: 'MetaPro-Bold';
	src: url('../fonts/metaprobold.woff') format('woff');
	font-weight: normal; font-style: normal;
}
@font-face {
	font-family: 'alegreya_scregular';
	src: url('../fonts/alegreyasc-regular-webfont.woff') format('woff');
	font-weight: normal; font-style: normal;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; height: auto; }

body {
	background-color: #0d0503;
	margin: 0; padding: 0;
	font-family: 'MetaPro-Normal', Verdana, sans-serif;
	font-size: 13px;
	line-height: 16px;
	color: #e8e0d0;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a { text-decoration: none; color: inherit; }
a:visited { color: inherit; }
ul, li, input, button { border: 0; padding: 0; margin: 0; list-style: none; }
img { border: 0; display: block; }

/* =============================================
   UTILITY
   ============================================= */
.clearfix::after { content: ''; display: block; clear: both; }

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	background: linear-gradient(to bottom, #1c0c05 0%, #120703 100%);
	z-index: 100;
	border-bottom: 1px solid rgba(144,26,29,.4);
	box-shadow: 0 1px 12px rgba(0,0,0,.6);
}

.topbar-logo {
	height: 50px;
	width: auto;
	display: block;
}

.topbar-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
}

.topbar-brand {
	font-family: 'alegreya_scregular';
	font-size: 16px;
	color: #c8a96e;
	letter-spacing: 1px;
}

.topbar-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.topbar-btn {
	display: inline-block;
	height: 26px;
	line-height: 26px;
	padding: 0 14px;
	font-family: 'MetaPro-Bold';
	font-size: 11px;
	color: #c8a96e;
	border: 1px solid rgba(156,100,35,.4);
	background: rgba(0,0,0,.3);
	cursor: pointer;
	letter-spacing: .5px;
	transition: background .15s, border-color .15s, color .15s;
}

.topbar-btn:hover,
.topbar-btn.active {
	background: rgba(144,26,29,.5);
	border-color: #901A1D;
	color: #fff;
}

.topbar-user {
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #a0906a;
	margin-right: 6px;
}

/* =============================================
   MAIN WRAPPER
   ============================================= */
.main-wrapper {
	flex: 1;
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	padding: 90px 20px 40px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

/* =============================================
   PANEL (card container)
   ============================================= */
.panel {
	background: rgba(12, 7, 3, 0.88);
	border: 1px solid rgba(156, 100, 35, 0.25);
	border-top: 2px solid #901A1D;
	padding: 32px 36px;
	margin-bottom: 24px;
	position: relative;
}

.panel::before {
	content: '';
	position: absolute;
	top: -1px; left: 40px;
	width: 60px; height: 2px;
	background: #9C6423;
}

.panel-title {
	font-family: 'alegreya_scregular';
	font-size: 22px;
	color: #c8a96e;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(156,100,35,.2);
	letter-spacing: 1px;
}

/* Two-column layout */
.panel-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 28px;
	align-items: start;
}

/* =============================================
   PRICING TABLE
   ============================================= */
.pricing-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 28px;
}

.pricing-table thead tr {
	background: rgba(144,26,29,.2);
	border-bottom: 1px solid rgba(144,26,29,.4);
}

.pricing-table thead th {
	padding: 10px 16px;
	font-family: 'MetaPro-Bold';
	font-size: 11px;
	color: #9C6423;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.pt-th-select { width: 42px; }

/* Linha seleccionável */
.pricing-table tbody tr.pt-row {
	border-bottom: 1px solid rgba(255,255,255,.05);
	cursor: pointer;
	transition: background .12s;
	user-select: none;
}

.pricing-table tbody tr.pt-row:hover {
	background: rgba(244,162,41,.06);
}

.pricing-table tbody tr.pt-row:has(input:checked) {
	background: rgba(244,162,41,.1);
	border-bottom-color: rgba(244,162,41,.3);
	outline: 1px solid rgba(244,162,41,.4);
	outline-offset: -1px;
}

.pricing-table tbody tr.pt-featured {
	background: rgba(144,26,29,.1);
	border-bottom: 1px solid rgba(144,26,29,.25);
}

.pricing-table tbody tr.pt-featured:hover {
	background: rgba(244,162,41,.06);
}

.pricing-table tbody tr.pt-featured:has(input:checked) {
	background: rgba(244,162,41,.1);
	border-bottom-color: rgba(244,162,41,.3);
}

.pt-select {
	padding: 12px 8px 12px 16px;
	width: 42px;
}

.pt-select input[type="radio"] {
	accent-color: #f4a229;
	width: 15px; height: 15px;
	cursor: pointer;
	display: block;
	margin: 0;
}

.pt-coins {
	padding: 12px 16px;
	font-family: 'alegreya_scregular';
	font-size: 16px;
	color: #c8a96e;
}

.pt-price {
	padding: 12px 16px;
	font-family: 'MetaPro-Bold';
	font-size: 15px;
	color: #e8e0d0;
}

.pt-bonus {
	padding: 12px 16px;
	font-family: 'MetaPro-Medium';
	font-size: 13px;
	color: #4a9e4a;
}

.pt-no-bonus {
	color: #3a2a18;
}

.pt-badge {
	display: inline-block;
	background: #901A1D;
	font-family: 'MetaPro-Bold';
	font-size: 9px;
	color: #fff;
	padding: 2px 6px;
	letter-spacing: 1px;
	vertical-align: middle;
	margin-left: 8px;
	text-transform: uppercase;
}

/* =============================================
   PAYMENT BUTTONS
   ============================================= */
.pay-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pay-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 48px;
	padding: 0 20px;
	font-family: 'MetaPro-Medium';
	font-size: 14px;
	color: #fff;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .15s, border-color .15s, transform .1s;
	letter-spacing: .5px;
}

.pay-btn:active { transform: scale(.98); }

.pay-btn-mbway {
	background: linear-gradient(135deg, #c41842 0%, #8b0f2d 100%);
	border-color: rgba(196,24,66,.5);
}

.pay-btn-mbway:hover {
	background: linear-gradient(135deg, #d91f4a 0%, #a01235 100%);
	border-color: #c41842;
}

.pay-btn-arrow {
	font-size: 16px;
	opacity: .7;
}

.pay-btn-stripe {
	background: linear-gradient(135deg, #5469d4 0%, #3b4faf 100%);
	border-color: rgba(84,105,212,.5);
	width: 100%;
	font-family: 'MetaPro-Medium';
	font-size: 14px;
	letter-spacing: .5px;
	height: 56px;
}

.pay-btn-stripe:hover {
	background: linear-gradient(135deg, #6577e8 0%, #4a5fcf 100%);
	border-color: #5469d4;
}

.pay-btn-label {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.pay-btn-name {
	font-family: 'MetaPro-Medium';
	font-size: 14px;
	color: #fff;
	letter-spacing: .5px;
}

.pay-btn-methods {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: rgba(255,255,255,.55);
	letter-spacing: 0;
}

.pay-btn-disabled {
	background: rgba(30, 16, 6, 0.5);
	border: 1px solid rgba(156,100,35,.15);
	color: #4a3a28;
	cursor: not-allowed;
	pointer-events: none;
}

.pay-btn-disabled .pay-btn-arrow { display: none; }

.pay-btn-soon {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: #4a3a28;
	background: rgba(156,100,35,.08);
	border: 1px solid rgba(156,100,35,.12);
	padding: 2px 8px;
}

/* =============================================
   SIDEBAR INFO
   ============================================= */
.info-card {
	background: rgba(8, 4, 2, 0.7);
	border: 1px solid rgba(156,100,35,.2);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.info-card-title {
	font-family: 'alegreya_scregular';
	font-size: 16px;
	color: #9C6423;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(156,100,35,.15);
}

.info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255,255,255,.04);
	font-size: 13px;
}

.info-row:last-child { border-bottom: none; }

.info-key {
	color: #6a5a42;
	font-family: 'MetaPro-Normal';
}

.info-val {
	font-family: 'MetaPro-Bold';
	color: #c8a96e;
}

.info-val.coins { color: #c8a96e; font-size: 14px; }
.info-val.status-ok    { color: #4a9e4a; }
.info-val.status-block { color: #b40000; }

.info-note {
	font-size: 11px;
	color: #4a3a28;
	margin-top: 10px;
	line-height: 15px;
}

/* =============================================
   ALERT MESSAGES
   ============================================= */
.alert {
	padding: 12px 16px;
	margin-bottom: 20px;
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	border-left: 3px solid;
	line-height: 18px;
}

.alert-success {
	background: rgba(74,158,74,.1);
	border-color: #4a9e4a;
	color: #7ec87e;
}

.alert-error {
	background: rgba(176,0,0,.1);
	border-color: #b40000;
	color: #e07070;
}

.alert-error div { margin-bottom: 2px; }

.alert-info {
	background: rgba(156,100,35,.08);
	border-color: #9C6423;
	color: #a08050;
}

/* =============================================
   LOGOUT LINK
   ============================================= */
.logout-link {
	display: block;
	text-align: center;
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #4a3a28;
	padding: 8px;
	border: 1px solid rgba(156,100,35,.1);
	transition: color .15s, border-color .15s;
}

.logout-link:hover {
	color: #b40000;
	border-color: rgba(180,0,0,.3);
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-container {
	max-width: 420px;
	margin: 40px auto 0;
	padding-bottom: 60px;
}

.login-panel {
	background: rgba(10, 6, 3, 0.92);
	border: 1px solid rgba(156,100,35,.3);
	border-top: 3px solid #901A1D;
	padding: 36px 40px;
}

.login-title {
	font-family: 'alegreya_scregular';
	font-size: 26px;
	color: #c8a96e;
	margin-bottom: 6px;
	letter-spacing: 1px;
}

.login-subtitle {
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #5a4a32;
	margin-bottom: 24px;
	line-height: 16px;
}

.form-field {
	margin-bottom: 12px;
}

.form-label {
	display: block;
	font-family: 'MetaPro-Bold';
	font-size: 11px;
	color: #6a5a42;
	margin-bottom: 5px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.form-input {
	width: 100%;
	height: 38px;
	background: rgba(20, 10, 4, 0.8);
	border: 1px solid rgba(156,100,35,.25);
	border-bottom: 2px solid rgba(156,100,35,.4);
	color: #e8e0d0;
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	padding: 0 12px;
	transition: border-color .15s, background .15s;
	outline: none;
}

.form-input::placeholder { color: #3a2a18; }

.form-input:focus {
	background: rgba(30, 15, 5, 0.9);
	border-color: rgba(144,26,29,.6);
	border-bottom-color: #901A1D;
}

.form-submit {
	width: 100%;
	height: 44px;
	background: linear-gradient(135deg, #901A1D 0%, #6b1215 100%);
	border: 1px solid rgba(144,26,29,.6);
	color: #fff;
	font-family: 'MetaPro-Bold';
	font-size: 13px;
	letter-spacing: 2px;
	cursor: pointer;
	margin-top: 14px;
	transition: background .15s, transform .1s;
}

.form-submit:hover {
	background: linear-gradient(135deg, #b40000 0%, #901A1D 100%);
}

.form-submit:active { transform: scale(.99); }

.form-footer {
	margin-top: 16px;
	text-align: center;
	font-size: 11px;
	color: #3a2a18;
}

.form-footer a {
	color: #9C6423;
	transition: color .15s;
}

.form-footer a:hover { color: #c8a96e; }


/* =============================================
   HAPPY HOUR
   ============================================= */
.hh-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: linear-gradient(135deg, rgba(244,162,41,.12) 0%, rgba(156,100,35,.08) 100%);
	border: 1px solid rgba(244,162,41,.4);
	border-left: 4px solid #F4A229;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.hh-banner-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hh-banner-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }

.hh-banner-title {
	font-family: 'alegreya_scregular';
	font-size: 17px;
	color: #F4A229;
	letter-spacing: .5px;
	margin-bottom: 3px;
}

.hh-banner-desc {
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #9a7a40;
	line-height: 16px;
}

.hh-banner-right {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.hh-mult-badge {
	font-family: 'alegreya_scregular';
	font-size: 28px;
	color: #F4A229;
	background: rgba(244,162,41,.15);
	border: 1px solid rgba(244,162,41,.35);
	padding: 4px 14px;
	letter-spacing: 1px;
	line-height: 1.2;
}

.hh-banner-ends {
	font-family: 'MetaPro-Normal';
	font-size: 10px;
	color: #7a5a28;
	text-transform: uppercase;
	letter-spacing: .8px;
	white-space: nowrap;
}

/* Linha da tabela durante happy hour */
.pricing-table tbody tr.pt-hh-active:has(input:checked) {
	background: rgba(244,162,41,.1);
	border-bottom-color: rgba(244,162,41,.3);
	outline-color: rgba(244,162,41,.4);
}

.pt-coins-original {
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #4a3a28;
	text-decoration: line-through;
	margin-right: 4px;
}

.pt-bonus-hh {
	font-family: 'MetaPro-Bold';
	font-size: 13px;
	color: #F4A229;
	background: rgba(244,162,41,.12);
	border: 1px solid rgba(244,162,41,.3);
	padding: 2px 8px;
}

/* =============================================
   DONATION HISTORY
   ============================================= */

/* Stat cards */
.history-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}

.history-stat-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(8,4,2,.7);
	border: 1px solid rgba(156,100,35,.2);
	border-top: 2px solid rgba(144,26,29,.5);
	padding: 18px 20px;
	transition: border-color .15s;
}

.history-stat-card:hover {
	border-color: rgba(156,100,35,.4);
	border-top-color: #901A1D;
}

.history-stat-icon {
	width: 42px; height: 42px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #901A1D;
	background: rgba(144,26,29,.12);
	border: 1px solid rgba(144,26,29,.25);
}

.history-stat-icon--gold  { color: #9C6423; background: rgba(156,100,35,.1); border-color: rgba(156,100,35,.25); }
.history-stat-icon--green { color: #4a9e4a; background: rgba(74,158,74,.1);  border-color: rgba(74,158,74,.25);  }

.history-stat-body { display: flex; flex-direction: column; gap: 3px; }

.history-stat-val {
	font-family: 'alegreya_scregular';
	font-size: 20px;
	color: #c8a96e;
	line-height: 1;
}

.history-stat-label {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: #5a4a32;
	text-transform: uppercase;
	letter-spacing: .8px;
}

/* Table */
.history-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.history-table thead tr {
	background: rgba(144,26,29,.18);
	border-bottom: 1px solid rgba(144,26,29,.4);
}

.history-table thead th {
	padding: 11px 16px;
	font-family: 'MetaPro-Bold';
	font-size: 10px;
	color: #9C6423;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.history-table tbody tr {
	border-bottom: 1px solid rgba(255,255,255,.04);
	transition: background .12s;
}

.history-table tbody tr:hover        { background: rgba(255,255,255,.025); }
.history-table tbody tr:last-child   { border-bottom: none; }
.history-table tbody tr.history-row-refunded { opacity: .5; }

.history-num {
	padding: 12px 12px 12px 16px;
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: #3a2a18;
	width: 32px;
}

.history-date {
	padding: 12px 16px;
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	color: #8a7a60;
}

.history-time {
	display: block;
	font-size: 11px;
	color: #4a3a28;
	margin-top: 2px;
}

.history-amount {
	padding: 12px 16px;
	font-family: 'MetaPro-Bold';
	font-size: 14px;
	color: #e8e0d0;
}

.history-coins {
	padding: 12px 16px;
	font-family: 'alegreya_scregular';
	font-size: 15px;
	color: #c8a96e;
}

.history-coins-unit {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: #7a6a48;
}

.history-method {
	padding: 12px 16px;
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #6a5a42;
}

.history-badge {
	display: inline-block;
	font-family: 'MetaPro-Bold';
	font-size: 10px;
	padding: 4px 10px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.history-badge-ok     { background: rgba(74,158,74,.12); color: #5aba5a; border: 1px solid rgba(74,158,74,.28); }
.history-badge-refund { background: rgba(156,100,35,.1);  color: #9C6423; border: 1px solid rgba(156,100,35,.25); }

.history-badge-hh {
	display: inline-block;
	margin-left: 6px;
	background: rgba(244,162,41,.12);
	color: #f4a229;
	border: 1px solid rgba(244,162,41,.3);
	font-family: 'MetaPro-Bold';
	font-size: 10px;
	padding: 1px 5px;
	vertical-align: middle;
	letter-spacing: .4px;
}

/* Empty state */
.history-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 60px 20px;
	text-align: center;
}

.history-empty-icon {
	font-size: 40px;
	color: rgba(144,26,29,.3);
	margin-bottom: 20px;
}

.history-empty-title {
	font-family: 'alegreya_scregular';
	font-size: 22px;
	color: #5a4a32;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.history-empty-text {
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	color: #3a2a18;
	line-height: 20px;
	max-width: 380px;
	margin-bottom: 28px;
}

.history-cta {
	display: inline-block;
	height: 44px;
	line-height: 44px;
	padding: 0 32px;
	background: linear-gradient(135deg, #901A1D 0%, #6b1215 100%);
	border: 1px solid rgba(144,26,29,.6);
	font-family: 'MetaPro-Bold';
	font-size: 12px;
	color: #fff;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	transition: background .15s;
}

.history-cta:hover {
	background: linear-gradient(135deg, #b40000 0%, #901A1D 100%);
	color: #fff;
}

/* =============================================
   MBWAY FORM
   ============================================= */
.mbway-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 28px;
	align-items: start;
}

.mbway-steps {
	counter-reset: step;
	margin-bottom: 24px;
}

.mbway-step {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255,255,255,.04);
}

.mbway-step:last-child { border-bottom: none; }

.mbway-step-num {
	counter-increment: step;
	flex-shrink: 0;
	width: 24px; height: 24px;
	background: rgba(144,26,29,.3);
	border: 1px solid rgba(144,26,29,.5);
	font-family: 'MetaPro-Bold';
	font-size: 11px;
	color: #c8a96e;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.mbway-step-text {
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	color: #8a7a60;
	line-height: 18px;
}

.back-link {
	display: inline-block;
	margin-top: 16px;
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #5a4a32;
	transition: color .15s;
}

.back-link:hover { color: #9C6423; }
.back-link::before { content: '← '; }

/* Paginação */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 30px;
	padding: 0 8px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.1);
	color: #b89a6a;
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}

.page-btn:hover {
	background: rgba(244,162,41,.1);
	border-color: rgba(244,162,41,.35);
	color: #f4a229;
}

.page-btn-active {
	background: rgba(244,162,41,.15);
	border-color: rgba(244,162,41,.5);
	color: #f4a229;
	font-family: 'MetaPro-Bold';
	pointer-events: none;
}

.page-ellipsis {
	color: rgba(255,255,255,.2);
	font-size: 13px;
	padding: 0 4px;
	line-height: 30px;
}

/* =============================================
   MBWAY STATUS
   ============================================= */
.status-container {
	max-width: 500px;
	margin: 0 auto;
	padding: 50px 20px;
	text-align: center;
}

.status-icon {
	width: 80px; height: 80px;
	border-radius: 50%;
	margin: 0 auto 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
}

.status-icon-waiting { background: rgba(156,100,35,.15); border: 2px solid rgba(156,100,35,.4); color: #9C6423; }
.status-icon-done    { background: rgba(74,158,74,.1);   border: 2px solid rgba(74,158,74,.4);  color: #4a9e4a; }
.status-icon-none    { background: rgba(50,40,30,.3);    border: 2px solid rgba(100,80,50,.2);  color: #4a3a28; }
.status-icon-error   { background: rgba(180,0,0,.1);     border: 2px solid rgba(180,0,0,.3);    color: #b40000; }

.status-title {
	font-family: 'alegreya_scregular';
	font-size: 26px;
	color: #c8a96e;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.status-text {
	font-family: 'MetaPro-Normal';
	font-size: 14px;
	color: #7a6a50;
	line-height: 20px;
	margin-bottom: 12px;
}

.status-coins {
	font-family: 'MetaPro-Bold';
	font-size: 16px;
	color: #c8a96e;
	margin: 12px 0 28px;
}

.status-back-btn {
	display: inline-block;
	height: 44px;
	line-height: 44px;
	padding: 0 32px;
	background: linear-gradient(135deg, #901A1D 0%, #6b1215 100%);
	border: 1px solid rgba(144,26,29,.6);
	font-family: 'MetaPro-Bold';
	font-size: 13px;
	color: #fff;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background .15s;
}

.status-back-btn:hover {
	background: linear-gradient(135deg, #b40000 0%, #901A1D 100%);
	color: #fff;
}

/* =============================================
   DEBUG BANNER (só para o utilizador de debug)
   ============================================= */
.debug-banner {
	position: fixed;
	top: 51px;
	left: 0; right: 0;
	z-index: 99;
	background: linear-gradient(135deg, #7a4800 0%, #5c3500 100%);
	border-bottom: 2px solid #f4a229;
	color: #ffe3a0;
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	text-align: center;
	padding: 9px 20px;
	letter-spacing: .3px;
	box-sizing: border-box;
}
body.has-debug-banner .main-wrapper {
	padding-top: 130px;
}

.debug-banner strong {
	font-family: 'MetaPro-Bold';
	color: #f4a229;
}
.debug-banner code {
	background: rgba(0,0,0,.35);
	color: #ffd480;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 12px;
	font-family: monospace;
}

/* =============================================
   MAINTENANCE PANEL (página de login em modo debug)
   ============================================= */
.maintenance-panel {
	max-width: 480px;
	margin: 0 auto 28px;
	background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
	border: 1px solid rgba(144,26,29,.5);
	border-top: 3px solid #901A1D;
	border-radius: 6px;
	padding: 32px 28px 28px;
	text-align: center;
}
.maintenance-icon {
	font-size: 40px;
	line-height: 1;
	margin-bottom: 14px;
}
.maintenance-title {
	font-family: 'MetaPro-Bold';
	font-size: 20px;
	color: #e8d5b0;
	letter-spacing: .5px;
	margin-bottom: 10px;
}
.maintenance-desc {
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	color: rgba(200,169,110,.75);
	line-height: 1.65;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
	width: 100%;
	background: linear-gradient(to bottom, #0d0503 0%, #080302 100%);
	border-top: 1px solid rgba(144,26,29,.3);
	padding: 10px 0;
	clear: both;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.footer-copy {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: rgba(200,169,110,.4);
	letter-spacing: .5px;
	text-align: center;
}

.footer-copy a { color: rgba(200,169,110,.55); }
.footer-copy a:hover { color: #c8a96e; }

.footer-links {
	font-family: 'MetaPro-Normal';
	font-size: 10px;
	color: rgba(200,169,110,.3);
	letter-spacing: .4px;
}

.footer-links a {
	color: rgba(200,169,110,.4);
	text-decoration: none;
	transition: color .15s;
}

.footer-links a:hover { color: #c8a96e; }

.footer-sep {
	margin: 0 6px;
	color: rgba(200,169,110,.2);
}

/* =============================================
   STATIC PAGES (ToS / Privacy)
   ============================================= */
.static-page {
	max-width: 760px;
	margin: 40px auto;
	padding: 0 20px 60px;
	color: #c8b89a;
	font-family: 'MetaPro-Normal', sans-serif;
	font-size: 13px;
	line-height: 1.8;
}

.static-title {
	font-size: 22px;
	color: #c8a96e;
	border-bottom: 1px solid rgba(156,100,35,.3);
	padding-bottom: 10px;
	margin-bottom: 4px;
	letter-spacing: 1px;
}

.static-updated {
	font-size: 11px;
	color: rgba(200,169,110,.4);
	margin-bottom: 28px;
}

.static-page h2 {
	font-size: 14px;
	color: #c8a96e;
	margin: 28px 0 8px;
	letter-spacing: .5px;
	border-left: 2px solid rgba(156,100,35,.5);
	padding-left: 10px;
}

.static-page p {
	margin: 0 0 12px;
	color: rgba(200,185,154,.75);
}

.static-page ul {
	margin: 0 0 12px 20px;
	padding: 0;
}

.static-page ul li {
	margin-bottom: 6px;
	color: rgba(200,185,154,.75);
}

.static-page a {
	color: #9c6423;
	transition: color .15s;
}

.static-page a:hover { color: #c8a96e; }

.static-page strong { color: #c8b89a; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
	.panel-grid, .mbway-grid {
		grid-template-columns: 1fr;
	}
	.hero-title { font-size: 26px; }
	.panel { padding: 22px 18px; }
	.login-panel { padding: 28px 20px; }
	.main-wrapper { padding: 30px 14px; }
}

/* =============================================
   CUSTOM PACKAGE ROW
   ============================================= */
.pt-custom-row td { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
.custom-pkg-label {
	display: block;
	font-family: 'MetaPro-Bold';
	font-size: 11px;
	color: #6a5a42;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 6px;
}
.custom-pkg-input-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}
.custom-pkg-input {
	width: 100px;
	height: 34px;
	background: rgba(20, 10, 4, 0.8);
	border: 1px solid rgba(156,100,35,.3);
	border-bottom: 2px solid rgba(156,100,35,.5);
	color: #e8e0d0;
	font-family: 'MetaPro-Normal';
	font-size: 14px;
	padding: 0 10px;
	outline: none;
	transition: border-color .15s;
}
.custom-pkg-input:focus {
	border-color: rgba(144,26,29,.6);
	border-bottom-color: #901A1D;
}
.custom-pkg-input::-webkit-inner-spin-button,
.custom-pkg-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.custom-pkg-currency {
	font-family: 'MetaPro-Bold';
	font-size: 15px;
	color: #c8a96e;
}
.custom-pkg-error {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: #e07070;
	margin-top: 4px;
	min-height: 14px;
}

/* =============================================
   REFERRAL CARD
   ============================================= */
.referral-desc {
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #7a6a50;
	line-height: 17px;
	margin: 0 0 12px;
}
.referral-bonus { color: #c8a96e; font-family: 'MetaPro-Bold'; }
.referral-link-wrap {
	display: flex;
	gap: 0;
}
.referral-link-input {
	flex: 1;
	height: 32px;
	background: rgba(10, 5, 2, 0.8);
	border: 1px solid rgba(156,100,35,.2);
	border-right: none;
	color: #7a6a50;
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	padding: 0 8px;
	cursor: text;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	outline: none;
}
.referral-copy-btn {
	height: 32px;
	padding: 0 12px;
	background: rgba(144,26,29,.4);
	border: 1px solid rgba(144,26,29,.5);
	color: #c8a96e;
	font-family: 'MetaPro-Bold';
	font-size: 10px;
	letter-spacing: .8px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s;
	flex-shrink: 0;
}
.referral-copy-btn:hover { background: rgba(144,26,29,.7); }
.ref-notice {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	margin-top: 10px;
	padding: 7px 10px;
	border-radius: 4px;
}

.ref-notice-active {
	background: rgba(74,158,74,.12);
	border: 1px solid rgba(74,158,74,.25);
	color: #6abf6a;
}

.ref-notice-error {
	background: rgba(180,40,40,.12);
	border: 1px solid rgba(180,40,40,.3);
	color: #d97070;
}

.referral-copy-msg {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: #4a9e4a;
	margin-top: 5px;
	min-height: 14px;
}

/* =============================================
   LOADING ANIMATIONS
   ============================================= */
@keyframes skeleton-loading {
	0%   { background-position: -800px 0; }
	100% { background-position:  800px 0; }
}

@keyframes fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.skeleton {
	background-color: rgba(0,0,0,.35);
	background-image: linear-gradient(
		90deg,
		transparent            0%,
		transparent            20%,
		rgba(200,169,110,.18)  35%,
		rgba(200,169,110,.30)  50%,
		rgba(200,169,110,.18)  65%,
		transparent            80%,
		transparent            100%
	);
	background-size: 800px 100%;
	background-repeat: no-repeat;
	animation: skeleton-loading 1.6s linear infinite;
	border-radius: 4px;
	display: inline-block;
	width: 100%;
	height: 100%;
	min-height: 20px;
}

.skeleton-text {
	height: 16px;
	margin-bottom: 8px;
}

.skeleton-text:last-child {
	margin-bottom: 0;
	width: 60%;
}

.skeleton-row {
	height: 50px;
	margin-bottom: 4px;
	border-radius: 4px;
}

.skeleton-card {
	background: rgba(0,0,0,.3);
	border: 1px solid rgba(156,100,35,.2);
	padding: 16px;
	border-radius: 4px;
	min-height: 150px;
}

.fade-in {
	opacity: 0;
	animation: fade-in 0.4s ease-out forwards;
}

.loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	border-radius: 4px;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(200,169,110,.2);
	border-top-color: #c8a96e;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Hide content while loading, show skeleton */
.is-loading .content-loaded {
	display: none;
}

.is-loading .skeleton-loader {
	display: block;
}

.skeleton-loader {
	display: none;
}

.content-loaded {
	display: block;
}

/* =============================================
   DEBUG CONSOLE
   ============================================= */
.debug-console {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 20px;
}

.debug-header {
	margin-bottom: 32px;
	padding: 24px;
	background: linear-gradient(135deg, rgba(144,26,29,.25) 0%, rgba(0,0,0,.4) 100%);
	border: 1px solid rgba(200,169,110,.3);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,.5);
	position: relative;
	overflow: hidden;
}

.debug-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #901a1d, #c8a96e, #901a1d);
}

.debug-header h1 {
	font-family: 'MetaPro-Bold';
	font-size: 28px;
	color: #c8a96e;
	margin: 0 0 8px 0;
	text-shadow: 0 2px 8px rgba(200,169,110,.3);
}

.debug-subtitle {
	font-family: 'MetaPro-Normal';
	font-size: 13px;
	color: #b8a890;
	opacity: .8;
}

.debug-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 20px;
}

.debug-card {
	background: linear-gradient(135deg, rgba(0,0,0,.5) 0%, rgba(20,10,5,.6) 100%);
	border: 1px solid rgba(200,169,110,.2);
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,.4);
	transition: transform .2s, box-shadow .2s, border-color .2s;
	position: relative;
	overflow: hidden;
}

.debug-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(200,169,110,.4), transparent);
}

.debug-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(0,0,0,.6);
	border-color: rgba(200,169,110,.4);
}

.debug-card-wide {
	grid-column: 1 / -1;
}

.debug-card-title {
	font-family: 'MetaPro-Bold';
	font-size: 13px;
	color: #c8a96e;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(144,26,29,.4);
	display: flex;
	align-items: center;
	gap: 8px;
}

.debug-table {
	width: 100%;
	font-family: 'MetaPro-Normal';
	font-size: 12px;
	color: #d0c0a8;
	border-collapse: separate;
	border-spacing: 0;
}

.debug-table td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(156,100,35,.15);
	transition: background .15s;
}

.debug-table tr:last-child td {
	border-bottom: none;
}

.debug-table td:first-child {
	color: #b8a890;
	font-weight: 600;
	width: 45%;
}

.debug-table td:last-child {
	color: #e8d8c0;
}

.debug-table thead th {
	font-family: 'MetaPro-Bold';
	font-size: 11px;
	color: #c8a96e;
	text-transform: uppercase;
	letter-spacing: .8px;
	padding: 12px;
	text-align: left;
	border-bottom: 2px solid rgba(144,26,29,.4);
	background: rgba(0,0,0,.3);
}

.debug-table tbody tr {
	transition: background .15s;
}

.debug-table tbody tr:hover {
	background: rgba(144,26,29,.15);
}

.debug-pre {
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 11px;
	color: #d0c0a8;
	background: rgba(0,0,0,.6);
	padding: 16px;
	border-radius: 6px;
	overflow-x: auto;
	max-height: 450px;
	overflow-y: auto;
	line-height: 1.7;
	border: 1px solid rgba(156,100,35,.2);
	box-shadow: inset 0 2px 8px rgba(0,0,0,.4);
}

.debug-pre::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.debug-pre::-webkit-scrollbar-track {
	background: rgba(0,0,0,.3);
	border-radius: 4px;
}

.debug-pre::-webkit-scrollbar-thumb {
	background: rgba(200,169,110,.3);
	border-radius: 4px;
}

.debug-pre::-webkit-scrollbar-thumb:hover {
	background: rgba(200,169,110,.5);
}

.debug-extensions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.debug-ext-badge {
	font-family: 'MetaPro-Normal';
	font-size: 11px;
	color: #b8a890;
	background: rgba(0,0,0,.5);
	padding: 6px 12px;
	border-radius: 4px;
	border: 1px solid rgba(156,100,35,.25);
	transition: all .15s;
}

.debug-ext-badge:hover {
	background: rgba(144,26,29,.2);
	border-color: rgba(200,169,110,.4);
	color: #c8a96e;
}

.mono {
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 11px;
	color: #e8d8c0;
	background: rgba(0,0,0,.3);
	padding: 2px 6px;
	border-radius: 3px;
}

.status-ok {
	color: #6abf6a;
	font-weight: 600;
	text-shadow: 0 0 8px rgba(106,191,106,.3);
}

.status-error {
	color: #d97070;
	font-weight: 600;
	text-shadow: 0 0 8px rgba(217,112,112,.3);
}

/* =============================================
   ADMIN PANEL
   ============================================= */
.admin-wrap {
	width: 100%;
}
.admin-nav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(144,26,29,.3);
	padding-bottom: 12px;
}
.admin-nav-btn {
	display: inline-block;
	height: 30px;
	line-height: 30px;
	padding: 0 16px;
	font-family: 'MetaPro-Bold';
	font-size: 10px;
	color: #6a5a42;
	border: 1px solid rgba(156,100,35,.2);
	background: rgba(0,0,0,.2);
	letter-spacing: .5px;
	text-transform: uppercase;
	transition: background .15s, color .15s, border-color .15s;
	cursor: pointer;
}
.admin-nav-btn:hover {
	background: rgba(144,26,29,.25);
	border-color: rgba(144,26,29,.4);
	color: #c8a96e;
}
.admin-nav-btn.active {
	background: rgba(144,26,29,.4);
	border-color: #901A1D;
	color: #fff;
}
.admin-content { width: 100%; }
.admin-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}
@media (max-width: 900px) {
	.admin-stats { grid-template-columns: repeat(2, 1fr); }
	.admin-nav { gap: 6px; }
}
.hh-create-form {
	background: rgba(8,4,2,.6);
	border: 1px solid rgba(156,100,35,.15);
	padding: 20px 24px;
	margin-bottom: 20px;
}
.hh-create-form .form-field { margin-bottom: 10px; }
.admin-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	font-size: 12px;
}
.admin-table thead tr {
	background: rgba(144,26,29,.15);
	border-bottom: 1px solid rgba(144,26,29,.3);
}
.admin-table thead th {
	padding: 9px 14px;
	font-family: 'MetaPro-Bold';
	font-size: 10px;
	color: #9C6423;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.admin-table tbody tr {
	border-bottom: 1px solid rgba(255,255,255,.04);
	transition: background .12s;
}
.admin-table tbody tr:hover { background: rgba(255,255,255,.02); }
.admin-table tbody td {
	padding: 10px 14px;
	font-family: 'MetaPro-Normal';
	color: #8a7a60;
	vertical-align: middle;
}
.admin-table td code {
	font-size: 11px;
	color: #c8a96e;
	background: rgba(0,0,0,.3);
	padding: 1px 5px;
}
.admin-btn {
	display: inline-block;
	height: 26px;
	line-height: 26px;
	padding: 0 12px;
	font-family: 'MetaPro-Bold';
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: .5px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .15s;
}
.admin-btn-danger {
	background: rgba(180,0,0,.2);
	border-color: rgba(180,0,0,.4);
	color: #e07070;
}
.admin-btn-danger:hover {
	background: rgba(180,0,0,.4);
	color: #fff;
}
.admin-btn-primary {
	background: rgba(144,26,29,.3);
	border-color: rgba(144,26,29,.5);
	color: #c8a96e;
}
.admin-btn-primary:hover {
	background: rgba(144,26,29,.6);
	color: #fff;
}
.admin-btn-muted {
	background: rgba(156,100,35,.1);
	border-color: rgba(156,100,35,.25);
	color: #9C6423;
}
.admin-btn-muted:hover {
	background: rgba(156,100,35,.25);
	color: #c8a96e;
}
