/* ================================================================
   DIRAYA Portal — refined UI (Marcellus + Open Sans)
   ================================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
#diraya-portal.diraya-portal-root {
	--diraya-green: #003829;
	--diraya-green-dark: #002a1f;
	--diraya-green-soft: #0d4d3a;
	--diraya-copper: #984719;
	--diraya-copper-light: #b85a2a;
	--diraya-text: #2d3531;
	--diraya-text-muted: #5c6862;
	--diraya-border: #d4ddd6;
	--diraya-border-soft: #e8ece9;
	--diraya-surface: #ffffff;
	--diraya-surface-warm: #fbfaf7;
	--diraya-surface-muted: #f3f5f2;
	--diraya-mint: #e6f2ec;
	--diraya-radius-sm: 6px;
	--diraya-radius: 12px;
	--diraya-radius-lg: 16px;
	--diraya-shadow: 0 4px 6px -1px rgba(0, 56, 41, 0.06), 0 20px 40px -12px rgba(25, 28, 26, 0.12);
	--diraya-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 12px 32px -8px rgba(0, 40, 30, 0.08);
	--diraya-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--diraya-font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
	--diraya-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full-width background: break out of theme content column */
#diraya-portal.diraya-portal-root {
	isolation: isolate;
	position: relative;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow-x: hidden; /* fallback */
	overflow-x: clip;
	font-family: var(--diraya-font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--diraya-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#diraya-portal *,
#diraya-portal *::before,
#diraya-portal *::after {
	box-sizing: border-box;
}

#diraya-portal h1,
#diraya-portal h2,
#diraya-portal h3,
#diraya-portal p {
	margin: 0;
}

#diraya-portal button,
#diraya-portal input,
#diraya-portal select,
#diraya-portal textarea {
	font-family: inherit;
}

#diraya-portal img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* ── Loader ────────────────────────────────────────────────── */
.diraya-portal__loader {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(251, 250, 247, 0.92);
	backdrop-filter: blur(8px);
}
.diraya-portal__spinner {
	width: 44px;
	height: 44px;
	border: 3px solid rgba(0, 56, 41, 0.12);
	border-top-color: var(--diraya-green);
	border-radius: 50%;
	animation: diraya-spin 0.65s linear infinite;
}
@keyframes diraya-spin {
	to { transform: rotate(360deg); }
}

/* ================================================================
   AUTH SCREENS
   ================================================================ */
.diraya-auth {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72vh;
	padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px);
	background: radial-gradient(ellipse 120% 80% at 50% 0%, #eef4ef 0%, var(--diraya-surface-warm) 45%, #f0f2ee 100%);
}

.diraya-auth__card {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
	width: 100%;
	max-width: 1240px;
	background: var(--diraya-surface);
	border-radius: var(--diraya-radius-lg);
	border: 1px solid rgba(0, 56, 41, 0.08);
	box-shadow: var(--diraya-shadow);
	overflow: hidden;
}

.diraya-auth__card--register {
	max-width: 1240px;
	grid-template-columns: minmax(300px, 0.42fr) minmax(360px, 0.58fr);
}

/* Left panel — photo + overlays (Figma-style) */
.diraya-auth__left {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(520px, 70vh);
	padding: clamp(28px, 4vw, 48px);
	overflow: hidden;
	background-color: var(--diraya-green-dark);
}

.diraya-auth__left--login {
	background-image:
		linear-gradient(180deg, rgba(0, 42, 31, 0.15) 0%, rgba(0, 56, 41, 0.5) 50%, rgba(0, 36, 28, 0.88) 100%),
		url('https://sbny.local/wp-content/uploads/2026/04/yuz-ayub-rsBcEurM-7M-unsplash.webp');
	background-size: cover;
	background-position: center;
}

.diraya-auth__left--register {
	justify-content: center;
	align-items: flex-start;
	min-height: min(560px, 75vh);
	background-image:
		linear-gradient(180deg, rgba(0, 42, 31, 0.25) 0%, rgba(0, 56, 41, 0.75) 100%),
		url('https://sbny.local/wp-content/uploads/2026/04/masjid-maba-2QRJyk-kAXI-unsplash.webp');
	background-size: cover;
	background-position: center 40%;
}

.diraya-auth__left-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 56, 41, 0.35);
	pointer-events: none;
}
.diraya-auth__left-overlay--register {
	background: rgba(0, 56, 41, 0.45);
}

