html[dir='rtl'] .dashboard-main-body {
    direction: rtl;
    font-variant-numeric: lining-nums tabular-nums;
}

html[dir='rtl'] body {
    font-variant-numeric: lining-nums tabular-nums;
}

.sidebar > div:has(> a.sidebar-logo) {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-inline: 0.5rem;
    padding-block: 0.75rem 0.35rem;
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.sidebar-logo img.light-logo,
.sidebar-logo img.dark-logo {
    height: 2.75rem !important;
    width: auto !important;
    max-width: min(100%, 11rem) !important;
    object-fit: contain;
}

.sidebar-logo img.logo-icon {
    height: 2.5rem !important;
    width: auto !important;
    max-width: min(100%, 10rem) !important;
    object-fit: contain;
}

.ecc-profile-avatar-frame {
    flex-shrink: 0;
    aspect-ratio: 1;
}

#ecc-profile-avatar-preview {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
}

.ecc-reg-wizard-footer {
    padding: 1rem 1.25rem !important;
    gap: 0.75rem !important;
    flex-wrap: wrap;
    align-items: center;
    border-top-width: 1px;
}

.ecc-reg-wizard-footer .btn {
    min-height: 3rem;
    padding-inline: 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.875rem;
}

.ecc-reg-wizard-footer .btn.btn-primary {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ecc-reg-wizard-footer .btn.btn-neutral-200 {
    font-weight: 650;
    border: 1px solid #cbd5e1;
}

:is(.dark .ecc-reg-wizard-footer .btn.btn-neutral-200) {
    border-color: rgba(255, 255, 255, 0.12);
}

html[dir='rtl'] .navbar-search input {
    direction: rtl;
    text-align: start;
}

iconify-icon {
    display: inline-flex;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
}

.table.bordered-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.card-footer {
    background: transparent;
}
:is(.dark .card-footer) {
    border-color: rgba(255,255,255,0.08);
}

/* ── Form panels & secondary buttons (dark mode fixes) ── */
.ecc-form-panel {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: rgba(248, 250, 252, 0.92);
    padding: 0.75rem 1rem;
}

:where(.dark) .ecc-form-panel,
:where(.dark) .form-check.rounded-xl[class*="bg-neutral-50"],
:where(.dark) .rounded-xl[class*="bg-neutral-50"],
:where(.dark) .card-footer[class*="bg-neutral-50"],
:where(.dark) .ecc-reg-wizard-footer[class*="bg-neutral-50"] {
    background-color: rgba(30, 40, 56, 0.65) !important;
    border-color: rgba(75, 85, 99, 0.9) !important;
}

:where(.dark) .ecc-form-panel .ecc-form-panel-title,
:where(.dark) .ecc-form-panel .font-semibold,
:where(.dark) .form-check.rounded-xl .font-semibold {
    color: #f3f4f6 !important;
}

:where(.dark) .ecc-form-panel .ecc-form-panel-hint,
:where(.dark) .ecc-form-panel .text-xs,
:where(.dark) .form-check.rounded-xl .text-xs {
    color: #9ca3af !important;
}

.btn.btn-neutral-200 {
    background-color: #ebeef1 !important;
    border: 1px solid #d0d5dd !important;
    color: #344054 !important;
    font-weight: 600;
}

.btn.btn-neutral-200:hover {
    background-color: #dfe3ea !important;
    color: #1f2937 !important;
}

:where(.dark) .btn.btn-neutral-200 {
    background-color: rgba(55, 65, 81, 0.75) !important;
    border-color: rgba(75, 85, 99, 0.95) !important;
    color: #e5e7eb !important;
}

:where(.dark) .btn.btn-neutral-200:hover {
    background-color: rgba(75, 85, 99, 0.9) !important;
    color: #ffffff !important;
}

:where(.dark) .form-check.rounded-xl .form-check-input {
    border-color: #6b7280;
    background-color: #374151;
}

:where(.dark) .form-check.rounded-xl .form-check-input:checked {
    background-color: #487fff;
    border-color: #487fff;
}

.progress {
    height: 6px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}
:is(.dark .progress) {
    background: rgba(255,255,255,0.1);
}
.progress-bar {
    height: 100%;
    border-radius: 99px;
    background: #487fff;
    transition: width 0.4s ease;
}
.progress-bar.bg-success { background: #45b369; }
.progress-bar.bg-warning { background: #f4a118; }
.progress-bar.bg-danger  { background: #ef4444; }

html[dir='rtl'] .progress {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
html[dir='rtl'] .progress .progress-bar {
    float: none;
}

@keyframes ecc-footer-heart-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.88;
    }
}
.ecc-footer-heart {
    display: inline-block;
    line-height: 1;
    animation: ecc-footer-heart-pulse 1.15s ease-in-out infinite;
    will-change: transform;
}

.ecc-journey-hero-avatar {
    border: 3px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}
.ecc-journey-hero-text-muted {
    color: rgba(255, 255, 255, 0.78);
}
.ecc-journey-hero-text-faint {
    color: rgba(255, 255, 255, 0.58);
}
.ecc-journey-hero-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}
.ecc-journey-hero-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.ecc-journey-hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}
.ecc-journey-hero-note {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.12);
}
.ecc-journey-hero-note textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

