/* ==========================================================================
   Just Jewelrys Core — customer dashboard (My Account) styles
   ========================================================================== */

.jjc-dash { font-family: inherit; }

/* Hero greeting */
.jjc-dash-hero {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	background: linear-gradient(120deg, #3e0a3a, #5c1153 50%, #8f1f83);
	border-radius: 18px;
	padding: 30px 34px;
	color: #f6e6f4;
	box-shadow: 0 16px 38px rgba(62, 10, 58, .3);
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
}
.jjc-dash-hero::after {
	content: '';
	position: absolute;
	right: -70px;
	top: -70px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(212, 175, 55, .35), transparent 70%);
}
.jjc-dash-avatar img { border-radius: 50%; border: 3px solid rgba(212, 175, 55, .65); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.jjc-dash-hello { flex: 1; min-width: 220px; z-index: 2; }
.jjc-dash-tag {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: #f3d98b;
	background: rgba(212, 175, 55, .15);
	border: 1px solid rgba(212, 175, 55, .45);
	border-radius: 20px;
	padding: 4px 12px;
	margin-bottom: 8px;
}
.jjc-dash-hero h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin: 0 0 4px; font-family: 'Playfair Display', Georgia, serif; }
.jjc-dash-hero p { margin: 0; color: #dcc0d8; font-size: 13px; }
.jjc-dash-shop {
	z-index: 2;
	background: linear-gradient(135deg, #f2c14e, #d4af37);
	color: #3e0a3a !important;
	font-weight: 700;
	font-size: 13.5px;
	padding: 12px 22px;
	border-radius: 11px;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
	box-shadow: 0 6px 16px rgba(212, 175, 55, .35);
}
.jjc-dash-shop:hover { transform: translateY(-2px); color: #3e0a3a; }

/* Stat cards */
.jjc-dash-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 24px;
}
.jjc-dash-stat {
	background: #fff;
	border: 1px solid #f0e2ec;
	border-radius: 14px;
	padding: 18px 20px;
	text-align: center;
	box-shadow: 0 8px 22px rgba(92, 17, 83, .07);
	transition: transform .15s;
}
.jjc-dash-stat:hover { transform: translateY(-3px); }
.jjc-dash-stat-num {
	display: block;
	font-size: 21px;
	font-weight: 700;
	color: #5c1153;
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jjc-dash-stat-num ins { text-decoration: none; }
.jjc-dash-stat-label { font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: #97849a; font-weight: 600; }

/* Panels */
.jjc-dash-panel {
	background: #fff;
	border: 1px solid #f0e2ec;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(92, 17, 83, .07);
	margin-bottom: 24px;
	overflow: hidden;
}
.jjc-dash-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 22px;
	border-bottom: 1px solid #f6ecf4;
}
.jjc-dash-panel-head h3 { margin: 0; font-size: 16.5px; color: #5c1153; }
.jjc-dash-panel-head a { font-size: 12.5px; font-weight: 600; color: #c81e9f; text-decoration: none; }
.jjc-dash-panel-head a:hover { text-decoration: underline; }

.jjc-dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.jjc-dash-table th {
	text-align: left;
	font-size: 10.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #97849a;
	padding: 11px 22px;
	background: #fdf6fb;
	border-bottom: 1px solid #f6ecf4;
}
.jjc-dash-table td { padding: 12px 22px; border-bottom: 1px solid #f9f1f7; color: #4a2c47; }
.jjc-dash-table tr:last-child td { border-bottom: 0; }
.jjc-dash-empty { padding: 22px; color: #97849a; margin: 0; text-align: center; }

.jjc-pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.jjc-pill-processing { background: #e8ddfb; color: #6c3fd1; }
.jjc-pill-completed { background: #e0f5e9; color: #177245; }
.jjc-pill-on-hold { background: #fdeed3; color: #b4690e; }
.jjc-pill-pending { background: #e5eefb; color: #3366cc; }
.jjc-pill-cancelled, .jjc-pill-failed, .jjc-pill-refunded { background: #fde4e4; color: #b52f2f; }
.jjc-view {
	font-size: 12px;
	font-weight: 700;
	color: #c81e9f !important;
	border: 1.3px solid #f0bcd9;
	border-radius: 7px;
	padding: 4px 13px;
	text-decoration: none !important;
	transition: .15s;
}
.jjc-view:hover { background: #c81e9f; color: #fff !important; border-color: #c81e9f; }

/* Quick link cards */
.jjc-dash-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 22px;
}
.jjc-dash-link {
	display: flex;
	align-items: center;
	gap: 13px;
	background: #fff;
	border: 1px solid #f0e2ec;
	border-radius: 14px;
	padding: 16px 18px;
	text-decoration: none !important;
	transition: transform .15s, box-shadow .15s, border-color .15s;
	box-shadow: 0 6px 16px rgba(92, 17, 83, .05);
}
.jjc-dash-link:hover { transform: translateY(-3px); border-color: #e034b2; box-shadow: 0 12px 26px rgba(200, 30, 159, .14); }
.jjc-dash-link-ico {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fdf3d8, #fce8f6);
	color: #8a1e7c;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.jjc-dash-link-ico svg { width: 19px; height: 19px; }
.jjc-dash-link-txt { display: flex; flex-direction: column; line-height: 1.35; }
.jjc-dash-link-txt strong { font-size: 13.5px; color: #3e0a3a; }
.jjc-dash-link-txt small { font-size: 11.5px; color: #97849a; }

.jjc-dash-note {
	text-align: center;
	font-style: italic;
	font-family: 'Playfair Display', Georgia, serif;
	color: #7a1c72;
	margin: 6px 0 0;
}

.jjc-dash-standalone { max-width: 980px; margin: 0 auto 40px; }
.jjc-dash-login { max-width: 560px; margin: 0 auto; }

/* My-account layout spacing */
.woocommerce-account .woocommerce { padding-top: 6px; }
.woocommerce-account .woocommerce-MyAccount-content { box-shadow: none; }

@media (max-width: 900px) {
	.jjc-dash-stats { grid-template-columns: repeat(2, 1fr); }
	.jjc-dash-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.jjc-dash-links { grid-template-columns: 1fr; }
	.jjc-dash-hero { padding: 24px; }
	.jjc-dash-table th:nth-child(2), .jjc-dash-table td:nth-child(2) { display: none; }
}