.diraya-auth__left-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #003829 0%, rgba(0, 56, 41, 0.55) 45%, rgba(0, 56, 41, 0.15) 100%);
	pointer-events: none;
}

/* Balance photo + overlays so imagery stays visible */
.diraya-auth__left--login .diraya-auth__left-overlay {
	background: rgba(0, 42, 31, 0.28);
}
.diraya-auth__left--login .diraya-auth__left-gradient {
	background: linear-gradient(to top, rgba(0, 56, 41, 0.92) 0%, rgba(0, 56, 41, 0.35) 50%, rgba(0, 30, 22, 0.1) 100%);
}
.diraya-auth__left--register .diraya-auth__left-overlay--register {
	background: rgba(0, 48, 36, 0.32);
}

.diraya-auth__left-content {
	position: relative;
	z-index: 2;
}
.diraya-auth__left-content--register {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 100%;
}

.diraya-auth__accent-bar {
	display: block;
	width: 48px;
	height: 4px;
	background: linear-gradient(90deg, var(--diraya-copper), var(--diraya-copper-light));
	border-radius: 2px;
	margin-bottom: 1.5rem;
}
.diraya-auth__left-content--register .diraya-auth__accent-bar {
	width: 64px;
	margin-bottom: 0;
}

.diraya-auth__hero-heading {
	font-family: var(--diraya-font-display);
	font-weight: 400;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	line-height: 1.15;
	color: #fff;
	margin-bottom: 1rem;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.diraya-auth__hero-heading--large {
	font-size: clamp(1.85rem, 4vw, 3.25rem);
	line-height: 1.15;
	margin-bottom: 0;
}

.diraya-auth__hero-text {
	font-family: var(--diraya-font-body);
	font-size: clamp(0.95rem, 1.2vw, 1.125rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	max-width: 26rem;
}

.diraya-auth__badge {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 0.5rem;
}
.diraya-auth__badge span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
}

/* Right panel */
.diraya-auth__right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2rem, 5vw, 4rem);
	background: var(--diraya-surface);
}
.diraya-auth__right--register {
	background: var(--diraya-surface-warm);
}

.diraya-auth__form-wrapper {
	width: 100%;
	max-width: 32rem;
	margin: 0 auto;
}

.diraya-auth__overline {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--diraya-copper);
	margin-bottom: 0.5rem;
}

.diraya-auth__title {
	font-family: var(--diraya-font-display);
	font-weight: 400;
	font-size: clamp(1.5rem, 2.5vw, 1.875rem);
	line-height: 1.2;
	color: #1a1f1c;
	margin-bottom: 0.35rem;
}
.diraya-auth__title--green {
	font-size: clamp(1.65rem, 2.8vw, 2.125rem);
	color: var(--diraya-green);
}

.diraya-auth__subtitle {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--diraya-text-muted);
}
.diraya-auth__header {
	margin-bottom: 2rem;
}
.diraya-auth__right--register .diraya-auth__header {
	margin-bottom: 2.25rem;
}
.diraya-auth__right--register .diraya-auth__subtitle {
	font-size: 1rem;
	max-width: 28rem;
}

/* Tabs */
.diraya-auth__tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--diraya-border-soft);
	margin-bottom: 2rem;
}
.diraya-auth__tab {
	background: none;
	border: none;
	font-family: var(--diraya-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--diraya-text-muted);
	padding: 0 0 1rem;
	margin-right: 0;
	cursor: pointer;
	position: relative;
	transition: color 0.2s var(--diraya-ease);
}
.diraya-auth__tab + .diraya-auth__tab {
	margin-left: 32px;
}
.diraya-auth__tab:hover {
	color: var(--diraya-green);
}
.diraya-auth__tab--active {
	color: var(--diraya-green);
}
.diraya-auth__tab--active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: var(--diraya-green);
	border-radius: 3px 3px 0 0;
}

/* Forms */
.diraya-auth__form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.diraya-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem 1.5rem;
}

.diraya-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.diraya-field--full {
	grid-column: 1 / -1;
}

.diraya-field__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--diraya-text-muted);
}
.diraya-req {
	color: #c53030;
}

