/* ============================================================
   Affiliate Sales Bonus — Frontend Dashboard Styles
   ============================================================ */

.asb-dashboard {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 28px;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 720px;
}

/* Header */
.asb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 10px;
}

.asb-main-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a2e;
}

.asb-period-badge {
	background: #e8f4fd;
	color: #1677ff;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 14px;
	border-radius: 20px;
	border: 1px solid #bae0ff;
}

/* Metrics */
.asb-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.asb-metric {
	background: #f8f9fc;
	border: 1px solid #e8e8f0;
	border-radius: 10px;
	padding: 18px 16px;
	text-align: center;
	transition: transform 0.2s;
}

.asb-metric:hover {
	transform: translateY(-2px);
}

.asb-metric--bonus.asb-metric--active {
	background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
	border-color: #95de64;
}

.asb-metric--max {
	background: linear-gradient(135deg, #fffbe6 0%, #fff1b8 100%);
	border-color: #ffd666;
}

.asb-metric__icon {
	font-size: 28px;
	margin-bottom: 8px;
}

.asb-metric__value {
	font-size: 26px;
	font-weight: 800;
	color: #1a1a2e;
	line-height: 1;
	margin-bottom: 6px;
}

.asb-metric--bonus.asb-metric--active .asb-metric__value {
	color: #389e0d;
}

.asb-metric__label {
	font-size: 12px;
	color: #888;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.asb-metric__sublabel {
	font-size: 11px;
	color: #52c41a;
	font-weight: 600;
	margin-top: 4px;
}

/* Progress Bar */
.asb-progress-section {
	margin-bottom: 24px;
}

.asb-progress-header {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin-bottom: 8px;
}

.asb-progress-pct {
	color: #1677ff;
}

.asb-progress-bar {
	position: relative;
	background: #f0f0f0;
	border-radius: 6px;
	height: 14px;
	overflow: visible;
}

.asb-progress-fill {
	background: linear-gradient(90deg, #1677ff 0%, #52c41a 100%);
	height: 100%;
	border-radius: 6px;
	transition: width 0.8s ease;
}

.asb-milestone {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	background: #fff;
	border: 2px solid #bbb;
	border-radius: 50%;
	cursor: pointer;
	z-index: 2;
	transition: border-color 0.3s;
}

.asb-milestone--reached {
	border-color: #52c41a;
	background: #52c41a;
}

.asb-progress-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #aaa;
	margin-top: 4px;
}

/* Tiers table */
.asb-tiers-section {
	margin-bottom: 24px;
}

.asb-tiers-section h4,
.asb-history-section h4 {
	font-size: 14px;
	font-weight: 700;
	color: #444;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.asb-tiers-frontend,
.asb-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.asb-tiers-frontend th,
.asb-history-table th {
	background: #fafafa;
	padding: 10px 14px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border-bottom: 1px solid #f0f0f0;
}

.asb-tiers-frontend td,
.asb-history-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #f5f5f5;
}

.asb-tier--reached td {
	background: #f6ffed;
}

.asb-tier--next td {
	background: #e6f7ff;
	font-weight: 600;
}

/* Status badges */
.asb-status {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 10px;
}

.asb-status--reached {
	background: #f6ffed;
	color: #389e0d;
}

.asb-status--next {
	background: #e6f7ff;
	color: #0958d9;
}

.asb-status--locked {
	color: #ccc;
}

/* Reset note */
.asb-reset-note {
	font-size: 12px;
	color: #999;
	text-align: center;
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}

/* Notice */
.asb-notice {
	background: #fff7e6;
	border: 1px solid #ffd591;
	border-radius: 8px;
	padding: 14px 18px;
	font-size: 14px;
	color: #874d00;
}

/* Responsive */
@media (max-width: 480px) {
	.asb-dashboard {
		padding: 18px 14px;
	}

	.asb-metric__value {
		font-size: 22px;
	}

	.asb-tiers-frontend,
	.asb-history-table {
		font-size: 13px;
	}
}

/* ══════════════════════════════════════════════
   LAYOUT DOS COLUMNAS
   ══════════════════════════════════════════════ */

.asb-two-col {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: start;
}

.asb-left-col {
	min-width: 0;
}

/* ══════════════════════════════════════════════
   PANEL INFORMATIVO DERECHO
   ══════════════════════════════════════════════ */

.asb-right-col {
	position: sticky;
	top: 20px;
}

.asb-info-panel {
	background: #0f1117;
	border: 1px solid #1e2535;
	border-radius: 12px;
	padding: 1.1rem 1.25rem;
}

.asb-info-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #f1f5f9;
}