@media print {
    .sidebar, .navbar-header, .breadcrumb-wrapper,
    .btn, form[method="POST"], nav { display: none !important; }
    .card { border: none !important; box-shadow: none !important; }
    body { background: white !important; }
}

:root {
    --ecc-slate-ink: #334155;
}

.text-secondary-light {
    color: color-mix(in srgb, var(--ecc-slate-ink) 58%, #ffffff 42%) !important;
}

html.dark .text-secondary-light,
.dark .text-secondary-light {
    color: color-mix(in srgb, #e2e8f0 82%, var(--ecc-slate-ink) 18%) !important;
}

:where(.dark) .text-neutral-400 { color: #9ca3af !important; }
:where(.dark) .text-neutral-500 { color: #9ca3af !important; }
:where(.dark) .text-neutral-600 { color: #d1d5db !important; }
:where(.dark) .text-neutral-700 { color: #e5e7eb !important; }
:where(.dark) .text-neutral-800 { color: #f3f4f6 !important; }
:where(.dark) .text-neutral-900 { color: #f9fafb !important; }
:where(.dark) .text-gray-400    { color: #9ca3af !important; }

:where(.dark) .form-control::placeholder,
:where(.dark) .form-select::placeholder {
    color: #9ca3af;
}

html:not(.dark) .text-neutral-400 { color: #64748b !important; }
html:not(.dark) .text-neutral-500 { color: #475569 !important; }
html:not(.dark) .text-secondary-light { color: #475569 !important; }

html:not(.dark) .text-danger-700 { color: #991b1b !important; }
html:not(.dark) .bg-danger-50 .text-danger-700,
html:not(.dark) .border-danger-100.bg-danger-50 p { color: #7f1d1d !important; font-weight: 600; }

html:not(.dark) .text-success-600 { color: #15803d !important; }
html:not(.dark) .text-warning-600 { color: #b45309 !important; }
html:not(.dark) .text-info-600 { color: #0369a1 !important; }
html:not(.dark) .text-primary-600 { color: #1d4ed8 !important; }

.ecc-alert-danger {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
}
.ecc-alert-danger .ecc-alert-danger-text,
.ecc-alert-danger p {
    color: #7f1d1d !important;
    font-weight: 600;
}
.ecc-alert-danger iconify-icon,
.ecc-alert-danger .ecc-alert-danger-icon {
    color: #dc2626 !important;
}

/* Dark mode: theme forces all <p> to white — keep alert text readable on light alert bg */
:where(.dark) .ecc-alert-danger,
:where(.dark) .ecc-alert-danger .ecc-alert-danger-text,
:where(.dark) .ecc-alert-danger p {
    color: #7f1d1d !important;
}

:where(.dark) .bg-danger-50.border-danger-100 p,
:where(.dark) .bg-danger-50 .text-danger-800,
:where(.dark) .border-danger-100.bg-danger-50 .text-danger-700,
:where(.dark) .border-danger-100.bg-danger-50 span {
    color: #7f1d1d !important;
    font-weight: 600;
}

:where(.dark) .bg-success-50.border-success-100 p,
:where(.dark) .bg-success-50 .text-success-800,
:where(.dark) .border-success-100.bg-success-50 span {
    color: #14532d !important;
    font-weight: 600;
}

:where(.dark) .bg-warning-50.border-warning-100 p,
:where(.dark) .bg-warning-50 .text-warning-800,
:where(.dark) .border-warning-100.bg-warning-50 span {
    color: #92400e !important;
    font-weight: 600;
}

.ecc-sidebar-kiosk-link {
    border: 2px solid #c9a227 !important;
    border-radius: 0.65rem !important;
    margin-inline: 0.35rem;
    padding-inline: 0.65rem !important;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.04)) !important;
    font-weight: 700 !important;
}
.ecc-sidebar-kiosk-link:hover,
.ecc-sidebar-kiosk-item.active-page .ecc-sidebar-kiosk-link {
    border-color: #e8c84a !important;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.08)) !important;
}

.ecc-action-btn {
    color: inherit !important;
}
.ecc-action-btn iconify-icon {
    color: currentColor !important;
}
.ecc-action-btn--view {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
}
.ecc-action-btn--edit {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}
.ecc-action-btn--delete {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}
:where(.dark) .ecc-action-btn--view {
    background-color: rgba(72, 127, 255, 0.25) !important;
    color: #93c5fd !important;
}
:where(.dark) .ecc-action-btn--edit {
    background-color: rgba(245, 158, 11, 0.25) !important;
    color: #fcd34d !important;
}
:where(.dark) .ecc-action-btn--delete {
    background-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}
.ecc-action-btn:hover {
    color: #fff !important;
}
.ecc-action-btn--view:hover { background-color: #2563eb !important; }
.ecc-action-btn--edit:hover { background-color: #d97706 !important; }
.ecc-action-btn--delete:hover { background-color: #dc2626 !important; }
.ecc-action-btn--info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}
:where(.dark) .ecc-action-btn--info {
    background-color: rgba(14, 165, 233, 0.25) !important;
    color: #7dd3fc !important;
}
.ecc-action-btn--info:hover { background-color: #0284c7 !important; }
.ecc-action-btn--success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}
:where(.dark) .ecc-action-btn--success {
    background-color: rgba(34, 197, 94, 0.25) !important;
    color: #86efac !important;
}
.ecc-action-btn--success:hover { background-color: #16a34a !important; }

table.bordered-table tbody :is(a, button)[class*="bg-primary-100"].w-8,
table.bordered-table tbody :is(a, button)[class*="bg-primary-100"].inline-flex,
table.sm-table tbody :is(a, button)[class*="bg-primary-100"].w-8 {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-warning-100"].w-8,
table.bordered-table tbody :is(a, button)[class*="bg-warning-100"].inline-flex {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-danger-100"].w-8,
table.bordered-table tbody :is(a, button)[class*="bg-danger-100"].inline-flex {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-success-100"].w-8 {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-info-100"] {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}
:where(.dark) table.bordered-table tbody :is(a, button)[class*="bg-primary-100"].w-8,
:where(.dark) table.bordered-table tbody :is(a, button)[class*="bg-primary-100"].inline-flex,
:where(.dark) table.sm-table tbody :is(a, button)[class*="bg-primary-100"].w-8 {
    background-color: rgba(72, 127, 255, 0.25) !important;
    color: #93c5fd !important;
}
:where(.dark) table.bordered-table tbody :is(a, button)[class*="bg-warning-100"].w-8,
:where(.dark) table.bordered-table tbody :is(a, button)[class*="bg-warning-100"].inline-flex {
    background-color: rgba(245, 158, 11, 0.25) !important;
    color: #fcd34d !important;
}
:where(.dark) table.bordered-table tbody :is(a, button)[class*="bg-danger-100"].w-8,
:where(.dark) table.bordered-table tbody :is(a, button)[class*="bg-danger-100"].inline-flex {
    background-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}
:where(.dark) table.bordered-table tbody :is(a, button)[class*="bg-success-100"].w-8 {
    background-color: rgba(34, 197, 94, 0.25) !important;
    color: #86efac !important;
}
:where(.dark) table.bordered-table tbody :is(a, button)[class*="bg-info-100"] {
    background-color: rgba(14, 165, 233, 0.25) !important;
    color: #7dd3fc !important;
}
table.bordered-table tbody :is(a, button).w-8 iconify-icon,
table.bordered-table tbody :is(a, button).inline-flex iconify-icon,
table.sm-table tbody :is(a, button).w-8 iconify-icon,
table.bordered-table tbody :is(a, button)[class*="rounded-full"] iconify-icon {
    color: currentColor !important;
}
table.bordered-table tbody :is(a, button).w-8:hover,
table.bordered-table tbody :is(a, button).inline-flex:hover,
table.bordered-table tbody :is(a, button)[class*="rounded-full"]:hover {
    color: #fff !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-primary-100"]:hover,
table.bordered-table tbody :is(a, button)[class*="bg-primary-100"].inline-flex:hover {
    background-color: #2563eb !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-warning-100"]:hover {
    background-color: #d97706 !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-danger-100"]:hover {
    background-color: #dc2626 !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-success-100"]:hover {
    background-color: #16a34a !important;
}
table.bordered-table tbody :is(a, button)[class*="bg-info-100"]:hover {
    background-color: #0284c7 !important;
}

.ecc-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
}
.ecc-status-pill--success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}
.ecc-status-pill--warning {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}
.ecc-status-pill--danger {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}
.ecc-status-pill--neutral {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}
.ecc-status-pill--primary {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
}
.ecc-status-pill--info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}
:where(.dark) .ecc-status-pill--success {
    background-color: rgba(34, 197, 94, 0.25) !important;
    color: #86efac !important;
}
:where(.dark) .ecc-status-pill--warning {
    background-color: rgba(245, 158, 11, 0.25) !important;
    color: #fcd34d !important;
}
:where(.dark) .ecc-status-pill--danger {
    background-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}
:where(.dark) .ecc-status-pill--neutral {
    background-color: rgba(100, 116, 139, 0.35) !important;
    color: #e2e8f0 !important;
}
:where(.dark) .ecc-status-pill--primary {
    background-color: rgba(72, 127, 255, 0.25) !important;
    color: #93c5fd !important;
}
:where(.dark) .ecc-status-pill--info {
    background-color: rgba(14, 165, 233, 0.25) !important;
    color: #7dd3fc !important;
}

:where(.dark) .dashboard-main span.rounded-full[class*="bg-success-100"],
:where(.dark) table span.rounded-full[class*="bg-success-100"],
:where(.dark) .badge[class*="bg-success-100"] {
    background-color: rgba(34, 197, 94, 0.25) !important;
    color: #86efac !important;
}
:where(.dark) .dashboard-main span.rounded-full[class*="bg-warning-100"],
:where(.dark) table span.rounded-full[class*="bg-warning-100"],
:where(.dark) .badge[class*="bg-warning-100"] {
    background-color: rgba(245, 158, 11, 0.25) !important;
    color: #fcd34d !important;
}
:where(.dark) .dashboard-main span.rounded-full[class*="bg-danger-100"],
:where(.dark) table span.rounded-full[class*="bg-danger-100"],
:where(.dark) .badge[class*="bg-danger-100"] {
    background-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}
:where(.dark) .dashboard-main span.rounded-full[class*="bg-primary-100"],
:where(.dark) table span.rounded-full[class*="bg-primary-100"],
:where(.dark) .badge[class*="bg-primary-100"] {
    background-color: rgba(72, 127, 255, 0.25) !important;
    color: #93c5fd !important;
}
:where(.dark) .dashboard-main span.rounded-full[class*="bg-info-100"],
:where(.dark) table span.rounded-full[class*="bg-info-100"] {
    background-color: rgba(14, 165, 233, 0.25) !important;
    color: #7dd3fc !important;
}
:where(.dark) .dashboard-main span.rounded-full[class*="bg-neutral-100"],
:where(.dark) .dashboard-main span.rounded-full[class*="bg-neutral-200"],
:where(.dark) table span.rounded-full[class*="bg-neutral-100"],
:where(.dark) table span.rounded-full[class*="bg-neutral-200"] {
    background-color: rgba(100, 116, 139, 0.35) !important;
    color: #e2e8f0 !important;
}

.ecc-auth-body {
    min-height: 100dvh;
    overflow-x: hidden;
}

.ecc-auth {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 100dvh;
    background: #fff;
}
:where(.dark) .ecc-auth {
    background: var(--dark-2, #1a2230);
}

.ecc-auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(0.75rem, 2vh, 1.25rem) clamp(1rem, 4vw, 1.5rem);
}

.ecc-auth-form-inner {
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
}

.ecc-auth-header {
    margin-bottom: 0.75rem;
}

.ecc-auth-logo {
    display: block;
    height: 2.5rem;
    width: auto;
    max-width: 10rem;
    margin-bottom: 0.65rem;
    object-fit: contain;
}

.ecc-auth-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.25rem;
}
:where(.dark) .ecc-auth-title {
    color: #fff;
}

.ecc-auth-lead {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.85rem;
    color: #64748b;
}
:where(.dark) .ecc-auth-lead {
    color: #94a3b8;
}

.ecc-auth .form-control,
.ecc-auth input.form-control {
    height: 2.75rem !important;
    min-height: 2.75rem;
    font-size: 0.9375rem;
}

.ecc-auth .icon-field {
    margin-bottom: 0.65rem;
}

.ecc-auth .ecc-auth-field-last {
    margin-bottom: 0.5rem;
}

.ecc-auth-remember {
    margin-top: 0.35rem;
}

.ecc-auth-submit {
    margin-top: 0.85rem !important;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.ecc-auth-alert {
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.85rem;
}

.ecc-auth-alt {
    margin-top: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(248, 250, 252, 0.9);
}
:where(.dark) .ecc-auth-alt {
    border-color: #475569;
    background: rgba(30, 41, 59, 0.35);
}

.ecc-auth-alt-title {
    margin: 0 0 0.45rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
}
:where(.dark) .ecc-auth-alt-title {
    color: #e2e8f0;
}

.ecc-auth-alt-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.ecc-auth-alt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.ecc-auth-alt-link:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}
:where(.dark) .ecc-auth-alt-link {
    border-color: #475569;
    background: #1e293b;
    color: #e2e8f0;
}
:where(.dark) .ecc-auth-alt-link:hover {
    border-color: #60a5fa;
    color: #93c5fd;
}

.ecc-auth-alt-note {
    margin: 0.45rem 0 0;
    text-align: center;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
}
:where(.dark) .ecc-auth-alt-note {
    color: #94a3b8;
}

.ecc-auth-art {
    display: none;
}

@media (max-width: 1023px) {
    .ecc-auth {
        justify-content: center;
        align-content: center;
    }
}

.ecc-auth-lottie {
    width: min(320px, 38vh) !important;
    height: min(320px, 38vh) !important;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .ecc-auth {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .ecc-auth-form {
        width: 50%;
        max-width: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1rem 2rem;
    }

    .ecc-auth-art {
        display: flex;
        width: 50%;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: inherit;
    }

    .ecc-auth-lottie {
        width: min(380px, 72vh) !important;
        height: min(380px, 72vh) !important;
    }
}

@media (max-height: 700px) {
    .ecc-auth-header {
        margin-bottom: 0.5rem;
    }
    .ecc-auth-logo {
        height: 2rem;
        margin-bottom: 0.4rem;
    }
    .ecc-auth-lead {
        margin-bottom: 0.5rem;
        font-size: 0.8125rem;
    }
    .ecc-auth-alt {
        margin-top: 0.6rem;
        padding: 0.5rem 0.6rem;
    }
    .ecc-auth-alt-note {
        display: none;
    }
}

.ecc-stu-forgot {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.ecc-stu-forgot.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.ecc-stu-forgot-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}
.ecc-stu-forgot-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    transform: scale(0.96) translateY(10px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.22s ease;
}
:where(.dark) .ecc-stu-forgot-panel {
    border-color: rgba(71, 85, 105, 0.45);
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
}
.ecc-stu-forgot.is-open .ecc-stu-forgot-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.ecc-stu-forgot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.12));
    color: #2563eb;
    margin-bottom: 1rem;
}
:where(.dark) .ecc-stu-forgot-icon {
    color: #93c5fd;
}

/* ── Placement test (standalone public pages) ── */
.ecc-placement {
    background-color: #1a2234 !important;
    color: #e2e8f0;
    min-height: 100vh;
}

.ecc-placement .ecc-placement-shell {
    background-color: #273142 !important;
    border: 1px solid #3d4f6f;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ecc-placement .ecc-placement-meta {
    color: #94a3b8 !important;
}

.ecc-placement .ecc-placement-title,
.ecc-placement h4,
.ecc-placement h5 {
    color: #f8fafc !important;
}

.ecc-placement .ecc-placement-lead,
.ecc-placement .ecc-placement-note {
    color: #cbd5e1 !important;
}

.ecc-placement .form-label {
    color: #e2e8f0 !important;
    font-weight: 600;
}

.ecc-placement .form-control {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.ecc-placement .form-control::placeholder {
    color: #64748b !important;
}

.ecc-placement .ecc-placement-timer-label {
    color: #fbbf24 !important;
    font-weight: 700;
}

.ecc-placement .ecc-placement-timer-value {
    color: #60a5fa !important;
    font-weight: 700;
}

.ecc-placement-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #475569;
    background-color: #1e293b !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ecc-placement-option span {
    color: #f1f5f9 !important;
    font-weight: 500;
    flex: 1;
}

.ecc-placement-option:hover {
    background-color: #334155 !important;
    border-color: #64748b;
}

.ecc-placement-option:has(input:checked) {
    background-color: #1e3a5f !important;
    border-color: #3b82f6;
}

.ecc-placement-option:has(input:checked) span {
    color: #ffffff !important;
    font-weight: 600;
}

.ecc-placement-option input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    accent-color: #3b82f6;
    cursor: pointer;
}

.ecc-placement .ecc-placement-score {
    color: #60a5fa !important;
}

.ecc-placement .ecc-placement-muted {
    color: #94a3b8 !important;
}

/* Import modals (vanilla JS — no Alpine) */
.ecc-import-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ecc-import-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ecc-import-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.ecc-import-modal-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    transform: scale(0.96) translateY(10px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.22s ease;
    overflow: hidden;
}

.ecc-import-modal-panel--wide {
    max-width: 32rem;
}

.ecc-import-modal-panel--confirm {
    max-width: 24rem;
}

/* Brand modal — أزرق هادي أغمق من btn-primary */
:root {
    --ecc-modal-brand: #3554bf;
    --ecc-modal-brand-shadow: rgba(47, 74, 171, 0.42);
}

.ecc-modal-panel--brand {
    border: none;
    background: var(--ecc-modal-brand);
    color: #ffffff;
    box-shadow: 0 25px 50px -12px var(--ecc-modal-brand-shadow);
}

:where(.dark) .ecc-modal-panel--brand {
    background: var(--ecc-modal-brand);
    border: none;
}

.ecc-modal-brand-body {
    padding: 1.75rem 1.5rem 1rem;
}

.ecc-modal-brand-close {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ecc-modal-brand-close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.ecc-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.ecc-modal-brand-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem 1.35rem;
}

.ecc-modal-btn {
    min-width: 6.5rem;
    border: 0;
    border-radius: 0.625rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ecc-modal-btn:active {
    transform: scale(0.98);
}

.ecc-modal-btn--cancel {
    background: #e2e8f0;
    color: #475569;
}

.ecc-modal-btn--cancel:hover {
    background: #cbd5e1;
}

.ecc-modal-btn--danger {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.ecc-modal-btn--danger:hover {
    background: #b91c1c;
}

.ecc-modal-btn--primary {
    background: #ffffff;
    color: var(--ecc-modal-brand);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ecc-modal-btn--primary:hover {
    background: #f8fafc;
}

/* Import modal — هيدر أزرق */
.ecc-import-modal-panel--branded-header .ecc-import-modal-header {
    background: var(--ecc-modal-brand);
    color: #ffffff;
    padding: 1.25rem 1.25rem 1rem;
    margin: 0;
    border-bottom: none;
}

.ecc-import-modal-panel--branded-header .ecc-import-modal-header h6,
.ecc-import-modal-panel--branded-header .ecc-import-modal-header p {
    color: #ffffff;
}

.ecc-import-modal-panel--branded-header .ecc-import-modal-header p {
    opacity: 0.88;
}

.ecc-import-modal-panel--branded-header .ecc-import-modal-close {
    color: rgba(255, 255, 255, 0.85);
}

.ecc-import-modal-panel--branded-header .ecc-import-modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.ecc-import-modal-panel--branded-header .ecc-import-modal-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: #ffffff;
}

:where(.dark) .ecc-import-modal-panel--branded-header .ecc-import-modal-footer,
:where(.dark) .ecc-import-modal-panel--branded-header .ecc-import-modal-body {
    background: #1e293b;
}

:where(.dark) .ecc-import-modal-panel--branded-header .ecc-import-modal-panel,
:where(.dark) .ecc-import-modal-panel--branded-header.ecc-import-modal-panel {
    background: #1e293b;
}

.ecc-import-modal-panel--branded-header .ecc-import-modal-header.border-b {
    border-bottom: none !important;
}

:where(.dark) .ecc-import-modal-panel:not(.ecc-modal-panel--brand) {
    border-color: rgba(71, 85, 105, 0.45);
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
}

.ecc-import-modal.is-open .ecc-import-modal-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.ecc-import-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 0;
}

.ecc-import-modal-body {
    padding: 1.25rem;
}

.ecc-import-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1rem;
    margin-top: 0.25rem;
}

:where(.dark) .ecc-import-modal-footer {
    border-top-color: rgba(71, 85, 105, 0.45);
}

.ecc-import-modal-close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.375rem;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ecc-import-modal-close:hover {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
}

.ecc-import-drop {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ecc-import-drop.is-dragging {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08);
}

:is(.dark .ecc-import-drop) {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.3) 100%);
}

/* Toast — نفس أسلوب الـ Modal (خلفية صلبة + نص أبيض) */
.ecc-toast-stack {
    position: fixed;
    bottom: 1.25rem;
    inset-inline-start: 1.25rem;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: min(calc(100vw - 2rem), 22rem);
    pointer-events: none;
}

.ecc-toast-stack .ecc-toast {
    pointer-events: auto;
}

.ecc-toast {
    border-radius: 0.875rem;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    animation: ecc-toast-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ecc-toast.is-leaving {
    animation: ecc-toast-out 0.22s ease forwards;
}

@keyframes ecc-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ecc-toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(12px);
    }
}

.ecc-toast--success {
    background: #18794e;
}

.ecc-toast--error {
    background: #c53030;
}

.ecc-toast--warning {
    background: #b45309;
}

.ecc-toast--info {
    background: #475569;
}

.ecc-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.ecc-toast__msg {
    color: #ffffff;
}

.ecc-toast__close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.ecc-toast__close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