/* Login: underline inputs */
#diraya-login-form .diraya-field__input {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid #9ca3af;
	border-radius: 0;
	padding: 0.75rem 0.25rem 1rem;
	font-family: var(--diraya-font-body);
	font-size: 1rem;
	color: #111827;
	transition: border-color 0.2s;
}
#diraya-login-form .diraya-field__input::placeholder {
	color: #9ca3af;
}
#diraya-login-form .diraya-field__input:focus {
	outline: none;
	border-bottom-color: var(--diraya-green);
	box-shadow: 0 1px 0 0 var(--diraya-green);
}

/* Register: filled inputs */
#diraya-register-form .diraya-field__input {
	width: 100%;
	background: var(--diraya-surface);
	border: 1px solid var(--diraya-border);
	border-radius: var(--diraya-radius-sm);
	padding: 0.75rem 0.875rem;
	font-family: var(--diraya-font-body);
	font-size: 0.9375rem;
	color: #1a1f1c;
	transition: border-color 0.2s, box-shadow 0.2s;
}
#diraya-register-form .diraya-field__input::placeholder {
	color: #9ca3af;
}
#diraya-register-form .diraya-field__input:focus {
	outline: none;
	border-color: var(--diraya-green);
	box-shadow: 0 0 0 3px rgba(0, 56, 41, 0.12);
}
/* Native select + custom chevron: hide system arrow (was double arrows) and fix text clipping */
#diraya-portal #diraya-register-form select.diraya-field__input--select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	padding: 0.625rem 2.75rem 0.625rem 0.875rem !important;
	min-height: 2.75rem;
	height: auto !important;
	max-height: none;
	line-height: 1.5 !important;
	box-sizing: border-box;
	vertical-align: middle;
	background-color: var(--diraya-surface);
	background-image: none;
	font-size: 1rem;
	overflow: visible;
}

.diraya-field__select-wrap {
	position: relative;
	display: block;
}

.diraya-field__chevron {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	opacity: 0.65;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* IE / old Edge drop arrow removal */
#diraya-portal #diraya-register-form select.diraya-field__input--select::-ms-expand {
	display: none;
}

.diraya-field__input-wrap {
	position: relative;
}
.diraya-field__input-wrap .diraya-field__input {
	padding-right: 2.75rem;
}
.diraya-field__toggle-pw {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	border-radius: 4px;
	opacity: 0.55;
	transition: opacity 0.2s;
}
.diraya-field__toggle-pw:hover {
	opacity: 1;
}

/* Checkbox */
.diraya-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	position: relative;
}
.diraya-checkbox input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.diraya-checkbox__box {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 1px solid var(--diraya-border);
	border-radius: 6px;
	background: var(--diraya-surface);
	transition: background 0.15s, border-color 0.15s;
	position: relative;
}
.diraya-checkbox__box--large {
	width: 24px;
	height: 24px;
}
.diraya-checkbox input:checked + .diraya-checkbox__box {
	background: var(--diraya-green);
	border-color: var(--diraya-green);
}
.diraya-checkbox input:checked + .diraya-checkbox__box::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.diraya-checkbox input:checked + .diraya-checkbox__box--large::after {
	left: 8px;
	top: 3px;
	width: 6px;
	height: 12px;
}
.diraya-checkbox__label {
	font-size: 13px;
	color: var(--diraya-text-muted);
}

.diraya-auth__extras {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.25rem;
}
.diraya-auth__forgot {
	font-size: 13px;
	font-weight: 600;
	color: var(--diraya-copper);
	text-decoration: none;
}
.diraya-auth__forgot:hover {
	text-decoration: underline;
}

/* Buttons */
.diraya-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--diraya-font-body);
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: var(--diraya-radius-sm);
	padding: 0.9rem 1.5rem;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: box-shadow 0.2s var(--diraya-ease);
	line-height: 1.4;
}
/*
 * Primary: do NOT swap gradient → solid on hover (causes full repaint / flicker).
 * Keep one gradient; hover only fades a ::before overlay (opacity).
 */
