@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap");

:root {
    --eca-primary: #0f4c81;
    --eca-primary-strong: #0a365c;
    --eca-accent: #f0b429;
    --eca-success: #1f8f5f;
    --eca-danger: #b63c3c;
    --eca-ink: #1f2d3d;
    --eca-muted: #5e6e80;
    --eca-bg: #f6f9fc;
    --eca-surface: rgba(255, 255, 255, 0.95);
    --eca-border: rgba(15, 76, 129, 0.14);
    --eca-shadow: 0 14px 30px rgba(10, 54, 92, 0.12);
    --eca-radius-lg: 18px;
    --eca-radius-md: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--eca-ink);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(54rem 36rem at -12% -8%, rgba(15, 76, 129, 0.24), transparent 62%),
        radial-gradient(30rem 24rem at 112% 0%, rgba(240, 180, 41, 0.26), transparent 68%),
        linear-gradient(160deg, #eaf4ff, var(--eca-bg));
}

h1,
h2,
h3,
h4,
.eca-brand-title {
    font-family: "Fraunces", serif;
    letter-spacing: 0.01em;
}

.eca-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid rgba(10, 54, 92, 0.16);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(10, 54, 92, 0.92), rgba(15, 76, 129, 0.92));
}

.eca-nav {
    min-height: 72px;
}

.eca-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
}

.eca-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.eca-brand-title {
    color: #f8fbff;
    font-size: 1.17rem;
    font-weight: 700;
    line-height: 1.05;
}

.eca-brand-subtitle {
    display: block;
    color: #c9daeb;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eca-top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.eca-top-actions .btn {
    border-radius: 999px;
    font-weight: 700;
}

.eca-main {
    max-width: 1200px;
    padding-top: 1.4rem;
    padding-bottom: 2.2rem;
}

.eca-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--eca-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(125deg, rgba(10, 54, 92, 0.95), rgba(15, 76, 129, 0.9));
    color: #f8fbff;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--eca-shadow);
}

.eca-hero p {
    margin-bottom: 0;
    color: #d8e9ff;
}

.eca-hero::before,
.eca-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.eca-hero::before {
    width: 230px;
    height: 230px;
    top: -125px;
    right: -95px;
    background: radial-gradient(circle, rgba(240, 180, 41, 0.45), rgba(240, 180, 41, 0));
}

.eca-hero::after {
    width: 200px;
    height: 200px;
    left: -95px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(127, 198, 255, 0.4), rgba(127, 198, 255, 0));
}

.eca-card {
    border-radius: var(--eca-radius-md);
    border: 1px solid var(--eca-border);
    background: var(--eca-surface);
    box-shadow: 0 8px 20px rgba(10, 54, 92, 0.08);
}

.eca-card-body {
    padding: 1rem;
}

.sp-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 0.75rem 3rem;
}

.sp-auth-shell {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.75rem 3rem;
}

.sp-auth-panel {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.sp-auth-aside {
    background: linear-gradient(150deg, var(--eca-primary-strong) 0%, var(--eca-primary) 58%, #11625f 100%);
    color: #ffffff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.sp-auth-aside-copy h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: 0;
}

.sp-auth-aside-copy p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.sp-auth-form-pane {
    padding: 2rem;
    align-self: center;
}

.sp-auth-form {
    max-width: 470px;
}

.sp-auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.sp-auth-brand--stacked {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 2rem;
}

.sp-auth-brand--stacked .sp-auth-school-name,
.sp-auth-brand--stacked .sp-auth-school-sub {
    color: #ffffff;
}

.sp-auth-brand--stacked .sp-auth-school-sub {
    opacity: 0.8;
}

.sp-auth-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: #eff6ff;
    padding: 3px;
    border: 2px solid #bfdbfe;
}

.sp-auth-school-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.2;
}

.sp-auth-school-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.sp-auth-method-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.sp-auth-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.sp-auth-method-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 78px;
    padding: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.sp-auth-method-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sp-auth-method-card:has(input:checked) {
    border-color: var(--eca-primary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.14);
}

