/* Shahriari School — Premium Dark Glassmorphism layer
   Scoped deliberately: only the profile page and the new dashboard
   spotlight cards (featured student / countdown / birthday) opt into this
   dark surface via the ".shs-premium" class, so the rest of the app (the
   light pastel theme, all existing pages) is completely untouched. */

.shs-premium {
	--shs-accent: #8b5cf6;
	position: relative;
	background: linear-gradient(160deg, #1b1230 0%, #150e26 55%, #1a1030 100%);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 24px;
	padding: 24px;
	margin-bottom: 20px;
	color: #ece9f7;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(10,5,25,.35);
}
.shs-premium::before {
	content: '';
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--shs-accent) 35%, transparent), transparent 55%),
		radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--shs-accent) 22%, transparent), transparent 50%);
	opacity: .8;
	pointer-events: none;
}
.shs-premium > * { position: relative; z-index: 1; }

.shs-premium h3 { margin: 0 0 16px; font-size: 15px; color: #fff; }

/* ---------- Profile hero ---------- */
.shs-profile-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.shs-profile-hero-info { flex: 1; min-width: 160px; }
.shs-profile-hero-info h2 { margin: 0 0 4px; font-size: 19px; color: #fff; }
.shs-profile-hero-info p { margin: 0; color: rgba(236,233,247,.65); font-size: 13px; }
.shs-profile-bio { margin-top: 8px !important; color: rgba(236,233,247,.85) !important; font-style: italic; font-size: 13px !important; }

.shs-btn-premium {
	border: none; border-radius: 999px; padding: 10px 20px;
	background: linear-gradient(90deg, var(--shs-accent), #ec4899);
	background: linear-gradient(90deg, var(--shs-accent), color-mix(in srgb, var(--shs-accent) 60%, #ec4899));
	color: #fff; font-weight: 800; font-size: 13px; cursor: pointer;
	box-shadow: 0 8px 22px rgba(139,92,246,.45);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--shs-accent) 45%, transparent);
	transition: transform .15s ease, box-shadow .15s ease;
	white-space: nowrap;
}
.shs-btn-premium:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px color-mix(in srgb, var(--shs-accent) 55%, transparent); }
.shs-btn-premium:active { transform: translateY(0) scale(.98); }

.shs-profile-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.shs-profile-stat {
	flex: 1; min-width: 140px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 16px; padding: 12px 16px;
	display: flex; flex-direction: column; gap: 6px;
	backdrop-filter: blur(8px);
}
.shs-profile-stat span { font-size: 11.5px; color: rgba(236,233,247,.6); }
.shs-profile-stat strong { font-size: 15px; color: #fff; }
.shs-profile-stat-highlight {
	border-color: rgba(139,92,246,.5);
	border-color: color-mix(in srgb, var(--shs-accent) 50%, transparent);
	background: rgba(139,92,246,.18);
	background: color-mix(in srgb, var(--shs-accent) 18%, rgba(255,255,255,.05));
}

/* ---------- Profile edit panel ---------- */
.shs-profile-edit-panel { animation: shs-premium-open .25s ease both; }
@keyframes shs-premium-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.shs-p-field { margin-bottom: 18px; }
.shs-p-field > label { display: block; font-size: 12.5px; font-weight: 700; color: rgba(236,233,247,.75); margin-bottom: 8px; }
.shs-p-field textarea {
	width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.12);
	background: rgba(255,255,255,.06); color: #fff; padding: 12px 14px; font-family: inherit; font-size: 13.5px;
	resize: vertical;
}
.shs-p-field textarea::placeholder { color: rgba(236,233,247,.35); }
.shs-p-field textarea:focus { outline: none; border-color: var(--shs-accent); }
.shs-p-checkbox { display: flex !important; align-items: center; gap: 8px; font-size: 13px !important; cursor: pointer; }

.shs-avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 520px) { .shs-avatar-grid { grid-template-columns: repeat(4, 1fr); } }
.shs-avatar-choice {
	aspect-ratio: 1; border-radius: 16px; border: 2px solid transparent;
	background: linear-gradient(135deg, var(--shs-av-from), var(--shs-av-to));
	font-size: 22px; display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.shs-avatar-choice:hover { transform: scale(1.06); }
.shs-avatar-choice.is-selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(139,92,246,.6); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shs-accent) 60%, transparent); }