.asb-info-icon {
	font-size: 16px;
}

.asb-info-text {
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.6;
	margin-bottom: 14px;
}

.asb-info-text strong {
	color: #E85D04;
	font-weight: 600;
}

.asb-info-section-title {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #475569;
	margin-bottom: 8px;
}

/* Lista de niveles en el panel */
.asb-info-tiers {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
	background: #161b27;
	border: 1px solid #1e2535;
	border-radius: 8px;
	overflow: hidden;
}

.asb-info-tiers li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 12px;
	border-bottom: 1px solid #1e2535;
	font-size: 12px;
}

.asb-info-tiers li:last-child {
	border-bottom: none;
}

.asb-it-count {
	color: #94a3b8;
}

.asb-it-bonus {
	font-weight: 600;
	color: #4ade80;
	font-size: 13px;
}

/* Resaltar nivel actual */
.asb-info-tiers li.asb-it-active {
	background: #0f1f13;
}

.asb-info-tiers li.asb-it-active .asb-it-count {
	color: #f1f5f9;
	font-weight: 600;
}

.asb-info-divider {
	height: 1px;
	background: #1e2535;
	margin: 14px 0;
}

/* Notas */
.asb-info-notes {
	list-style: none;
	padding: 0;
	margin: 0;
}

.asb-info-notes li {
	font-size: 12px;
	color: #64748b;
	line-height: 1.6;
	padding: 5px 0 5px 18px;
	position: relative;
	border-bottom: 1px solid #1e253522;
}

.asb-info-notes li:last-child {
	border-bottom: none;
}

.asb-info-notes li::before {
	content: '›';
	position: absolute;
	left: 4px;
	color: #E85D04;
	font-weight: 700;
}

.asb-info-notes li strong {
	color: #cbd5e1;
	font-weight: 600;
}

/* Responsive: stack en mobile */
@media (max-width: 680px) {
	.asb-two-col {
		grid-template-columns: 1fr;
	}
	.asb-right-col {
		position: static;
	}
}

