.card-acct-modal__overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1600;
}

.card-acct-modal__overlay.hidden {
    display: none;
}

.card-acct-modal__container {
    width: 880px;
    max-width: 95vw;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: card-acct-modal__fade-in 0.2s ease-out;
}

@keyframes card-acct-modal__fade-in {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-acct-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
}

.card-acct-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.card-acct-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(107, 114, 128, 0.16);
    color: #111827;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.card-acct-modal__close:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.card-acct-modal__body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    background: #f9fafb;
}

.card-acct-modal__info {
    padding: 14px 18px;
    border-radius: 14px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-acct-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.card-acct-modal__toolbar-left,
.card-acct-modal__toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-acct-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card-acct-modal__btn i {
    font-size: 12px;
}

.card-acct-modal__btn--primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
}

.card-acct-modal__btn--primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-1px);
}

.card-acct-modal__btn--secondary {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(14, 165, 233, 0.18);
}

.card-acct-modal__btn--secondary:disabled {
    background: #cbd5f5;
    cursor: not-allowed;
    box-shadow: none;
}

.card-acct-modal__btn--ghost {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.card-acct-modal__btn--ghost:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.card-acct-modal__table-wrap {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
}

.card-acct-modal__table thead th {
    background: #f1f5f9;
    font-size: 13px;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

.card-acct-modal__table tbody td {
    padding: 7px 10px;
    height: 38px;
    vertical-align: middle;
    font-size: 13px;
}

.card-acct-modal__table thead th:nth-child(4),
.card-acct-modal__table tbody td:nth-child(4),
.card-acct-modal__table thead th:nth-child(5),
.card-acct-modal__table tbody td:nth-child(5) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

.card-acct-modal__table thead th:nth-child(3),
.card-acct-modal__table tbody td:nth-child(3) {
    width: 45%;
}

.card-acct-modal__table input[type="text"] {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.card-acct-modal__table input[type="text"]:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.card-acct-modal__empty {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    padding: 20px 0;
}

.card-acct-modal__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.card-acct-modal__toggle input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.card-acct-modal__toggle span {
    width: 36px;
    height: 20px;
    background: #cbd5f5;
    border-radius: 999px;
    transition: background 0.2s ease;
    position: relative;
}

.card-acct-modal__toggle span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.card-acct-modal__toggle input:checked + span {
    background: #34d399;
}

.card-acct-modal__toggle input:checked + span::after {
    transform: translateX(16px);
}

.card-acct-modal__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    font-size: 14px;
}

.card-acct-modal__icon-btn:hover {
    background: rgba(148, 163, 184, 0.18);
}

.card-acct-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.card-acct-modal__footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .card-acct-modal__container {
        width: 96vw;
    }
    .card-acct-modal__toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-acct-modal__toolbar-right {
        width: 100%;
        justify-content: flex-end;
    }
}