.shs-color-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.shs-color-choice {
	width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
	background: var(--shs-swatch); border: 2px solid transparent;
	transition: transform .15s ease;
}
.shs-color-choice:hover { transform: scale(1.1); }
.shs-color-choice.is-selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(139,92,246,.7); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shs-swatch) 70%, transparent); }

.shs-p-error { background: rgba(244,63,94,.18); color: #fecdd3; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.shs-p-success { background: rgba(34,197,94,.18); color: #bbf7d0; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.shs-p-actions { display: flex; justify-content: flex-end; gap: 10px; }
.shs-p-actions .shs-btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.shs-p-actions .shs-btn-outline:hover { background: rgba(255,255,255,.08); }

/* Jalali picker selects, restyled for the dark surface */
.shs-jalali-picker-light .shs-jalali-picker { display: flex; gap: 8px; }
.shs-jalali-picker-light .shs-jalali-select {
	border-radius: 10px; border: 1px solid rgba(255,255,255,.15);
	background: rgba(255,255,255,.06); color: #fff; padding: 9px 10px; font-family: inherit;
}
.shs-jalali-picker-light .shs-jalali-select option { color: #1a1030; }

/* ---------- Birthday banner ---------- */
.shs-birthday-banner {
	display: flex; align-items: center; gap: 16px;
	animation: shs-birthday-pop .5s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes shs-birthday-pop { from { opacity: 0; transform: scale(.94) translateY(-6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.shs-birthday-emoji { font-size: 44px; animation: shs-birthday-wiggle 2.4s ease-in-out infinite; }
@keyframes shs-birthday-wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.shs-birthday-text h3 { margin: 0 0 4px; font-size: 16px; color: #fff; }
.shs-birthday-text p { margin: 0; font-size: 13px; color: rgba(236,233,247,.8); }

/* ---------- Dashboard spotlight row (featured student + countdown) ---------- */
.shs-premium-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 760px) { .shs-premium-row { grid-template-columns: 1fr; } }
.shs-premium-row .shs-premium { margin-bottom: 0; }

.shs-featured-badge { font-size: 28px; margin-bottom: 4px; }
.shs-featured-kicker { display: block; font-size: 12px; font-weight: 700; color: #c4b5fd; color: color-mix(in srgb, var(--shs-accent) 70%, #fff); margin-bottom: 10px; }
.shs-featured-student { display: flex; align-items: center; gap: 12px; }
.shs-featured-student strong { display: block; font-size: 15px; color: #fff; }
.shs-featured-student small { color: rgba(236,233,247,.6); font-size: 12px; }
.shs-featured-desc { margin: 12px 0 0; font-size: 13px; color: rgba(236,233,247,.8); line-height: 1.8; }

.shs-countdown-kicker { display: block; font-size: 12px; font-weight: 700; color: #c4b5fd; color: color-mix(in srgb, var(--shs-accent) 70%, #fff); margin-bottom: 6px; }
.shs-countdown-title { margin: 0 0 14px; font-size: 15px; color: #fff; }
.shs-countdown-timer { display: flex; gap: 10px; }
.shs-countdown-unit {
	flex: 1; text-align: center; background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 4px;
}
.shs-countdown-unit strong { display: block; font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.shs-countdown-unit span { font-size: 10.5px; color: rgba(236,233,247,.6); }
.shs-countdown-started { margin: 4px 0 0; font-weight: 800; color: #fde68a; font-size: 14px; }
.shs-countdown-desc { margin: 12px 0 0; font-size: 12.5px; color: rgba(236,233,247,.7); }

.shs-section-heading { font-size: 15px; font-weight: 800; color: #3b2f66; margin: 6px 0 12px; }

@media (max-width: 480px) {
	.shs-premium { padding: 18px; border-radius: 20px; }
	.shs-profile-hero { flex-direction: column; align-items: flex-start; text-align: right; }
	.shs-btn-premium { width: 100%; }
}
