/* AK Norah Klassförsäljning — frontend dashboard */

.aknorah-dash {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1d1d1f;
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
}

.aknorah-dash-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ececec;
}

.aknorah-dash-header h2 {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 700;
}

.aknorah-dash-sub {
	margin: 0;
	color: #6e6e73;
	font-size: 14px;
}

.aknorah-link-muted {
	color: #6e6e73;
	text-decoration: none;
	font-size: 14px;
}
.aknorah-link-muted:hover { text-decoration: underline; }

.aknorah-stat-cards-frontend {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	margin: 0 0 28px;
}

.aknorah-stat-cards-frontend .aknorah-stat-card {
	background: #f7f7f9;
	border-radius: 10px;
	padding: 16px 18px;
	border: 1px solid #ececec;
}

.aknorah-stat-cards-frontend .aknorah-stat-card .label {
	font-size: 12px;
	color: #6e6e73;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 6px;
}

.aknorah-stat-cards-frontend .aknorah-stat-card .value {
	font-size: 24px;
	font-weight: 700;
	color: #1d1d1f;
}

.aknorah-stat-cards-frontend .aknorah-stat-card-primary {
	background: #1d1d1f;
	color: #fff;
	border-color: #1d1d1f;
}
.aknorah-stat-cards-frontend .aknorah-stat-card-primary .label { color: #c1c1c4; }
.aknorah-stat-cards-frontend .aknorah-stat-card-primary .value { color: #fff; }

/* Share box */
.aknorah-share-box {
	background: #fdf6e3;
	border: 1px solid #f1e7c5;
	border-radius: 10px;
	padding: 18px 22px;
	margin: 0 0 28px;
}

.aknorah-share-box h3 {
	margin-top: 0;
	margin-bottom: 6px;
	font-size: 18px;
}

.aknorah-share-input {
	display: flex;
	gap: 8px;
	margin: 12px 0 6px;
}

.aknorah-share-input input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
}

.aknorah-btn {
	background: #1d1d1f;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}
.aknorah-btn:hover { background: #333; }

.aknorah-code-tip {
	font-size: 13px;
	color: #6e6e73;
	margin: 8px 0 0;
}

.aknorah-code-tip code {
	background: #fff;
	border: 1px solid #ddd;
	padding: 1px 8px;
	border-radius: 4px;
	font-weight: 700;
}

/* Recent orders */
.aknorah-recent h3 {
	font-size: 18px;
	margin-bottom: 10px;
}

.aknorah-recent-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 14px;
}

.aknorah-recent-table th,
.aknorah-recent-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #ececec;
	text-align: left;
}

.aknorah-recent-table th {
	background: #f7f7f9;
	font-weight: 600;
	color: #6e6e73;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.03em;
}

.aknorah-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}
.aknorah-pill-earned   { background: #d1f0d7; color: #1a5e2a; }
.aknorah-pill-paid     { background: #cfe4ff; color: #103e75; }
.aknorah-pill-pending  { background: #fff1c2; color: #74540b; }
.aknorah-pill-void     { background: #efefef; color: #757575; }

/* Login + no-class states */
.aknorah-dash-login,
.aknorah-dash-no-class {
	max-width: 460px;
}

.aknorah-dash-login form { margin: 16px 0; }
.aknorah-dash-login form p { margin: 8px 0; }
.aknorah-dash-login input[type=text],
.aknorah-dash-login input[type=password] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

.aknorah-dash-login input[type=submit] {
	background: #1d1d1f;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

/* Checkout field */
.aknorah-class-field { margin: 20px 0; }
.aknorah-class-detected {
	background: #d1f0d7;
	border-left: 4px solid #1a5e2a;
	padding: 10px 14px;
	border-radius: 4px;
	margin: 0 0 10px;
}