.diraya-btn--primary {
	position: relative;
	z-index: 0;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(180deg, var(--diraya-green-soft) 0%, var(--diraya-green) 100%);
	color: #fff !important;
	box-shadow: 0 4px 14px -4px rgba(0, 56, 41, 0.45);
	outline: none !important;
	transition: box-shadow 0.2s var(--diraya-ease);
}
.diraya-btn--primary::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.12);
	opacity: 0;
	transition: opacity 0.15s var(--diraya-ease);
	pointer-events: none;
	z-index: 0;
}
.diraya-btn--primary > * {
	position: relative;
	z-index: 1;
}
.diraya-btn--primary:hover::before {
	opacity: 1;
}
/* Themes (e.g. Astra) often style button:hover with link color — keep label + icon white */
#diraya-portal .diraya-btn--primary,
#diraya-portal .diraya-btn--primary:link,
#diraya-portal .diraya-btn--primary:visited,
#diraya-portal .diraya-btn--primary:hover,
#diraya-portal .diraya-btn--primary:focus,
#diraya-portal .diraya-btn--primary:focus-within,
#diraya-portal .diraya-btn--primary:active {
	color: #fff !important;
}
#diraya-portal .diraya-btn--primary span,
#diraya-portal .diraya-btn--primary svg {
	color: inherit;
}
#diraya-portal .diraya-btn--primary svg {
	stroke: currentColor;
}
.diraya-btn--primary:hover {
	box-shadow: 0 6px 20px -6px rgba(0, 56, 41, 0.38);
	color: #fff !important;
}
.diraya-btn--primary:active::before {
	opacity: 0.88;
}
.diraya-btn--primary:active {
	box-shadow: 0 3px 10px -4px rgba(0, 56, 41, 0.45);
	color: #fff !important;
}
/* Keyboard focus: green ring only — no browser blue outline (avoids flicker with theme) */
#diraya-portal button.diraya-btn--primary:focus {
	outline: none !important;
	box-shadow: 0 4px 14px -4px rgba(0, 56, 41, 0.45);
}

#diraya-portal button.diraya-btn--primary:focus-visible {
	outline: none !important;
	box-shadow:
		0 4px 14px -4px rgba(0, 56, 41, 0.45),
		0 0 0 3px rgba(0, 56, 41, 0.35);
	color: #fff !important;
}
.diraya-btn--full {
	width: 100%;
}
.diraya-btn--outline {
	background: transparent;
	border: 1px solid var(--diraya-border);
	color: var(--diraya-text);
	font-weight: 500;
	font-size: 0.9375rem;
}
.diraya-btn--outline:hover {
	background: var(--diraya-mint);
	border-color: var(--diraya-green);
	color: var(--diraya-green);
}
.diraya-btn--submit {
	padding: 0.9rem 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.diraya-btn:disabled,
.diraya-btn--loading {
	opacity: 0.55;
	cursor: not-allowed;
}

.diraya-auth__error {
	font-size: 0.875rem;
	color: #b91c1c;
	background: #fef2f2;
	padding: 12px 14px;
	border-radius: var(--diraya-radius-sm);
	border-left: 1px solid #fecaca;
}
.diraya-auth__success {
	font-size: 0.875rem;
	color: #047857;
	background: #ecfdf5;
	padding: 12px 14px;
	border-radius: var(--diraya-radius-sm);
	border-left: 1px solid #a7f3d0;
}

.diraya-auth__meta-note {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--diraya-text-muted);
	background: var(--diraya-surface-muted);
	border: 1px solid var(--diraya-border-soft);
	border-radius: var(--diraya-radius-sm);
	padding: 0.75rem 0.9rem;
}

/* Citation */
.diraya-auth__citation {
	margin-top: 2.5rem;
	padding: 1.5rem 1.5rem 1.5rem 1.75rem;
	background: linear-gradient(135deg, #e8eae6 0%, #dfe3e0 100%);
	border-left: 4px solid var(--diraya-copper);
	border-radius: var(--diraya-radius-sm);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.diraya-auth__citation-arabic {
	font-family: var(--diraya-font-body);
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.5;
	color: var(--diraya-text);
	text-align: right;
	direction: rtl;
}
.diraya-auth__citation-english {
	font-family: var(--diraya-font-display);
	font-style: italic;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--diraya-text);
}
.diraya-auth__citation-ref {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--diraya-copper);
	margin-top: 0.25rem;
}

.diraya-recaptcha {
	background: var(--diraya-surface-muted);
	border: 1px solid var(--diraya-border-soft);
	border-radius: var(--diraya-radius-sm);
	padding: 1rem 1.125rem;
}
.diraya-recaptcha .diraya-checkbox__label {
	font-size: 0.9375rem;
}

.diraya-auth__divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 14px 0;
}
.diraya-auth__divider-line {
	flex: 1;
	height: 1px;
	background: var(--diraya-border-soft);
}
.diraya-auth__divider-text {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--diraya-text-muted);
}

