/* ===== Withdraw page (khớp app Flutter) ===== */
.withdraw-page {
	max-width: 480px;
	margin: 0 auto;
	padding: 0 var(--spacing-sm) var(--spacing-xl);
}

.withdraw-page__header {
	margin-bottom: var(--spacing-md);
}

/* Linked accounts page */
.linked-accounts-page__header {
	margin-bottom: var(--spacing-md);
}

.linked-accounts-page__notice {
	margin-bottom: var(--spacing-md);
}

.linked-accounts-page__hint {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 var(--spacing-md);
	padding: 10px 12px;
	border-radius: var(--border-radius-md);
	background: var(--bg-secondary);
	font-size: 12px;
	line-height: 1.45;
	color: var(--text-secondary);
}

.linked-accounts-page__hint i {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--color-primary);
}

.linked-accounts-card {
	background: var(--bg-primary);
	border-radius: var(--border-radius-xl);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	margin-bottom: var(--spacing-md);
}

.linked-account-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
}

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

.linked-account-row--action:hover,
.linked-account-row--action:focus {
	background: var(--bg-secondary);
	color: inherit;
	text-decoration: none;
}

.linked-account-row--connected {
	background: var(--bg-primary);
}

.linked-account-row__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.linked-account-row__icon--zalo {
	border-color: rgba(0, 104, 255, 0.15);
}

.linked-account-row__icon--apple {
	background: #f3f4f6;
	color: #111;
	border-color: rgba(0, 0, 0, 0.08);
}

.linked-account-row__body {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.linked-account-row__top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 2px;
}

.linked-account-row__name {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.3;
}

.linked-account-row__badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.linked-account-row__meta {
	display: block;
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.linked-account-row__form {
	flex-shrink: 0;
	margin: 0;
}

.linked-account-row__unlink {
	padding: 6px 12px;
	border: 1px solid rgba(229, 57, 53, 0.35);
	border-radius: 999px;
	background: #fff;
	color: #c62828;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.linked-account-row__unlink:hover,
.linked-account-row__unlink:focus,
.linked-account-row__unlink:active {
	background: #ffebee;
	border-color: rgba(229, 57, 53, 0.5);
	color: #b71c1c;
	outline: none;
}

.linked-account-row__arrow {
	flex-shrink: 0;
	color: var(--text-muted);
	font-size: 18px;
}

.linked-account-row__icon .google-brand-icon,
.linked-account-row__icon .zalo-brand-icon {
	width: 28px !important;
	height: 28px !important;
}

@media (max-width: 360px) {
	.linked-account-row {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.linked-account-row__form {
		width: 100%;
		padding-left: 56px;
	}

	.linked-account-row__unlink {
		width: 100%;
		padding: 8px 12px;
	}
}

/* Wallet panel — số dư + ngân hàng trong một card */
.wallet-panel {
	background: var(--bg-primary);
	border-radius: var(--border-radius-xl);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	margin-bottom: var(--spacing-md);
}

.wallet-panel__section {
	padding: var(--spacing-md);
}

.wallet-panel__footer {
	padding-top: 0;
}

.wallet-panel__divider {
	height: 1px;
	margin: 0 var(--spacing-md);
	background: var(--bg-secondary);
}

.wallet-panel .asmo-points-display-section {
	margin-bottom: 0;
	gap: var(--spacing-sm);
}

.wallet-panel__bank {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: var(--spacing-md);
	text-decoration: none;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease;
}

.wallet-panel__bank:hover,
.wallet-panel__bank:focus,
.wallet-panel__bank:active,
.wallet-panel__bank:visited {
	background: var(--bg-secondary);
	color: inherit;
	text-decoration: none;
	outline: none;
}

.wallet-panel__bank-icon {
	width: 44px;
	height: 44px;
	font-size: 20px;
}

.wallet-panel__bank-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wallet-panel__bank-eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.wallet-panel__bank-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.3;
}

.wallet-panel__bank-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.wallet-panel__bank-number {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	letter-spacing: 0.04em;
}

.wallet-panel__bank-holder {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.wallet-panel__bank-edit {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--bg-secondary);
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
}

.withdraw-hero {
	background: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
	border-radius: var(--border-radius-xl);
	padding: var(--spacing-lg);
	margin-bottom: var(--spacing-md);
	box-shadow: var(--shadow-md);
	color: #fff;
}

.withdraw-hero__label {
	margin: 0;
	font-size: 13px;
	opacity: 0.85;
}

.withdraw-hero__balance {
	margin: 6px 0 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.withdraw-hero__pending {
	margin: var(--spacing-sm) 0 0;
	font-size: 13px;
	opacity: 0.85;
}

.withdraw-hero__bank {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin-top: var(--spacing-md);
	padding: var(--spacing-sm);
	background: rgba(255, 255, 255, 0.15);
	border-radius: var(--border-radius-md);
	font-size: 12px;
	line-height: 1.35;
}

.withdraw-hero__bank i {
	font-size: 18px;
	flex-shrink: 0;
}

a.withdraw-btn-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	color: #fff;
	-webkit-tap-highlight-color: transparent;
}

a.withdraw-btn-primary:hover,
a.withdraw-btn-primary:focus,
a.withdraw-btn-primary:active,
a.withdraw-btn-primary:focus-visible,
a.withdraw-btn-primary:visited {
	color: #fff;
	text-decoration: none;
}

.withdraw-hero__action {
	margin-top: var(--spacing-md);
}

.withdraw-card {
	background: var(--bg-primary);
	border-radius: var(--border-radius-xl);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-card);
	margin-bottom: var(--spacing-md);
}

.withdraw-banner {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	margin-bottom: var(--spacing-sm);
	border-radius: 12px;
	border: 1px solid #ffe082;
	background: #fff8e1;
	font-size: 12px;
	line-height: 1.45;
	color: #6d4c00;
}

.withdraw-banner i {
	font-size: 18px;
	color: #f57f17;
	flex-shrink: 0;
	margin-top: 1px;
}

.withdraw-banner p {
	margin: 0;
}

.withdraw-banner a {
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: underline;
	-webkit-tap-highlight-color: transparent;
}

.withdraw-banner a:hover,
.withdraw-banner a:focus,
.withdraw-banner a:active,
.withdraw-banner a:visited {
	color: var(--color-primary-dark);
}

.withdraw-field-label {
	display: block;
	margin-bottom: var(--spacing-xs);
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
}

.withdraw-amount-wrap {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: var(--spacing-xs);
}

.withdraw-amount-wrap__icon {
	position: absolute;
	left: 14px;
	font-size: 20px;
	color: var(--text-secondary);
	pointer-events: none;
}

.withdraw-amount-input {
	width: 100%;
	padding: 14px 40px 14px 44px;
	border: 1.5px solid var(--bg-secondary);
	border-radius: var(--border-radius-md);
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	color: var(--text-primary);
	background: var(--bg-primary);
	transition: border-color 0.15s ease;
}

.withdraw-amount-input:focus {
	outline: none;
	border-color: var(--color-primary);
}

.withdraw-amount-input:disabled {
	background: var(--bg-secondary);
	opacity: 0.7;
	cursor: not-allowed;
}

.withdraw-amount-suffix {
	position: absolute;
	right: 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
	pointer-events: none;
}

.withdraw-hint {
	margin: 0 0 var(--spacing-sm);
	text-align: center;
	font-size: 12px;
	color: var(--text-secondary);
}

.withdraw-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: var(--spacing-md);
}

