/* HP Account Dashboard - Flatsome stable mode */
/* Mục tiêu: không ép lại layout tổng của theme, chỉ làm đẹp phần navigation và nội dung dashboard */

.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 35px rgba(15,23,42,.05);
	overflow: hidden;
}

.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	border-top: 1px solid rgba(15,23,42,.06);
}

.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-navigation ul li:first-child {
	border-top: 0;
}

.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 14px 16px;
	color: #374151;
	font-weight: 700;
	text-decoration: none;
}

.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--hpad-primary-soft);
	color: var(--hpad-primary);
}

.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 18px;
	box-shadow: 0 12px 35px rgba(15,23,42,.05);
	padding: 24px;
	min-width: 0;
}

.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-content:after,
.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-content:before {
	content: none !important;
	display: none !important;
}

.hpad-dashboard,
.hpad-dashboard * {
	box-sizing: border-box;
}

.hpad-dashboard {
	width: 100%;
	max-width: 100%;
	color: #111827;
}

.hpad-eyebrow {
	margin: 0 0 8px !important;
	color: var(--hpad-primary);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.hpad-welcome-card {
	padding-bottom: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(15,23,42,.08);
}

.hpad-welcome-card h2 {
	margin: 0 0 10px !important;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.04em;
	color: #111827;
}

.hpad-welcome-card p {
	margin: 0 !important;
	color: #6b7280;
	line-height: 1.75;
	max-width: 760px;
}

.hpad-quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
	width: 100%;
}

.hpad-quick-card {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 14px;
	padding: 18px;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 16px;
	background: #fff;
	text-decoration: none !important;
	color: inherit !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	min-width: 0;
}

.hpad-quick-card:hover {
	transform: translateY(-2px);
	border-color: var(--hpad-primary-border);
	box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.hpad-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: var(--hpad-primary-soft);
	color: var(--hpad-primary);
	flex: 0 0 52px;
}

.hpad-card-icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hpad-card-content {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.hpad-card-content strong {
	font-size: 18px;
	line-height: 1.25;
	color: #111827;
}

.hpad-card-content small {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.55;
}

.hpad-card-content em {
	margin-top: auto;
	color: var(--hpad-primary);
	font-style: normal;
	font-size: 13px;
	font-weight: 800;
}

.hpad-main-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: start;
	width: 100%;
}

.hpad-panel {
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 16px;
	background: #fff;
	padding: 18px;
	min-width: 0;
}

.hpad-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.hpad-panel-head h3,
.hpad-support-panel h3,
.hpad-courses-page h2 {
	margin: 0 !important;
	font-size: 18px;
	font-weight: 800;
	color: #111827;
}

.hpad-panel-head a {
	color: var(--hpad-primary);
	font-weight: 800;
	font-size: 13px;
	text-decoration: none;
}

.hpad-order-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.hpad-order-table {
	min-width: 680px;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 14px;
	overflow: hidden;
}

.hpad-order-row {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) 120px 120px 100px;
	gap: 14px;
	align-items: center;
	padding: 12px 14px;
	border-top: 1px solid rgba(15,23,42,.07);
	font-size: 14px;
}

.hpad-order-row:first-child {
	border-top: 0;
}

.hpad-order-header {
	background: #f9fafb;
	color: #6b7280;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.hpad-product-cell {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.hpad-product-cell img {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid rgba(15,23,42,.08);
	flex: 0 0 48px;
}

.hpad-product-cell strong {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	color: #111827;
}

.hpad-product-cell small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #6b7280;
}

.hpad-status {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: #ecfdf3;
	color: #12805c;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.hpad-button-outline,
.hpad-button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none !important;
}

.hpad-button-outline {
	background: #fff;
	border: 1px solid var(--hpad-primary-border);
	color: var(--hpad-primary);
}

.hpad-button-primary {
	width: 100%;
	background: var(--hpad-primary);
	border: 1px solid var(--hpad-primary);
	color: #fff !important;
	box-shadow: 0 10px 24px var(--hpad-primary-border);
}

.hpad-support-top {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 14px;
	align-items: start;
}

.hpad-support-panel p {
	margin: 8px 0 0 !important;
	color: #6b7280;
	line-height: 1.65;
	font-size: 14px;
}

.hpad-support-list {
	list-style: none;
	margin: 18px 0;
	padding: 0;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.9;
}

.hpad-empty {
	padding: 24px;
	border: 1px dashed rgba(15,23,42,.18);
	border-radius: 14px;
	text-align: center;
	color: #6b7280;
}

.hpad-empty p {
	margin: 0 0 12px !important;
}

@media (max-width: 900px) {
	.hpad-main-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 549px) {
	.hp-account-dashboard-enabled.woocommerce-account .woocommerce-MyAccount-content {
		padding: 16px;
	}
}


/* v1.0.3: Orders and support as separate full-width rows */
.hpad-support-panel {
	width: 100%;
}

.hpad-support-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.hpad-support-action {
	display: grid;
	grid-template-columns: 44px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 14px;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 14px;
	background: #fff;
	color: #111827 !important;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hpad-support-action:hover {
	transform: translateY(-2px);
	border-color: var(--hpad-primary-border);
	box-shadow: 0 14px 28px rgba(15,23,42,.07);
}

.hpad-support-action-icon {
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--hpad-primary-soft);
	color: var(--hpad-primary);
	font-weight: 900;
	font-size: 18px;
}

.hpad-support-action strong {
	display: block;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}

.hpad-support-action small {
	display: block;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.4;
}

.hpad-support-main-button {
	margin-top: 14px;
}

@media (max-width: 700px) {
	.hpad-support-actions {
		grid-template-columns: 1fr;
	}
}


/* v1.0.4: Purchased downloads block on dashboard */
.hpad-downloads-panel {
	width: 100%;
}

.hpad-download-list {
	display: grid;
	gap: 10px;
}

.hpad-download-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 12px 14px;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 14px;
	background: #fff;
}

.hpad-download-title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.hpad-download-title strong {
	display: block;
	color: #111827;
	font-size: 14px;
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hpad-download-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: var(--hpad-primary-soft);
	color: var(--hpad-primary);
	flex: 0 0 38px;
}

.hpad-download-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hpad-download-button {
	white-space: nowrap;
}

@media (max-width: 600px) {
	.hpad-download-item {
		grid-template-columns: 1fr;
	}
	.hpad-download-title strong {
		white-space: normal;
	}
	.hpad-download-button {
		width: 100%;
	}
}
