.slp-header-links {
	display: flex;
	align-items: center;
	gap: 14px;
}
.slp-header-links a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}
.slp-header-links a:hover { text-decoration: underline; }
.slp-header-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid rgba(255,255,255,0.4);
	padding: 6px 14px;
	border-radius: 30px;
}
.slp-header-btn .slp-icon { font-size: 14px; }

/* ===== Tabbed Login / Register Card ===== */
.slp-auth-card {
	max-width: 460px;
	margin: 40px auto;
	padding: 30px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	background: #fff;
}
.slp-main-tabs {
	display: flex;
	gap: 30px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 20px;
}
.slp-main-tab {
	background: none;
	border: none;
	font-size: 17px;
	font-weight: 700;
	padding: 0 0 12px 0;
	cursor: pointer;
	color: #888;
	border-bottom: 3px solid transparent;
}
.slp-main-tab.active {
	color: #0a1f44;
	border-bottom-color: #eeb51c;
}

.slp-role-tabs {
	display: flex;
	background: #f2f2f2;
	border-radius: 30px;
	padding: 4px;
	margin-bottom: 20px;
}
.slp-role-tab {
	flex: 1;
	background: none;
	border: none;
	padding: 10px;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
	color: #555;
}
.slp-role-tab.active {
	background: #0a1f44;
	color: #eeb51c;
}

.slp-panel { display: none; }
.slp-panel.active { display: block; }