.sp-auth-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--eca-primary);
    background: #e0f2fe;
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.sp-auth-method-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sp-auth-method-text strong {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.2;
}

.sp-auth-method-text small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.2;
}

.sp-auth-contact-group {
    display: none;
}

.sp-auth-contact-group.is-active {
    display: block;
}

.sp-auth-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10);
    padding: 2rem 2rem 1.5rem;
    width: 100%;
    max-width: 440px;
}

.sp-auth-title {
    font-family: "Manrope", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
    letter-spacing: 0;
}

.sp-auth-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.sp-auth-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 0.3rem;
}

.sp-auth-input {
    border-color: #cbd5e1;
    border-radius: 0.6rem;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-auth-input:focus {
    border-color: var(--eca-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.sp-auth-btn {
    background: linear-gradient(135deg, var(--eca-primary-strong), var(--eca-primary));
    border: none;
    border-radius: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: opacity 0.15s, transform 0.1s;
}

.sp-auth-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.sp-auth-btn:active {
    transform: translateY(0);
}

.sp-auth-alert {
    font-size: 0.88rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.55rem;
    margin-bottom: 1rem;
}

.sp-otp-icon {
    font-size: 2.5rem;
    color: var(--eca-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.sp-otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.5rem !important;
    font-weight: 700;
}

.eca-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--eca-primary-strong);
}

.eca-card-subtitle {
    margin: 0;
    color: var(--eca-muted);
    font-size: 0.92rem;
}

.eca-nav-card {
    color: inherit;
    text-decoration: none;
    display: block;
}

.eca-nav-card .eca-card {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eca-nav-card:hover .eca-card,
.eca-nav-card:focus-visible .eca-card {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(10, 54, 92, 0.14);
    border-color: rgba(15, 76, 129, 0.35);
}

.eca-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 1rem;
}

.eca-admin-link,
.eca-admin-link:hover,
.eca-admin-link:focus,
.eca-admin-link:active,
.eca-admin-link:visited {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.eca-admin-link * {
    text-decoration: none !important;
}

.eca-admin-card {
    height: 100%;
    min-height: 220px;
    border-radius: 20px;
    border: 1px solid rgba(15, 76, 129, 0.14);
    background:
        radial-gradient(18rem 12rem at 110% -10%, rgba(240, 180, 41, 0.12), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    box-shadow: 0 10px 26px rgba(10, 54, 92, 0.08);
    padding: 1.25rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.eca-admin-link:hover .eca-admin-card,
.eca-admin-link:focus-visible .eca-admin-card {
    transform: translateY(-4px);
    border-color: rgba(15, 76, 129, 0.32);
    box-shadow: 0 18px 34px rgba(10, 54, 92, 0.14);
}

.eca-admin-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1rem;
    color: var(--eca-primary-strong);
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(20, 103, 158, 0.08));
    border: 1px solid rgba(15, 76, 129, 0.12);
    font-size: 1.3rem;
}

.eca-admin-card .eca-card-title {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
}

.eca-admin-card .eca-card-subtitle {
    line-height: 1.45;
}

.eca-admin-meta {
    margin: auto 0 0;
    padding-top: 1rem;
    color: var(--eca-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eca-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.45rem;
}

.eca-card-actions .btn {
    border-radius: 10px;
    font-weight: 700;
    min-height: 34px;
    padding: 0.34rem 0.72rem;
}

.eca-card-actions .btn-primary {
    background: linear-gradient(135deg, #0f4c81, #14679e);
    border-color: #0f4c81;
}

.eca-card-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0d416d, #125a8a);
    border-color: #0d416d;
}

.eca-grid {
    display: grid;
    gap: 1rem;
}

.eca-grid.cards-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.eca-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(10, 54, 92, 0.15);
    background: rgba(15, 76, 129, 0.06);
    color: var(--eca-primary-strong);
    padding: 0.18rem 0.55rem;
    font-size: 0.79rem;
    font-weight: 700;
}

.eca-chip.success {
    background: rgba(31, 143, 95, 0.12);
    border-color: rgba(31, 143, 95, 0.25);
    color: #146746;
}

.eca-chip.warning {
    background: rgba(240, 180, 41, 0.2);
    border-color: rgba(240, 180, 41, 0.36);
    color: #6d4e05;
}

.eca-chip.danger {
    background: rgba(182, 60, 60, 0.12);
    border-color: rgba(182, 60, 60, 0.32);
    color: #7a2f2f;
}

.eca-chip.neutral {
    background: rgba(37, 50, 69, 0.08);
    border-color: rgba(37, 50, 69, 0.2);
    color: #3a4658;
}

.eca-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
}

.eca-toolbar .btn,
.eca-toolbar .form-control,
.eca-toolbar .form-select {
    border-radius: 10px;
}

.eca-table-wrap {
    border: 1px solid var(--eca-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.table.eca-table {
    margin-bottom: 0;
    font-size: 0.93rem;
}

.table.eca-table thead th {
    border-bottom: 1px solid rgba(10, 54, 92, 0.2);
    background: rgba(15, 76, 129, 0.08);
    color: #27415f;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table.eca-table td,
.table.eca-table th {
    vertical-align: middle;
    padding: 0.62rem 0.66rem;
}

.table.eca-table tbody tr {
    transition: background-color 0.15s ease;
}

.table.eca-table tbody tr:hover {
    background: rgba(15, 76, 129, 0.05);
}

.table.eca-table tbody tr.eca-row-clash {
    background: rgba(182, 60, 60, 0.1);
}

.table.eca-table tbody tr.eca-row-clash:hover {
    background: rgba(182, 60, 60, 0.16);
}

.eca-fee-cell {
    min-width: 130px;
}

.eca-fee-input {
    max-width: 130px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.eca-fee-input.is-saving {
    background: linear-gradient(90deg, rgba(15, 76, 129, 0.08), rgba(15, 76, 129, 0.02));
}

.eca-fee-hint {
    min-height: 1rem;
    margin-top: 0.2rem;
    font-size: 0.71rem;
    font-weight: 600;
}

.eca-fee-hint.is-saving {
    color: #255d8b !important;
}

.eca-fee-hint.is-error {
    color: #b63c3c !important;
}

.eca-fee-hint.is-ok {
    color: #1f8f5f !important;
}

.eca-muted {
    color: var(--eca-muted) !important;
}

.eca-loading {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 10px;
    min-height: 1.25rem;
}

.eca-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    animation: eca-shimmer 1.25s infinite;
}

@keyframes eca-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.eca-status-banner {
    border-radius: 11px;
    border: 1px solid rgba(15, 76, 129, 0.16);
    background: rgba(15, 76, 129, 0.08);
    padding: 0.72rem 0.86rem;
}

.eca-status-banner.closed {
    border-color: rgba(182, 60, 60, 0.26);
    background: rgba(182, 60, 60, 0.08);
}

.eca-status-banner.payment {
    border-color: rgba(240, 180, 41, 0.35);
    background: linear-gradient(135deg, rgba(240, 180, 41, 0.2), rgba(252, 243, 211, 0.5));
    color: #2f2a1f;
}

.eca-status-banner.payment .form-select {
    min-height: 34px;
}

.eca-status-banner.payment .btn {
    border-radius: 9px;
}

.eca-status-banner.clash {
    border-color: rgba(182, 60, 60, 0.35);
    background: linear-gradient(135deg, rgba(182, 60, 60, 0.12), rgba(255, 240, 240, 0.6));
    color: #5d2424;
}

.eca-hero .eca-status-banner.payment {
    border-color: rgba(240, 180, 41, 0.72);
    background: rgba(255, 247, 224, 0.93);
    color: #1f2d3d;
}

.eca-chip.eca-chip-clash {
    background: rgba(182, 60, 60, 0.14);
    border-color: rgba(182, 60, 60, 0.35);
    color: #7a2f2f;
}

.eca-clash-note {
    margin-top: 0.18rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #7a2f2f;
}

.eca-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eca-mini-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(15, 76, 129, 0.12);
    background: #fff;
    border-radius: 10px;
    padding: 0.62rem 0.72rem;
    margin-bottom: 0.5rem;
}

.eca-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 0.6rem;
}

.eca-kpi {
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.14);
    background: rgba(15, 76, 129, 0.06);
    padding: 0.55rem 0.65rem;
}

.eca-kpi-label {
    color: var(--eca-muted);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.eca-kpi-value {
    color: var(--eca-primary-strong);
    font-weight: 800;
    font-size: 1.08rem;
}

.eca-hero .eca-kpi {
    border-color: rgba(223, 236, 250, 0.2);
    background: rgba(9, 39, 67, 0.16);
}

.eca-hero .eca-kpi-label {
    color: #cfe1f5;
}

.eca-hero .eca-kpi-value {
    color: #f7fbff;
}

.eca-footer {
    border-top: 1px solid rgba(10, 54, 92, 0.14);
    background: rgba(255, 255, 255, 0.86);
}

.eca-footer .btn {
    border-radius: 999px;
}

.eca-toast {
    min-width: 290px;
    border-radius: 12px;
    border: 1px solid rgba(10, 54, 92, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 24px rgba(10, 54, 92, 0.14);
}

.eca-toast .toast-body {
    font-weight: 600;
    color: var(--eca-ink);
}

.eca-toast.is-success {
    border-color: rgba(31, 143, 95, 0.35);
}

.eca-toast.is-warning {
    border-color: rgba(240, 180, 41, 0.45);
}

.eca-toast.is-error {
    border-color: rgba(182, 60, 60, 0.4);
}

.eca-confirm-modal .modal-content {
    border-radius: 16px;
    border: 1px solid rgba(10, 54, 92, 0.16);
    box-shadow: 0 20px 38px rgba(10, 54, 92, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
}

.eca-confirm-modal .modal-header {
    border-bottom: 1px solid rgba(10, 54, 92, 0.12);
}

.eca-confirm-modal .modal-footer {
    border-top: 1px solid rgba(10, 54, 92, 0.12);
}

.eca-planner-step {
    border: 1px solid rgba(15, 76, 129, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.85rem 0.9rem;
    margin-bottom: 0.8rem;
}

.eca-suggest-wrap {
    position: relative;
}

.eca-suggest-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.2rem);
    z-index: 1080;
    max-height: 260px;
    overflow: auto;
    border: 1px solid rgba(10, 54, 92, 0.2);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(10, 54, 92, 0.16);
}

.eca-suggest-item {
    width: 100%;
    border: 0;
    text-align: left;
    background: transparent;
    color: var(--eca-ink);
    padding: 0.48rem 0.58rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.eca-suggest-item + .eca-suggest-item {
    border-top: 1px solid rgba(10, 54, 92, 0.08);
}

.eca-suggest-item:hover,
.eca-suggest-item:focus-visible {
    background: rgba(15, 76, 129, 0.08);
}

.eca-day-toggle-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.eca-day-toggle {
    border: 1px solid rgba(10, 54, 92, 0.22);
    border-radius: 999px;
    min-width: 64px;
    padding: 0.32rem 0.78rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #3a4658;
    background: #fff;
    transition: all 0.16s ease;
}

.eca-day-toggle:hover {
    border-color: rgba(15, 76, 129, 0.4);
    color: var(--eca-primary-strong);
}

.eca-day-toggle.is-active {
    color: #fff;
    border-color: #0f4c81;
    background: linear-gradient(135deg, #0f4c81, #14679e);
    box-shadow: 0 5px 12px rgba(15, 76, 129, 0.24);
}

.eca-enroll-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(135deg, #0f4c81, #14679e);
    box-shadow: 0 6px 14px rgba(15, 76, 129, 0.28);
}

.eca-enroll-btn:hover,
.eca-enroll-btn:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #0c3f6b, #115a8a);
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .eca-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eca-nav {
        min-height: 64px;
    }

    .eca-top-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .eca-nav .container-xl {
        display: flex;
        flex-wrap: wrap;
        row-gap: 0.55rem;
    }

    .eca-brand {
        width: 100%;
        min-width: 0;
    }

    .eca-brand-title {
        font-size: 1.05rem;
    }

    .eca-brand-subtitle {
        font-size: 0.67rem;
        letter-spacing: 0.06em;
    }

    .eca-top-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .eca-top-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
    }

    .eca-admin-grid {
        grid-template-columns: 1fr;
    }

    .eca-admin-card {
        min-height: 0;
    }

    .eca-main {
        padding-top: 1rem;
        padding-bottom: 1.3rem;
    }

    .eca-hero {
        padding: 0.95rem;
    }

    .eca-card-body {
        padding: 0.82rem;
    }

    .sp-auth-shell {
        padding: 0.75rem 0 2rem;
        align-items: flex-start;
    }

    .sp-auth-panel {
        grid-template-columns: 1fr;
        border-radius: 0.75rem;
    }

    .sp-auth-aside {
        min-height: auto;
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .sp-auth-form-pane {
        padding: 1.25rem;
    }

    .sp-auth-method-grid {
        grid-template-columns: 1fr;
    }

    .sp-auth-aside-copy h1 {
        font-size: 1.65rem;
    }

    .eca-toolbar .form-control,
    .eca-toolbar .form-select,
    .eca-toolbar .btn {
        width: 100%;
        max-width: none !important;
        min-width: 0 !important;
    }

    .table.eca-table.eca-mobile-table {
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
    }

    .table.eca-table.eca-mobile-table thead {
        display: none;
    }

    .table.eca-table.eca-mobile-table tbody,
    .table.eca-table.eca-mobile-table tr,
    .table.eca-table.eca-mobile-table td {
        display: block;
        width: 100%;
    }

    .table.eca-table.eca-mobile-table tbody tr {
        border: 1px solid rgba(15, 76, 129, 0.16);
        border-radius: 11px;
        margin: 0.55rem 0;
        padding: 0.16rem 0.2rem;
        background: #fff;
    }

    .table.eca-table.eca-mobile-table tbody tr:first-child {
        margin-top: 0.2rem;
    }

    .table.eca-table.eca-mobile-table tbody tr:last-child {
        margin-bottom: 0.2rem;
    }

    .table.eca-table.eca-mobile-table td {
        border: 0;
        border-bottom: 1px dashed rgba(15, 76, 129, 0.14);
        padding: 0.52rem 0.56rem;
        display: flex;
        gap: 0.7rem;
        justify-content: space-between;
        align-items: flex-start;
        text-align: right;
    }

    .table.eca-table.eca-mobile-table td::before {
        content: attr(data-label);
        color: #2c4562;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-align: left;
        flex: 0 0 42%;
    }

    .table.eca-table.eca-mobile-table td:last-child {
        border-bottom: 0;
    }

    .table.eca-table.eca-mobile-table td[colspan] {
        text-align: left;
        justify-content: flex-start;
    }

    .table.eca-table.eca-mobile-table td[colspan]::before {
        content: none;
    }

    .table.eca-table.eca-mobile-table tbody tr.eca-row-clash {
        border-color: rgba(182, 60, 60, 0.38);
        background: rgba(182, 60, 60, 0.08);
    }

    .table.eca-table td,
    .table.eca-table th {
        padding: 0.56rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .sp-auth-card {
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 0.75rem;
    }

    .sp-auth-title {
        font-size: 1.2rem;
    }
}