.diraya-auth__alt-action {
	font-size: 0.9375rem;
	color: var(--diraya-text-muted);
	text-align: center;
}
.diraya-auth__alt-action a {
	color: var(--diraya-copper);
	font-weight: 600;
	text-decoration: none;
}
.diraya-auth__alt-action a:hover {
	text-decoration: underline;
}

.diraya-auth__notice {
	margin-top: 2rem;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 1.25rem 1.25rem 1.25rem 1.5rem;
	background: var(--diraya-surface-muted);
	border-left: 4px solid var(--diraya-copper);
	border-radius: var(--diraya-radius-sm);
}
.diraya-auth__notice-title {
	font-family: var(--diraya-font-display);
	font-size: 1.125rem;
	color: var(--diraya-green);
	display: block;
	margin-bottom: 0.25rem;
}
.diraya-auth__notice-text {
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--diraya-text-muted);
}

/* ================================================================
   DASHBOARD
   ================================================================ */
.diraya-dash {
	background: linear-gradient(180deg, #fbf9f5 0%, #f3f1ec 100%);
	padding: clamp(2rem, 5vw, 5rem) clamp(16px, 3vw, 48px) clamp(3rem, 6vw, 6rem);
}

.diraya-dash__grid {
	display: grid;
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px);
	max-width: 1240px;
	margin: 0 auto;
	align-items: start;
}

.diraya-dash__sidebar {
	position: sticky;
	top: 88px;
}
.diraya-dash__sidebar-inner {
	background: var(--diraya-surface);
	border-radius: var(--diraya-radius);
	border: 1px solid rgba(0, 56, 41, 0.08);
	box-shadow: var(--diraya-shadow-card);
	padding: clamp(1.5rem, 3vw, 2rem);
}

.diraya-dash__heading {
	font-family: var(--diraya-font-display);
	font-weight: 400;
	font-size: clamp(1.45rem, 2.2vw, 2rem);
	line-height: 1.2;
	color: #003527;
	letter-spacing: -0.01em;
	margin-bottom: 0.7rem;
}

.diraya-dash__welcome p {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--diraya-text-muted);
}
.diraya-dash__welcome p:first-child {
	padding-bottom: 10px;
}
.diraya-dash__welcome p + p {
	margin-top: 0.75rem;
}

.diraya-dash__features {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.75rem 0 1.25rem;
}

.diraya-dash__feature {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 1rem;
	margin: 0 -0.5rem;
	border-radius: var(--diraya-radius-sm);
	transition: background 0.2s;
}
.diraya-dash__feature:hover {
	background: var(--diraya-surface-warm);
}

.diraya-dash__feature-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--diraya-mint);
	border-radius: 50%;
	border: 1px solid rgba(0, 56, 41, 0.08);
}

.diraya-dash__feature strong {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #003527;
	display: block;
	line-height: 1.5;
	margin-bottom: 0.25rem;
}
.diraya-dash__feature p {
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--diraya-text-muted);
	margin: 0;
}