/* ══ WALLET USDT ══ */
.asb-wallet-section {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,.07);
}
.asb-wallet-section h4 {
	font-size: 14px;
	font-weight: 600;
	color: #f1f5f9;
	margin: 0 0 14px;
}
.asb-wallet-saved {
	background: #0f1f13;
	border: 1px solid #166534;
	color: #4ade80;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	margin-bottom: 12px;
}
.asb-wallet-form { display: flex; flex-direction: column; gap: 0; }
.asb-wallet-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}
.asb-wallet-field { display: flex; flex-direction: column; gap: 6px; }
.asb-wallet-field label {
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.asb-wallet-required { color: #E85D04; }
.asb-wallet-input,
.asb-wallet-select {
	background: #0f1117;
	border: 1px solid #1e2535;
	border-radius: 8px;
	color: #f1f5f9;
	font-size: 13px;
	padding: 9px 12px;
	width: 100%;
	transition: border-color .2s;
	outline: none;
}
.asb-wallet-input:focus,
.asb-wallet-select:focus {
	border-color: #E85D04;
	box-shadow: 0 0 0 2px rgba(232,93,4,.15);
}
.asb-wallet-input::placeholder { color: #334155; }
.asb-wallet-select option { background: #161b27; color: #f1f5f9; }
.asb-wallet-current {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #0f1117;
	border: 1px solid #1e2535;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.asb-wc-label { font-size: 11px; color: #475569; white-space: nowrap; }
.asb-wc-address {
	font-size: 12px;
	color: #93c5fd;
	background: transparent;
	font-family: monospace;
	word-break: break-all;
	flex: 1;
}
.asb-wc-network {
	background: #1e3a5f;
	color: #60a5fa;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 10px;
	white-space: nowrap;
}
.asb-wallet-btn {
	background: #E85D04;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 24px;
	cursor: pointer;
	align-self: flex-start;
	transition: background .2s;
}
.asb-wallet-btn:hover { background: #c2410c; }
.asb-wallet-note {
	font-size: 11px;
	color: #475569;
	margin-top: 10px;
	line-height: 1.6;
}
@media (max-width: 600px) {
	.asb-wallet-fields { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   SECCIÓN WALLET
   ══════════════════════════════════════════════ */

.asb-wallet-section {
	background: #161b27;
	border: 1px solid #1e2535;
	border-top: none;
	border-radius: 0 0 16px 16px;
	padding: 1.25rem 1.5rem 1.5rem;
	margin-top: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.asb-wallet-section::before {
	content: '';
	display: block;
	height: 1px;
	background: #1e2535;
	margin: 0 0 1.25rem;
}

.asb-wallet-notice {
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 1rem;
}

.asb-wallet-notice--ok {
	background: #0f1f13;
	border: 1px solid #166534;
	color: #4ade80;
}

.asb-wallet-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #f1f5f9;
	margin-bottom: 1rem;
}

.asb-wallet-icon { font-size: 16px; }

/* Wallet guardada actualmente */
.asb-wallet-current {
	background: #0f1117;
	border: 1px solid #1e2535;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.asb-wallet-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.asb-wallet-lbl {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #475569;
	min-width: 70px;
}

.asb-wallet-val {
	font-size: 13px;
	color: #cbd5e1;
}

.asb-wallet-addr {
	font-family: monospace;
	font-size: 12px;
	color: #93c5fd;
	word-break: break-all;
}

.asb-wallet-network-badge {
	background: #1e3a5f;
	color: #60a5fa;
	border-radius: 8px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 600;
}

/* Formulario */
.asb-wallet-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.asb-wallet-fields {
	display: grid;
	grid-template-columns: 1fr 220px;
	gap: 12px;
	margin-bottom: 14px;
}

.asb-wallet-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.asb-wallet-field label {
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .4px;
}

.asb-wallet-field input[type="text"],
.asb-wallet-field select {
	background: #0f1117 !important;
	border: 1px solid #1e2535 !important;
	border-radius: 8px !important;
	color: #f1f5f9 !important;
	font-size: 13px !important;
	padding: 9px 13px !important;
	width: 100% !important;
	outline: none !important;
	transition: border-color .2s !important;
	-webkit-appearance: none;
}

.asb-wallet-field input[type="text"]:focus,
.asb-wallet-field select:focus {
	border-color: #E85D04 !important;
	box-shadow: 0 0 0 2px rgba(232,93,4,.15) !important;
}

.asb-wallet-field input::placeholder {
	color: #334155 !important;
}

.asb-wallet-field select option {
	background: #0f1117;
	color: #f1f5f9;
}

.asb-wallet-btn {
	background: #E85D04 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 10px 24px !important;
	cursor: pointer !important;
	align-self: flex-start !important;
	transition: background .2s !important;
	margin-bottom: 10px !important;
}

.asb-wallet-btn:hover {
	background: #c2410c !important;
}

.asb-wallet-note {
	font-size: 11px;
	color: #334155;
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 600px) {
	.asb-wallet-fields {
		grid-template-columns: 1fr;
	}
}

/* ══════════════════════════════════════════════
   WALLET BLOCK — shortcode [asb_wallet_form]
   ══════════════════════════════════════════════ */

.asb-wallet-block {
	background: #161b27;
	border: 1px solid #1e2535;
	border-radius: 14px;
	padding: 1.5rem 1.75rem;
	margin: 1rem 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.asb-wallet-block__header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #1e2535;
}

.asb-wallet-block__icon {
	font-size: 28px;
	line-height: 1;
	flex-shrink: 0;
}

.asb-wallet-block__title {
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}

.asb-wallet-block__desc {
	color: #ffffff;
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
	opacity: .9;
}

/* Aviso de guardado exitoso */
.asb-wallet-block__success {
	background: #0f1f13;
	border: 1px solid #166534;
	color: #4ade80;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 1.25rem;
}

/* Wallet actual guardada */
.asb-wallet-block__current {
	background: #0f1117;
	border: 1px solid #1e2535;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.asb-wbc-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.asb-wbc-label {
	font-size: 11px;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: .4px;
	white-space: nowrap;
	min-width: 80px;
}

.asb-wbc-address {
	font-family: monospace;
	font-size: 13px;
	color: #93c5fd;
	background: transparent;
	word-break: break-all;
}

.asb-wbc-network {
	background: #1e3a5f;
	color: #60a5fa;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 12px;
}

/* Formulario */
.asb-wallet-block__form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.asb-wbf-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 1.25rem;
}

.asb-wbf-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.asb-wbf-field label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.asb-wbf-req {
	color: #E85D04;
	margin-left: 2px;
}

.asb-wbf-input,
.asb-wbf-select {
	background: #0f1117;
	border: 1px solid #1e2535;
	border-radius: 8px;
	color: #f1f5f9;
	font-size: 14px;
	padding: 11px 14px;
	width: 100%;
	transition: border-color .2s, box-shadow .2s;
	outline: none;
	-webkit-appearance: none;
}

.asb-wbf-input:focus,
.asb-wbf-select:focus {
	border-color: #E85D04;
	box-shadow: 0 0 0 3px rgba(232, 93, 4, .12);
}

.asb-wbf-input::placeholder {
	color: #2d3748;
	font-size: 13px;
}

.asb-wbf-select option {
	background: #161b27;
	color: #f1f5f9;
}

.asb-wbf-btn {
	background: #E85D04;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 28px;
	cursor: pointer;
	align-self: flex-start;
	transition: background .2s, transform .1s;
	letter-spacing: .2px;
}

.asb-wbf-btn:hover {
	background: #c2410c;
	transform: translateY(-1px);
}

.asb-wbf-btn:active {
	transform: translateY(0);
}

/* Nota de advertencia */
.asb-wallet-block__note {
	font-size: 12px;
	color: #475569;
	margin-top: 14px;
	line-height: 1.6;
	padding-top: 12px;
	border-top: 1px solid #1e2535;
}

/* Responsive */
@media (max-width: 580px) {
	.asb-wbf-grid {
		grid-template-columns: 1fr;
	}
	.asb-wallet-block {
		padding: 1.25rem 1rem;
	}
}

/* ── Landing Page Request Card ──────────────────────────────── */
.asb-landing-card {
	margin-top: 20px;
	border-radius: 16px;
	padding: 20px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	position: relative;
	overflow: hidden;
}
.asb-landing-card--offer {
	background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(0,0,0,.4));
	border: 1px solid rgba(249,115,22,.35);
}
.asb-landing-card--pending {
	background: rgba(250,204,21,.06);
	border: 1px solid rgba(250,204,21,.25);
}
.asb-landing-card--active {
	background: rgba(34,197,94,.06);
	border: 1px solid rgba(34,197,94,.25);
}
.asb-lc-badge {
	display: inline-block;
	background: #f97316;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 10px;
	align-self: flex-start;
}
.asb-lc-icon {
	font-size: 28px;
	flex-shrink: 0;
	line-height: 1;
	margin-top: 2px;
}
.asb-lc-body { flex: 1; min-width: 0; }
.asb-lc-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #f1f5f9;
	margin-bottom: 6px;
}
.asb-lc-text {
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.6;
	margin-bottom: 12px;
}
.asb-lc-features {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}
.asb-lc-features li {
	font-size: 12px;
	color: #cbd5e1;
	padding: 3px 0;
}
.asb-lc-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.asb-lc-btn {
	font-size: 13px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: opacity .15s;
}
.asb-lc-btn:hover { opacity: .85; }
.asb-lc-btn--primary {
	background: #f97316;
	color: #fff;
	box-shadow: 0 0 18px rgba(249,115,22,.3);
}
.asb-lc-btn--ghost {
	background: rgba(255,255,255,.06);
	color: #94a3b8;
	border: 1px solid rgba(255,255,255,.1);
}
.asb-lc-btn--view {
	background: rgba(34,197,94,.15);
	color: #4ade80;
	border: 1px solid rgba(34,197,94,.3);
	text-decoration: none;
	display: inline-block;
}