.withdraw-chip {
	padding: 8px 16px;
	border: none;
	border-radius: 999px;
	background: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.withdraw-chip:hover:not(:disabled) {
	background: rgba(252, 83, 50, 0.12);
	color: var(--color-primary);
}

.withdraw-chip:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.withdraw-footnote {
	margin: 0 0 var(--spacing-md);
	text-align: center;
	font-size: 11px;
	color: var(--text-secondary);
	line-height: 1.4;
}

.withdraw-btn-primary {
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: var(--border-radius-md);
	background: var(--bg-gradient-red);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.withdraw-btn-primary:hover:not(:disabled),
.withdraw-btn-primary:focus:not(:disabled),
.withdraw-btn-primary:active:not(:disabled),
.withdraw-btn-primary:focus-visible:not(:disabled) {
	color: #fff;
	background: var(--bg-gradient-red);
	opacity: 0.92;
	transform: translateY(-1px);
	outline: none;
}

.withdraw-btn-primary:active:not(:disabled) {
	transform: scale(0.99);
}

.withdraw-btn-primary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.withdraw-btn-text {
	width: 100%;
	margin-top: var(--spacing-sm);
	padding: 10px;
	border: none;
	background: transparent;
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.withdraw-btn-text:hover {
	color: var(--color-primary);
}

.withdraw-otp-title {
	margin: 0 0 var(--spacing-xs);
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
}

.withdraw-otp-amount {
	margin: 0 0 var(--spacing-lg);
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-primary);
}

.withdraw-otp-inputs {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: var(--spacing-md);
}

.withdraw-otp-digit {
	width: 44px;
	height: 48px;
	padding: 0;
	border: 1.5px solid var(--bg-secondary);
	border-radius: var(--border-radius-md);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	color: var(--text-primary);
}

.withdraw-otp-digit:focus {
	outline: none;
	border-color: var(--color-primary);
}

.withdraw-otp-resend {
	margin: 0 0 var(--spacing-md);
	text-align: center;
	font-size: 13px;
	color: var(--text-secondary);
	min-height: 20px;
}

.withdraw-otp-resend-btn {
	border: none;
	background: none;
	color: var(--color-primary);
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.withdraw-otp-resend-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (max-width: 576px) {
	.withdraw-hero__balance {
		font-size: 24px;
	}

	.withdraw-otp-digit {
		width: 40px;
		height: 44px;
		font-size: 18px;
	}

	.withdraw-otp-inputs {
		gap: 6px;
	}
}