.diraya-dash__quote {
	background: linear-gradient(135deg, #f5f3ef 0%, #ebe8e2 100%);
	border-left: 4px solid var(--diraya-green);
	border-radius: var(--diraya-radius-sm);
	padding: 1.25rem 1.25rem 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
}
.diraya-dash__quote p {
	font-family: var(--diraya-font-display);
	font-size: 1rem;
	line-height: 1.55;
	color: var(--diraya-text);
	font-style: italic;
}

.diraya-dash__main {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	min-width: 0;
}

.diraya-dash__card {
	background: var(--diraya-surface);
	border-radius: var(--diraya-radius);
	border: 1px solid rgba(0, 56, 41, 0.07);
	box-shadow: var(--diraya-shadow-card);
	padding: clamp(1.5rem, 3vw, 2.75rem);
	position: relative;
	overflow: hidden;
}

.diraya-dash__card-glow {
	position: absolute;
	top: -48px;
	right: -48px;
	width: 120px;
	height: 120px;
	background: rgba(176, 240, 214, 0.35);
	border-radius: 50%;
	filter: blur(40px);
	pointer-events: none;
}

.diraya-dash__card-header {
	border-bottom: 1px solid var(--diraya-border-soft);
	padding-bottom: 1.25rem;
	margin-bottom: 1.75rem;
}
.diraya-dash__card-header--table {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 1.25rem;
}

.diraya-dash__card-title {
	font-family: var(--diraya-font-display);
	font-weight: 400;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	line-height: 1.25;
	color: #003527;
}

.diraya-field--dash {
	gap: 0.5rem;
}
.diraya-field__label--dash {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #78716c;
}

.diraya-field__input--dash {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: none;
	border-radius: var(--diraya-radius-sm);
	padding: 0.9rem 1rem;
	font-family: var(--diraya-font-body);
	font-size: 1rem;
	color: #1a1f1c;
	background-color: var(--diraya-surface-muted);
	border: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.diraya-field__input--dash::placeholder {
	color: #a8a29e;
}
.diraya-field__input--dash:focus {
	outline: none;
	border-color: rgba(0, 56, 41, 0.35);
	box-shadow: 0 0 0 3px rgba(0, 56, 41, 0.1);
}

.diraya-field__textarea {
	width: 100%;
	background: var(--diraya-surface-muted);
	border: 1px solid transparent;
	border-radius: var(--diraya-radius-sm);
	padding: 1rem 1rem;
	font-family: var(--diraya-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: #1a1f1c;
	resize: vertical;
	min-height: 180px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.diraya-field__textarea::placeholder {
	color: #a8a29e;
}
.diraya-field__textarea:focus {
	outline: none;
	border-color: rgba(0, 56, 41, 0.35);
	box-shadow: 0 0 0 3px rgba(0, 56, 41, 0.1);
}

.diraya-upload {
	border: 2px dashed var(--diraya-border);
	border-radius: var(--diraya-radius-sm);
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	background: rgba(255, 255, 255, 0.5);
}
.diraya-upload:hover,
.diraya-upload--dragover {
	border-color: var(--diraya-green);
	background: rgba(0, 56, 41, 0.03);
}
.diraya-upload p {
	font-size: 0.9375rem;
	color: var(--diraya-text-muted);
	margin: 0.5rem 0 0;
}
.diraya-upload__browse {
	font-weight: 600;
	color: var(--diraya-green);
	text-decoration: underline;
	cursor: pointer;
}
.diraya-upload__hint {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #a8a29e;
	margin-top: 0.5rem;
}
.diraya-upload__input {
	display: none;
}
.diraya-upload__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.diraya-upload__file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--diraya-surface-muted);
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	color: var(--diraya-text);
	border: 1px solid var(--diraya-border-soft);
}
.diraya-upload__file-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: #b91c1c;
	font-size: 16px;
	line-height: 1;
	padding: 0 2px;
}

.diraya-dash__form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 0.5rem;
}
.diraya-dash__response-time {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-style: italic;
	color: #78716c;
}

.diraya-dash__question-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Table */
.diraya-dash__table-wrap {
	margin: 0;
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid var(--diraya-border-soft);
	border-radius: var(--diraya-radius-sm);
	background: var(--diraya-surface);
	-webkit-overflow-scrolling: touch;
}

.diraya-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 0.875rem;
	margin: 0 !important;
}
.diraya-dash__table-wrap .diraya-table,
.diraya-dash__table-wrap table {
	margin-bottom: 0 !important;
}
.diraya-table thead th {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #78716c;
	text-align: left;
	padding: 0.8rem 1rem;
	border-bottom: 1px solid var(--diraya-border-soft);
	background: #f5f7f5;
	white-space: nowrap;
}
.diraya-table__th--right {
	text-align: right !important;
}

.diraya-table tbody td {
	padding: 0.9rem 1rem;
	vertical-align: middle;
	border-bottom: 1px solid #eef1ee;
	color: var(--diraya-text);
}
.diraya-table tbody tr:last-child td {
	border-bottom: none;
}
.diraya-table tbody tr {
	transition: background 0.15s;
}
.diraya-table tbody tr:hover {
	background: rgba(0, 56, 41, 0.02);
}

/* clean column separators */
.diraya-table th + th,
.diraya-table td + td {
	border-left: 1px solid #eef1ee;
}

.diraya-table__title-cell {
	max-width: 240px;
}
.diraya-table__title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #003527;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.diraya-table__ref {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #a8a29e;
	margin-top: 4px;
}
.diraya-table__date {
	white-space: nowrap;
	font-size: 0.875rem;
}
.diraya-table__actions {
	text-align: right;
	vertical-align: top;
}
.diraya-table__status-cell {
	vertical-align: middle !important;
	text-align: center;
}
.diraya-table__status-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.diraya-table__action {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--diraya-green);
	border-bottom: 1px solid rgba(0, 56, 41, 0.35);
	padding-bottom: 1px;
	transition: color 0.2s, border-color 0.2s;
}
.diraya-table__action:hover {
	color: var(--diraya-green-dark);
	border-bottom-color: var(--diraya-green);
}

