/* Home account — Layout 2 */
.home-account-v2 {
	margin-bottom: var(--spacing-md);
}

.home-account-v2__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.home-account-v2__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.home-account-v2__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bg-secondary);
	flex-shrink: 0;
	border: 2px solid var(--bg-secondary);
}

.home-account-v2__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-account-v2__avatar-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--primary-color, var(--color-primary));
	background: var(--bg-tertiary, #f0f2f5);
}

.home-account-v2__meta {
	min-width: 0;
}

.home-account-v2__greeting {
	display: block;
	font-size: 13px;
	color: var(--text-secondary, #6c757d);
	line-height: 1.3;
}

.home-account-v2__name {
	display: block;
	margin-top: 2px;
	font-size: 17px;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-account-v2__guest-text {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.4;
	flex: 1;
	min-width: 0;
}

.home-account-v2__header--guest {
	align-items: center;
	margin-bottom: 12px;
}

.home-account-v2__login-btn {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--primary-color, var(--color-primary));
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.home-account-v2__balances {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}

.home-account-v2__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
}

.home-account-v2__pill--balance {
	background: #e8f5e9;
	color: #2e7d32;
}

.home-account-v2__pill--pending {
	background: #fff9c4;
	color: #424242;
}

.home-account-v2__pill-label {
	font-size: 10px;
	font-weight: 600;
	opacity: 0.85;
}

.home-account-v2__pill-value {
	font-size: 12px;
	font-weight: 700;
}

.home-account-v2__menu-card {
	position: relative;
	overflow: hidden;
	background: var(--bg-primary, #fff);
	border-radius: var(--border-radius-xl, 20px);
	box-shadow: var(--shadow-card);
	padding: 16px;
}

.home-account-v2__menu-card::before {
	content: '';
	position: absolute;
	top: -24px;
	right: -16px;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: rgba(252, 83, 50, 0.06);
	pointer-events: none;
}

.home-account-v2__menu-card::after {
	content: '';
	position: absolute;
	bottom: -20px;
	left: -12px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(252, 83, 50, 0.04);
	pointer-events: none;
}

.home-account-v2__menu-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.home-account-v2__menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 4px 2px;
	border: none;
	background: transparent;
	cursor: pointer;
	text-align: center;
	transition: transform 0.15s ease;
}

.home-account-v2__menu-item:hover {
	transform: translateY(-1px);
}

.home-account-v2__menu-item:active {
	transform: translateY(0);
}

.home-account-v2__menu-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow:
		0 4px 14px rgba(0, 0, 0, 0.06),
		0 1px 3px rgba(0, 0, 0, 0.04);
	color: var(--primary-color, var(--color-primary));
}

.home-account-v2__menu-icon .asmo-svg-icon--menu {
	display: block;
	flex-shrink: 0;
}

.home-account-v2__menu-label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--text-primary);
	max-width: 100%;
}

.home-earn-section {
	margin-top: var(--spacing-md);
}

/* Home earn — Layout mới: tiêu đề + icon sàn + ô link Tạo link */
.home-earn-v2__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.home-earn-v2__title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--primary-color, var(--color-primary));
	line-height: 1;
}

.home-earn-v2__title-icon .asmo-svg-icon {
	display: block;
}

.home-earn-v2__title-text {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.25;
}

.home-earn-v2__platforms {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.home-earn-v2__platform {
	position: relative;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border: 1.5px solid #ececec;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-earn-v2__platform:hover {
	border-color: rgba(252, 83, 50, 0.35);
}

.home-earn-v2__platform.active {
	border-color: var(--primary-color, var(--color-primary));
	box-shadow: 0 0 0 2px rgba(252, 83, 50, 0.12);
}

.home-earn-v2__platform-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.home-earn-v2__link-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 12px;
	border-radius: 14px;
	background: #f3f4f6;
}

.home-earn-v2__link-input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	color: var(--text-primary);
	padding: 8px 0;
	-webkit-text-size-adjust: 100%;
}

.home-earn-v2__link-input::placeholder {
	color: #9ca3af;
}

.home-earn-v2__paste {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: background 0.15s ease, color 0.15s ease;
}

.home-earn-v2__paste:hover {
	background: #fff8f6;
	color: var(--primary-color, var(--color-primary));
}

.home-earn-v2__paste .asmo-svg-icon {
	display: block;
}

.home-earn-v2__submit {
	flex-shrink: 0;
	padding: 10px 16px;
	border: none;
	border-radius: 10px;
	background: var(--primary-color, var(--color-primary));
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.1s ease;
}

.home-earn-v2__submit:hover {
	background: #e84a2b;
}

.home-earn-v2__submit:active {
	transform: scale(0.98);
}

.home-earn-v2__guide-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 0;
	border: none;
	background: none;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
}

.home-earn-v2__guide-toggle span {
	flex: 1;
}

.home-earn-v2__flow {
	margin-top: var(--spacing-sm);
}

@media (max-width: 400px) {
	.home-earn-v2__title-text {
		font-size: 15px;
	}

	.home-earn-v2__platform {
		width: 50px;
		height: 50px;
		border-radius: 12px;
		padding: 7px;
	}

	.home-earn-v2__submit {
		padding: 9px 12px;
		font-size: 13px;
	}
}

.home-referral-card {
	margin: var(--spacing-md) 0;
}

.home-referral-card__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--border-radius-lg);
	background: var(--bg-secondary);
	text-decoration: none;
	color: inherit;
	box-shadow: var(--shadow-card);
}

.home-referral-card__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #9c27b0, #ba68c8);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.home-referral-card__title {
	display: block;
	font-weight: 700;
	font-size: 14px;
}

.home-referral-card__desc {
	display: block;
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 2px;
}

.home-referral-card__arrow {
	color: var(--text-muted);
}

@media (max-width: 400px) {
	.home-account-v2__name {
		font-size: 15px;
	}

	.home-account-v2__pill {
		padding: 5px 8px;
	}

	.home-account-v2__pill-label {
		font-size: 9px;
	}

	.home-account-v2__pill-value {
		font-size: 11px;
	}

	.home-account-v2__menu-icon {
		width: 50px;
		height: 50px;
		border-radius: 14px;
	}

	.home-account-v2__menu-label {
		font-size: 10px;
	}

	.home-account-v2__menu-grid {
		gap: 4px;
	}
}