.slp-panel label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
	margin-top: 14px;
}
.slp-panel input {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}
.slp-submit-btn {
	width: 100%;
	margin-top: 22px;
	background: #eeb51c;
	color: #0a1f44;
	border: none;
	padding: 12px;
	border-radius: 30px;
	font-weight: 700;
	cursor: pointer;
	font-size: 15px;
}
.slp-register-note { font-weight: 600; color: #0a1f44; margin: 0 0 6px; }
.slp-switch-text { text-align: center; margin-top: 16px; font-size: 14px; }
.slp-switch-text a { color: #eeb51c; font-weight: 700; text-decoration: none; }
.slp-error {
	background: #fdecea;
	color: #b00020;
	padding: 10px 14px;
	border-radius: 6px;
	font-weight: 600;
	margin-bottom: 16px;
}

/* ===== Student Dashboard (sidebar layout) ===== */
.slp-dashboard {
	max-width: 1140px;
	margin: 30px auto;
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	font-family: inherit;
}
.slp-dashboard * { box-sizing: border-box; }

/* Sidebar */
.slp-dash-side {
	background: #0a1f44;
	color: #fff;
	border-radius: 14px;
	padding: 24px 16px;
	position: sticky;
	top: 20px;
}
.slp-dash-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 8px 20px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(255,255,255,0.14);
}
.slp-dash-avatar {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #eeb51c;
	color: #0a1f44;
	font-weight: 800;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.slp-dash-user-name { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.25; word-break: break-word; }
.slp-dash-user-mail { color: rgba(255,255,255,0.65); font-size: 12px; word-break: break-all; }

.slp-dashboard .slp-dash-menu { list-style: none; margin: 0; padding: 0; }
.slp-dashboard .slp-dash-menu li { list-style: none; margin: 0 0 4px; padding: 0; }
.slp-dashboard .slp-dash-menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	color: rgba(255,255,255,0.82);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.slp-dashboard .slp-dash-menu a:hover { background: rgba(255,255,255,0.09); color: #fff; }
.slp-dashboard .slp-dash-menu a.active { background: #eeb51c; color: #0a1f44; }
.slp-dash-menu svg { width: 20px; height: 20px; flex-shrink: 0; }
.slp-dashboard .slp-dash-menu .slp-dash-logout {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,0.14);
}

/* Main panel */
.slp-dash-main {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	padding: 30px;
	min-height: 420px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.slp-dashboard .slp-dash-title { margin: 0 0 6px; color: #0a1f44; font-size: 28px; line-height: 1.2; }
.slp-dashboard .slp-dash-sub { margin: 0 0 24px; color: #666; }
.slp-dashboard .slp-dash-h3 { margin: 30px 0 14px; color: #0a1f44; font-size: 20px; }
.slp-notice-success {
	background: #e8f5e9;
	color: #1b5e20;
	padding: 10px 14px;
	border-radius: 6px;
	font-weight: 600;
	margin: 0 0 20px;
}

/* Stat cards */
.slp-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 8px;
}
.slp-stat {
	background: #f6f8fc;
	border-left: 4px solid #eeb51c;
	border-radius: 10px;
	padding: 16px 18px;
}
.slp-stat-number { font-size: 30px; font-weight: 800; color: #0a1f44; line-height: 1.1; }
.slp-stat-number.slp-stat-small { font-size: 20px; padding-top: 7px; }
.slp-stat-label { font-size: 13px; color: #666; margin-top: 4px; }

/* Course cards */
.slp-course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}
.slp-course-card {
	border: 1px solid #e2e2e2;
	border-top: 4px solid #0a1f44;
	border-radius: 10px;
	padding: 20px;
	background: #fff;
}
.slp-dashboard .slp-course-title { margin: 0 0 8px; color: #0a1f44; font-size: 18px; line-height: 1.3; }
.slp-course-desc { color: #555; font-size: 14px; }
.slp-course-desc p { margin: 0 0 10px; }
.slp-course-meta { font-size: 14px; color: #333; margin: 0 0 12px; }
.slp-muted { color: #888; font-size: 14px; font-style: italic; }

/* Live classes list */
.slp-live-list { display: flex; flex-direction: column; gap: 12px; }
.slp-live-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 16px 18px;
	background: #fff;
}
.slp-live-title { font-weight: 700; color: #0a1f44; font-size: 16px; }
.slp-live-schedule { font-size: 14px; color: #666; margin-top: 2px; }
.slp-live-action { flex-shrink: 0; }

/* Profile */
.slp-profile { border: 1px solid #e2e2e2; border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.slp-profile-row {
	display: flex;
	gap: 16px;
	padding: 14px 18px;
	border-bottom: 1px solid #eee;
}
.slp-profile-row:last-child { border-bottom: none; }
.slp-profile-label { flex: 0 0 170px; font-weight: 600; color: #555; }
.slp-profile-value { color: #0a1f44; word-break: break-word; }
.slp-profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

/* Shared */
.slp-empty {
	border: 2px dashed #d8d8d8;
	border-radius: 10px;
	padding: 28px 20px;
	text-align: center;
	color: #666;
}
.slp-more { margin: 14px 0 0; }
.slp-more a { color: #0a1f44; font-weight: 700; text-decoration: none; border-bottom: 2px solid #eeb51c; }
.slp-dashboard a.slp-btn,
.slp-btn {
	display: inline-block;
	background: #eeb51c;
	color: #0a1f44;
	padding: 9px 18px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: 2px solid #eeb51c;
}
.slp-dashboard a.slp-btn:hover { background: #d9a212; border-color: #d9a212; color: #0a1f44; }
.slp-dashboard a.slp-btn.slp-btn-outline { background: transparent; border-color: #0a1f44; color: #0a1f44; }
.slp-dashboard a.slp-btn.slp-btn-outline:hover { background: #0a1f44; color: #fff; }

/* Tablet & mobile: sidebar becomes a horizontal menu on top */
@media (max-width: 860px) {
	.slp-dashboard { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px auto; }
	.slp-dash-side { position: static; padding: 16px 12px; }
	.slp-dash-user { padding-bottom: 14px; margin-bottom: 12px; }
	.slp-dashboard .slp-dash-menu { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
	.slp-dashboard .slp-dash-menu li { flex: 0 0 auto; margin: 0; }
	.slp-dashboard .slp-dash-menu a { padding: 10px 14px; white-space: nowrap; }
	.slp-dashboard .slp-dash-menu .slp-dash-logout { margin: 0; padding: 0; border-top: none; }
	.slp-dash-main { padding: 20px; min-height: 0; }
	.slp-stats { grid-template-columns: minmax(0, 1fr); }
	.slp-live-row { flex-direction: column; align-items: flex-start; }
	.slp-profile-row { flex-direction: column; gap: 2px; }
	.slp-profile-label { flex: none; }
}

/* ===== Refer & Earn ===== */
.slp-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.slp-reward-box {
	background: #fff8e1;
	border-left: 4px solid #eeb51c;
	color: #0a1f44;
	padding: 12px 16px;
	border-radius: 8px;
	margin: 0 0 20px;
}
.slp-ref-box {
	background: #f6f8fc;
	border: 1px solid #e2e6ef;
	border-radius: 12px;
	padding: 20px;
}
.slp-ref-row { margin-bottom: 16px; }
.slp-ref-label { font-weight: 700; color: #0a1f44; font-size: 14px; margin-bottom: 6px; }
.slp-ref-field { display: flex; gap: 10px; align-items: stretch; }
.slp-dashboard .slp-ref-field input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #ccd3e0;
	border-radius: 8px;
	background: #fff;
	color: #0a1f44;
	font-size: 14px;
}
.slp-dashboard .slp-ref-field input.slp-ref-code {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 3px;
	text-align: center;
}
.slp-dashboard button.slp-btn { cursor: pointer; white-space: nowrap; font-family: inherit; }
.slp-dashboard button.slp-btn:hover { background: #d9a212; border-color: #d9a212; }
.slp-ref-share { margin: 4px 0 0; }
.slp-ref-steps { margin: 0; padding-left: 22px; color: #444; line-height: 1.7; }
.slp-ref-steps li { margin-bottom: 8px; }
.slp-table-wrap { overflow-x: auto; }
.slp-ref-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.slp-ref-table th, .slp-ref-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eee; }
.slp-ref-table th { background: #f6f8fc; color: #0a1f44; font-weight: 700; }
.slp-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	background: #eef0f4;
	color: #555;
	font-size: 12px;
	font-weight: 700;
}
.slp-badge.slp-badge-ok { background: #e8f5e9; color: #1b5e20; }

@media (max-width: 860px) {
	.slp-ref-field { flex-direction: column; }
	.slp-dashboard .slp-ref-field input.slp-ref-code { font-size: 20px; }
}


/* ADDED: Tutor LMS style course cards (dashboard + [slp_courses]) */
.slp-course-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.slp-tc{background:#fff;border:1px solid #e0e2ea;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 10px rgba(10,31,68,.06);transition:box-shadow .2s,transform .2s}
.slp-tc:hover{box-shadow:0 10px 26px rgba(10,31,68,.14);transform:translateY(-2px)}
.slp-tc-thumb{position:relative;aspect-ratio:16/9;background:#eef0f6;overflow:hidden}
.slp-tc-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.slp-tc-thumb-empty{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:56px;font-weight:700;color:#fff;background:linear-gradient(135deg,#0a1f44,#274a8a)}
.slp-tc-cat{position:absolute;left:12px;top:12px;background:#f0b41c;color:#0a1f44;font-size:12px;font-weight:600;padding:3px 10px;border-radius:20px}
.slp-tc-body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:10px;flex:1}
.slp-tc .slp-tc-title,.slp-dashboard .slp-tc .slp-tc-title{margin:0;font-size:18px;line-height:1.35;color:#0a1f44}
.slp-tc-author{display:flex;align-items:center;gap:8px;font-size:13px;color:#666}
.slp-tc-author img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.slp-tc-desc{font-size:14px;color:#555}
.slp-tc-desc p{margin:0 0 8px}
.slp-tc-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:#444;padding-top:10px;border-top:1px solid #eceef4}
.slp-tc-progress small{display:block;margin-top:4px;color:#666;font-size:12px}
.slp-tc-progress-bar{height:6px;background:#e6e8ef;border-radius:6px;overflow:hidden}
.slp-tc-progress-bar span{display:block;height:100%;background:#f0b41c;border-radius:6px}
.slp-tc-actions{margin-top:auto;padding-top:6px}
.slp-courses-grid .slp-tc{height:100%}

/* ADDED: tidy course cards */
.slp-dashboard .slp-course-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));align-items:stretch;gap:22px}
.slp-tc{height:100%}
.slp-tc-thumb{aspect-ratio:16/9;height:auto}
.slp-tc-thumb img{position:absolute!important;top:0;left:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;margin:0!important}
.slp-tc-cat{position:absolute!important;left:12px;top:12px;z-index:2}
.slp-tc-body{gap:12px}
.slp-tc-author{margin:0}
.slp-tc-author img{width:26px!important;height:26px!important;border-radius:50%}
.slp-tc-actions{margin-top:auto}