.diraya-status {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
	line-height: 1.2;
}
.diraya-status--under_screening {
	background: #f5f5f4;
	color: #57534e;
	border-color: #e7e5e4;
}
.diraya-status--assigned {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #bfdbfe;
}
.diraya-status--answered {
	background: #ecfdf5;
	color: #047857;
	border-color: #a7f3d0;
}
.diraya-status--denied {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
}
.diraya-status--more_details_required {
	background: #fffbeb;
	color: #b45309;
	border-color: #fde68a;
}

.diraya-dash__archive {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	padding: 0.6rem 1rem;
	margin: 0.85rem auto 0;
	border: 1px solid var(--diraya-border-soft);
	border-radius: 999px;
	background: var(--diraya-surface-warm);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, transform 0.15s, opacity 0.2s;
}
.diraya-dash__archive:hover {
	opacity: 1;
	background: #f3f6f3;
	border-color: rgba(0, 56, 41, 0.22);
	transform: translateY(-1px);
}
.diraya-dash__archive span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #a8a29e;
}

.diraya-dash__empty {
	font-size: 0.9375rem;
	color: var(--diraya-text-muted);
	text-align: center;
	padding: 2.5rem 1rem;
	background: var(--diraya-surface-muted);
	border-radius: var(--diraya-radius-sm);
}

.diraya-dash__logout {
	margin-top: 0.5rem;
}

.diraya-table__detail-row td {
	padding: 0 !important;
	border-bottom: 1px solid var(--diraya-border-soft);
	background: #fbfcfb;
}
.diraya-question-detail {
	padding: 1rem 1rem 1.05rem;
}
.diraya-question-detail__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.85rem;
	padding-bottom: 0.8rem;
	margin-bottom: 0.8rem;
	border-bottom: 1px solid var(--diraya-border-soft);
}
.diraya-question-detail__meta span {
	font-size: 12px;
	color: #57534e;
}
.diraya-question-detail__block + .diraya-question-detail__block {
	margin-top: 0.75rem;
}
.diraya-question-detail__block h4 {
	margin: 0 0 0.4rem;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #78716c;
}
.diraya-question-detail__content {
	background: #fff;
	border: 1px solid var(--diraya-border-soft);
	border-radius: 8px;
	padding: 0.8rem 0.9rem;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--diraya-text);
}
.diraya-question-detail__content p {
	margin: 0 0 0.65rem;
}
.diraya-question-detail__content p:last-child {
	margin-bottom: 0;
}
.diraya-question-detail__content--answer {
	background: #f8faf8;
}
.diraya-question-detail__docs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}
.diraya-question-detail__docs a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.65rem;
	border-radius: 8px;
	border: 1px solid var(--diraya-border-soft);
	background: #fff;
	font-size: 0.8125rem;
	color: var(--diraya-green);
	text-decoration: none;
}
.diraya-question-detail__docs a:hover {
	background: #f6faf7;
	border-color: rgba(0, 56, 41, 0.24);
}

.diraya-auth,
.diraya-dash {
	animation: diraya-fadeIn 0.4s var(--diraya-ease);
}
@keyframes diraya-fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.diraya-auth__card--register {
		grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
	}
	.diraya-dash__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.diraya-dash__sidebar {
		position: static;
	}
}

@media (max-width: 900px) {
	.diraya-auth__card,
	.diraya-auth__card--register {
		grid-template-columns: 1fr;
		max-width: 640px;
	}
	.diraya-auth__left {
		min-height: 280px;
		justify-content: center;
		padding: 2rem 1.5rem;
	}
	.diraya-auth__left--register {
		min-height: 260px;
	}
	.diraya-auth__left-gradient {
		opacity: 0.8;
	}
	.diraya-form-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

@media (max-width: 640px) {
	.diraya-auth__tabs {
		margin-bottom: 1.5rem;
	}
	.diraya-auth__citation {
		margin-top: 1.75rem;
	}
	.diraya-dash__form-footer {
		flex-direction: column;
		align-items: stretch;
	}
	.diraya-btn--submit {
		width: 100%;
	}
	.diraya-table__title-cell {
		max-width: 160px;
	}
	.diraya-question-detail {
		padding: 0.75rem 0.75rem 0.85rem;
	}
}
